FSCTL_OFFLOAD_WRITE_INPUT structure

The FSCTL_OFFLOAD_WRITE_INPUT structure contains the input for the FSCTL_OFFLOAD_WRITE control code request.

Syntax

typedef struct _FSCTL_OFFLOAD_WRITE_INPUT {
  ULONG     Size;
  ULONG     Flags;
  ULONGLONG FileOffset;
  ULONGLONG CopyLength;
  ULONGLONG TransferOffset;
  UCHAR     Token[512];
} FSCTL_OFFLOAD_WRITE_INPUT, *PFSCTL_OFFLOAD_WRITE_INPUT;

Members

Size

The size of this structure. Set this member to sizeof(FSCTL_OFFLOAD_WRITE_INPUT).

Flags

This member is not used. Set to 0.

FileOffset

The position in the file to begin writing to. The offset value must be aligned to a logical sector boundary on the volume.

CopyLength

The length, in bytes, of data to write, starting at FileOffset. The length value must align to a logical sector boundary on the volume, except when the length matches end-of-file.

TransferOffset

The position in the data associated with Token to begin writing from.

Token

A byte array that contains a token structure, STORAGE_OFFLOAD_TOKEN, representing a file data range to be logically written. The contents of Token must remain unmodified between offload operations.

Remarks

CopyLength can be zero. The value of FileOffset + CopyLength is bounded by both MAXULONGLONG and MAXFILESIZE. FSCTL_OFFLOAD_WRITE will return with STATUS_INVALID_PARAMETER if these conditions are not met.

Requirements

   
Minimum supported client Available starting with Windows 8.
Header ntifs.h (include Ntifs.h, Fltkernel.h)

See Also

FSCTL_OFFLOAD_READ

FSCTL_OFFLOAD_WRITE

FSCTL_OFFLOAD_WRITE_OUTPUT

STORAGE_OFFLOAD_TOKEN