Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how can I use readprocessmemory?
#5
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
Code:
Copy      Help
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.

int pid = ProcessNameToId("notepad" 0 1)
__ProcessMemory m.Alloc(pid 0 1) ;;just opens process, does not allocate
int scp
m.ReadOther(&scp addressInOtherProcess 2)
err end _error
out scp


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)