DFSSetEndOfFile
Sets file size
#include <nwdfs.h> LONG DFSSetEndOfFile ( LONG fileHandle, LONG newFileSize, LONG returnTruncatedBlocksFlag);
If the connection making the request is the only entity with the file open and if the returnTruncatedBlocksFlag is nonzero, setting a new file size that is one or more blocks less than the previous file size causes blocks (actually allocated) beyond the new defined file size to be truncated, or returned for future OS usage. If a new file size is specified that is greater than the previous file size, the newly defined file area is zero-filled, provided that actual file space is allocated. A new file size can be specified that is beyond the range of current allocated file space, or that is less than current allocated file space.