| 7 | |
| 8 | Memory* pMem = nullptr; |
| 9 | int main() |
| 10 | { |
| 11 | LoadLibraryA("user32.dll"); |
| 12 | |
| 13 | uint32_t processId = GetCurrentProcessId(); |
| 14 | pMem = new Memory(processId, { "user32.dll" }); |
| 15 | |
| 16 | std::cout << "Process Base: " << pMem->base << std::endl; |
| 17 | std::cout << "user32.dll Base: " << pMem->moduleBases["user32.dll"] << std::endl; |
| 18 | |
| 19 | int x = 100; |
| 20 | std::cout << "Rpm: " << pMem->Rpm<int>((uint64_t)&x) << std::endl; |
| 21 | |
| 22 | pMem->Wpm<int>((uint64_t)&x, 15); |
| 23 | std::cout << "After Wpm: " << x << std::endl; |
| 24 | |
| 25 | return 0; |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected