Solid File System

Virtual file system enigne that can be embedded into your software.

SolFSStorage.FormatFixedSize method

Filter:

Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    

Overview

Formats a fixed-size storage

Declaration

[Pascal]
    procedure FormatFixedSize( FileSize: LongWord; Flags : LongWord);

[Plain C]
    long _stdcall StorageFormatFixedSize(const wchar_t* FileName, unsigned long long FileSize, unsigned long PageSize, const wchar_t* Logo, unsigned long Flags, CallbackDataType ProgressUserData, SolFSProgressFunc ProgressFunc);
    long _stdcall StorageFormatFixedSizeCB(const wchar_t* FileName, unsigned long long FileSize, unsigned long PageSize, const wchar_t* Logo, unsigned long Flags, CallbackDataType ProgressUserData, SolFSProgressFunc ProgressFunc, CallbackDataType UserData, SolFSCreateFileFunc CreateFileFunc, SolFSOpenFileFunc OpenFileFunc, SolFSCloseFileFunc CloseFileFunc, SolFSFlushFileFunc FlushFileFunc, SolFSDeleteFileFunc DeleteFileFunc, SolFSGetFileSizeFunc GetFileSizeFunc, SolFSSetFileSizeFunc SetFileSizeFunc, SolFSSeekFileFunc SeekFileFunc, SolFSReadFileFunc ReadFileFunc, SolFSWriteFileFunc WriteFileFunc);
    long _stdcall StorageFormatFixedSizeParted(const wchar_t* FileName, unsigned long long FileSize, unsigned long PartSize, unsigned long PageSize, const wchar_t* Logo, unsigned long Flags, CallbackDataType ProgressUserData, SolFSProgressFunc ProgressFunc);

[C++ (DLL/Lib)]
    void FormatFixedSize( unsigned long long FileSize, unsigned long flags)

[C++ (VCL)]
    void __fastcall FormatFixedSize( unsigned long FileSize, unsigned long Flag);

[C++ (.NET)]
    void FormatFixedSize( unsigned long long fileSize, unsigned long flags)

[C#]
    void FormatFixedSize( ulong fileSize, uint flags)

[VB.NET]
    Sub FormatFixedSize( ByVal fileSize As System.UInt64, ByVal flags As System.UInt32)

[Java]
    void formatFixedSize( long fileSize, long flags);

Parameters

  • FileSize - the size of the storage file in bytes.
  • Flags - specifies formatting flags (see values below).
  • delegates (event handlers) - see corresponding delegate/event type description.
  • [Plain C] FileName - the name of storage file
  • [Plain C] PartSize - specifies part size in bytes or 0 if no parted storage is created. If set, the value must be a multiple of the PageSize
  • [Plain C] PageSize - supposed size of the page in storage file in bytes.
  • [Plain C] Logo -
  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • [Plain C] ProgressUserData - application-defined data which is passed to OnProgress callback.
  • [Plain C] ProgressFunc - OnProgress callback which is called during the operation.

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.

Values of Flags

Description

Use FormatFixedSize to create a fixed-sized storage and initialize its pages.

Read more about callback mode.

See also

OnProgress     PageSize     PartSize     Logo    

Back to top