// wdm.h
KPRIORITY KeSetPriorityThread(
[in, out] PKTHREAD Thread,
[in] KPRIORITY Priority
);
View the official Windows Driver Kit DDI reference
No description available.
The KeSetPriorityThread routine sets the run-time priority of a driver-created thread.
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.
KeSetPriorityThread returns the old priority of the thread.
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.