Condividi tramite


PCREATE_THREAD_NOTIFY_ROUTINE funzione di callback (ntddk.h)

Routine di callback implementata da un driver per notificare al chiamante quando viene creato o eliminato un thread.

Avviso

Le azioni che è possibile eseguire in questa routine sono limitate alle chiamate sicure. Vedere Procedure consigliate.

Sintassi

PCREATE_THREAD_NOTIFY_ROUTINE PcreateThreadNotifyRoutine;

void PcreateThreadNotifyRoutine(
  [in] HANDLE ProcessId,
  [in] HANDLE ThreadId,
  [in] BOOLEAN Create
)
{...}

Parametri

[in] ProcessId

ID del processo.

[in] ThreadId

ID thread del thread.

[in] Create

Indica se il thread è stato creato (TRUE) o eliminato (FALSE).

Valore restituito

nessuno

Osservazioni

I driver di livello più alto possono chiamare PsSetCreateThreadNotifyRoutine o PsSetCreateThreadNotifyRoutineEx per registrare la routine di notifica di creazione del thread.

La routine thread-notify del driver viene eseguita in IRQL = PASSIVE_LEVEL o APC_LEVEL. Quando viene creato un thread, la routine thread-notify viene eseguita nel contesto del thread che ha creato il nuovo thread. Quando un thread viene eliminato, la routine thread-notify viene eseguita nel contesto di questo thread quando il thread viene chiuso.

Requisiti

Requisito Valore
Client minimo supportato Disponibile a partire da Windows 2000.
Piattaforma di destinazione Universale
Intestazione ntddk.h (include Ntddk.h)
IRQL <=APC_LEVEL

Vedi anche

PsSetCreateThreadNotifyRoutine

PsSetCreateThreadNotifyRoutineEx