FILE_ZERO_DATA_INFORMATION_EX structure (ntifs.h)

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.

Syntax

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;

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.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header ntifs.h (include Ntifs.h)

See also

FILE_ZERO_DATA_INFORMATION

FSCTL_SET_ZERO_DATA

FltFsControlFile