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

Function HookLoadLibraryW

ReviveXR/main.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29HMODULE WINAPI HookLoadLibraryW(LPCWSTR lpFileName)
30{
31 LPCWSTR name = PathFindFileNameW(lpFileName);
32 LPCWSTR ext = PathFindExtensionW(name);
33 size_t length = ext - name;
34
35 // Load our own library again so the ref count is incremented.
36 if (wcsncmp(name, ovrModuleName, length) == 0)
37 return TrueLoadLibraryW(revModuleName);
38
39 return TrueLoadLibraryW(lpFileName);
40}
41
42HMODULE WINAPI HookLoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected