// ntddstor.h
typedef struct _DEVICE_STORAGE_RANGE_ATTRIBUTES {
ULONGLONG LengthInBytes;
union {
ULONG AllFlags;
struct {
ULONG IsRangeBad : 1;
} DUMMYSTRUCTNAME;
} DUMMYUNIONNAME;
ULONG Reserved;
} DEVICE_STORAGE_RANGE_ATTRIBUTES, *PDEVICE_STORAGE_RANGE_ATTRIBUTES;
View the official Windows Driver Kit DDI referenceNo description available.
The DEVICE_STORAGE_RANGE_ATTRIBUTES structure contains the media error status for a logical block range.
LengthInBytesLength of the logical block range, in bytes, that the error status in IsRangeBad applies to.
DUMMYUNIONNAMEDUMMYUNIONNAME.AllFlagsDo not use.
DUMMYUNIONNAME.DUMMYSTRUCTNAMEDUMMYUNIONNAME.DUMMYSTRUCTNAME.IsRangeBadIndicates whether the logical block range contains a media error. Set to 1 when the logical block range contains an error; otherwise, set to 0.
ReservedReserved for future use; do not use.
The output block in the payload of an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request is formatted as a DEVICE_DSM_RANGE_ERROR_OUTPUT structure when the action is DeviceDsmAction_GetRangeErrorInfo. The driver returns the error status for the logical block ranges in an array of DEVICE_STORAGE_RANGE_ATTRIBUTES structures. The array elements are sorted so that their order corresponds to the order of the input ranges.
See DEVICE_DSM_ACTION Descriptions for more details about this action.
DEVICE_DSM_ACTION Descriptions
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES