TerminateProcess

 

Description

Terminates the specified process and all of its threads.

Syntax

BOOL TerminateProcess( HANDLE hProcess, UINT uExitCode )

Parameters

hProcess
[input] A handle to the process to be terminated.
uExitCode
[input] The exit code to be used by the process and threads terminated as a result of this call. Use the GetExitCodeProcess function to retrieve a process's exit value.

Return

return TRUE for success

Examples

Remark

See Also

CreateProcess, GetExitCodeProcess, ShellExecute, WinExec

header to Included

origin.h

Reference