get_process_exit_code


bool get_process_exit_code(handle process,
                           unsigned* code)

This function obtains the exit code for the process.

Parameters

handle process

The handle of the process whose exit code is being queried.

unsigned* code

A pointer to a variable that is updated to contain the process exit code. If the process has not yet terminated, the value returned is wait_result::Pending.

Return

bool

true The function succeeded.
false The call failed.

Notes

The exit code for the process may be: