// 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 referenceNo description available.
The FILE_LEVEL_TRIM structure contains an array of byte ranges to trim for a file.
KeyThe 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.
NumRangesTotal number of range structures in Ranges.
RangesArray of trim ranges for a file.
Used as input to the FSCTL_FILE_LEVEL_TRIM control code.
KeyReserved. Set to zero (0).
NumRangesNumber 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.
RangesArray of ranges that describe the portions of the file that are to be trimmed.