#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
// begin_msdn:"DLL Load Notification"
#if (PHNT_VERSION >= PHNT_VISTA)
/**
* Cancels DLL load notification previously registered by calling the LdrRegisterDllNotification function.
*
* @param Cookie A pointer to the callback identifier received from the LdrRegisterDllNotification call that registered for notification.
* @return NTSTATUS Successful or errant status.
* @remarks https://learn.microsoft.com/en-us/windows/win32/devnotes/ldrunregisterdllnotification
*/
NTSYSAPI
NTSTATUS
NTAPI
LdrUnregisterDllNotification(
_In_ PVOID Cookie
);
View code on GitHub
This function is documented in Windows SDK.