Programming, System Programming, Win32, C.
to continue...")); getchar(); if (!GetExitCodeProcess(pi.hProcess, &dwExitCode)) ExitSys(TEXT("GetExitCodeProcess"), EXIT_FAILURE); if (dwExitCode == STILL_ACTIVE) { _tprintf(TEXT("Process still running...\n")); exit(EXIT_FAILURE); } _tprintf(TEXT("Exit code: %lu\n"), dwExitCode); return 0; } void