EldoS
 Table of Contents >  SolFSStorage.FormatFixedSize method
Navigation
Web site
Support
Table Of Contents
Send comments on this topic

SolFSStorage.FormatFixedSize method

Filter:

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

SolFSStorage     See also    

Overview

Formats a fixed-size storage

Declaration

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

[DLL]
    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);

[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 pageSize As System.UInt64, ByVal flags As System.UInt32)

Parameters

  • FileName - the name of storage file
  • FileSize - the size of the storage file in bytes.
  • PageSize - supposed size of the page in storage file in bytes.
  • Logo - a text which is placed to the first page of the SolFS file.
  • Flags - specifies formatting flags (see values below).
  • delegates (event handlers) - see corresponding delegate/event type description.
  • [DLL] Storage - handle to the storage returned by Create or Open function.
  • [DLL] ProgressUserData - application-defined data which is passed to OnProgress callback.
  • [DLL] ProgressFunc - OnProgress callback which is called during the operation.

[DLL]  Return values

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

Values of Flags

[Pascal] [DLL] [C++ (VCL)] [C++ (.NET)] [C#] [VB.NET] [ActiveX] [VB] Value Description
ffFastFormat 1 (0x1) Specifies that only the pages that make a file system structure must be initialized. When the flag is not set, all pages are initialized.

Description

Use FormatFixedSize to create a fixed-sized storage and initialize it's pages.

See also

OnProgress     PageSize     Logo    

Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2008, EldoS Corporation