INtime SDK Help
ExitProcess, RtExitProcess (iwin32)
INtime SDK v7 > About INtime > Alternate APIs > iwin32 API > iwin32 API > ExitProcess, RtExitProcess (iwin32)

Terminates the current process (and thereby all threads in it) and specifies the exit code. Any threads waiting for the process wake up.

VOID ExitProcess(
    UINT uExitCode

VOID RtExitProcess(
    UINT uExitCode


Specifies the exit code for the process and for all threads terminated as a result of this function.

To retrieve the process's exit value, use GetExitCodeProcess. To retrieve a thread's exit value, use GetExitCodeThread.


This function is the preferred method of ending a process because it provides a clean process shutdown. This includes calling the entry-point function of all attached RSLs with a value indicating that the process is detaching from the RSL.

After all attached RSLs execute any process termination code, this function terminates the current process.

Terminating a process causes these actions:

Terminating a process does not necessarily remove the process object from the OS. A process object is deleted when the last handle to the process closes.

Return Values



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


See Also

CreateThread, ExitThread, GetExitCodeProcess, GetExitCodeThread, OpenProcess, RtCreateProcess, TerminateProcess, iwin32 API, iwin32 Overview