Solid File System

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

SolFSStorage.OpenCB method


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

SolFSStorage     See also    


Opens storage for handling via callback functions.


    not applicable;

[Plain C]
    long _stdcall StorageOpenCB(const wchar_t* FileName, unsigned long* Storage, wchar_t PathSeparator, char UseTransactions, char UseAccessTime, CallbackDataType UserData, SolFSCreateFileFunc CreateFileFunc, SolFSOpenFileFunc OpenFileFunc, SolFSCloseFileFunc CloseFileFunc, SolFSFlushFileFunc FlushFileFunc, SolFSDeleteFileFunc DeleteFileFunc, SolFSGetFileSizeFunc GetFileSizeFunc, SolFSSetFileSizeFunc SetFileSizeFunc, SolFSSeekFileFunc SeekFileFunc, SolFSReadFileFunc ReadFileFunc, SolFSWriteFileFunc WriteFileFunc);

[C++ (VCL)]
    not applicable;

[C++ (DLL/Lib)]
    not applicable;

[C++ (.NET)]
    not applicable;

    not applicable;

    not applicable;

    void openCB(String fileName)


  • [Plain C] Storage - returns handle to the opened SolFSStorage.
  • [Plain C] FileName - specifies the name of the storage file. This name will be passed back to callback / event handler.
  • [Plain C] PathSeparator - specifies the separator which will be used in further storage operations.
  • [Plain C] UseTranactions - set this parameter to True to enable transactions and journallin. Note, that transactions slow down file write operations significantly.
  • [Plain C] UseAccessTime - defines whether last access time is written to storage when the file/folder is accessed. Writing access time slows down the operations.
  • callback functions - see corresponding callback function description.

[Plain C]  Return values

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


Use this method to open SolFS storage for futher access to it via callback functions.

Before using this method you need to call Initialize method to initialize SolFS.

See also

CreateCB     Close     Initialize    

Back to top