get_thread_exit_code


bool get_thread_exit_code(handle thread,
                          unsigned* code)

This function obtains the exit code of the thread.

Parameters

handle thread

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

unsigned* code

A pointer to a variable to receive the exit code.

Return

bool

true The function succeeded.
false The call failed.

Notes

When the thread is still active, the status status::pending is returned as the exit code.

The exit code returned may be: