Results 1 to 3 of 3
  1. #1
    kvdirect's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    2

    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.

  2. The Following User Says Thank You to kvdirect For This Useful Post:

    NOOB (06-23-2011)

  3. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    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.

  4. The Following User Says Thank You to freedompeace For This Useful Post:

    NOOB (06-23-2011)

  5. #3
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    655
    Reputation
    70
    Thanks
    1,156
    My Mood
    Bitchy
    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.

  6. The Following User Says Thank You to mmbob For This Useful Post:

    NOOB (06-23-2011)