Internet Direct (Indy)
Home
PreviousUpNext
CurrentProcessId Function

Retrieves the process identifier for the active process.

Pascal
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

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.