KeSetPriorityThread function (wdm.h)
The KeSetPriorityThread routine sets the run-time priority of a driver-created thread.
KPRIORITY KeSetPriorityThread( [in, out] PKTHREAD Thread, [in] KPRIORITY Priority );
[in, out] Thread
Pointer to the driver-created thread.
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.
|Minimum supported client||Available starting with Windows 2000.|
|Header||wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)|