Skip to content

DetourImportFileCallback

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

PF_DETOUR_IMPORT_FILE_CALLBACK

Pointer to function called once for each file enumerated by DetourEnumerateImports.

Definition

BOOL ImportFileCallback(
    _In_opt_ PVOID pContext,
    _In_opt_ HMODULE nOrdinal,
    _In_opt_ LPCSTR pszName
);

Parameters

pContext : Unmodified program specific context pointer passed as pContext argument to DetourEnumerateImports.

hModule : Module handle within the process of the imported file. NULL to indicate end of enumeration.

pszName : Name of imported file. NULL to indicate end of enumeration.

Return value

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

Clone this wiki locally