get_thread_exitcode

Definition: atom dwExitCode = get_thread_exitcode(atom hThread)
Description: Retrieve the exit code of a thread.
Comments: If the thread is still running, STILL_ACTIVE (=259) is returned. Hence a thread should not terminate with that value to avoid confusion.

wait_thread() is preferred over polling with get_thread_exitcode()!=STILL_ACTIVE.
See Also: exit_thread, wait_thread