标签:app create help amp 获取 eof hot process next
#include <Tlhelp32.h>
PROCESSENTRY32 ProEntry = {0};
HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
ProEntry.dwSize = sizeof(PROCESSENTRY32);
Process32First(hSnap, &ProEntry);
do
{
wprintf(_T("%s %d %d \r\n"),ProEntry.szExeFile,ProEntry.th32ProcessID,ProEntry.cntThreads);
// 这里可以设置获取独立进程的线程数。
} while (Process32Next(hSnap,&ProEntry));
CloseHandle(hSnap);
标签:app create help amp 获取 eof hot process next
原文地址:http://blog.51cto.com/383156647/2067812