Discuss this help topic in SecureBlackbox Forum

TElZipReader.OnPasswordNeeded

TElZipReader     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when the password for decryption is required.

Declaration

[C#]
    event TSBZipPasswordNeededEvent OnPasswordNeeded;
    delegate void TSBZipPasswordNeededEvent(Object Sender, Object Param, ref string Password, ref bool Cancel);

[VB.NET]
    Event OnPasswordNeeded As TSBZipPasswordNeededEvent
    Delegate Sub TSBZipPasswordNeededEvent(ByVal Sender As Object, ByVal Param As Object, ByRef Password As String, ByRef Cancel As Boolean)

[Pascal]
    property OnPasswordNeeded : TSBZipPasswordNeededEvent;
    TSBZipPasswordNeededEvent = procedure(Sender: TObject; Param : pointer; var Password : string; var Cancel : boolean) of object;

[C++]
    void get_OnPasswordNeeded(TSBZipPasswordNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnPasswordNeeded(TSBZipPasswordNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBZipPasswordNeededEvent)(void * _ObjectData, TObjectHandle Sender, void * Param, char * pcPassword, int32_t &szPassword, int8_t &Cancel);

[PHP]
    TSBZipPasswordNeededEvent|callable|NULL get_OnPasswordNeeded()
    void set_OnPasswordNeeded(TSBZipPasswordNeededEvent|callable|NULL $Value)
    callable TSBZipPasswordNeededEvent(TObject $Sender, TSBPointer|NULL $Param, string &$Password, bool &$Cancel)

[Java]
    TSBZipPasswordNeededEvent getOnPasswordNeeded();
    void setOnPasswordNeeded(TSBZipPasswordNeededEvent Value);
    TSBZipPasswordNeededEvent.Callback OnPasswordNeeded = new TSBZipPasswordNeededEvent.Callback() {
        public void TSBZipPasswordNeededEventCallback(TObject Sender, TObject Param, TSBString Password, TSBBoolean Cancel) {
            //...
        }
    }

Parameters

  • Param - reference to the object which contains additional information about the archive entry.
  • Password - password to the archive.
  • Cancel - set this parameter to True if the password request should not be repeated.
  • pcPassword - password to the archive.
  • szPassword - the length of pcPassword.

Description

    This event is fired by TElZipReader when it requires a password to decrypt the archive. If the Cancel parameter is set to True, the request will de made only once.

See also:     OnUserActionNeeded    

Discuss this help topic in SecureBlackbox Forum