Пример #1
0
        /// <summary>
        /// 获取CPU信息
        /// </summary>
        /// <returns></returns>
        public CpuInfo GetCpuInfo()
        {
            CpuInfo cpuInfo = new CpuInfo();

            GetSystemInfo(ref cpuInfo);
            return(cpuInfo);
        }
Пример #2
0
 private static extern void GetSystemInfo(ref CpuInfo cpuInfo);