GetCurrentThreadId

GetCurrentThreadId returns the thread identifier of the calling thread.

Syntax

DWORD GetCurrentThreadId(VOID);

Parameters

This function has no parameters.

Return Value

The thread identifier of the calling thread

Remarks

Until the thread terminates, the thread identifier uniquely identifies the thread throughout the system.

Requirements

Minimum Supported Version RTX64 2013
Header windows.h
Library Rtx_Rtss.lib

See Also:

GetCurrentThread