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

Function DetourBinaryEditImports

lib_fiber/cpp/src/detours/image.cpp:2184–2201  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

2182//////////////////////////////////////////////////////////////////////////////
2183//
2184BOOL WINAPI DetourBinaryEditImports(_In_ PDETOUR_BINARY pBinary,
2185 _In_opt_ PVOID pContext,
2186 _In_opt_ PF_DETOUR_BINARY_BYWAY_CALLBACK pfByway,
2187 _In_opt_ PF_DETOUR_BINARY_FILE_CALLBACK pfFile,
2188 _In_opt_ PF_DETOUR_BINARY_SYMBOL_CALLBACK pfSymbol,
2189 _In_opt_ PF_DETOUR_BINARY_COMMIT_CALLBACK pfCommit)
2190{
2191 Detour::CImage *pImage = Detour::CImage::IsValid(pBinary);
2192 if (pImage == NULL) {
2193 return FALSE;
2194 }
2195
2196 return pImage->EditImports(pContext,
2197 pfByway,
2198 pfFile,
2199 pfSymbol,
2200 pfCommit);
2201}
2202
2203BOOL WINAPI DetourBinaryClose(_In_ PDETOUR_BINARY pBinary)
2204{

Callers

nothing calls this directly

Calls 1

EditImportsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…