title: How to access laptop battery temperature in Windows?
body: <p>I want to get the battery temperature in Windows, and I have tried DeviceIoControl function (<a href="http://msdn.microsoft.com/en-us/library/aa372698(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa372698(v=vs.85).aspx</a>) on the BatteryTemperature.</p>
  
  <p>I have tried other parameter like BatterySerialNumber, and it returns the serial number, but while I want to get the temperature, the function returns FALSE. And GetLastError returns S_FALSE.</p>
  
  <p>My enviroment is Win7 Enterprise SP1, I developed on VS2008+SP1, total C++ code, my laptop is HP Elitebook 2570p. Can anyone give some suggestions on this topic. I have searched Google and donot find any help topic, or should I write some driver code to get the temperature? Or this laptop battery doesnot support this function?</p>
  
  <p>Thanks very much.</p>
  
  <p>PS. If there are any other tech which can get the temperature is welcome, not only in C++.</p>