TProcess.Terminate function
Terminate a running process.
Declaration
function Terminate(AExitCode: Integer): Boolean; virtualArguments
AExitCode | Exit status to report (Windows only). |
Function result
0 on success, nonzero for failure.
Description
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.
Errors
On error, a nonzero value is returned.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
