Quote:I am new to C++ and it is just a pain in the ass to find a single working example of reading process memory.
That's a hint your are trying to do something too difficult for your current knowledge.
You should start reading the documentation: ReadProcessMemory function (Windows)
], specifically, carefully read the 'Return value
' and the 'Remarks
' (they basically suggest the behaviour already proposed by jeron1