CBFS Storage 2020 C++ Builder Edition

Questions / Feedback?

SetFileSize Method

Sets the size of a file or alternate stream.

Syntax

void __fastcall SetFileSize(String FileName, __int64 Size, String Password);

Remarks

This method sets the size of the file or alternate stream specified by FileName.

The value passed for FileName must be a vault-local absolute path.

The Size parameter specifies the new size of the file or alternate stream, which must be greater than or equal to 0.

Applications can also change the size of a file or alternate stream using the stream objects returned by the OpenFile and OpenFileEx methods.

Note: This method can only be called when Active is true, and cannot be called within events.

Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Storage 2020 C++ Builder Edition - Version 20.0 [Build 8031]