For others who may come here, take a look at: http://openhardwaremonitor.org/
Follow this link, and at first you might think: “Hey, this application, so it was deleted, the question was how to do this with C # code, and not to search for an application that can tell me the temperature ..” It shows that you don’t want to invest enough time in reading “Open Hardware Monitor”.
They also include a data interface, here is a description:
The Open Hardware Monitor data interface publishes all sensor data for WMI (Windows Management Tool). This allows other applications to read and use sensor information. preliminary documentation on the interface can be found here (click) .
When you download it, it contains the OpenHardwareMonitor.exe application, you are not looking for it. It also contains the OpenHardwareMonitorLib.dll file that you are looking for.
Basically, if not 100%, this is just a wrapper around the WinRing0 API, which you can choose to wrap yourself if you like.
I myself tried this from a C # application and it works. Although it is still in beta, it looks pretty stable. It is also open source, so it can be a good starting point.
At the end of the day, I find it hard to believe that this is not a question on this issue.
Jens Mar 05 '12 at 10:10 2012-03-05 10:10
source share