The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
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.
Windows Phone 8: This API is supported.
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] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/21/2012
