Expand Minimize

KeGetCurrentThread routine

The KeGetCurrentThread routine identifies the current thread.

Syntax


PKTHREAD KeGetCurrentThread(void);

Parameters

This routine has no parameters.

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.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

Any level

See also

KeQueryPriorityThread
KeSetBasePriorityThread
KeSetPriorityThread
PsGetCurrentThread

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft