MCPcopy Create free account
hub / github.com/LibreVR/Revive / DetourVirtual

Function DetourVirtual

ReviveXR/REV_CAPI_D3D.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include <openxr/openxr_platform.h>
21
22LONG DetourVirtual(PVOID pInstance, UINT methodPos, PVOID *ppPointer, PVOID pDetour)
23{
24 if (!pInstance || !ppPointer)
25 return ERROR_INVALID_PARAMETER;
26
27 LPVOID* pVMT = *((LPVOID**)pInstance);
28 *ppPointer = pVMT[methodPos];
29 return DetourAttach(ppPointer, pDetour);
30}
31
32typedef HRESULT(WINAPI* _CreateShaderResourceView)(
33 ID3D11Device *This,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected