Discuss this help topic in SecureBlackbox Forum


TElZipReader     See also     

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

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


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

    Event OnPasswordNeeded As TSBZipPasswordNeededEvent
    Delegate Sub TSBZipPasswordNeededEvent(ByVal Sender As Object, ByVal Param As Object, ByRef Password As String, ByRef Cancel As Boolean)

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

    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);

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

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


  • 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.


    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