C# ReadProcessMemory: How to read a 64 bit memory address?
I am getting into reading application memory. I am using CheatEngine to get a memory address and then trying to return it's value. However, CheatEngine seems to be returning 64 bit memory addresses and so my ReadProcessMemory function keeps on telling me that it cannot convert a 'long' to 'int' whenever I enter in the address. All the tutorials I have found seem to be based on memory addresses that are like 00AB5678 but the ones I am getting are more like D3569227FC. So my question is, how do I use ReadProcessMemory with much larger memory addresses? Here is my code: using System; using System