// 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 referenceNo description available.
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.
FileOffsetThe file offset of the start of the range to set to zeros, in bytes.
BeyondFinalZeroThe byte offset of the first byte beyond the last zeroed byte.
FlagsThe 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. |