// ntddstor.h
ULONG DeviceDsmGetInputLength(
PDEVICE_DSM_DEFINITION Definition,
ULONG ParameterBlockLength,
ULONG NumberOfDataSetRanges
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeviceDsmGetInputLength function calculates the total number of bytes in a data set management (DSM) input operation.
DefinitionPointer to a DEVICE_DSM_DEFINITION structure that defines the action.
ParameterBlockLengthThe length, in bytes, of the input operation's parameter block. If the input operation has no parameters, ParameterBlockLength is set to zero.
NumberOfDataSetRangesThe number of data set ranges associated with the input operation. If the input operation has no data set ranges, NumberOfDataSetRanges is set to zero.
DeviceDsmGetInputLength returns the total number of bytes required for the input operation: the length of the DEVICE_DSM_INPUT structure, plus the length of the parameter block (if any), plus the length of all data set ranges (if any).
See Data Set Management Overview for information on how to set up and process a DSM action.