private bool _mustSubtractReservation; // Did we add data to SharedStatics? static MemoryFailPoint() { Interop.Kernel32.SYSTEM_INFO info = new Interop.Kernel32.SYSTEM_INFO(); Interop.Kernel32.GetSystemInfo(ref info); s_topOfMemory = (ulong)info.lpMaximumApplicationAddress; }
private static ulong GetTopOfMemory() { Interop.Kernel32.SYSTEM_INFO info = new Interop.Kernel32.SYSTEM_INFO(); Interop.Kernel32.GetSystemInfo(out info); return((ulong)info.lpMaximumApplicationAddress); }