DecryptionPasswordNeeded Event
Requests a decryption password, when needed.
Syntax
type TDecryptionPasswordNeededEvent = procedure ( Sender: TObject; const PasswordTarget: String; var Cancel: Boolean ) of Object;
property OnDecryptionPasswordNeeded: TDecryptionPasswordNeededEvent 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.