The KeQueryPriorityThread routine returns the current priority of a given thread.
KPRIORITY
KeQueryPriorityThread(
IN PRKTHREAD Thread
);
KeQueryPriorityThread returns the current priority of the given thread.
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
The system-defined range of possible return values runs from zero to 32, inclusive, with zero designating the lowest possible thread priority.
Callers of KeQueryPriorityThread must be running at IRQL = PASSIVE_LEVEL.
KeGetCurrentThread, KeSetBasePriorityThread, KeSetPriorityThread, PsGetCurrentThread