Bewerken

Delen via


STORAGE_TEMPERATURE_THRESHOLD structure (ntddstor.h)

This structure is used to set the over or under temperature threshold of a storage device (via IOCTL_STORAGE_SET_TEMPERATURE_THRESHOLD).

Syntax

typedef struct _STORAGE_TEMPERATURE_THRESHOLD {
  ULONG   Version;
  ULONG   Size;
  USHORT  Flags;
  USHORT  Index;
  SHORT   Threshold;
  BOOLEAN OverThreshold;
  UCHAR   Reserved;
} STORAGE_TEMPERATURE_THRESHOLD, *PSTORAGE_TEMPERATURE_THRESHOLD;

Members

Version

The version of the structure.

Size

The size of this structure. This should be set to sizeof(STORAGE_TEMPERATURE_THRESHOLD).

Flags

Flags set for this request. The following are valid flags.

Flag Description
STORAGE_PROTOCOL_COMMAND_FLAG_ADAPTER_REQUEST This flag indicates the request to target an adapter instead of device.

Index

Identifies the instance of temperature information. Starts from 0. Index 0 may indicate a composite value.

Threshold

A signed value that indicates the temperature of the threshold, in degrees Celsius.

OverThreshold

Indicates if the Threshold specifies the over or under temperature threshold. If true, set the OverThreshold temperature value of the device; otherwise, set the UnderThreshold temperature value.

Reserved

Reserved for future use.

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