十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
#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]);
}