DecryptionPasswordNeeded Event
Requests a decryption password, when needed.
Syntax
typedef struct { String PasswordTarget; bool Cancel; } TsbiArchiveReaderDecryptionPasswordNeededEventParams; typedef void __fastcall (__closure *TsbiArchiveReaderDecryptionPasswordNeededEvent)(System::TObject* Sender, TsbiArchiveReaderDecryptionPasswordNeededEventParams *e); __property TsbiArchiveReaderDecryptionPasswordNeededEvent OnDecryptionPasswordNeeded = { read=FOnDecryptionPasswordNeeded, write=FOnDecryptionPasswordNeeded };
Remarks
Component 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.