MCPcopy Create free account
hub / github.com/crosire/reshade / HookLoadLibraryExW

Function HookLoadLibraryExW

source/hook_manager.cpp:428–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 return handle;
427}
428HMODULE WINAPI HookLoadLibraryExW(LPCWSTR lpFileName, HANDLE hFile, DWORD dwFlags)
429{
430 static const auto trampoline = call_unchecked(&HookLoadLibraryExW);
431
432 const HMODULE handle = trampoline(lpFileName, hFile, dwFlags);
433 if (handle != nullptr && handle != g_module_handle && (dwFlags & (LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE)) == 0)
434 install_delayed_hooks(lpFileName, true);
435
436 return handle;
437}
438
439#endif
440

Callers

nothing calls this directly

Calls 2

call_uncheckedFunction · 0.85
install_delayed_hooksFunction · 0.85

Tested by

no test coverage detected