Anzahl Handles der Prozesse
-
Hallo,
ich habe die einzelen Proszesse, die auf den Rechner laufen, ausgelesen.
Nun möchet ich von den Prozessen wietere Infos(Handles,virtueller Speicher) haben.HANDLE hSysSnapshot = NULL; HANDLE h_proc; PROCESSENTRY32 proc; proc.dwSize = sizeof(proc); hSysSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); Process32First(hSysSnapshot,&proc); proc.dwSize = sizeof(proc); for (int i = 0; Process32Next(hSysSnapshot,&proc); i++) { h_proc = OpenProcess(PROCESS_ALL_ACCESS, TRUE, proc.th32ProcessID); strcpy(p1[i].exename , proc.szExeFile); DWORD processID=proc.th32ProcessID; // . // . // . }Wenn jemand in der Richtung irgend etwas weiß kann bitte antworten...
thx TaccoGo