Bewerken

Delen via


IOCTL_STORAGE_SET_TEMPERATURE_THRESHOLD IOCTL (ntddstor.h)

A driver can use IOCTL_STORAGE_SET_TEMPERATURE_THRESHOLD to set the temperature threshold of a storage device (when supported by the hardware). Use IOCTL_STORAGE_QUERY_PROPERTY to determine if the device supports changing the over and under temperature thresholds.

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

A STORAGE_TEMPERATURE_THRESHOLD structure.

Input buffer length

Parameters.DeviceIoControl.OutputBufferLength in the I/O stack location indicates the size, in bytes, of the parameter buffer, which must be >= sizeof(STORAGE_TEMPERATURE_THRESHOLD).

Output buffer

This IOCTL has no output structure.

Output buffer length

This IOCTL has no output structure.

Status block

The Information field is set to the number of bytes returned. The Status field is set to STATUS_SUCCESS, or possibly to STATUS_INSUFFICIENT_RESOURCES.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header ntddstor.h (include Ntddstor.h)

See also

IOCTL_STORAGE_QUERY_PROPERTY

STORAGE_PROPERTY_ID

STORAGE_PROPERTY_QUERY

STORAGE_TEMPERATURE_INFO