Finding Game Pointer Addy

Posts 1–3 of 3 · Page 1 of 1
Finding Game Pointer Addy
I was wondering if there a key word is to find the addy for the game pointer. In Olly. Any help would be appreciated.
You don't need to?

INT PID = -1;
HANDLE hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, PID);
hProcess will have the base address (aka. Pointer) of your game.
Quote Originally Posted by freedompeace View Post
You don't need to?

INT PID = -1;
HANDLE hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, PID);
hProcess will have the base address (aka. Pointer) of your game.
I think you might be thinking of GetModuleHandle.
Code:
HMODULE hExe = GetModuleHandle(0);
void* pExe = (void*) hExe;
OpenProcess sounds like a dirty way to do this, opening a kernel object just for getting the base address. And you need to close the handle afterwards.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Talk with us