如何使用C# 得到BIOS中的CPU温度的信息,我给了一个尝试的代码CPU temperature monitoring如何使用c#从Bios获取CPU温度信息?
,但没有运气。 'enumerator.Current'引发了一个异常。
我该如何做到这一点?谢谢。
错误:
“这个系统不支持 所需的WMI对象(1) - 检查所支持 \ r \ n \ r \ n中的 例外文件\ r \ n不是在 系统.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus 的errorCode个)\ r \ n在 System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext(个)\ r \ n 在 CedarLogic.WmiLib.SystemStatistics.RefreshReadings() 在 d:\下载\ TEM pMonitorSrc \ TemperatureMonitorSln \ WmiLib \ SystemStatistics.cs:在 d线 25 \ r \ n在 CedarLogic.WmiLib.SystemStatistics.get_CurrentTemperature() :\下载\ TempMonitorSrc \ TemperatureMonitorSln \ WmiLib \ SystemStatistics.cs:线 87 \在 TemperatureMonitor.SystemTrayService.CheckSupport(R \ n)的 在 d:\下载\ TempMonitorSrc \ TemperatureMonitorSln \ TemperatureMonitor \ SystemTrayService.cs:线 260"
它抛出了什么异常? – Hogan 2010-09-01 02:55:38
您需要从主板制造商处获得改进的WMI提供程序。不要指望得到一个。 – 2010-09-01 02:56:21
您可以使用“WMI Studio”查看所有WMI对象。它是WMI对象的资源管理器。你可以用你最喜欢的搜索引擎找到它。 – linuxuser27 2010-09-01 03:03:58