摘要: 这里的文章是本人在学习的时候的总结。可以转载,但请保留出处! 阅读全文
posted @ 2007-04-09 19:05 巨巨 阅读(82) 评论(0) 推荐(0) 编辑
摘要: // ProcEnum.cpp : Defines the entry point for the application.//本程序演示了如何列举系统进程,并且更改进程的优先级,结束进程//控件:ListView,TrackBar控件的使用示例,其中资源是添加了两个对话框模板#include "stdafx.h"#include "resource.h"#include <stdio.h>#include <commctrl.h>#include <Tlhelp32.h>#include <stdlib.h&g 阅读全文
posted @ 2007-04-09 16:36 巨巨 阅读(206) 评论(0) 推荐(0) 编辑
摘要: CreateProcess -----创建进程GetCurrentProcess----返回一个指向当前进程的伪句柄,只能在当前进程中使用GetCurrentProcessID----可以取得当前进程的IDCreateToolhelp32Snapshot----获得进程、模块或线程的快照列表,返回一个句柄。Process32First----获得CreateToolhelp32Snapshot生成的快照列表的第一项Process32Next----获得CreateToolhelp32Snapshot生成的快照列表的下一项OpenProcess----打开并取得一个进程的句柄GetPriorit 阅读全文
posted @ 2007-04-09 16:35 巨巨 阅读(158) 评论(0) 推荐(0) 编辑