JCL Help:NtfsZeroDataByHandle
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: NtfsZeroDataByHandle Function
Search in JCL Help
Search in all projects
Summary
Decommits storage for a specified range within a sparse file.
Pascal
function NtfsZeroDataByHandle(const Handle: THandle; const First: Int64; const Last: Int64): Boolean;
Parameters
Parameters | Description |
const Handle: THandle | Identifies the file for which you want to zero a range. |
const First: Int64 | Indicates the file offset, in bytes, of the start of the range to set to zeroes. |
const Last: Int64 | Indicates the byte offset of the first byte beyond the last zeroed byte. |
Return Value
If the function succeeds it returns True, otherwise it returns False.
Description
NtfsZeroDataByHandle tells the NTFS filesystem to 'zero' the data in the specified range for the file identified by Handle. This in effect decommits storage for the specified range. That is, the specified range no longer occupies storage space. Subsequently reading a byte in this range will return 0. The range will remain uncommitted until you write to it again.
See Also
About
Unit
Donator
Marcel van Brakel
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page