Skip to content

TProcess.ProcessID

ID of the process.

Declaration

Source position: processbody.inc line 206

public property ProcessID: Integer;

Description

ProcessID is the ID of the process. It is the same as the handle of the process on Unix systems, but on Windows it is different from the process Handle.

The ID is only valid after TProcess.Execute has been called. It is not reset after the process stopped.

See also

Name Description
TProcess.Handle Handle of the process.
TProcess.ThreadHandle Main process thread handle.
TProcess.ThreadID ID of the main process thread.