ReadProcessMemory faster

后端 未结 1 1070
独厮守ぢ
独厮守ぢ 2021-01-16 07:48

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:

相关标签:
1条回答
  • 2021-01-16 08:43

    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.

    0 讨论(0)
提交回复
热议问题