I\'m making an application that will simulate an action using mouse/keyboard (macro) deppending on the value of a variable.
Here I have de scanning code that I made:
You're reading one int at a time. Instead call ReadProcessMemory once, reading the 16MB in one swoop, then scan the memory in your own process. It'll be a lot faster.
int
ReadProcessMemory