SolFSStorage.Open method
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Opens storage object.
Declaration
[Pascal]
procedure Open(OpenMode: TStorageOpenMode);
[DLL]
long _stdcall StorageOpen(const wchar_t* FileName, unsigned long* Storage,
wchar_t PathSeparator, char UseTransactions, char UseAccessTime);
[C++ (DLL/Lib)]
void Open(StorageOpenMode OpenMode);
[C++ (VCL)]
void Open(TStorageOpenMode OpenMode);
[C++ (.NET)]
void Open(StorageOpenMode OpenMode);
[C#]
void Open(StorageOpenMode OpenMode);
[VB.NET]
Sub Open(OpenMode As StorageOpenMode)
Parameters
- OpenMode - specifies the mode in which the storage is opened.
- [DLL] Storage - returns handle to the opened SolFSStorage.
- [DLL] FileName - specifies the name of the storage file on physical media.
- [DLL] PathSeparator - specifies the separator which will be used in further storage operations.
- [DLL] UseTranactions - set this parameter to True to enable transactions and journalling. Note, that transactions slow down file write operations significantly.
- [DLL] UseAccessTime - defines whether last access time is written to storage when the file/folder is accessed. Writing access time slows down the operations.
Values of StorageOpenMode
[Pascal] [DLL] [C++ (VCL)] [C++ (.NET)] [C#] [VB.NET] [ActiveX] [VB]
Value
Description
somCreateNew
0
New storage is created. If storage file already exists, operation fails
somCreateAlways
1
Create new storage if it doesn't exist, otherwise truncate existing storage
somOpenExisting
2
Open storage if it exists, otherwise fail.
somOpenAlways
3
Open storage if it exists, create storage file is it doesn't exist yet
[DLL] Return values
0 if the function succeeded or one of Error codes if the function failed.
Description
Use this method to open or create SolFSStorage. All parameters are taken from the properties of the object set before.
