Funzione KeGetCurrentThread (wdm.h)

La routine KeGetCurrentThread identifica il thread corrente.

Sintassi

PKTHREAD KeGetCurrentThread();

Valore restituito

KeGetCurrentThread restituisce un puntatore a un oggetto thread opaco.

Commenti

Questa routine è identica a PsGetCurrentThread.

Un chiamante di KeGetCurrentThread può usare il puntatore restituito come parametro di input a KeQueryPriorityThread, KeSetBasePriorityThread o KeSetPriorityThread. Tuttavia, la memoria contenente l'oggetto thread è opaca; vale a dire, è riservato per l'uso esclusivo dal sistema operativo.

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 Qualsiasi livello

Vedi anche

KeQueryPriorityThread

KeSetBasePriorityThread

KeSetPriorityThread

PsGetCurrentThread