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

Retrieves the termination status of the specified process.

BOOLEAN GetExitCodeProcess(
    HANDLE hProcess,
    LPDWORD lpExitCode
);

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 GetLastError.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/winbase.h
intime/rt/include/iwin32.h
windows.h
iwin32.h
iwin32.lib

Notes

See Also

ExitProcess, TerminateProcess, iwin32 API, iwin32 Overview