DEVICE_MANAGE_DATA_SET_ATTRIBUTES structure (winioctl.h)
Input structure for the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES control code.
typedef struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES {
DWORD Size;
DEVICE_DSM_ACTION Action;
DWORD Flags;
DWORD ParameterBlockOffset;
DWORD ParameterBlockLength;
DWORD DataSetRangesOffset;
DWORD DataSetRangesLength;
} DEVICE_MANAGE_DATA_SET_ATTRIBUTES, *PDEVICE_MANAGE_DATA_SET_ATTRIBUTES, DEVICE_DSM_INPUT, *PDEVICE_DSM_INPUT;
Size
Size of this data structure. Must be set to
sizeof(DEVICE_MANAGE_DATA_SET_ATTRIBUTES)
.
Action
A valid value of type DEVICE_DATA_MANAGEMENT_SET_ACTION.
Value | Meaning |
---|---|
|
A trim action is performed. This value is not supported for user-mode applications. |
|
A notification action is performed. The additional parameters are in a DEVICE_DSM_NOTIFICATION_PARAMETERS structure. The DeviceDsmActionFlag_NonDestructive (0x80000000) is a bit flag to indicate to the driver stack that this operation is non-destructive. |
|
An offload read action is performed. The additional parameters are in a
DEVICE_DSM_OFFLOAD_READ_PARAMETERS
structure. The DeviceDsmActionFlag_NonDestructive
(0x80000000) is a bit flag to indicate to the driver stack that this operation is non-destructive.
Windows 7 and Windows Server 2008 R2: This value is not supported before Windows 8 and Windows Server 2012. |
|
An offload write action is performed. The additional parameters are in a
DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS
structure.
Windows 7 and Windows Server 2008 R2: This value is not supported before Windows 8 and Windows Server 2012. |
|
An allocation bitmap is retrieved for the first data set range specified. The
DeviceDsmActionFlag_NonDestructive (0x80000000) is a bit flag to indicate to the
driver stack that this operation is non-destructive.
Windows 7 and Windows Server 2008 R2: This value is not supported before Windows 8 and Windows Server 2012. |
|
A repair action is performed. The additional parameters are in a
DEVICE_DATA_SET_REPAIR_PARAMETERS
structure. The DeviceDsmActionFlag_NonDestructive
(0x80000000) is a bit flag to indicate to the driver stack that this operation is non-destructive.
Windows 7 and Windows Server 2008 R2: This value is not supported before Windows 8 and Windows Server 2012. |
|
A scrub action is performed. The DeviceDsmActionFlag_NonDestructive
(0x80000000) is a bit flag to indicate to the driver stack that this operation is non-destructive.
Windows 7 and Windows Server 2008 R2: This value is not supported before Windows 8 and Windows Server 2012. |
|
A resiliency action is performed. The DeviceDsmActionFlag_NonDestructive
(0x80000000) is a bit flag to indicate to the driver stack that this operation is non-destructive.
Windows 7 and Windows Server 2008 R2: This value is not supported before Windows 8 and Windows Server 2012. |
Flags
Flags for the actions.
ParameterBlockOffset
Byte offset to the start of the parameter block stored in the buffer contiguous to this structure. Must be aligned to the corresponding structure alignment. A value of zero indicates there is no parameter block and the ParameterBlockLength member must also be zero.
ParameterBlockLength
Length of the parameter block, in bytes. A value of zero indicates there is no parameter block and the ParameterBlockOffset member must also be zero.
DataSetRangesOffset
Byte offset to the start of the data set ranges block made up of an array of DEVICE_DATA_SET_RANGE structures stored in the buffer contiguous to this structure. Must be aligned to the DEVICE_DATA_SET_RANGE structure alignment. A value of zero indicates there is no data set ranges block and the DataSetRangesLength member must also be zero.
DataSetRangesLength
Length of the data set ranges block, in bytes. A value of zero indicates there is no data set ranges block and the DataSetRangesOffset member must also be zero.
The total length of the buffer that contains this structure must be at least
(sizeof(DEVICE_MANAGE_DATA_SET_ATTRIBUTES) + ParameterBlockLength + DataSetRangesLength)
.
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Header | winioctl.h (include Windows.h) |