STORAGE_OFFLOAD_WRITE_OUTPUT structure

The STORAGE_OFFLOAD_WRITE_OUTPUT structure is the output of an IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES control code request when the Action member of DEVICE_MANAGE_DATA_SET_ATTRIBUTES is set to DeviceDsmAction_OffloadWrite.

On input, a token value in DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS uniquely identifies the data set ranges requested for writing in the DEVICE_MANAGE_DATA_SET_ATTRIBUTES structure. The STORAGE_OFFLOAD_WRITE_OUTPUT structure contains the results of the write operation.

Syntax


typedef struct _STORAGE_OFFLOAD_WRITE_OUTPUT {
  ULONG     OffloadWriteFlags;
  ULONG     Reserved;
  ULONGLONG LengthCopied;
} STORAGE_OFFLOAD_WRITE_OUTPUT, *PSTORAGE_OFFLOAD_WRITE_OUTPUT;

Members

OffloadWriteFlags

Flags indicating the result of the offload write operation. This is set to one of the following.

ValueMeaning
STORAGE_OFFLOAD_WRITE_RANGE_TRUNCATED

The offload write was performed but the range written was truncated.

STORAGE_OFFLOAD_TOKEN_INVALID

The token provided for the offload write operation was invalid.

 

Reserved

Reserved.

LengthCopied

Bytes copied for the write request in DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS.

Remarks

The STORAGE_OFFLOAD_WRITE_OUTPUT structure is returned at the beginning of the system buffer.

Requirements

Version

Available in Windows 8 and later versions of Windows.

Header

Ntddstor.h (include Ntddstor.h)

See also

DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS
DEVICE_MANAGE_DATA_SET_ATTRIBUTES
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft