// ntddstor.h
typedef struct _DEVICE_DSM_RANGE_ERROR_INFO {
ULONG Version;
ULONG Flags;
ULONG TotalNumberOfRanges;
ULONG NumberOfRangesReturned;
DEVICE_STORAGE_RANGE_ATTRIBUTES Ranges[ANYSIZE_ARRAY];
} DEVICE_DSM_RANGE_ERROR_INFO, *PDEVICE_DSM_RANGE_ERROR_INFO, DEVICE_DSM_RANGE_ERROR_OUTPUT, *PDEVICE_DSM_RANGE_ERROR_OUTPUT;
View the official Windows Driver Kit DDI referenceNo description available.
The DEVICE_DSM_RANGE_ERROR_OUTPUT (or DEVICE_DSM_RANGE_ERROR_INFO) structure stores information about whether one or more logical block ranges contain any media errors.
VersionVersion of this structure. Set to sizeof(DEVICE_DSM_RANGE_ERROR_OUTPUT).
FlagsFlags associated with the range error information. Possible values are:
| Value | Meaning |
|---|---|
| DEVICE_STORAGE_NO_ERRORS | There are no media errors in any of the requested ranges. |
TotalNumberOfRangesNumber of DEVICE_STORAGE_RANGE_ATTRIBUTES structure(s) needed to satisfy a DeviceDsmAction_GetRangeErrorInfo request.
NumberOfRangesReturnedNumber of DEVICE_STORAGE_RANGE_ATTRIBUTES structures returned in Ranges.
RangesArray of DEVICE_STORAGE_RANGE_ATTRIBUTES structure(s) in which to return media error information.
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. See DEVICE_DSM_ACTION Descriptions for more details about this action.
DEVICE_DSM_ACTION Descriptions
DEVICE_STORAGE_RANGE_ATTRIBUTES
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES