Solid File System

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

SolFSStorage.IsSolFSStorage method

Filter:

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

SolFSStorage     See also    

Overview

Checks if the file is a valid storage

Declaration

[Pascal]
    function IsSolFSStorage() : boolean;

[Plain C]
    long _stdcall StorageIsValidStorage(const wchar_t* FileName);
    long _stdcall StorageIsValidStorageCB(const wchar_t* FileName, 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)]
    bool IsSolFSStorage();

[C++ (VCL)]
    bool __fastcall IsSolFSStorage();

[C++ (.NET)]
    bool IsSolFSStorage()

[C#]
    bool IsSolFSStorage()

[VB.NET]
    Function IsSolFSStorage() As Boolean

[Java]
    boolean isSolFSStorage()

Parameters

  • FileName - [Plain C] - the name of storage file.
  • delegates (event handlers) - see corresponding delegate/event type description.

Return value

    True if specified file seems to be a valid SolFS storage and False if not.

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.

Description

Use IsSolFSStorage to check if the file is a valid SolFS storage, without actually opening the storage. In all interfaces except DLL/Lib the name of the storage file must be set using FileName property before calling this method. In DLL/Lib call there's a Filename parameter for this.
The method can throw exception (except DLL/Lib version) if the error other than "not a SolFS storage" happens.
Note, that this method doesn't perform CheckAndRepair operation on the storage to ensure, that the storage is completely valid. Call CheckAndRepair separately when needed.

See also

FileName     Open     CheckAndRepair    

Back to top