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

Function main

Example/main.cpp:9–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8Memory* pMem = nullptr;
9int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected