|
-
May 12th, 2011, 07:13 AM
#3
Re: Help! Getting Programs Base Address...
 Originally Posted by Alex F
If you have (I hope) enough information about another process, use ReadProcessMemory/WriteProcessMemory functions.
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' ??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|