// ntddstor.h
typedef struct _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR {
ULONG Version;
ULONG Size;
STORAGE_HW_ENDURANCE_INFO EnduranceInfo;
} STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR, *PSTORAGE_HW_ENDURANCE_DATA_DESCRIPTOR;
View the official Windows Driver Kit DDI referenceNo description available.
A storage port driver uses the STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR structure to report a device's endurance information.
VersionVersion of this structure. Set this to be sizeof(STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR).
SizeSize, in bytes, of the buffer containing the endurance information. Set this to be sizeof(STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR).
EnduranceInfoA STORAGE_HW_ENDURANCE_INFO structure in which to store the device's endurance information.
A storage port driver uses this structure when communicating with its miniport for an IOCTL_SCSI_MINIPORT request that has an SRB_IO_CONTROL structure with a Signature of IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO, and a ControlCode ofIOCTL_STORAGE_QUERY_PROPERTY with a PropertyId of StorageDeviceEnduranceProperty and a QueryType of PropertyStandardQuery.
The miniport uses STORAGE_ENDURANCE_DATA_DESCRIPTOR, which is defined in ntddscsi.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.
IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO
STORAGE_ENDURANCE_DATA_DESCRIPTOR