Fast way to search for particular string (or byte array) in another process memory in C#?
-
03-07-2019 - |
Question
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.
Solution
String searching algorithm on Wikipedia.
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow