DefaultFilePassword Property

The default encryption password to use when creating or opening files and alternate streams.

Syntax

ANSI (Cross Platform)
char* GetDefaultFilePassword();
int SetDefaultFilePassword(const char* lpszDefaultFilePassword); Unicode (Windows) LPWSTR GetDefaultFilePassword();
INT SetDefaultFilePassword(LPCWSTR lpszDefaultFilePassword);
@property (nonatomic,readwrite,assign,getter=defaultFilePassword,setter=setDefaultFilePassword:) NSString* defaultFilePassword;
- (NSString*)defaultFilePassword;
- (void)setDefaultFilePassword:(NSString*)newDefaultFilePassword;
#define PID_CBDRIVE_DEFAULTFILEPASSWORD 17

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

""

Remarks

This property specifies the default encryption password that the class should use when creating or opening files and alternate streams.

Please refer to the Encryption topic for more information.

As an alternative to using this property, applications can call the CacheFilePassword method (before a file is opened) to specify a one-time-use password, or specify file encryption passwords dynamically using the FilePasswordNeeded event.

Data Type

String

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