如何获得,在BIOS使用C#CPU的温度信息? [英] How to get the CPU Temperature info from Bios using c#?

查看:312
本文介绍了如何获得,在BIOS使用C#CPU的温度信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#
获得从BIOS中的CPU温度信息我给一个尝试到代码的 http://stackoverflow.com/questions/2923984/cpu-temperature-monitoring-c



但没有运气。 enumerator.Current引发了异常。



我怎样才能做到这一点?谢谢



错误:




这个系统不支持
为必填WMI对象(1) - 检查\r\\\
Not在
System.Management支持
\r\\\
\r\\\

例外文件。 ManagementException.ThrowWithExtendedInfo(ManagementStatus
的errorCode)\r\\\

System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()\r\\\

。在
CedarLogic。 WmiLib.SystemStatistics.RefreshReadings()在
D
:\Downloads\TempMonitorSrc\TemperatureMonitorSln\WmiLib\SystemStatistics.cs:在$行
25\r\\\
b $ b CedarLogic.WmiLib.SystemStatistics.get_CurrentTemperature()在
D
:\Downloads\TempMonitorSrc\TemperatureMonitorSln\WmiLib\SystemStatistics.cs:行
87\r \\\

TemperatureMonitor.SystemTrayService.CheckSupport()

D:\Downloads\TempMonitorSrc\TemperatureMonitorSln\TemperatureMonitor\SystemTrayService.cs:行
260



解决方案

我建议以下办法。有迹象表明,监控CPU温度,并显示它的几个免费的应用程序。尝试下载一些,然后分析应用程序,看看他们是为了呼吁什么方法来发现它们是如何工作。也许他们有一个非常不同的方法到现有之一。您可能还可以只给他们发邮件,问他们是怎么做到的?



http://www.alcpu.com/CoreTemp/



http://www.techpowerup.com/realtemp/



http://malektips.com/core-temp-cpu-windows-system-tray-taskbar。 HTML


How to get the CPU Temperature info from Bios using c# I gave a try to the code in http://stackoverflow.com/questions/2923984/cpu-temperature-monitoring-c

But no luck. 'enumerator.Current' threw an exception.

How can i achieve this ? Thanks.

Error :

"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"

解决方案

I would recommend the following approach. There are several free applications that monitor the CPU temp and display it. Try downloading some and then analyse the application to see what methods they are calling in order to discover how they work. Maybe they have a very different approach to your existing one. Also you might be able to just email them and ask how they did it...

http://www.alcpu.com/CoreTemp/

http://www.techpowerup.com/realtemp/

http://malektips.com/core-temp-cpu-windows-system-tray-taskbar.html

这篇关于如何获得,在BIOS使用C#CPU的温度信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆