Topic Path: Symbol Reference > Functions > CurrentProcessId Function
ContentsIndexHome
PreviousUpNext
CurrentProcessId Function

Retrieves the process identifier for the active process.

File
function CurrentProcessId: TIdPID;

TIdPID - Process identifier for the active process.

CurrentProcessId is a TIdPID function used to retrieve the process identifier using API calls specific to the current platform. 

 

For the Linux platform, CurrentProcessId uses the getpid function to determine the return value. 

 

For the Windows and .Net platforms, CurrentProcessId calls the GetCurrentProcessID API function to determine the return value. 

Use GetCurrentThread or IsCurrentThread to retrieve information about threads of execution in the Indy library.

GetCurrentThread 

IsCurrentThread

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.