PsRemoveLoadImageNotifyRoutine, fonction (ntddk.h)

La routine PsRemoveLoadImageNotifyRoutine supprime une routine de rappel inscrite par la routine PsSetLoadImageNotifyRoutine .

Syntaxe

NTSTATUS PsRemoveLoadImageNotifyRoutine(
  [in] PLOAD_IMAGE_NOTIFY_ROUTINE NotifyRoutine
);

Paramètres

[in] NotifyRoutine

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

Valeur retournée

PsRemoveLoadImageNotifyRoutine 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, PsRemoveLoadImageNotifyRoutine 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 PsRemoveLoadImageNotifyRoutine.

Configuration requise

Condition requise Valeur
Plateforme cible Universal
En-tête ntddk.h (inclure Ntddk.h)
Bibliothèque NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <=APC_LEVEL
Règles de conformité DDI HwStorPortProhibitedDDIs(storport),PowerIrpDDis(wdm)

Voir aussi

PsSetLoadImageNotifyRoutine