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

Function HookLoadLibraryA

source/hook_manager.cpp:398–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398HMODULE WINAPI HookLoadLibraryA(LPCSTR lpFileName)
399{
400 static const auto trampoline = call_unchecked(&HookLoadLibraryA);
401
402 const HMODULE handle = trampoline(lpFileName);
403 if (handle != nullptr && handle != g_module_handle)
404 install_delayed_hooks(lpFileName, true); // Need to check all modules, since this 'LoadLibrary' call may have loaded other linked dependencies
405
406 return handle;
407}
408HMODULE WINAPI HookLoadLibraryExA(LPCSTR lpFileName, HANDLE hFile, DWORD dwFlags)
409{
410 static const auto trampoline = call_unchecked(&HookLoadLibraryExA);

Callers

nothing calls this directly

Calls 2

call_uncheckedFunction · 0.85
install_delayed_hooksFunction · 0.85

Tested by

no test coverage detected