Sign in Join
FPDoc Onlineexperiment

TProcess.Terminate function

Member of TProcesspublicIn unit Process

Terminate a running process.

Declaration

pascal
function Terminate(AExitCode: Integer): Boolean; virtual

Arguments

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.