Quantcast
Channel: User Marco A. - Stack Overflow
Viewing all articles
Browse latest Browse all 45

ReadProcessMemory to find a pattern - granularity?

$
0
0

I need to find a pattern into another process' memory and I'm using ReadProcessMemory. Since I'm using algorithms like rabin karp or similars (pattern matching) and since ReadProcessMemory copies memory (ram -> ram) to a buffer there's some slight overhead involved.. I was wondering what would be the optimal amount of memory to read each time to perform my duty

I mean: ReadProcessMemory(each_byte) sounds a lot time-expensive and ReadProcessMemory(all_the_process_memory) sounds a lot space-expensive. Is there an optimal tradeoff or a better way to set the granularity of the readings?


Viewing all articles
Browse latest Browse all 45

Trending Articles