DeviceDsmValidateInput function (ntddstor.h)
The DeviceDsmValidateInput function validates the input for a data set management (DSM) operation.
Syntax
BOOLEAN DeviceDsmValidateInput(
PDEVICE_DSM_DEFINITION Definition,
PDEVICE_DSM_INPUT Input,
ULONG InputLength
);
Parameters
Definition
Pointer to a DEVICE_DSM_DEFINITION structure that defines the operation.
Input
Pointer to the DEVICE_DSM_INPUT structure of the operation.
InputLength
The length, in bytes, of the entire input buffer.
Return value
Returns TRUE if the input is valid, or FALSE otherwise.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1803 |
Target Platform | Universal |
Header | ntddstor.h |