By already given specific process' handle, how can I move further to search for a specific keywords(bytes, ints(2 bytes), text(an array)) in its memory in code, using VC++ ?
+3
A:
I take it you want to scan through another's process raw memory. By definition, processes are and should be isolated from one another and have totally independent address spaces (your address 0x06573AF8 contains something entirely different from the corresponsing address in another process' address space).
However, there are a number of ways around this: in Windows, the classic answer is to write a specific DLL which you then inject into the address space of the other process. Take a look at CodeProject for some hands-on advice, or slightly more generally, wikipedia.
Pontus Gagge
2009-03-08 08:45:12
+3
A:
The easiest way is probably to use ReadProcessMemory. Also consider using WinDbg - it already has exactly this functionality.
Niki
2009-03-08 08:58:03