unsafe private void ReadMax() { Max maxstat = new Max(); MemoryProvider.ReadProcessMemory(pol.Handle, (IntPtr)((int)pol.BaseAddress + OFFSET.MAXHPMP_INFO), &maxstat, (uint)Marshal.SizeOf(maxstat), null); max = maxstat; }
private unsafe void ReadMax() { Max maxstat = new Max(); MemoryProvider.ReadProcessMemory(windower.pol.Handle, (IntPtr) ((int) windower.pol.BaseAddress + Offset.Get("MAXHPMP_INFO")), &maxstat, (uint) Marshal.SizeOf(maxstat), null); max = maxstat; }