1
0
mirror of synced 2024-11-24 15:40:22 +01:00
OpenTaiko/FDK19/コード/00.共通/CCpuCores.cs
2021-09-21 00:16:38 +02:00

27 lines
686 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace FDK
{
public static class CpuCores
{
[DllImport("kernel32")]
public 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;
}
}
}