04-07-2010, 10:01 AM
thank you,yijingjiejueliao.
how can I use readprocessmemory?
|
04-07-2010, 10:01 AM
thank you,yijingjiejueliao.
04-07-2010, 10:15 AM
If you want to write 2 bytes to scp, pass its address, not itself. Replace +scp to &scp.
QM also has class __ProcessMemory that can be used for it. Macro Macro1374
04-07-2010, 03:38 PM
thank you.
07-06-2012, 03:43 AM
int pid = ProcessNameToId("notepad" 0 1) The above code gives me an error. I am on Windows7 64 bit if that helps any. Error (RT) in Macro: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. I tried running the same code again and it gave me a new error.
07-06-2012, 04:18 AM
That code is not working as is. It was just as example. It also has a bug, sorry.
To read 2 bytes from a known address in other process to int variable scp: Macro Macro1779 byte* addressInOtherProcess=+0x0100A5f1 ;;this must be a valid address in other process. In this example it will probably give error because 0x0100A5f1 is probably an invalid address.
07-06-2012, 04:40 AM
Thank you so much for your help! I was able to get my code working.
|
« Next Oldest | Next Newest »
|