MCPcopy Create free account
hub / github.com/Astronaut00/DoubleDataPointer / Memory

Method Memory

Usermode/memory.cpp:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10Memory::Memory(int32_t pid, std::vector<std::string> moduleNames)
11{
12 LoadLibraryA("user32.dll");
13 Setup("NtUserSetProcessWindowStation");
14
15 processId = pid;
16
17 for (const auto & moduleName : moduleNames)
18 {
19 uint64_t baseAddress = NULL;
20 if (GetModuleBaseAddressFromKernel(processId, moduleName.c_str(), &baseAddress))
21 moduleBases.at(moduleName) = baseAddress;
22
23 }
24
25 GetProcessBaseAddressFromKernel(pid, &this->base);
26}
27
28bool Memory::Rpm(uint64_t address, void* buffer, size_t size)
29{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected