Search code examples
c++debuggingvisual-c++-2005

How do I let a program D read a memory location within the memory allocated to a program A?


So I'd like to let read D read this memory location and do some work on it. Any thoughts? Is writing a debugger extension the only way - if so, any recommendations?

I considered executing a memory dump to file (still don't know how, AFAIK I can only view memory in a window) and letting D work on the file, but is there a better way?


Solution

  • It is possible to read memory of another process. You should use ReadProcessMemory function.