BG_FILE_RANGE structure

The BG_FILE_RANGE structure identifies a range of bytes to download from a file.

Syntax

typedef struct {
  UINT64 InitialOffset;
  UINT64 Length;
} BG_FILE_RANGE;

Members

InitialOffset

Zero-based offset to the beginning of the range of bytes to download from a file.

Length

The length of the range, in bytes. Do not specify a zero byte length. To indicate that the range extends to the end of the file, specify BG_LENGTH_TO_EOF.

Remarks

The range must exist in the file or Delivery Optimization generates an DO_E_INVALID_RANGE error.

Requirements

Requirement Value
Minimum supported client
Windows 10, version 1709 [desktop apps only]
Minimum supported server
Windows Server, version 1709 [desktop apps only]
Header
Deliveryoptimization.h

See also

IBackgroundCopyFile2::GetFileRanges