Copyright © 2011-2019 MultiMedia Soft

ZIP.IsProtected method

Previous pageReturn to chapter overviewNext page

Remarks

 

Checks if the ZIP file, previously opened through the ZIP.Open method, is protected through password or through AES encryption.

 

For further details about methods for ZIP management refer to the ZipMan class.

For details about using ZIP management refer to the How to manage ZIP files tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function IsProtected (

ByRef bHasPassword as Boolean,

ByRef bHasEncryption as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes IsProtected (

ref bool bHasPassword,

ref bool bHasEncryption

);


 

[C++]

public: enumErrorCodes IsProtected (

ref bool __gc *bHasPassword,

ref bool __gc *bHasEncryption

);


 

 

Parameter

Description

 

 

bHasPassword

Reference that, on return from the method call, will contain a boolean value specifying if the file is password protected

bHasEncryption

Reference that, on return from the method call, will contain a boolean value specifying if the file is protected through AES encryption

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.