RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.MainThreadID Variable

Indicates the instance handle for the current module's main thread of execution.

Pascal
MainThreadID: LongWord;
C++
LongWord MainThreadID;

System

Use MainThreadID to obtain the thread ID for the main execution thread (the current thread when the module was initialized). 

During debugging, this ID appears in the thread status box for the main thread.

Note: On Windows, the value of MainThreadID is compatible with the thread ID required by some Win32 API calls.
 

 

TThread

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!