DecryptionPasswordNeeded Event
Fires when the component needs a password to decrypt the archive.
Syntax
typedef struct { String PasswordTarget; bool Cancel; } TsbiArchiveWriterDecryptionPasswordNeededEventParams; typedef void __fastcall (__closure *TsbiArchiveWriterDecryptionPasswordNeededEvent)(System::TObject* Sender, TsbiArchiveWriterDecryptionPasswordNeededEventParams *e); __property TsbiArchiveWriterDecryptionPasswordNeededEvent OnDecryptionPasswordNeeded = { read=FOnDecryptionPasswordNeeded, write=FOnDecryptionPasswordNeeded };
Remarks
Component fires this event to request a decryption password from the application when it comes across an encrypted archive or entry.
Please assign the password to DecryptionPassword property inside the event handler, or set Cancel to true to cancel the operation.