MCPcopy Create free account
hub / github.com/acl-dev/acl / DetourEnumerateImports

Function DetourEnumerateImports

lib_fiber/cpp/src/detours/modules.cpp:668–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668BOOL WINAPI DetourEnumerateImports(_In_opt_ HMODULE hModule,
669 _In_opt_ PVOID pContext,
670 _In_opt_ PF_DETOUR_IMPORT_FILE_CALLBACK pfImportFile,
671 _In_opt_ PF_DETOUR_IMPORT_FUNC_CALLBACK pfImportFunc)
672{
673 if (pfImportFile == NULL || pfImportFunc == NULL) {
674 SetLastError(ERROR_INVALID_PARAMETER);
675 return FALSE;
676 }
677
678 _DETOUR_ENUMERATE_IMPORTS_THUNK_CONTEXT const context = { pContext, pfImportFunc };
679
680 return DetourEnumerateImportsEx(hModule,
681 (PVOID)&context,
682 pfImportFile,
683 &DetourEnumerateImportsThunk);
684}
685
686static PDETOUR_LOADED_BINARY WINAPI GetPayloadSectionFromModule(HMODULE hModule)
687{

Callers

nothing calls this directly

Calls 1

DetourEnumerateImportsExFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…