003
08.04.2003, 23:30 Uhr
Christian
C/C++ Master (Operator)
|
Hi!
C++: |
#include <windows.h> #include <tlhelp32.h> #include <stdio.h>
int main(int argc, char* argv[]) { HANDLE hSysSnapshot = NULL; PROCESSENTRY32 proc;
proc.dwSize = sizeof(proc); hSysSnapshot = CreateToolhelp32Snapshot ( TH32CS_SNAPPROCESS, 0 ); if ( hSysSnapshot == (HANDLE)-1 ) return 0;
if ( Process32First ( hSysSnapshot, &proc ) ) { proc.dwSize = sizeof(proc); do { printf ("%lu - %s\n", proc.th32ProcessID, proc.szExeFile ); } while ( Process32Next ( hSysSnapshot, &proc ) );
}
CloseHandle ( hSysSnapshot );
return 0; }
|
Das könnte für dich interessant sein.
Grüße, Christian -- Grüße, Christian |