For this reason I often want to search for substring and then read in the whole string.
Using
it is done like this:Code:
public static class ProcessOps
{
public static string[] MemFullStrings(this IProcess process, string substring)
{
var matches = process.MemFind(substring);
var result = new string[matches.length];
for(var i = 0; i < matches.length; ++i)
result[i] = process.MemReadString(matches[i]);
return result;
}
}
Code:
IProcess process = ...;
var full_strings = process.MemFullStrings("substring");







