1 out of 1 rated this helpful - Rate this topic

FILE_ZERO_DATA_INFORMATION structure

Applies to: desktop apps only

Contains a range of a file to set to zeros. This structure is used by the FSCTL_SET_ZERO_DATA control code

Syntax

typedef struct _FILE_ZERO_DATA_INFORMATION {
  LARGE_INTEGER FileOffset;
  LARGE_INTEGER BeyondFinalZero;
} FILE_ZERO_DATA_INFORMATION, *PFILE_ZERO_DATA_INFORMATION;

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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

WinIoCtl.h

See also

FSCTL_SET_ZERO_DATA
Sparse Files

 

 

Send comments about this topic to Microsoft

Build date: 4/17/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
C# Sample
I used the above in my blog entry showing a C# sample of how to create and use NTFS sparse files from .NET: http://blogs.msdn.com/codedebate/archive/2007/12/18/6797175.aspx