MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / LoadLibraryExW_intercept

Function LoadLibraryExW_intercept

emmy_hook/src/emmy_hook.windows.cpp:262–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262HMODULE WINAPI LoadLibraryExW_intercept(LPCWSTR fileName, HANDLE hFile, DWORD dwFlags)
263{
264 // We have to call the loader lock (if it is available) so that we don't get deadlocks
265 // in the case where Dll initialization acquires the loader lock and calls LoadLibrary
266 // while another thread is inside PostLoadLibrary.
267 HMODULE hModule = LoadLibraryExW_dll(fileName, hFile, dwFlags);
268
269 if (hModule != nullptr)
270 {
271 PostLoadLibrary(hModule);
272 }
273 return hModule;
274}
275
276void HookLoadLibrary()
277{

Callers

nothing calls this directly

Calls 1

PostLoadLibraryFunction · 0.85

Tested by

no test coverage detected