using System.Runtime.InteropServices;

namespace MikuMikuDance.XNA
{
    /// <summary>
    /// Win32API用のクラス。
    /// </summary>
    internal static class Win32API
    {
        [DllImport("kernel32")]
        internal static extern void GetSystemInfo(ref SYSTEM_INFO ptmpsi);

        [StructLayout(LayoutKind.Sequential)]
        public struct SYSTEM_INFO
        {
            public uint dwOemId;
            public uint dwPageSize;
            public uint lpMinimumApplicationAddress;
            public uint lpMaximumApplicationAddress;
            public uint dwActiveProcessorMask;
            public uint dwNumberOfProcessors;
            public uint dwProcessorType;
            public uint dwAllocationGranularity;
            public uint dwProcessorLevel;
            public uint dwProcessorRevision;
        }

    }
}
