How can I write a Delphi program to control the CPU fan speed and monitor the temperature?
问题 I want to use Delphi to create a program that controls the fan speed of my computer and monitors the temperature. What API calls are involved in doing that? Are there any good code samples that you can share? 回答1: You can use the WMI classes Win32_TemperatureProbe and Win32_Fan, from delphi you must import the Microsoft WMIScripting V1.x Library using Component->Import Component->Import type library->Next->"Select the library"->Next->Add unit to project->Finish. See this code. is just a