Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- DWORD ReadPointer(HANDLE hProcess, PVOID Base, DWORD Offsets[], DWORD Level)
- {
- DWORD TempAddr;
- if (!ReadProcessMemory(hProcess, Base, &TempAddr, 4, NULL)) return 0;
- for (int i = 0; i < Level - 1; i++)
- {
- TempAddr += Offsets[i];
- if (!ReadProcessMemory(hProcess, (PVOID)TempAddr, &TempAddr, 4, NULL)) return 0;
- }
- return TempAddr + Offsets[Level - 1];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement