///
/// Copyright © 2003-2008 JetBrains s.r.o.
/// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder).
///
using System;
using System.Runtime.InteropServices;
using JetBrains.Util;
namespace JetBrains.Interop.WinApi
{
///
/// Helper structure for the function.
///
[StructLayout(LayoutKind.Sequential)]
[NoReorder]
public struct MEMORYSTATUSEX
{
public UInt32 dwLength;
public UInt32 dwMemoryLoad;
public UInt64 ullTotalPhys;
public UInt64 ullAvailPhys;
public UInt64 ullTotalPageFile;
public UInt64 ullAvailPageFile;
public UInt64 ullTotalVirtual;
public UInt64 ullAvailVirtual;
public UInt64 ullAvailExtendedVirtual;
public void SetSize()
{
dwLength = (uint)Marshal.SizeOf(typeof(MEMORYSTATUSEX));
}
}
}