C++ code for CPU load and CPU temperature

后端 未结 2 415
梦如初夏
梦如初夏 2021-02-05 14:24

I want to see CPU temperature and CPU load in Windows. I have to write it myself not using software like Core Temp. How can I access this information?

I read a similar q

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 14:53

    Take a look at Getting CPU temp from MSDN forums, there are a few approaches.

    As to the sane way, you can use Win32_TemperatureProbe class, that gets its intel from SMBIOS.

提交回复
热议问题