KeSetPriorityThread - NtDoc

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

KPRIORITY KeSetPriorityThread(
  [in, out] PKTHREAD  Thread,
  [in]      KPRIORITY Priority
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

KeSetPriorityThread function

Description

The KeSetPriorityThread routine sets the run-time priority of a driver-created thread.

Parameters

Thread [in, out]

Pointer to the driver-created thread.

Priority [in]

Specifies the priority of the driver-created thread, usually to the real-time priority value, LOW_REALTIME_PRIORITY. The value LOW_PRIORITY is reserved for system use.

Return value

KeSetPriorityThread returns the old priority of the thread.

Remarks

If a call to KeSetPriorityThread resets the thread's priority to a lower value, execution of the thread can be rescheduled even if it is currently running or is about to be dispatched for execution.

See also

KeGetCurrentThread

KeQueryPriorityThread

KeSetBasePriorityThread