OpenVolume Method

Opens a storage volume or partition formatted with the CBFS Storage filesystem as a vault. (Windows only).

Syntax

ANSI (Cross Platform)
int OpenVolume(const char* lpszVolumeName);

Unicode (Windows)
INT OpenVolume(LPCWSTR lpszVolumeName);
- (void)openVolume:(NSString*)volumeName;
#define MID_CBDRIVE_OPENVOLUME 69

CBFSSTORAGE_EXTERNAL int CBFSSTORAGE_CALL CBFSStorage_CBDrive_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method opens the storage volume or partition specified by VolumeName as a vault. If the specified volume or partition is not formatted with the CBFS Storage filesystem, this method fails with an error.

The VolumeName parameter specifies the fully-qualified name of a storage volume or partition. DOS names, such as X:, are also valid.

Note: This method cannot be called when Active is true, and cannot be called within events.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Storage 2020 C++ Edition - Version 20.0 [Build 8031]