Programming, System Programming, Win32, C.
#include <stdio.h> #include <stdlib.h> #include <tchar.h> #include <Windows.h> #include <Psapi.h> void ExitSys(LPCTSTR lpszMsg, int status); int main(void) { DWORD pids[8192]; DWORD dwCount; HANDLE hProcess; HMODULE hMod; DWORD cbNeeded; char szProcessName[MAX_PATH] = "<unknown>"; int i; if