title: How can I scan another process memory to find what follows a specific string?
body: <p>I want to scan the entire heap of a currently running native application through another process.</p>
  
  <p>For example, I want to know what follows all the instances of the ASCII sequence "test" in this process memory (in this case I would scan for "test" and keep reading after it).</p>
  
  <p>I tried to google for more information but didn't find much: I found <a href="http://msdn.microsoft.com/en-us/library/ms680553%28v=VS.85%29.aspx" rel="nofollow noreferrer">ReadProcessMemory</a> which looked interesting, but how can I know the memory addresses a process has allocated?</p>