// ntddstor.h
VOID DeviceDsmInitializeInput(
PDEVICE_DSM_DEFINITION Definition,
PDEVICE_DSM_INPUT Input,
ULONG InputLength,
ULONG Flags,
PVOID Parameters,
ULONG ParameterBlockLength
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeviceDsmInitializeInput function initializes the DEVICE_DSM_INPUT structure and parameter block, if any, of a data set management (DSM) operation.
DefinitionPointer to a DEVICE_DSM_DEFINITION structure that defines the action.
InputPointer to a caller-allocated DEVICE_DSM_INPUT input structure.
InputLengthThe length, in bytes, of the entire input buffer for the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.
FlagsFlags for global control actions for the input. This value can be one of the DEVICE_DSM_FLAG_XXX values defined in ntddstor.h.
ParametersParameters for initializing the parameter block of the input structure. The format of the parameter block depends on the action defined by Definition. See DEVICE_DSM_ACTION Descriptions for a list of actions and their parameter block formats.
ParameterBlockLengthThe length, in bytes, of the parameter block. If the action defined by Definition does not have parameters, ParameterBlockLength is set to zero.
To add a data set range to the input operation, call DeviceDsmAddDataSetRange.
See Data Set Management Overview for information on how to set up and process a DSM action.
DEVICE_DSM_ACTION Descriptions
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES