private static ReadUInt32 ( |
||
ProcessHandle | ||
Offset | ||
return |
private static UInt32 ReadUInt32(IntPtr ProcessHandle, IntPtr Offset)
{
const int dataSize = sizeof(UInt32);
byte[] buffer = new byte[dataSize];
IntPtr bytesRead = IntPtr.Zero;
if (!ReadProcessMemory(ProcessHandle, Offset, buffer, new IntPtr(dataSize), ref bytesRead))
return 0;
return BitConverter.ToUInt32(buffer, 0);
}