static unsigned GetThreadExitCode(Handle Thread)
This function obtains the exit code of the thread.
The handle of the thread whose exit code is being queried.
The exit code.
When the thread is still active, the status Status::Pending is returned as the exit code.
The exit code returned may be: