Ok:
-
hacking online games is not considered cool;
-
ReadProcessMemory
does not return anint
, nor should it have anint
as a parameter where you are using them; -
The first parameter for
ReadProcessMemory
is not the “name” for a process, but a process handle. You’ll have to find the handle usingEnumProcesses
etc.