Group: Process and Thread - Library: kernel32
VOID ExitProcess(
UINT uExitCode // exit code for all threads
);
DECLARE ExitProcess IN kernel32 INTEGER uExitCode
uExitCode [in] Specifies the exit code for the process, and for all threads that are terminated as a result of this call.
This function does not return a value.
Use the GetExitCodeProcess function to retrieve the process"s exit value. Use the GetExitCodeThread function to retrieve a thread"s exit value.