Function 0x00000006:
Function 0x6 provides us with some information on Power Management and Temperature Control. Again, these are perating System features, and we won't bother with them much here.
Can I also control the Fan too? Or I just check the bit, see the temperature, and then wait for a big process to prevent shutdown because of overheat?
Onan,
usually items like fan control and temperature checking are motherboard specific and not particularly related to operating system code.
Thanks. At least I know what I should do.
you might be able to read the temperature
but even that requires access to the MSR's, which usually means a KMD
ONAN-FARABI,
If you need information about Power Management and Temperature Control,...you can often find this type of data through WMI (http://msdn.microsoft.com/en-us/library/windows/desktop/aa394582(v=vs.85).aspx).
For example,...CIM_CoolingDevice Class (http://msdn.microsoft.com/en-us/library/windows/desktop/aa387232(v=vs.85).aspx)
Here is a complete list of WMI classes available: Common Information Model (CIM) Classes (http://msdn.microsoft.com/en-us/library/windows/desktop/aa386179(v=vs.85).aspx)
EDGAR posted a WMI example on the old MASM Forum (http://www.masmforum.com/board/index.php?topic=4171.0).