如何使用c#从Bios获取CPU温度信息
我尝试了在CPU temperature monitoring中的代码,但没有成功。'enumerator.Current'抛出了异常。
我该怎么做才能实现这个功能呢?谢谢。
错误:
"This system doesn't support the required WMI objects(1) - check the exception file \r\nNot supported\r\n\r\n at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)\r\n at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()\r\n at CedarLogic.WmiLib.SystemStatistics.RefreshReadings() in D:\Downloads\TempMonitorSrc\TemperatureMonitorSln\WmiLib\SystemStatistics.cs:line 25\r\n at CedarLogic.WmiLib.SystemStatistics.get_CurrentTemperature() in D:\Downloads\TempMonitorSrc\TemperatureMonitorSln\WmiLib\SystemStatistics.cs:line 87\r\n at TemperatureMonitor.SystemTrayService.CheckSupport() in D:\Downloads\TempMonitorSrc\TemperatureMonitorSln\TemperatureMonitor\SystemTrayService.cs:line 260"
root\CIMV2
下的CIM_ManagedSystemElement\CIM_LogicalElement\CIM_LogicalDevice
中找到。这些类包含了很多信息,不仅仅是温度。你可能会在那里找到你要找的东西。祝你好运。 - linuxuser27