home *** CD-ROM | disk | FTP | other *** search
- ' Visual Basic declares file for
- '
- ' azip32.dll addZIP 32-bit compression library
- '
- ' Copyright ⌐ 1996,1997 Stephen Darlington. All rights reserved.
- ' Written by Stephen Darlington June 1997
-
- ' Function declarations
- Declare Function addZIP Lib "azip32.dll"() As Integer
- Declare Function addZIP_ArchiveName Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_ClearAttributes Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Comment Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_Delete Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_DeleteComment Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_DisplayComment Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Encrypt Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_Exclude Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_ExcludeListFile Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_GetLastError Lib "azip32.dll"() As Integer
- Declare Function addZIP_GetLastWarning Lib "azip32.dll"() As Integer
- Declare Function addZIP_Include Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_IncludeArchive Lib "azip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addZIP_IncludeDirectoryEntries Lib "azip32.dll"( ByVal flag As Integer) As Integer
- Declare Function addZIP_IncludeFilesNewer Lib "azip32.dll"( ByVal DateVal As String) As Integer
- Declare Function addZIP_IncludeFilesOlder Lib "azip32.dll"( ByVal DateVal As String) As Integer
- Declare Function addZIP_IncludeHidden Lib "azip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addZIP_IncludeListFile Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_IncludeReadOnly Lib "azip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addZIP_IncludeSystem Lib "azip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Sub addZIP_Initialise Lib "azip32.dll" ()
- Declare Function addZIP_InstallCallback Lib "azip32.dll"( ByVal cbFunction As Long) As Integer
- Declare Function addZIP_Overwrite Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Recurse Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Register Lib "azip32.dll"( ByVal lpStr As String, ByVal Uint32 As Long) As Integer
- Declare Function addZIP_SaveAttributes Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SaveStructure Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SetArchiveDate Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SetCompressionLevel Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SetParentWindowHandle Lib "azip32.dll"( ByVal Hwnd As Long) As Integer
- Declare Function addZIP_SetTempDrive Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_SetWindowHandle Lib "azip32.dll"( ByVal Hwnd As Long) As Integer
- Declare Function addZIP_Span Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Store Lib "azip32.dll"( ByVal lpStr As String) As Integer
- Declare Function addZIP_UseLFN Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
- Declare Function addZIP_View Lib "azip32.dll"( ByVal Int16 As Integer) As Integer
-
- ' constants for addZIP_SetCompressionLevel(...)
- Global Const azCOMPRESSION_MAXIMUM = &H03
- Global Const azCOMPRESSION_MINIMUM = &H01
- Global Const azCOMPRESSION_NONE = &H00
- Global Const azCOMPRESSION_NORMAL = &H02
-
- ' constants for addZIP_SaveStructure(...)
- Global Const azSTRUCTURE_ABSOLUTE = &H02
- Global Const azSTRUCTURE_NONE = &H00
- Global Const azSTRUCTURE_RELATIVE = &H01
-
- ' constants for addZIP_Overwrite(...)
- Global Const azOVERWRITE_ALL = &H0b
- Global Const azOVERWRITE_NONE = &H0c
- Global Const azOVERWRITE_QUERY = &H0a
-
- ' constants for addZIP_SetArchiveDate()
- Global Const DATE_NEWEST = &H03
- Global Const DATE_OLDEST = &H02
- Global Const DATE_ORIGINAL = &H00
- Global Const DATE_TODAY = &H01
-
- ' constants for addZIP_IncludeXXX attribute functions
- Global Const azNEVER = &H00 ' files must never have this attribute set
- Global Const azALWAYS = &Hff ' files may or may not have this attribute set
- Global Const azYES = &H01 ' files must always have this attribute set
-
- ' constants for addZIP_ClearAttributes(...)
- Global Const azATTR_NONE = 0
- Global Const azATTR_READONLY = 1
- Global Const azATTR_HIDDEN = 2
- Global Const azATTR_SYSTEM = 4
- Global Const azATTR_ARCHIVE = 32
- Global Const azATTR_ALL = 39
-
- ' constants used in messages to identify library
- Global Const azLIBRARY_ADDZIP = 0
-
- ' 'messages' used to provide information to the calling program
- Global Const AM_SEARCHING = &H0a
- Global Const AM_ZIPCOMMENT = &H0b
- Global Const AM_ZIPPING = &H0c
- Global Const AM_ZIPPED = &H0d
- Global Const AM_UNZIPPING = &H0e
- Global Const AM_UNZIPPED = &H0f
- Global Const AM_TESTING = &H10
- Global Const AM_TESTED = &H11
- Global Const AM_DELETING = &H12
- Global Const AM_DELETED = &H13
- Global Const AM_DISKCHANGE = &H14
- Global Const AM_VIEW = &H15
- Global Const AM_ERROR = &H16
- Global Const AM_WARNING = &H17
- Global Const AM_QUERYOVERWRITE =&H18
- Global Const AM_COPYING = &H19
- Global Const AM_COPIED = &H1a
- Global Const AM_ABORT = &Hff
-
- ' Constants for whether file is encrypted or not in AM_VIEW
- Global Const azFT_ENCRYPTED = &H01
- Global Const azFT_NOT_ENCRYPTED = &H00
-
- ' Constants for whether file is text or binary in AM_VIEW
- Global Const azFT_BINARY = &H01
- Global Const azFT_TEXT = &H00
-
- ' Constants for compression method in AM_VIEW
- Global Const azCM_DEFLATED_FAST = &H52
- Global Const azCM_DEFLATED_MAXIMUM = &H51
- Global Const azCM_DEFLATED_NORMAL = &H50
- Global Const azCM_DEFLATED_SUPERFAST = &H53
- Global Const azCM_IMPLODED = &H3c
- Global Const azCM_NONE = &H00
- Global Const azCM_REDUCED_1 = &H14
- Global Const azCM_REDUCED_2 = &H1e
- Global Const azCM_REDUCED_3 = &H28
- Global Const azCM_REDUCED_4 = &H32
- Global Const azCM_SHRUNK = &H0a
- Global Const azCM_TOKENISED = &H46
- Global Const azCM_UNKNOWN = &Hff
-
- ' Constants used in returning from a AM_QUERYOVERWRITE message
- Global Const azOW_NO = &H02
- Global Const azOW_NO_TO_ALL = &H03
- Global Const azOW_YES = &H00
- Global Const azOW_YES_TO_ALL = &H01
-