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

Function PostLoadLibrary

emmy_hook/src/emmy_hook.windows.cpp:245–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void PostLoadLibrary(HMODULE hModule)
246{
247 extern HINSTANCE g_hInstance;
248 if (hModule == g_hInstance)
249 {
250 return;
251 }
252
253 HANDLE hProcess = GetCurrentProcess();
254
255 char moduleName[_MAX_PATH];
256 GetModuleBaseName(hProcess, hModule, moduleName, _MAX_PATH);
257
258 std::lock_guard<std::mutex> lock(mutexPostLoadModule);
259 LoadSymbolsRecursively(hProcess, hModule);
260}
261
262HMODULE WINAPI LoadLibraryExW_intercept(LPCWSTR fileName, HANDLE hFile, DWORD dwFlags)
263{

Callers 2

LoadLibraryExW_interceptFunction · 0.85
FindAndHookFunction · 0.85

Calls 1

LoadSymbolsRecursivelyFunction · 0.85

Tested by

no test coverage detected