static unsigned GetProcessExitCode(Handle Process)
This function obtains the exit code for the process.
The handle of the process whose exit code is being queried.
The process exit code. If the process has not yet terminated, the value returned is WaitResult::Pending.
The exit code for the process may be: