Jump to content

Update* Get Programs Base Address (?)

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Dutchman

Dutchman

    Newbie

  • Members
  • Pip
  • 2 posts
How to use Readprocessmemory?

I have a handle to a running program called: mytargetHandle
I have the memoraddress: 0x16A20B90
I would like the integer found at that address to be stored in my integer variable: value
On MDSN i findsomething like:
ReadProcessMemory(hProcess, lpBaseAddress, lpBuffer, nSize, NULL);

However....
ReadProcessMemory(mytargetHandle, 0x16A20B90, value, 4, NULL);
gives me:
cannot convert parameter 2 from 'int' to 'LPCVOID'

parameter 2... rigth..... so that means the hex-address......

How to get it to work???? So ill have my variable written in 'value' ??

HELP :confused::confused::confused:

Edited by Dutchman, 12 May 2011 - 04:28 AM.
Partially solved.... / no responses yet...


#2
Dutchman

Dutchman

    Newbie

  • Members
  • Pip
  • 2 posts
I got it solved.... thanx but no thanx :P

int value;
ReadProcessMemory(mytargetHandle, (LPCVOID)0x166ACB08, &value, sizeof(int), NULL);


How do i mark my post as: "solved" ???




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users