STORAGE_HW_ENDURANCE_INFO - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

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

STORAGE_HW_ENDURANCE_INFO structure

Description

A storage port driver uses the STORAGE_HW_ENDURANCE_INFO structure to report a device's endurance information.

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

Total bytes read from the device, specified in billions. For example, a value of 1 would mean 1 billion bytes read.

ByteWriteCount

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.

See also

IOCTL_MINIPORT_SIGNATURE_ENDURANCE_INFO

IOCTL_SCSI_MINIPORT

STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR