Indy 9 | Content | Index | Reference

CurrentProcessId
See Also, Unit: IdGlobal
Determines the process ID for the calling program.

    function CurrentProcessId: TIdPID;

Unit
IdGlobal
Return Value
TIdPID - Indy Process ID for the current program.
Description
CurrentProcessId is a TIdPID function used to determine the Process Identifier for the calling program.

CurrentProcessID encapsulates the platform-specific procedures or functions needed to retrieve the current process identifier. For the Windows platform, this is the WIN32 API function GetCurrentProcessId. On the Linux platform, CurrentProcessID returns the valued from the library function getpid.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.