BOOL GetExitCodeProcess( HANDLE hProcess, // handle to the process LPDWORD lpExitCode // address to receive termination status );