Internet Direct (Indy)
Home
PreviousUpNext
GetCurrentThreadHandle

Retrieves the thread handle for the current thread of execution.

THandle - Handle for the current thread.

GetCurrentThreadHandle is a THandle function that returns the handle for the current thread of execution. GetCurrentThreadHandle isolates the platform-specific calls required to determine the return value for the function. 

 

On the .Net platform, GetCurrentThreadHandle calls the AppDomain.GetCurrentThreadId framework method to retrieve the current thead handle. 

 

For all other platforms, GetCurrentThreadHandle uses the value from GetCurrentThreadID as the thread handle for the current 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.