Internet Direct (Indy) Version 9.0.2 Beta
CurrentProcessId
Determines the process ID for the calling program.

function CurrentProcessId: TIdPID;
Returns
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.