VaultState Property
Information about the state of the vault.
Syntax
ANSI (Cross Platform) int GetVaultState(); Unicode (Windows) INT GetVaultState();
@property (nonatomic,readonly,assign,getter=vaultState) int vaultState; - (int)vaultState;
#define PID_CBVAULT_VAULTSTATE 27 CBFSVAULT_EXTERNAL void* CBFSVAULT_CALL CBFSVault_CBVault_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
Default Value
0
Remarks
This property reflects the current state of the vault; its value consists of one or more of the following flags, OR'd together:
CBFSSTORAGE_ST_FIXED_SIZE | 0x00000001 | The vault is fixed-size. |
CBFSSTORAGE_ST_READ_ONLY | 0x00000002 | The vault was opened in read-only mode.
Please refer to the ReadOnly property for more information. |
CBFSSTORAGE_ST_CORRUPTED | 0x00000004 | The vault is corrupted.
Applications can use the CheckAndRepair method to try to repair vault corruption. Please refer to the Vault Corruption topic for more information. |
CBFSSTORAGE_ST_TRANSACTIONS_USED | 0x00000008 | The vault was opened in journaling mode.
Please refer to the UseJournaling property for more information. |
CBFSSTORAGE_ST_ACCESS_TIME_USED | 0x00000010 | Last access times are being tracked.
Please refer to the UseAccessTime property for more information. |
CBFSSTORAGE_ST_ENCRYPTED | 0x00000020 | The vault is encrypted with whole-vault encryption.
Please refer to the Encryption topic for more information. |
CBFSSTORAGE_ST_VALID_PASSWORD_SET | 0x00000040 | The correct whole-vault encryption password has been provided.
Please refer to the Encryption topic for more information. |
CBFSSTORAGE_ST_PHYSICAL_VOLUME | 0x00000080 | The vault is backed by a storage volume or partition formatted with the CBFS Vault filesystem.
This flag is not used. |
CBFSSTORAGE_ST_PARTED | 0x00000100 | The vault's contents are split across multiple files on disk.
Please refer to the Multipart Vaults topic for more information. |
This property is read-only and not available at design time.
Data Type
Integer