GetExitCodeThread

This function retrieves the termination status of the specified thread.

At a Glance

Header file: Winbase.h
Windows CE versions: 1.01 and later

Syntax

BOOL GetExitCodeThread( HANDLE hThread, LPDWORD lpExitCode);

Parameters

hThread

Handle to the thread.

lpExitCode

Pointer to a 32-bit variable to receive the thread termination status.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

If the specified thread has not terminated, the termination status returned is STILL_ACTIVE. If the thread has terminated, the termination status returned may be one of the following:

See Also

ExitThread