UnmountOnTermination Property

Whether the virtual drive should be unmounted if the application terminates. (Windows only).

Syntax

ANSI (Cross Platform)
int GetUnmountOnTermination();
int SetUnmountOnTermination(int bUnmountOnTermination); Unicode (Windows) BOOL GetUnmountOnTermination();
INT SetUnmountOnTermination(BOOL bUnmountOnTermination);
@property (nonatomic,readwrite,assign,getter=unmountOnTermination,setter=setUnmountOnTermination:) BOOL unmountOnTermination;
- (BOOL)unmountOnTermination;
- (void)setUnmountOnTermination:(BOOL)newUnmountOnTermination;
#define PID_CBDRIVE_UNMOUNTONTERMINATION 37

CBFSSTORAGE_EXTERNAL void* CBFSSTORAGE_CALL CBFSStorage_CBDrive_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
CBFSSTORAGE_EXTERNAL int CBFSSTORAGE_CALL CBFSStorage_CBDrive_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

TRUE

Remarks

This property specifies whether the CBFS Storage driver should automatically unmount the virtual drive (closing all handles and other resources associated with it) if the application terminates.

If this property is disabled, applications may need to call the ForceUnmount method after a crash (if there was a file-based vault open and mounted as a virtual drive when the crash occurred).

Note: This property cannot be disabled on non-Windows platforms.

Data Type

Boolean

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