DeviceDsmGetInputLength function (ntddstor.h)
The DeviceDsmGetInputLength function calculates the total number of bytes in a data set management (DSM) input operation.
Syntax
ULONG DeviceDsmGetInputLength(
PDEVICE_DSM_DEFINITION Definition,
ULONG ParameterBlockLength,
ULONG NumberOfDataSetRanges
);
Parameters
Definition
Pointer to a DEVICE_DSM_DEFINITION structure that defines the action.
ParameterBlockLength
The length, in bytes, of the input operation's parameter block. If the input operation has no parameters, ParameterBlockLength is set to zero.
NumberOfDataSetRanges
The number of data set ranges associated with the input operation. If the input operation has no data set ranges, NumberOfDataSetRanges is set to zero.
Return value
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).
Remarks
See Data Set Management Overview for information on how to set up and process a DSM action.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1803 |
Target Platform | Universal |
Header | ntddstor.h |