Obtains the ID for the current thread. The ID is a unique value that identifies the thread, but differs from a handle. A thread ID can be used in OpenThread.
DWORD GetCurrentThreadId(VOID);
None.
You cannot call this function from a pure INtime thread.
0 (zero) 
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/rt/include/winbase.h | windows.h | iwin32.lib | 
Note
This function operates in the real-time portion of your application.
GetCurrentThread, OpenThread, iwin32 API, iwin32 Overview