Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
api or wmi?

/////and this is package..
Posted
Updated 31-Jan-18 16:46pm

Probably, you can't.
In theory, you can use WMI to get them, but...
See MSDN: Win32_TemperatureProbe class[^]

"Most of the information that the Win32_TemperatureProbe WMI class provides comes from SMBIOS. Real-time readings for the CurrentReading property cannot be extracted from SMBIOS tables. For this reason, current implementations of WMI do not populate the CurrentReading property. The CurrentReading property's presence is reserved for future use."

It's all dependant on the BIOS, and WMI (et al) rely on motherboard manufacturers providing that info via their drivers - and most don't bother because it's not compulsory to do so.
So what works on one PC may not work next week on the same PC if the drivers have been updated!
 
Share this answer
 
You could take a look at Open Hardware Monitor[^]. The source code is available for download.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900