Terminates the specified process.
BOOLEAN TerminateProcess(
    HANDLE hProcess,
    UINT uExitCode
);
BOOLEAN RtTerminateProcess(
    HANDLE hProcess,
    UINT uExitCode
);
hProcess 
uExitCode 
RtTerminateProcess can also be used from a Windows application to terminate an iwin32 process.
This function causes all threads within a process to terminate, causes a process to exit, and notifies each RSL that the process is terminating.
The following lists what occurs when a process terminates:
Terminating a process does not necessarily remove the process object from the system.
A process object is deleted when the last handle to the process closes. To retrieve the process's exit value, call GetExitCodeProcess. To retrieve a thread's exit value, call GetExitCodeThread.
0 (zero) 
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/rt/include/iwin32.h intime/rt/include/winbase.h  | 
iwin32.h windows.h  | 
iwin32.lib | 
Notes
GetExitCodeProcess, GetExitCodeThread, iwin32 API, iwin32 Overview