成都网站建设设计

将想法与焦点和您一起共享

【API】枚举Windows系统所有进程

#include   
#pragma comment(lib,"Psapi.lib") 

DWORD dwProcesses[1024], dwRes;  
EnumProcesses(dwProcesses,sizeof(dwProcesses),&dwRes);  

for (int i = 0; i < dwRes / sizeof(DWORD); i++)  
{  
    printf("%d %d\r\n",i,dwProcesses[i]);  
}  

网页题目:【API】枚举Windows系统所有进程
网页链接:http://chengdu.cdxwcx.cn/article/pdpipe.html