SHUFFLE_FILE_DATA - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

typedef struct _SHUFFLE_FILE_DATA {
  LONGLONG StartingOffset;
  LONGLONG Length;
  ULONG    Flags;
} SHUFFLE_FILE_DATA, *PSHUFFLE_FILE_DATA;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntifs-shuffle_file_data)

Description

SHUFFLE_FILE_DATA is the input structure for the FSCTL_SHUFFLE_FILE control code.

Members

StartingOffset

Cluster-aligned byte offset of the base of the contiguous region from which to add or remove data in the file passed with the FS control code.

Length

Cluster-aligned length in bytes of the data to be added or removed. Length can be one of the following values.

Value Meaning
Greater than 0 Add the allocation to the file.
Less than 0 Remove the allocation from the file.
0 Do nothing.

Flags

Bitwise OR of flags for the shuffle operation. Flags be the following value.

Value Meaning
SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS (0x001) Valid only when adding allocation. When set, free clusters are allocated and added but have arbitrary initial contents (they are not zero-initialized).

See also

FSCTL_SHUFFLE_FILE