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

Function DetourBinaryOpen

lib_fiber/cpp/src/detours/image.cpp:2033–2048  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2031//////////////////////////////////////////////////////////////////////////////
2032//
2033PDETOUR_BINARY WINAPI DetourBinaryOpen(_In_ HANDLE hFile)
2034{
2035 Detour::CImage *pImage = new NOTHROW
2036 Detour::CImage;
2037 if (pImage == NULL) {
2038 SetLastError(ERROR_OUTOFMEMORY);
2039 return FALSE;
2040 }
2041
2042 if (!pImage->Read(hFile)) {
2043 delete pImage;
2044 return FALSE;
2045 }
2046
2047 return (PDETOUR_BINARY)pImage;
2048}
2049
2050BOOL WINAPI DetourBinaryWrite(_In_ PDETOUR_BINARY pdi,
2051 _In_ HANDLE hFile)

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…