STORAGE_TEMPERATURE_THRESHOLD - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

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;

View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct _STORAGE_TEMPERATURE_THRESHOLD {
  DWORD   Version;
  DWORD   Size;
  WORD    Flags;
  WORD    Index;
  SHORT   Threshold;
  BOOLEAN OverThreshold;
  BYTE    Reserved;
} STORAGE_TEMPERATURE_THRESHOLD, *PSTORAGE_TEMPERATURE_THRESHOLD;

View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddstor-_storage_temperature_threshold)

_STORAGE_TEMPERATURE_THRESHOLD structure

Description

This structure is used to set the over or under temperature threshold of a storage device (via IOCTL_STORAGE_SET_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.

See also

IOCTL_STORAGE_QUERY_PROPERTY

STORAGE_PROPERTY_ID

STORAGE_PROPERTY_QUERY

STORAGE_TEMPERATURE_INFO


Win32 API reference (ns-winioctl-storage_temperature_threshold)

STORAGE_TEMPERATURE_THRESHOLD structure

Description

This structure is used to set the over or under temperature threshold of a storage device (via IOCTL_STORAGE_SET_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.

See also

IOCTL_STORAGE_QUERY_PROPERTY

IOCTL_STORAGE_SET_TEMPERATURE_THRESHOLD

STORAGE_PROPERTY_ID

STORAGE_PROPERTY_QUERY

STORAGE_TEMPERATURE_INFO