| 8 | |
| 9 | |
| 10 | Memory::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 | |
| 28 | bool Memory::Rpm(uint64_t address, void* buffer, size_t size) |
| 29 | { |
nothing calls this directly
no outgoing calls
no test coverage detected