Terminate a running process.
Source position: processbody.inc line 194
public function TProcess.Terminate( |
AExitCode: Integer |
):Boolean; virtual; |
AExitCode |
|
Exit status to report (Windows only). |
0 on success, nonzero for failure.
Terminate stops the execution of the running program. It effectively stops the program.
On Windows, the program will report an exit code of AExitCode, on other systems, this value is ignored.
On error, a nonzero value is returned.
|
Exit status of the process. |
|
|
Suspend a running process. |
|
|
Execute the program with the given options. |
|
|
Wait for the program to stop executing. |
|
|
Exit code of the process. |