_DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS structure
The DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS structure specifies the parameters for an offload write action related to the data-set attributes for a device.
This parameter structure is used in an offload write action for an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request. The Action member of the DEVICE_MANAGE_DATA_SET_ATTRIBUTES structure is set to DeviceDsmAction_OffloadWrite, and ParameterBlockOffset indicates the location of DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS.
Syntax
typedef struct _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS {
ULONG Flags;
ULONG Reserved;
ULONGLONG TokenOffset;
STORAGE_OFFLOAD_TOKEN Token;
} *PDEVICE_DSM_OFFLOAD_WRITE_PARAMETERS, DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS;
Members
Flags
Not used.
Reserved
Reserved.
TokenOffset
The offset, in bytes, within the data block specified by Token to begin writing from.
Token
The unique identifier of the data block to write from.
Remarks
The ParameterBlockOffset and ParameterBlockLength members of DEVICE_MANAGE_DATA_SET_ATTRIBUTES are set to the location and length of the DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS structure in the system buffer of the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES request.
The DataSetRangesOffset and DataSetRangesLength members of DEVICE_MANAGE_DATA_SET_ATTRIBUTES specify the DEVICE_DATA_SET_RANGE structures for the extents of the offload write.
Requirements
Windows version | Available in Windows 8 and later versions of Windows. Available in Windows 8 and later versions of Windows. |
Header | ntddstor.h (include Ntddstor.h) |