STORAGE_ENDURANCE_DATA_DESCRIPTOR structure (ntddscsi.h)

A miniport uses STORAGE_ENDURANCE_DATA_DESCRIPTOR to report a device's endurance information to the storage port driver.

Syntax

typedef struct _STORAGE_ENDURANCE_DATA_DESCRIPTOR {
  ULONG                  Version;
  ULONG                  Size;
  STORAGE_ENDURANCE_INFO EnduranceInfo;
} STORAGE_ENDURANCE_DATA_DESCRIPTOR, *PSTORAGE_ENDURANCE_DATA_DESCRIPTOR;

Members

Version

Version of this structure. Set this to be sizeof(STORAGE_ENDURANCE_DATA_DESCRIPTOR).

Size

Size, in bytes, of the buffer containing the endurance information. Set this to be sizeof(STORAGE_ENDURANCE_DATA_DESCRIPTOR).

EnduranceInfo

A STORAGE_ENDURANCE_INFO structure in which to store the device's endurance information.

Remarks

The miniport returns this structure when handling an IOCTL_SCSI_MINIPORT request that has an SRB_IO_CONTROL structure with a Signature of IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO, and a ControlCode of IOCTL_STORAGE_QUERY_PROPERTY with a PropertyId of StorageDeviceEnduranceProperty and a QueryType of PropertyStandardQuery.

The storage port driver uses STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR, which is defined in ntddstor.h. STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR and STORAGE_ENDURANCE_DATA_DESCRIPTOR are identical in size, so the storage port driver and miniport should cast the structure they receive accordingly when communicating with each other.

Requirements

Requirement Value
Header ntddscsi.h

See also

IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO

IOCTL_SCSI_MINIPORT

IOCTL_STORAGE_QUERY_PROPERTY

SRB_IO_CONTROL

STORAGE_ENDURANCE_INFO

STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR