GetExitCodeThread

GetExitCodeThread retrieves the termination status of the specified thread.

Declaration

BOOL GetExitCodeThread(
    HANDLE hThread,
    LPDWORD lpExitCode
);

Parameters

hThread

The thread identifier.

lpExitCode

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

Return Values

TRUE if the function succeeds, FALSE if the function fails

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:

Requirements

Library Rtx_Rtss.lib

See Also:

ExitThread

TerminateThread

IntervalZero.com | Support | Give Feedback