// ntddstor.h
ULONG DeviceDsmNumberOfDataSetRanges(
PDEVICE_DSM_INPUT Input
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeviceDsmNumberOfDataSetRanges function gets the number of data set ranges in the payload of an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.
InputPointer to a DEVICE_DSM_INPUT structure.
DeviceDsmNumberOfDataSetRanges returns the number of data set ranges in the payload. Each range is sizeof(DEVICE_DSM_RANGE).
See Data Set Management for details on how to process a DSM.
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES