// 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 referenceNo description available.
Contains the offset and length of a trim range for a file.
OffsetByte offset from the front of the given file to trim at.
LengthLength in bytes to trim from the given offset.
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.
Specifies a range of a file that is to be trimmed.
OffsetOffset, in bytes, from the start of the file for the range to be trimmed.
LengthLength, in bytes, for the range to be trimmed.
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).