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

Function DetourFreePayload

lib_fiber/cpp/src/detours/modules.cpp:847–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847BOOL WINAPI DetourFreePayload(_In_ PVOID pvData)
848{
849 BOOL fSucceeded = FALSE;
850
851 // If you have any doubts about the following code, please refer to the comments in DetourCopyPayloadToProcess.
852 HMODULE hModule = DetourGetContainingModule(pvData);
853 DETOUR_ASSERT(hModule != NULL);
854 if (hModule != NULL) {
855 fSucceeded = VirtualFree(hModule, 0, MEM_RELEASE);
856 DETOUR_ASSERT(fSucceeded);
857 if (fSucceeded) {
858 hModule = NULL;
859 }
860 }
861
862 return fSucceeded;
863}
864
865BOOL WINAPI DetourRestoreAfterWithEx(_In_reads_bytes_(cbData) PVOID pvData,
866 _In_ DWORD cbData)

Callers 2

DetourRestoreAfterWithExFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…