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 de retour
PsRemoveLoadImageNotifyRoutine retourne STATUS_SUCCESS si elle 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.
Exigences
Exigence | Valeur |
---|---|
plateforme cible | Universel |
d’en-tête | ntddk.h (include Ntddk.h) |
bibliothèque | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | <=APC_LEVEL |
règles de conformité DDI | HwStorPortProhibitedDDIs(storport), PowerIrpDDis(wdm) |