[Overview][Types][Classes] Reference for unit 'process' (#fcl)

TProcess.WaitOnExit

Wait for the program to stop executing.

Declaration

Source position: process.pp line 104

public function TProcess.WaitOnExit: DWord;

Function result

-1 indicates failure, other values are system dependent.

Description

WaitOnExitwaits for the running program to exit and then returns the exit status of the program.

Errors

On error, -1 is returned. Other values are system dependent.

See also

TProcess.ExitStatus

  

Exit status of the process.

TProcess.Terminate

  

Terminate a running process

TProcess.Running

  

Determines wheter the process is still running.