Funzione KeSetPriorityThread (wdm.h)

La routine KeSetPriorityThread imposta la priorità di runtime di un thread creato dal driver.

Sintassi

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

Parametri

[in, out] Thread

Puntatore al thread creato dal driver.

[in] Priority

Specifica la priorità del thread creato dal driver, in genere al valore di priorità in tempo reale, LOW_REALTIME_PRIORITY. Il valore LOW_PRIORITY è riservato per l'uso del sistema.

Valore restituito

KeSetPriorityThread restituisce la priorità precedente del thread.

Commenti

Se una chiamata a KeSetPriorityThread reimposta la priorità del thread su un valore inferiore, l'esecuzione del thread può essere riprogrammata anche se è attualmente in esecuzione o sta per essere inviata per l'esecuzione.

Requisiti

Requisito Valore
Client minimo supportato Disponibile a partire da Windows 2000.
Piattaforma di destinazione Universale
Intestazione wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Libreria NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

Vedi anche

KeGetCurrentThread

KeQueryPriorityThread

KeSetBasePriorityThread