// winioctl.h
typedef struct _DUPLICATE_EXTENTS_DATA {
HANDLE FileHandle;
LARGE_INTEGER SourceFileOffset;
LARGE_INTEGER TargetFileOffset;
LARGE_INTEGER ByteCount;
} DUPLICATE_EXTENTS_DATA, *PDUPLICATE_EXTENTS_DATA;
View the official Win32 API referenceNo description available.
Contains parameters for the FSCTL_DUPLICATE_EXTENTS_TO_FILE control code that performs the Block Cloning operation.
FileHandleA handle to the source file from which the byte range is to be copied. To retrieve a file handle, use the CreateFile function.
SourceFileOffsetThe offset, in bytes, to the beginning of the range to copy from the source file.
TargetFileOffsetThe offset, in bytes, to place the copied byte range in the destination file.
ByteCountThe length, in bytes, of the range to copy.
FSCTL_DUPLICATE_EXTENTS_TO_FILE