Search the memory of another process
Is there a fast way to search/scan the memory of a process for a specific value, find the location of this value, edit and save it?
There are examples like Peeping Tom, but it's very slow and has issues with Vist开发者_Go百科a & Win7.
You will have to debug the process (i.e. the equivalent of attaching the process to your custom debugger) and use ReadProcessMemory to read and WriteProcessMemory to write.
This is what the Delphi Code Coverage project is doing to insert breakpoints to track code coverage at runtime.
Look at the class DebugProcess, it has methods to read and write to the memory of the debugged process.
精彩评论