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