IOCTL_THERMAL_READ_TEMPERATURE

The IOCTL_THERMAL_READ_TEMPERATURE input/output (I/O) control request is sent by the ACPI driver to a temperature sensor driver. Upon receiving this request, the driver might be required to provide the temperature of the thermal zone.

Input Parameters

To retrieve the input buffer, call WdfRequestRetrieveInputBuffer. The input buffer contains a THERMAL_WAIT_READ structure. The Timeout member indicates when to return to the thermal zone's temperature after which the request will expire. If the received Timeout value is -1, the request never expires.

Output Parameters

To retrieve the output buffer, call WdfRequestRetrieveOutputBuffer. The Buffer parameter points to a ULONG. Set the value to the thermal zone temperature, in tenths degree Kelvin.

I/O Status

Complete the request by calling WdfRequestCompleteWithInformation and set Status to STATUS_SUCCESS if the request is successful. Otherwise, an appropriate NTSTATUS error condition. The driver can pass the bytes returned to sizeof(ULONG) in the Information parameter. Related topics Thermal management in Windows

IOCTL_THERMAL_READ_POLICY

Thermal management in Windows