DeviceDsmAddDataSetRange - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

BOOLEAN DeviceDsmAddDataSetRange(
  PDEVICE_DSM_INPUT Input,
  ULONG             InputLength,
  LONGLONG          Offset,
  ULONGLONG         Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddstor-devicedsmadddatasetrange)

DeviceDsmAddDataSetRange function

Description

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

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.

See also

Data Set Management Overview

DEVICE_DSM_INPUT

DEVICE_DSM_RANGE

IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES