大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
#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]);
}