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.