public static uint GetAvalidPhyMemory() { MEMORY_INFO info = new MEMORY_INFO(); GlobalMemoryStatus(ref info); return(info.dwAvailPhys); }
public static extern void GlobalMemoryStatus(ref MEMORY_INFO meminfo);