// ntddstor.h
typedef struct _STORAGE_HW_ENDURANCE_INFO {
ULONG ValidFields;
ULONG GroupId;
struct {
ULONG Shared : 1;
ULONG Reserved : 31;
} Flags;
ULONG LifePercentage;
UCHAR BytesReadCount[16];
UCHAR ByteWriteCount[16];
} STORAGE_HW_ENDURANCE_INFO, *PSTORAGE_HW_ENDURANCE_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
A storage port driver uses the STORAGE_HW_ENDURANCE_INFO structure to report a device's endurance information.
ValidFieldsBitmask that indicates which of the remaining members contain valid data. Can be any of the combination of the following bits:
| Bit | Meaning |
|---|---|
| 0 | The GroupId member contains valid data. |
| 1 | The Flags member contains valid data. |
| 2 | The LifePercentage member contains valid data. |
| 3 | The BytesReadCount member contains valid data. |
| 4 | Th ByteWriteCount member contains valid data. |
GroupIdID number that represents a group of resources.
FlagsFlags.SharedSet TRUE if the endurance information is shared with multiple disks.
Flags.ReservedReserved; do not use.
LifePercentagePercentage of used life. This value is typically between 0-100, where a larger number indicates more life has been used.
BytesReadCountTotal bytes read from the device, specified in billions. For example, a value of 1 would mean 1 billion bytes read.
ByteWriteCountTotal bytes written to the device, specified in billions. For example, a value of 1 would mean 1 billion bytes written.
This structure is a member of STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR, which is the structure returned within the output buffer of an IOCTL_SCSI_MINIPORT request.
IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO
STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR