Skip to content

DetourImportFuncCallbackEx

Brian Gianforcaro edited this page Aug 22, 2020 · 4 revisions

PF_DETOUR_IMPORT_FUNC_CALLBACK_EX

Pointer to function called once for each entry in the IAT enumerated by DetourEnumerateImportsEx. This is similar to PF_DETOUR_IMPORT_FUNC_CALLBACK except here the last parameter points to the entry in the IAT.

Definition

BOOL ImportFuncCallbackEx(
    _In_opt_ PVOID pContext,
    _In_     ULONG nOrdinal,
    _In_opt_ PCSTR pszName,
    _In_opt_ PVOID *pvFunc
);

Parameters

pContext : Umodified program specific context pointer passed as pContext argument to DetourEnumerateImportsEx.

nOrdinal : Ordinal of imported function. 0 if the import is by name.

pszName : Name of imported function. NULL if the import is by ordinal.

pvFunc : Pointer to the address within the Import Address Table ("IAT") for the function (or less commonly, data). NULL if the end of the module.

Return value

TRUE to continue enumeration of import functions or FALSE to abort enumeration.

Clone this wiki locally