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;

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!