Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PsGetCurrentThreadId function (ntddk.h)

The PsGetCurrentThreadId routine identifies the current thread.

Syntax

HANDLE PsGetCurrentThreadId();

Return value

The PsGetCurrentThreadId routine returns the thread ID of the current thread.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header ntddk.h (include Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

KeGetCurrentThread

PsGetCurrentProcessId

PsGetCurrentThread

PsSetCreateThreadNotifyRoutine


Feedback

Was this page helpful?

Additional resources