STORAGE_OFFLOAD_WRITE_OUTPUT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddstor-_storage_offload_write_output)

_STORAGE_OFFLOAD_WRITE_OUTPUT structure

Description

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.

Members

OffloadWriteFlags

Flags 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.

Reserved

Reserved.

LengthCopied

Bytes copied for the write request in DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS.

Remarks

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.

See also

DEVICE_DSM_INPUT

DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS

IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES


Win32 API reference (ns-winioctl-storage_offload_write_output)

STORAGE_OFFLOAD_WRITE_OUTPUT structure

Description

Output structure for the DeviceDsmAction_OffloadWrite action of the IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES control code.

Members

OffloadWriteFlags

Out 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.

Reserved

Reserved.

LengthCopied

The length of the copied content.

See also

DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT

Device Management Structures

IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES