VOID GetProcessList() { HANDLE hProcess = NULL; PROCESSENTRY32 pe32 = {0,}; hProcess = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); pe32.dwSize = sizeof(PROCESSENTRY32); if (Process32First(hProcess, &pe32)) { do { OutputDebugString(pe32.szExeFile); } while (Process32Next(hProcess, &pe32)); } CloseHandle (hProcess); }
[PNG image (29.25 KB)]
C++
Win32
프로세스
Retrieved from http://hyacinth.byus.net/moniwiki/wiki.php/C++/모든 프로세스 리스트(이름) Enumerate
last modified 2011-12-06 17:08:31