Exit code of a killed process (GetExitCodeProcess return 1)

  • Thread starter Thread starter Aman JIANG
  • Start date Start date
A

Aman JIANG

Guest
if (CreateProcess(NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
{
WaitForSingleObject(pi.hProcess, INFINITE);
GetExitCodeProcess(pi.hProcess, &exitCode);
}


If you kill the process in task manager, its exit code will be always 1,

Is it documented ?

(This may be a simple question)



Aman

Continue reading...
 
Back
Top