DeviceDsmAddDataSetRange function (ntddstor.h)

The DeviceDsmAddDataSetRange function adds a data set range to the system buffer for an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.

Syntax

BOOLEAN DeviceDsmAddDataSetRange(
  PDEVICE_DSM_INPUT Input,
  ULONG             InputLength,
  LONGLONG          Offset,
  ULONGLONG         Length
);

Parameters

Input

Pointer to the DEVICE_DSM_INPUT structure to which to add the data set range.

InputLength

The length, in bytes, of the entire payload of the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.

Offset

The offset from the start of the DEVICE_DSM_INPUT structure at which the data set range starts, in bytes.

Length

The length, in bytes, of the data set range.

Return value

Returns TRUE if the data set range was successfully added, or FALSE otherwise.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803
Target Platform Universal
Header ntddstor.h

See also

Data Set Management Overview

DEVICE_DSM_INPUT

DEVICE_DSM_RANGE

IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES