To add these one way is to issue a IOCTL_THERMAL_QUERY_INFORMATION from your
driver (must be from Kernel mode) which will return a THERMAL_INFORMATION
structure (see the WDK .H files). To get the devices I use use
SetupDiEnumDeviceInterfaces( &GUID_DEVICE_THERMAL_ZONE ) and then pass the
physical device name into my driver by typically opening
"\\.\SIVDRIVER\Device\00000044". Within my driver I pass PFILE_OBJECT->FileName
into IoGetDeviceObjectPointer() to do a kernel mode open and save the context
in a block pointed to by PFILE_OBJECT->FsContext. I have seen systems with 5
thermal zones.
Original issue reported on code.google.com by r...@rh-software.com on 10 Feb 2011 at 2:59
Original issue reported on code.google.com by
r...@rh-software.com
on 10 Feb 2011 at 2:59Attachments: