How can I control my PC's fan speed using C++ in Vista?

人走茶凉 提交于 2019-11-26 16:47:38

问题


How can I use C++ to control CPU fan speed in Windows Vista Ultimate? I would like to use ACPI.


回答1:


ACPI:

You need to learn about and use the WMI - Windows system management interface. Here are a few resources that will give you clues on where to start:

  • SetSpeed Method of the CIM_Fan Class
  • WMI C++ Application Examples
  • Example: Calling a Provider Method

Note that some motherboards don't support fan speed changes, and even those that do may not expose this to the WMI. In the best case you may still have to detect the motherboard type and talk to the fan management controllers directly.

No ACPI:

If you don't want to use ACPI then you're going to have to write your own code to access the SMBUS on the motherboard, and then control the fan controller chips.

Check out the program motherboard monitor for clues on how to get started. It's nontrivial, since every motherboard and bios is different.



来源:https://stackoverflow.com/questions/786984/how-can-i-control-my-pcs-fan-speed-using-c-in-vista

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!