GetExitCodeThread

GetExitCodeThread retrieves the termination status of the specified thread.

Syntax

Copy
BOOL GetExitCodeThread(
    [in]    HANDLE hThread,
    [out]   LPDWORD lpExitCode
);

Parameters

[in] hThread

The thread identifier.

[out] lpExitCode

A pointer to a 64-bit variable to receive the thread termination status.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to get extended error information.

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:

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

windows.h

wRTOS_rtss.lib

See Also: