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 |
|
See also
Send comments about this topic to Microsoft
Build date: 4/17/2012
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
- 12/18/2007
- AntonDelsink