SolFSStorage.IsValidStorage method
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Checks if the file is a valid storage
Declaration
[Pascal]
function IsSolFSStorage() : boolean;
[DLL]
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)]
void IsSolFSStorage()
[C#]
void IsSolFSStorage()
[VB.NET]
Sub IsSolFSStorage()
Parameters
- FileName - [DLL] - 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.
[DLL] 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.
