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

Function DetourFindPayloadEx

lib_fiber/cpp/src/detours/modules.cpp:832–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830_Readable_bytes_(*pcbData)
831_Success_(return != NULL)
832PVOID WINAPI DetourFindPayloadEx(_In_ REFGUID rguid,
833 _Out_opt_ DWORD *pcbData)
834{
835 for (HMODULE hMod = NULL; (hMod = DetourEnumerateModules(hMod)) != NULL;) {
836 PVOID pvData;
837
838 pvData = DetourFindPayload(hMod, rguid, pcbData);
839 if (pvData != NULL) {
840 return pvData;
841 }
842 }
843 SetLastError(ERROR_MOD_NOT_FOUND);
844 return NULL;
845}
846
847BOOL WINAPI DetourFreePayload(_In_ PVOID pvData)
848{

Callers 2

DetourRestoreAfterWithFunction · 0.85
DetourIsHelperProcessFunction · 0.85

Calls 2

DetourEnumerateModulesFunction · 0.85
DetourFindPayloadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…