/// <summary>
        /// 获取CPU信息
        /// </summary>
        /// <returns>CPU信息</returns>
        public static CpuInfo GetCpuInfo()
        {
            CpuInfo cpuInfo = new CpuInfo();

            GetSystemInfo(ref cpuInfo);
            return(cpuInfo);
        }
Exemple #2
0
 /// <summary>
 /// 获取CPU信息
 /// </summary>
 /// <returns>CPU信息</returns>
 public static CpuInfo GetCpuInfo()
 {
     CpuInfo cpuInfo = new CpuInfo();
     GetSystemInfo(ref cpuInfo);
     return cpuInfo;
 }
 private static extern void GetSystemInfo(ref CpuInfo cpuInfo);
Exemple #4
0
 private static extern void GetSystemInfo(ref CpuInfo cpuInfo);