FILE_LEVEL_TRIM_RANGE - NtDoc

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

typedef struct _FILE_LEVEL_TRIM_RANGE {
  ULONGLONG Offset;
  ULONGLONG Length;
} FILE_LEVEL_TRIM_RANGE, *PFILE_LEVEL_TRIM_RANGE;
View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct _FILE_LEVEL_TRIM_RANGE {
  DWORDLONG Offset;
  DWORDLONG Length;
} FILE_LEVEL_TRIM_RANGE, *PFILE_LEVEL_TRIM_RANGE;
View the official Win32 API reference

NtDoc

No description available.

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

_FILE_LEVEL_TRIM_RANGE structure

Description

Contains the offset and length of a trim range for a file.

Members

Offset

Byte offset from the front of the given file to trim at.

Length

Length in bytes to trim from the given offset.

Remarks

Due to alignment requirements, the file system may reduce the of the trim range to a multiple of PAGE_SIZE <= Length. Also, Offset will be adjusted to the next page boundary if its initial value is not on page boundary.

See also

FILE_LEVEL_TRIM


Win32 API reference (ns-winioctl-file_level_trim_range)

FILE_LEVEL_TRIM_RANGE structure

Description

Specifies a range of a file that is to be trimmed.

Members

Offset

Offset, in bytes, from the start of the file for the range to be trimmed.

Length

Length, in bytes, for the range to be trimmed.

Remarks

Before the trim operation is passed to the underlying storage system the input ranges are reduced to be aligned to page boundaries (4,096 bytes on 32-bit and x64-based editions of Windows, 8,192 bytes on Itanium-Based editions of Windows).

See also

FILE_LEVEL_TRIM

FILE_LEVEL_TRIM_OUTPUT

FSCTL_FILE_LEVEL_TRIM