コード例 #1
0
        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;
        }
コード例 #2
0
 private static ulong GetTopOfMemory()
 {
     Interop.Kernel32.SYSTEM_INFO info = new Interop.Kernel32.SYSTEM_INFO();
     Interop.Kernel32.GetSystemInfo(out info);
     return((ulong)info.lpMaximumApplicationAddress);
 }