Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 918 Bytes

ExitProcess.md

File metadata and controls

43 lines (28 loc) · 918 Bytes

Home

Function name : ExitProcess

Group: Process and Thread - Library: kernel32


The ExitProcess function ends a process and all its threads.


Declaration:

VOID ExitProcess(
  UINT uExitCode   // exit code for all threads
);  

FoxPro declaration:

DECLARE ExitProcess IN kernel32 INTEGER uExitCode  

Parameters:

uExitCode [in] Specifies the exit code for the process, and for all threads that are terminated as a result of this call.


Return value:

This function does not return a value.


Comments:

Use the GetExitCodeProcess function to retrieve the process"s exit value. Use the GetExitCodeThread function to retrieve a thread"s exit value.