DFSSetDataSize
Sets file size
#include <nwdfs.h>
LONG DFSSetDataSize (
LONG handle,
unsigned__int64 newFileSize,
LONG setSizeFlags);
Zero on success or nonzero if an error occurs.
DFSSetDataSize modifies the data size (end of file) for the open file identified by handle. If the file has more than one data stream, only the size of the data stream identified by handle is modified. To modify the size of more than one data stream, an application must open each stream independ ently and call DFSSetDataSize once for each data stream.
DFSSetDataSize works with the Novell Storage Services file system only. If handle specifies a file for any other system, DFSSetDataSize will not operate.
If the new size is smaller than the original size, the data at the end of the original data stream is truncated. If the new size is larger than the original size, the data size is expanded.
The setSizeFlags parameter provides some control over file expansion through the following bits: