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

            GetSystemInfo(ref cpuInfo);
            return(cpuInfo);
        }
Exemple #2
0
 private static extern void GetSystemInfo(ref CpuInfo cpuInfo);