GetCurrentThreadId

Retrieves the thread identifier of the calling thread.

Syntax

DWORD GetCurrentThreadId()  

Return value

Type: DWORD 

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.

Requirements

Header: Declared in processthreadsapi.h.

Library: Use kernelx.lib.