Hey all,
Im wondering why this isnt working? pos seems to be fine, chrome is running...
Maybe its something stupid, i have been staring at the screen for hours so maybe im just braindead and need a break?Code:procedure GetProcessList(ListOfProcesses, Dumps: TStrings); var hSnapshoot: THandle; pe32: TProcessEntry32; begin ListOfProcesses.Clear; hSnapshoot := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if (hSnapshoot = -1) then Exit; pe32.dwSize := SizeOf(TProcessEntry32); if (Process32First(hSnapshoot, pe32)) then repeat if (Pos('CHROME.EXE',pe32.szExeFile) > 0) then begin ListOfProcesses.Add(pe32.szExeFile); ProcessMem(pe32,Dumps); end; until not Process32Next(hSnapshoot, pe32); CloseHandle (hSnapshoot); end;
Thanks


LinkBack URL
About LinkBacks

Reply With Quote
