Xceed Zip Compression Library Documentation
TestingFile event
Xceed Zip control reference > Xceed Zip control events > TestingFile event

VB example Delphi example

Description

The TestingFile event is triggered once for each file that will be verified as a result of calling the TestZipFile method. This event is triggered when reading the zip file to process. Only when all the zip file is read does the verification begins. You then receive a SkippingFile or Warning event for each inconsistency found in the zip file. If you do not get any of these events, then the zip file is valid.

None of the parameters provided by the TestingFile event are modifiable.

Declaration  

Event TestingFile(sFilename As String, sComment As String, lSize As Long, lCompressedSize As Long, nCompressionRatio As Integer,
xAttributes As xcdFileAttributes, lCRC As Long, dtLastModified As Date, dtLastAccessed As Date, dtCreated As Date,
xMethod As xcdCompressionMethod, bEncrypted As Boolean, nDiskNumber As Long)

 

Event TestingFile64(sFilename As String, sComment As String, lSizeLow As Long, lSizeHigh As Long, lCompressedSizeLow As Long,
lCompressedSizeHigh As Long, nCompressionRatio As Integer, xAttributes As xcdFileAttributes, lCRC As Long,
dtLastModified As Date, dtLastAccessed As Date, dtCreated As Date, xMethod As xcdCompressionMethod,
bEncrypted As Boolean, nDiskNumber As Long)

Declaration (DLL API)  
xcdTestingFileParams * pParams = ( xcdTestingFileParams * ) lParams;

Parameters

Parameter Description
sFilename  The path and filename of the file being verified, exactly as it is stored in the zip file.
sComment  The file's comment.
lSize  The file's original uncompressed size, in bytes.
lSizeLow
lSizeHigh (64)
The 32 low-order and high-order bits representingthe file's original uncompressed size, in bytes.
lCompressedSize  The file's compressed size, in bytes.
lCompressedSizeLow
lCompressedSizeHigh (64)
The 32 low-order and high-order bits representing the file's compressed size, in bytes.
nCompressionRatio  The compression ratio achieved for this file.
xAttributes  The file's attributes.
lCRC  The file's uncompressed data CRC checksum.
dtLastModified  The last modification date and time stamp.
dtLastAccessed  The last accessed date and time stamp.
dtCreated  The creation date and time stamp.
xMethod  The compression method.
bEncrypted  Is this an encrypted file?
lDiskNumber When dealing with spanned zip files, the disk this file is located on.

Applicable methods

TestZipFile