FILE_LEVEL_TRIM - NtDoc

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

typedef struct _FILE_LEVEL_TRIM {
  ULONG                 Key;
  ULONG                 NumRanges;
  FILE_LEVEL_TRIM_RANGE Ranges[1];
} FILE_LEVEL_TRIM, *PFILE_LEVEL_TRIM;
View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct _FILE_LEVEL_TRIM {
  DWORD                 Key;
  DWORD                 NumRanges;
  FILE_LEVEL_TRIM_RANGE Ranges[1];
} FILE_LEVEL_TRIM, *PFILE_LEVEL_TRIM;
View the official Win32 API reference

NtDoc

No description available.

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

_FILE_LEVEL_TRIM structure

Description

The FILE_LEVEL_TRIM structure contains an array of byte ranges to trim for a file.

Members

Key

The key for the byte range locks. Most callers will set this to 0. Remote file systems use Key for tagging a set of range locks.

NumRanges

Total number of range structures in Ranges.

Ranges

Array of trim ranges for a file.

See also

FILE_LEVEL_TRIM_RANGE

FSCTL_FILE_LEVEL_TRIM


Win32 API reference (ns-winioctl-file_level_trim)

FILE_LEVEL_TRIM structure

Description

Used as input to the FSCTL_FILE_LEVEL_TRIM control code.

Members

Key

Reserved. Set to zero (0).

NumRanges

Number of FILE_LEVEL_TRIM_RANGE entries in the Ranges member. On return should be compared with the NumRangesProcessed member of the FILE_LEVEL_TRIM_OUTPUT structure.

Ranges

Array of ranges that describe the portions of the file that are to be trimmed.

See also

FILE_LEVEL_TRIM_OUTPUT

FILE_LEVEL_TRIM_RANGE

FSCTL_FILE_LEVEL_TRIM