ResolveDelayLoadedAPI function

Locates the target function of the specified import and replaces the function pointer in the import thunk with the target of the function implementation.

Syntax

PVOID WINAPI ResolveDelayLoadedAPI(
  _In_       PVOID                             ParentModuleBase,
  _In_       PCIMAGE_DELAYLOAD_DESCRIPTOR      DelayloadDescriptor,
  _In_opt_   PDELAYLOAD_FAILURE_DLL_CALLBACK   FailureDllHook,
  _In_opt_   PDELAYLOAD_FAILURE_SYSTEM_ROUTINE FailureSystemHook,
  _Out_      PIMAGE_THUNK_DATA                 ThunkAddress,
  _Reserved_ ULONG                             Flags
);

Parameters

ParentModuleBase [in]

The address of the base of the module importing a delay-loaded function.

DelayloadDescriptor [in]

The descriptor for the module to be loaded.

FailureDllHook [in, optional]

The address of the failure hook.

FailureSystemHook [in, optional]

The address of the system failure hook. See DelayLoadFailureHook.

ThunkAddress [out]

The thunk data for the target function. Used to find the specific name table entry of the function.

Flags

Reserved; must be 0.

Return value

The address of the import, or the failure stub for it.

Requirements

Requirement Value
Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Library
Kernel32.lib
DLL
Kernel32.dll

See also

Linker Support for Delay-Loaded DLLs