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

Function HookLoadLibraryExA

source/hook_manager.cpp:408–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 return handle;
407}
408HMODULE WINAPI HookLoadLibraryExA(LPCSTR lpFileName, HANDLE hFile, DWORD dwFlags)
409{
410 static const auto trampoline = call_unchecked(&HookLoadLibraryExA);
411
412 const HMODULE handle = trampoline(lpFileName, hFile, dwFlags);
413 if (handle != nullptr && handle != g_module_handle && (dwFlags & (LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE | LOAD_LIBRARY_AS_IMAGE_RESOURCE)) == 0)
414 install_delayed_hooks(lpFileName, true);
415
416 return handle;
417}
418HMODULE WINAPI HookLoadLibraryW(LPCWSTR lpFileName)
419{
420 static const auto trampoline = call_unchecked(&HookLoadLibraryW);

Callers

nothing calls this directly

Calls 2

call_uncheckedFunction · 0.85
install_delayed_hooksFunction · 0.85

Tested by

no test coverage detected