// ntifs.h
typedef struct _REARRANGE_FILE_DATA {
ULONGLONG SourceStartingOffset;
ULONGLONG TargetOffset;
HANDLE SourceFileHandle;
ULONG Length;
ULONG Flags;
} REARRANGE_FILE_DATA, *PREARRANGE_FILE_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
REARRANGE_FILE_DATA is the input structure for the FSCTL_REARRANGE_FILE control code.
SourceStartingOffsetCluster-aligned byte offset of the base of the contiguous source region in the source file to move to the target location of the target file.
TargetOffsetCluster-aligned byte offset of the point to insert the source region.
SourceFileHandleHandle to the alternate file to move the source region clusters from. This feature is not currently supported so SourceFileHandle must be set to NULL, which indicates that the source region is from the same file.
LengthCluster-aligned length in bytes of the source region.
FlagsReserved for future use; must be set to zero.