C#程序怎么获取CPU温度?

初学者,详细,详细,,
2024-12-17 02:16:19
推荐回答(2个)
回答1:

public string getCpu()
{
string strCpu = null;
ManagementClass myCpu = new ManagementClass("win32_Processor");
ManagementObjectCollection myCpuConnection = myCpu.GetInstances();
foreach (ManagementObject myObject in myCpuConnection)
{
strCpu = myObject.Properties["Processorid"].Value.ToString();
break;
}
return strCpu;
}

整不来,给你个获取CPU编号的东西。

回答2:

不用驱动,难~~