static void ExitProcess(unsigned Code)

This function terminates the current process and threads for the process.


unsigned Code

The exit code for the process.


This function is the preferred method for process termination. The specified exit code may be obtained via the function GetProcessExitCode.

The entry points of attached dynamic link libraries are called with a code specifying that the process is terminating (thereby giving them an opportunity to perform any required cleanup).

Upon calling this function:

Child processes are not terminated.

A process that has been exited remains in the system until all handles for the process have been closed.

Only one of the functions:

may execute at a given time. This gives rise to the following.


Name Space IPlusPlus::Control
Class Base
Assembly IPlusPlus.WinPlus.dll