问题
As part of an application for a client, I need to have a section which reports temperature information (motherboard, CPU, HDD). I know there are standalone applications such as Hardware Monitor by CPUID, but again, these are standalone and I require something that I could interface with.
Is there any app like this which has an API or is open source so I can utilize their source code? I have language preferences other than it needs to run on Windows XP. Thanks.
回答1:
You get info like this from WMI. Download WMICodeCreator to find the query as well as the code you need to write. Beware that hardware queries like this tend to rely heavily on providers supplied by the hardware or BIOS manufacturer.
来源:https://stackoverflow.com/questions/273279/windows-temperature-monitor