GetCurrentThreadId function
Retrieves the thread identifier of the calling thread.
Syntax
DWORD WINAPI GetCurrentThreadId(void);
Parameters
This function has no parameters.
Return value
The return value is the thread identifier of the calling thread.
Remarks
Until the thread terminates, the thread identifier uniquely identifies the thread throughout the system.
Examples
For an example, see Using Thread Local Storage.
Requirements
|
Minimum supported client |
Windows XP [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Show: