Example #1
0
        /// <summary>
        /// 可用物理内存
        /// </summary>
        /// <returns></returns>
        public static uint GetAvalidPhyMemory()
        {
            MEMORY_INFO info = new MEMORY_INFO();

            GlobalMemoryStatus(ref info);
            return(info.dwAvailPhys);
        }
Example #2
0
 public static extern void GlobalMemoryStatus(ref MEMORY_INFO meminfo);