[DllImport("kernel32")]
public static extern void GlobalMemoryStatus(ref MemInfc meminfo);
public struct MemInfc
{
public uint dwLength;
public uint dwMemoryLoad;
public uint dwTotalPhys;
public uint dwAvailPhys;
public uint dwTotalPageFile;
public uint dwAvailPageFile;
public uint dwTotalVirtual;
public uint dwAvailVirtual;
}