Platform SDK: DLLs, Processes, and Threads |
The GetCurrentThreadId function retrieves the thread identifier of the calling thread.
DWORD GetCurrentThreadId(VOID);
This function has no parameters.
The return value is the thread identifier of the calling thread.
Until the thread terminates, the thread identifier uniquely identifies the thread throughout the system.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Processes and Threads Overview, Process and Thread Functions, GetCurrentThread, OpenThread