views:

1553

answers:

4

Please post a working source code example (or link) of how to search string in another process memory and getting offset of match if found. The similar way its done in game cheating utils which search for values in game memory using ReadProcessMemory.

A: 

You may want to look into Memory Mapped Files as a way to share memory between separate processes. You'll need to use Win32 P/Invokes to implement this in C#, see this Code Project link for an example that you may be able to adapt.

tbreffni
A: 

Sorry, but you misunderstood me, i know how to read memory of another process, what i need is a good algo for searching a string inside another process memory.

I would clarify this point in the question post so others don't make the same mistake.
Jason Jackson
+1  A: 

String searching algorithm on Wikipedia.

Sander
A: 

Working example in C# please ,i can do search in Wikipedia by myself :)