KeSetPriorityThread

KPRIORITY
KeSetPriorityThread(

IN PKTHREAD Thread,
IN KPRIORITY Priority
);

KeSetPriorityThread sets the runtime priority of a driver-created thread.

Parameters

Thread

Points to the driver-created thread.

Priority

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.

Comments

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.

Callers of KeSetPriorityThread must be running at IRQL PASSIVE_LEVEL.

See Also

KeSetBasePriorityThread