// ntddstor.h
BOOLEAN DeviceDsmValidateInput(
PDEVICE_DSM_DEFINITION Definition,
PDEVICE_DSM_INPUT Input,
ULONG InputLength
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeviceDsmValidateInput function validates the input for a data set management (DSM) operation.
DefinitionPointer to a DEVICE_DSM_DEFINITION structure that defines the operation.
InputPointer to the DEVICE_DSM_INPUT structure of the operation.
InputLengthThe length, in bytes, of the entire input buffer.
Returns TRUE if the input is valid, or FALSE otherwise.
The input is passed in the payload of an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request. Before processing the request, the handler should first call DeviceDsmValidateInput to ensure that the input is valid based on the operation's Definition and Input (whose Action members must match), including the DEVICE_DSM_INPUT structure that Input points to, and the parameter block and data set ranges, if any, that follow the DEVICE_DSM_INPUT structure.
See Data Set Management Overview for more details on handling a DSM.
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES