如何使用 C# 从 Bios 获取 CPU 温度信息
我尝试了中的代码CPU温度监控 https://stackoverflow.com/questions/2923984/cpu-temperature-monitoring-c
但没有运气。 “enumerator.Current”引发异常。
我怎样才能做到这一点?谢谢。
Error :
“该系统不支持
所需的 WMI 对象(1) - 检查
异常文件 \r\n不支持
\r\n\r\n 于
System.Management.ManagementException.ThrowWithExtendedInfo(管理状态
错误代码)\r\n 位于
System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()\r\n
在
CedarLogic.WmiLib.SystemStatistics.RefreshReadings()
在
D:\Downloads\TempMonitorSrc\TemperatureMonitorSln\WmiLib\SystemStatistics.cs:行
25\r\n 于
CedarLogic.WmiLib.SystemStatistics.get_CurrentTemperature()
在
D:\Downloads\TempMonitorSrc\TemperatureMonitorSln\WmiLib\SystemStatistics.cs:line
87\r\n 在
TemperatureMonitor.SystemTrayService.CheckSupport()
在
D:\Downloads\TempMonitorSrc\TemperatureMonitorSln\TemperatureMonitor\SystemTrayService.cs:line
260"
您需要支持许多不同的硬件传感器来收集温度数据。更好的方法是准备好使用如下解决方案:
1)开放硬件监视器 - 开源.NET 2.0应用程序:
http://openhardwaremonitor.org/ http://openhardwaremonitor.org/
2) Core Temp - 免费应用程序和 .NET API 来获取温度数据:
http://www.alcpu.com/CoreTemp/developers.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)