2013年9月26日

获取指定程序的所有线程ID号

摘要: HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); PROCESSENTRY32 pe = { sizeof(pe) }; BOOL fOk; for (fOk = Process32First(hSnapshot, &pe); fOk; fOk = Process32Next(hSnapshot, &pe)) { if (!_tcscmp(pe.szExeFile, L"VCdemo.exe")) { if(bNoPrint == FALSE&&Refres 阅读全文

posted @ 2013-09-26 16:55 bamboo_lady 阅读(733) 评论(0) 推荐(0)

导航