摘要: VC中来获得显示当前运行的所有进程的方法有很多,下面介绍两种方法。1、通过CreateToolhelp32Snapshot来创建所有进程的快照,然后获取所有进程的信息。代码实现如下,可在VC6.0下运行。#include <windows.h>#include <tlhelp32.h>#include <stdio.h>#include <iostream.h>#include <Winbase.h>BOOL PrintProcessList( ){ /*得到所有进程的快照*/HANDLE hProcessSnap = CreateT 阅读全文
posted @ 2011-06-09 22:11 闲云鹤 阅读(4630) 评论(0) 推荐(0) 编辑