Beispiel #1
0
        public MemoryInfo GetMemoryInfo()
        {
            MemoryInfo memoryInfo = new MemoryInfo();

            GlobalMemoryStatus(ref memoryInfo);
            System.Diagnostics.Process p = System.Diagnostics.Process.GetCurrentProcess();
            memoryInfo.dwCurrentMemorySize = p.NonpagedSystemMemorySize;
            return(memoryInfo);
        }
Beispiel #2
0
 public static extern void GlobalMemoryStatus(ref MemoryInfo memoryInfo);