Topic Path: Symbol Reference > Functions > GetThreadHandle Function
GetThreadHandle Function

Retrieves the handle or identifier for the specified thread.

function GetThreadHandle(
    AThread: TIdNativeThread
): THandle;
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.

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