Condividi tramite


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.

Osservazioni

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.

Fabbisogno

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

Vedere anche

KeGetCurrentThread

KeQueryPriorityThread

KeSetBasePriorityThread