Previous Next

KeQueryPriorityThread

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

KPRIORITY
KeQueryPriorityThread(
    IN PRKTHREAD  Thread
    );

Parameters

Thread
Pointer to a dispatcher object of type KTHREAD.

Return Value

KeQueryPriorityThread returns the current priority of the given thread.

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

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.

See Also

KeGetCurrentThread, KeSetBasePriorityThread, KeSetPriorityThread, PsGetCurrentThread