Skip to content

TProcess.Suspend

Suspend a running process.

Declaration

Source position: processbody.inc line 194

public 
function TProcess.Suspend : Integer;  virtual;

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 TProcess.Terminate which actually stops the process.

Errors

On error, a nonzero result is returned.

See also

Name Description
TProcess.Options Options to be used when starting the process.
TProcess.Resume Resume execution of a suspended process.
TProcess.Terminate Terminate a running process.
TProcess.Execute Execute the program with the given options.