INtime SDK Help
RtGetExitCodeProcess (iwin32x)
INtime SDK v7.1 > About INtime > Alternate APIs > iwin32 API > iwin32x API > RtGetExitCodeProcess (iwin32x)

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

BOOLEAN RtGetExitCodeProcess(
    HANDLE hProcess,
    LPDWORD lpExitCode
);

Parameters

hProcess
Handle to the process.
lpExitCode
Pointer to a 32-bit variable to receive the process termination status.

Remarks

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

Return Values

TRUE
Success.
FALSE
Failure. For extended error information, see the Windows' GetLastError function.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/nt/include/iwin32x.h iwin32x.h iwin32x.lib

Notes

See Also

ExitProcess, RtTerminateProcess, iwin32x API, iwin32 Overview