Retrieves the thread identifier of the calling thread.
DWORD GetCurrentThreadId()
Type: DWORDÂ
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.
Header: Declared in processthreadsapi.h.
Library: Use kernelx.lib.