Funzione PsRemoveCreateThreadNotifyRoutine (ntddk.h)

La routine PsRemoveCreateThreadNotifyRoutine rimuove una routine di callback registrata dalla routine PsSetCreateThreadNotifyRoutine .

Sintassi

NTSTATUS PsRemoveCreateThreadNotifyRoutine(
  [in] PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine
);

Parametri

[in] NotifyRoutine

Puntatore alla routine di callback registrata in precedenza tramite PsSetCreateThreadNotifyRoutine.

Valore restituito

PsRemoveCreateThreadNotifyRoutine restituisce STATUS_SUCCESS se rimuove correttamente la routine di callback o STATUS_PROCEDURE_NOT_FOUND se il valore di NotifyRoutine non corrisponde a alcuna routine di callback registrata.

Commenti

Se la routine di callback del driver è attualmente in esecuzione, PsRemoveCreateThreadNotifyRoutine attende fino all'uscita della routine di callback prima di rimuoverla. Pertanto, la routine di callback stessa non deve chiamare PsRemoveCreateThreadNotifyRoutine.

Requisiti

Requisito Valore
Piattaforma di destinazione Universale
Intestazione ntddk.h (include Ntddk.h)
Libreria NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <=APC_LEVEL

Vedi anche

PsSetCreateThreadNotifyRoutine