// ntddstor.h
BOOLEAN DeviceDsmAddDataSetRange(
PDEVICE_DSM_INPUT Input,
ULONG InputLength,
LONGLONG Offset,
ULONGLONG Length
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeviceDsmAddDataSetRange function adds a data set range to the system buffer for an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.
InputPointer to the DEVICE_DSM_INPUT structure to which to add the data set range.
InputLengthThe length, in bytes, of the entire payload of the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.
OffsetThe offset from the start of the DEVICE_DSM_INPUT structure at which the data set range starts, in bytes.
LengthThe length, in bytes, of the data set range.
Returns TRUE if the data set range was successfully added, or FALSE otherwise.
If the DSM has range data, call DeviceDsmAddDataSetRange for each range to add it to the system buffer. See Data Set Management Overview for the layout of the system buffer for an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES