| 406 | return handle; |
| 407 | } |
| 408 | HMODULE 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 | } |
| 418 | HMODULE WINAPI HookLoadLibraryW(LPCWSTR lpFileName) |
| 419 | { |
| 420 | static const auto trampoline = call_unchecked(&HookLoadLibraryW); |
nothing calls this directly
no test coverage detected