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