Contents - Index - Previous - Next


GetDecryptHeaderPtr method

 

Applies to

TVCLUnZip component

 

Declaration

procedure GetDecryptHeaderPtr(Index: Integer; dhPtr: BytePtr);

 

Description

This method is mainly for use in BCB and is analogous to the DecryptHeader which should be used if developing in Delphi. 

 

You should allocate dhPtr prior to calling this method, as a 12 byte array.  

 

This method should only be called for files that are password encrypted, however if you do call this method for a file that is not password encrypted, the 12 byte array that dhPtr points to, will contain all zero's. 

 

This function is used in conjunction with the GetDecryptHeaderByteByPtr method to determine if a password matches the password key of a file.  This function is only needed if doing low level work with passwords and encrypted zip files.  

 

See Also:

  

DecryptHeader 

DecryptHeaderByte 

GetDecryptHeaderByteByPtr