KeGetCurrentThread - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

PKTHREAD KeGetCurrentThread();

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-kegetcurrentthread)

KeGetCurrentThread function

Description

The KeGetCurrentThread routine identifies the current thread.

Return value

KeGetCurrentThread returns a pointer to an opaque thread object.

Remarks

This routine is identical to PsGetCurrentThread.

A caller of KeGetCurrentThread can use the returned pointer as an input parameter to KeQueryPriorityThread, KeSetBasePriorityThread, or KeSetPriorityThread. However, the memory containing the thread object is opaque; that is, it is reserved for exclusive use by the operating system.

See also

KeQueryPriorityThread

KeSetBasePriorityThread

KeSetPriorityThread

PsGetCurrentThread