PsRemoveCreateThreadNotifyRoutine, fonction (ntddk.h)

La routine PsRemoveCreateThreadNotifyRoutine supprime une routine de rappel qui a été inscrite par la routine PsSetCreateThreadNotifyRoutine .

Syntaxe

NTSTATUS PsRemoveCreateThreadNotifyRoutine(
  [in] PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine
);

Paramètres

[in] NotifyRoutine

Pointeur vers la routine de rappel que le pilote a précédemment inscrite via PsSetCreateThreadNotifyRoutine.

Valeur retournée

PsRemoveCreateThreadNotifyRoutine retourne STATUS_SUCCESS s’il supprime correctement la routine de rappel, ou STATUS_PROCEDURE_NOT_FOUND si la valeur de NotifyRoutine ne correspond à aucune routine de rappel inscrite.

Remarques

Si la routine de rappel du pilote est en cours d’exécution, PsRemoveCreateThreadNotifyRoutine attend que la routine de rappel se termine avant de la supprimer. Par conséquent, la routine de rappel elle-même ne doit pas appeler PsRemoveCreateThreadNotifyRoutine.

Configuration requise

Condition requise Valeur
Plateforme cible Universal
En-tête ntddk.h (incluez Ntddk.h)
Bibliothèque NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <=APC_LEVEL

Voir aussi

PsSetCreateThreadNotifyRoutine