KeQueryPriorityThread function

The KeQueryPriorityThread routine returns the current priority of a particular thread.

Syntax

NTKERNELAPI KPRIORITY KeQueryPriorityThread(
  PKTHREAD Thread
);

Parameters

Thread

Pointer to a dispatcher object of type KTHREAD.

Return Value

KeQueryPriorityThread returns the current priority of the specified thread.

Remarks

Thread priorities range from 0 to 31, where 0 is the lowest priority and 31 is the highest.

Requirements

   
Windows version Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI compliance rules PowerIrpDDis, HwStorPortProhibitedDDIs

See Also

KeGetCurrentThread

KeSetBasePriorityThread

KeSetPriorityThread

PsGetCurrentThread