DeviceDsmGetNumberOfDataSetRanges function (ntddstor.h)

The DeviceDsmGetNumberOfDataSetRanges function gets the number of data set ranges required for the specified data set management (DSM) operation.

Syntax

ULONG DeviceDsmGetNumberOfDataSetRanges(
  PDEVICE_DSM_DEFINITION Definition,
  ULONG                  InputLength,
  ULONG                  ParameterBlockLength
);

Parameters

Definition

Pointer to a DEVICE_DSM_DEFINITION structure that defines the operation.

InputLength

The length, in bytes, of the entire input buffer.

ParameterBlockLength

The length, in bytes, of a parameter block.

Return value

DeviceDsmGetNumberOfDataSetRanges returns the number of data set ranges required for the specified operation. Each range is sizeof(DEVICE_DSM_RANGE).

Remarks

See Data Set Management for details on how to process a DSM.

Requirements

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

See also

Data Set Management

DEVICE_DSM_DEFINITION

DEVICE_DSM_RANGE

IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES