标签:enum comment nump code sizeof pre i++ lib windows系统
#include <Psapi.h>
#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]);
}
标签:enum comment nump code sizeof pre i++ lib windows系统
原文地址:http://blog.51cto.com/383156647/2067425