DecryptionPasswordNeeded Event
Requests a decryption password, when needed.
Syntax
ANSI (Cross Platform) virtual int FireDecryptionPasswordNeeded(ArchiveReaderDecryptionPasswordNeededEventParams *e);
typedef struct {
const char *PasswordTarget;
int Cancel; int reserved; } ArchiveReaderDecryptionPasswordNeededEventParams; Unicode (Windows) virtual INT FireDecryptionPasswordNeeded(ArchiveReaderDecryptionPasswordNeededEventParams *e);
typedef struct {
LPCWSTR PasswordTarget;
BOOL Cancel; INT reserved; } ArchiveReaderDecryptionPasswordNeededEventParams;
- (void)onDecryptionPasswordNeeded:(NSString*)passwordTarget :(int*)cancel;
#define EID_ARCHIVEREADER_DECRYPTIONPASSWORDNEEDED 3 virtual INT SECUREBLACKBOXLITE_CALL FireDecryptionPasswordNeeded(LPSTR &lpszPasswordTarget, BOOL &bCancel);
Remarks
Class fires this event when it needs a password to decrypt the archive. Subscribe to this event if you expect to process encrypted archives.
Inside the event handler, please assign the correct password to DecryptionPassword property, or set Cancel parameter to true to terminate the processing.