001
13.05.2004, 15:06 Uhr
Windalf
Der wo fast so viele Posts wie FloSoft... (Operator)
|
meinst du sowas?
C++: |
DWORD dw; HANDLE hSysSnapshot = NULL; HANDLE h_abc; PROCESSENTRY32 proc;
proc.dwSize = sizeof(proc); hSysSnapshot = CreateToolhelp32Snapshot ( TH32CS_SNAPPROCESS, 0 ); Process32First(hSysSnapshot,&proc); proc.dwSize = sizeof(proc);
do{ if(!strcmp(proc.szExeFile,"tralala.exe")){ h_abc=OpenProcess(PROCESS_ALL_ACCESS, TRUE, proc.th32ProcessID); GetExitCodeProcess(h_abc,&dw); TerminateProcess(h_abc,dw); } }while(Process32Next(hSysSnapshot,&proc));
|
-- ...fleißig wie zwei Weißbrote |