MCPcopy Create free account
hub / github.com/Encryqed/Dumper-7 / GetModuleBase

Method GetModuleBase

Dumper/Platform/Private/PlatformWindows.cpp:390–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388
389
390uintptr_t PlatformWindows::GetModuleBase(const char* const ModuleName)
391{
392 if (ModuleName == nullptr)
393 return reinterpret_cast<uintptr_t>(GetPEB()->ImageBaseAddress);
394
395 const LDR_DATA_TABLE_ENTRY* Entry = GetModuleLdrTableEntry(ModuleName); //This can return nullptr.
396 if (!Entry)
397 return 0x0;
398
399 return reinterpret_cast<uintptr_t>(Entry->DllBase);
400}
401
402uintptr_t PlatformWindows::GetOffset(const uintptr_t Address, const char* const ModuleName)
403{

Callers

nothing calls this directly

Calls 2

GetPEBFunction · 0.85
GetModuleLdrTableEntryFunction · 0.85

Tested by

no test coverage detected