CmtGetMainThreadID
- Updated2023-02-21
- 1 minute(s) read
CmtGetMainThreadID
unsigned int CmtGetMainThreadID (void);
Purpose
Returns the ID of the main thread of the program.
The main thread is the thread that loaded the LabWindows/CVI Run-Time Engine DLL, cvirte.dll. For an executable that uses the LabWindows/CVI Run-Time Engine DLL, the first thread of the process loads cvirte.dll.
Parameters
None.
Return Value
Name | Type | Description |
mainThreadID | unsigned int | The ID of the main thread of the program. |
Additional Information
Library: Utility Library
Include file: utility.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later
Example
Refer to apps\daqmthread\daqMT.cws for an example of using the CmtGetMainThreadID function.