Retrieves the termination status of the specified process.
BOOLEAN GetExitCodeProcess(
HANDLE hProcess,
LPDWORD lpExitCode
);
BOOLEAN RtGetExitCodeProcess(
HANDLE hProcess,
LPDWORD lpExitCode
);
hProcesslpExitCodeIf 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:
| 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
ExitProcess, TerminateProcess, iwin32 API, iwin32 Overview