STORAGE_HW_ENDURANCE_INFO structure (ntddstor.h)
A storage port driver uses the STORAGE_HW_ENDURANCE_INFO structure to report a device's endurance information.
Syntax
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;
Members
ValidFields
Bitmask 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. |
GroupId
ID number that represents a group of resources.
Flags
Flags.Shared
Set TRUE if the endurance information is shared with multiple disks.
Flags.Reserved
Reserved; do not use.
LifePercentage
Percentage of used life. This value is typically between 0-100, where a larger number indicates more life has been used.
BytesReadCount[16]
Total bytes read from the device, specified in billions. For example, a value of 1 would mean 1 billion bytes read.
ByteWriteCount[16]
Total bytes written to the device, specified in billions. For example, a value of 1 would mean 1 billion bytes written.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Header | ntddstor.h |