开发者

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 d开发者_JS百科o 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?


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


if you need the two programs to share part of the memory you can use shared memory


Since you're apparently using Windows, the way for one process to look at another process' memory is with ReadProcessMemory. While it's certainly true that debuggers typically use this, using it is still well short of writing a debugger.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜