LdrQueryOptionalDelayLoadedAPI - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_THRESHOLD)

// rev from QueryOptionalDelayLoadedAPI
/**
 * Determines whether the specified function in a delay-loaded DLL is available on the system.
 *
 * @param ParentModuleBase A handle to the calling module. (NtCurrentImageBase)
 * @param DllName The file name of the delay-loaded DLL that exports the specified function. This parameter is case-insensitive.
 * @param ProcedureName The address of a delay-load failure callback function for the specified DLL and process.
 * @param Flags Reserved; must be 0.
 * @return NTSTATUS Successful or errant status.
 * @remarks https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi2/nf-libloaderapi2-queryoptionaldelayloadedapi
 */
NTSYSAPI
NTSTATUS
NTAPI
LdrQueryOptionalDelayLoadedAPI(
    _In_ PVOID ParentModuleBase,
    _In_ PCSTR DllName,
    _In_ PCSTR ProcedureName,
    _Reserved_ ULONG Flags
    );

#endif
#endif
#endif

View code on GitHub

No description available.