获取CPU风扇速度和CPU温度 [英] Get CPU Fan Speed and CPU Temp

查看:364
本文介绍了获取CPU风扇速度和CPU温度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,有人知道是否有任何Windows功能可以检索CPU风扇

速度和CPU温度?或者,如果它是BIOS级别的呼叫,还是其他什么?如果

有人可以指出我正确的方向,那将是

赞赏。


谢谢!

解决方案

" Mike C#" < xy*@xyz.com写在消息中

news:em ************** @ TK2MSFTNGP03.phx.gbl ...


大家好,有人知道是否有任何Windows功能可以检索CPU风扇

速度和CPU温度?或者,如果它是BIOS级别的呼叫,还是其他什么?如果

有人在那里可以指出我正确的方向,那将是值得赞赏的。



Windows Management Instrumentation(WMI)可能对您有所帮助。去这里

http://msdn.microsoft.com/library/de...32_classes.asp


然后向下滚动到Win32_Fan类。祝你好运。


问候,





" ; William DePalo [MVP VC ++]" < wi *********** @ mvps.orgwrote in message

news:ex ************** @ TK2MSFTNGP02.phx。 gbl ...


Windows Management Instrumentation(WMI)可能对您有所帮助。去这里

http://msdn.microsoft.com/library/de...32_classes.asp


然后向下滚动到Win32_Fan类。祝好运。



谢谢Will,我只是在浏览WMI和ACPI文档。我会用

来做更多的研究,因为这必须在两个非托管代码中完成。

必须向后兼容我们似乎有的一些旧系统在这附近躺着

。我希望这只是一个简单的BIOS或Windows INT调用来获取

这个信息!


谢谢


" Mike C#" < xy*@xyz.com写信息

新闻:或**************** @ TK2MSFTNGP06.phx.gbl ...


谢谢Will,



欢迎您。


我只是在浏览WMI和ACPI文档。我将不得不做一些更多的研究,因为这必须在两个非托管代码中完成,并且必须向后兼容我们似乎有的一些旧系统躺在这里




我应该指出,我不知道.Net框架是否对WMI有任何支持

。但是,如果事实证明您需要从托管的

代码访问基于COM的API,您会发现有足够的专业知识可以帮助您在这个

组中。


我希望它只是一个简单的BIOS或Windows INT调用来获取此信息!



我希望法拉利便宜。 :-)


说真的,我没有使用WMI的在职工作,但我的实验

带来了它不太好的结果。我建议你在你的系统上尝试

一些已知在其他地方工作的样本,然后再开始编写

编写代码。


问候,


www.ivrforbeginners.com


Hi all, anyone know if there are any Windows functions to retrieve CPU Fan
Speed and CPU Temp? Or if it''s a BIOS-level call, or something else? If
someone out there could just point me in the right direction it would be
appreciated.

Thanks!

解决方案

"Mike C#" <xy*@xyz.comwrote in message
news:em**************@TK2MSFTNGP03.phx.gbl...

Hi all, anyone know if there are any Windows functions to retrieve CPU Fan
Speed and CPU Temp? Or if it''s a BIOS-level call, or something else? If
someone out there could just point me in the right direction it would be
appreciated.

Windows Management Instrumentation (WMI) may help you. Go here

http://msdn.microsoft.com/library/de...32_classes.asp

and then scroll down to the Win32_Fan class. Good luck.

Regards,
Will



"William DePalo [MVP VC++]" <wi***********@mvps.orgwrote in message
news:ex**************@TK2MSFTNGP02.phx.gbl...

Windows Management Instrumentation (WMI) may help you. Go here

http://msdn.microsoft.com/library/de...32_classes.asp

and then scroll down to the Win32_Fan class. Good luck.

Thanks Will, I was just browsing the WMI and ACPI documentation. I''ll have
to do some more research, as this has to be done in both unmanaged code and
must be backwards compatible with some older systems we seem to have lying
around here. I wish it were just a simple BIOS or Windows INT call to get
this info!

Thanks


"Mike C#" <xy*@xyz.comwrote in message
news:OR****************@TK2MSFTNGP06.phx.gbl...

Thanks Will,

You are welcome.

I was just browsing the WMI and ACPI documentation. I''ll have to do some
more research, as this has to be done in both unmanaged code and must be
backwards compatible with some older systems we seem to have lying around
here.

I should point out that I have no idea if the .Net framework has any support
for WMI. But if it turns out you need to access a COM based API from managed
code you''ll find there is enough expertise to help you with that in this
group.

I wish it were just a simple BIOS or Windows INT call to get this info!

I wish Ferraris were cheap. :-)

Seriously, I''ve not had an on-the-job need to use WMI, but my experiments
with it have resulted in less than stellar results. I suggest that you try
on your systems some samples known to work elsewhere before you start
writing code.

Regards,
Will
www.ivrforbeginners.com


这篇关于获取CPU风扇速度和CPU温度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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