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

Function HookOpenEvent

Revive/main.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30HANDLE WINAPI HookOpenEvent(DWORD dwDesiredAccess, BOOL bInheritHandle, LPCWSTR lpName)
31{
32 // Don't touch this, it heavily affects performance in Unity games.
33 if (wcscmp(lpName, OVR_HMD_CONNECTED_EVENT_NAME) == 0)
34 return ::CreateEventW(NULL, TRUE, TRUE, NULL);
35
36 return TrueOpenEvent(dwDesiredAccess, bInheritHandle, lpName);
37}
38
39HMODULE WINAPI HookLoadLibraryW(LPCWSTR lpFileName)
40{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected