ZIP.IsProtected method |
|
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 ZIP object.
For details about using ZIP management refer to the How to manage ZIP files tutorial.
Syntax
[Visual Basic] control.ZIP.IsProtected ( bHasPassword as enumBoolean, bHasEncryption as enumBoolean ) as enumErrorCodes |
[C++] short control.ZIP.IsProtected ( long *bHasPassword, long *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 get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |