PsRemoveLoadImageNotifyRoutine 函式 (ntddk.h)
PsRemoveLoadImageNotifyRoutine 例程會移除由 PsSetLoadImageNotifyRoutine 例程所註冊的回呼例程。
語法
NTSTATUS PsRemoveLoadImageNotifyRoutine(
[in] PLOAD_IMAGE_NOTIFY_ROUTINE NotifyRoutine
);
參數
[in] NotifyRoutine
驅動程式先前透過 PsSetLoadImageNotifyRoutine 註冊的回呼例程指標,。
傳回值
PsRemoveLoadImageNotifyRoutine 如果成功移除回呼例程,則會傳回STATUS_SUCCESS;如果 notifyRoutine 的值不符合任何已註冊的回呼例程,則會傳回STATUS_PROCEDURE_NOT_FOUND。
言論
如果驅動程式的回呼例程目前正在執行中,PsRemoveLoadImageNotifyRoutine 等到回呼例程在移除之前結束。 因此,回呼例程本身不得呼叫 PsRemoveLoadImageNotifyRoutine。
要求
要求 | 價值 |
---|---|
目標平臺 | 普遍 |
標頭 | ntddk.h (包括 Ntddk.h) |
連結庫 | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | <=APC_LEVEL |
DDI 合規性規則 | HwStorPortProhibitedDIs(storport),PowerIrpDDis(wdm) |