// ntddstor.h
typedef struct _STORAGE_OFFLOAD_WRITE_OUTPUT {
ULONG OffloadWriteFlags;
ULONG Reserved;
ULONGLONG LengthCopied;
} STORAGE_OFFLOAD_WRITE_OUTPUT, *PSTORAGE_OFFLOAD_WRITE_OUTPUT;
View the official Windows Driver Kit DDI reference// winioctl.h
typedef struct _STORAGE_OFFLOAD_WRITE_OUTPUT {
DWORD OffloadWriteFlags;
DWORD Reserved;
DWORDLONG LengthCopied;
} STORAGE_OFFLOAD_WRITE_OUTPUT, *PSTORAGE_OFFLOAD_WRITE_OUTPUT;
View the official Win32 API referenceNo description available.
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_DSM_INPUT is set to DeviceDsmAction_OffloadWrite.
OffloadWriteFlagsFlags indicating the result of the offload write operation. This is set to one of the following.
| Value | Meaning |
|---|---|
| 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. |
ReservedReserved.
LengthCopiedBytes copied for the write request in DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS.
On input, a token value in DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS uniquely identifies the data set ranges requested for writing in the DEVICE_DSM_INPUT structure. The STORAGE_OFFLOAD_WRITE_OUTPUT structure contains the results of the write operation.
The STORAGE_OFFLOAD_WRITE_OUTPUT structure is returned at the beginning of the system buffer.
DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES
Output structure for the DeviceDsmAction_OffloadWrite action of the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES control code.
OffloadWriteFlagsOut flags
| Value | Meaning |
|---|---|
| STORAGE_OFFLOAD_WRITE_RANGE_TRUNCATED 0x0001 |
The range written is less than the range specified. |
| STORAGE_OFFLOAD_TOKEN_INVALID 0x0002 |
The token specified is not valid. |
ReservedReserved.
LengthCopiedThe length of the copied content.
DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT
IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES