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

Function AttachDetours

ReviveXR/main.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void AttachDetours()
56{
57 DetourTransactionBegin();
58 DetourUpdateThread(GetCurrentThread());
59 DetourAttach((PVOID*)&TrueLoadLibraryW, HookLoadLibraryW);
60 DetourAttach((PVOID*)&TrueLoadLibraryExW, HookLoadLibraryExW);
61 DetourAttach(&(PVOID&)TrueOpenEvent, HookOpenEvent);
62 DetourTransactionCommit();
63}
64
65void DetachDetours()
66{

Callers 2

ovr_InitializeFunction · 0.70
DllMainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected