Internet Direct (Indy)
Home
PreviousUpNext
GetThreadHandle Function

Retrieves the handle or identifier for the specified thread.

Pascal
function GetThreadHandle(
    AThread: TIdNativeThread
): THandle;
Parameters 
Description 
AThread 
Thread to examine for a handle. 

THandle - Thread handle for the specified thread.

GetThreadHandle is a THandle function used to retrieve the handle or identifier for the thread specified in AThread. GetThreadHandle isolates the platform-specific calls required to determine the identifier or handle for the thread. 

 

On the Linux platform, GetThreadHandle uses the ThreadID as the handle for the specified thread. 

 

On the Windows platform, GetThreadHandle uses the Handle for the specified thread.

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.