Sign in Join
FPDoc Onlineexperiment

TProcess.Suspend function

Member of TProcesspublicIn unit Process

Suspend a running process.

Declaration

pascal
function Suspend: Integer; virtual

Function result

0 on success, nonzero otherwise.

Description

Suspend suspends a running process. If the call is successful, the process is suspended: it stops running, but can be made to execute again using the Resume call.

Suspend is fundamentally different from Terminate which actually stops the process.

Errors

On error, a nonzero result is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.