FILE_ZERO_DATA_INFORMATION_EX - NtDoc

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

typedef struct _FILE_ZERO_DATA_INFORMATION_EX {
  LARGE_INTEGER FileOffset;
  LARGE_INTEGER BeyondFinalZero;
  ULONG         Flags;
} FILE_ZERO_DATA_INFORMATION_EX, *PFILE_ZERO_DATA_INFORMATION_EX;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

_FILE_ZERO_DATA_INFORMATION_EX structure

Description

Contains a range of a file to set to zeros. This structure is used by the FSCTL_SET_ZERO_DATA control code. It's similar to FILE_ZERO_DATA_INFORMATION, but contains an additional Flags member.

Members

FileOffset

The file offset of the start of the range to set to zeros, in bytes.

BeyondFinalZero

The byte offset of the first byte beyond the last zeroed byte.

Flags

The following flags are supported:

Flag Description
FILE_ZERO_DATA_INFORMATION_FLAG_PRESERVE_CACHED_DATA Indicates not to purge the contents of the cache corresponding to this range of the file. Only drivers can set this flag.

See also

FILE_ZERO_DATA_INFORMATION

FSCTL_SET_ZERO_DATA

FltFsControlFile