MCPcopy Create free account
hub / github.com/NtQuery/Scylla / GetExeModuleBase

Function GetExeModuleBase

ScyllaDllTest/ScyllaDllTest/Source.cpp:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108DWORD_PTR GetExeModuleBase(DWORD dwProcessId)
109{
110 MODULEENTRY32 lpModuleEntry = { 0 };
111 HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
112 lpModuleEntry.dwSize = sizeof(lpModuleEntry);
113 Module32First(hSnapShot, &lpModuleEntry);
114
115 CloseHandle(hSnapShot);
116
117 return (DWORD_PTR)lpModuleEntry.modBaseAddr;
118}

Callers 2

testGuiFunction · 0.85
testIatSearchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected