home *** CD-ROM | disk | FTP | other *** search
- ' Visual Basic declares file for
- '
- ' azip16.dll addZIP 16-bit compression library
- '
- ' Copyright ⌐ 1996,1997 Stephen Darlington. All rights reserved.
- ' Written by Stephen Darlington June 1997
-
- ' Function declarations
- Declare Function addZIP Lib "azip16.dll" () As Integer
- Declare Function addZIP_ArchiveName Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_ClearAttributes Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Comment Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_Delete Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_DeleteComment Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_DisplayComment Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Encrypt Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_Exclude Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_ExcludeListFile Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_GetLastError Lib "azip16.dll" () As Integer
- Declare Function addZIP_GetLastWarning Lib "azip16.dll" () As Integer
- Declare Function addZIP_Include Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_IncludeArchive Lib "azip16.dll" (ByVal iFlag As Integer) As Integer
- Declare Function addZIP_IncludeDirectoryEntries Lib "azip16.dll" (ByVal flag As Integer) As Integer
- Declare Function addZIP_IncludeFilesNewer Lib "azip16.dll" (ByVal DateVal As String) As Integer
- Declare Function addZIP_IncludeFilesOlder Lib "azip16.dll" (ByVal DateVal As String) As Integer
- Declare Function addZIP_IncludeHidden Lib "azip16.dll" (ByVal iFlag As Integer) As Integer
- Declare Function addZIP_IncludeListFile Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_IncludeReadOnly Lib "azip16.dll" (ByVal iFlag As Integer) As Integer
- Declare Function addZIP_IncludeSystem Lib "azip16.dll" (ByVal iFlag As Integer) As Integer
- Declare Sub addZIP_Initialise Lib "azip16.dll" ()
- Declare Function addZIP_InstallCallback Lib "azip16.dll" (ByVal cbFunction As Long) As Integer
- Declare Function addZIP_Overwrite Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Recurse Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Register Lib "azip16.dll" (ByVal lpStr As String, ByVal Uint32 As Long) As Integer
- Declare Function addZIP_SaveAttributes Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SaveStructure Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SetArchiveDate Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SetCompressionLevel Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_SetParentWindowHandle Lib "azip16.dll" (ByVal Hwnd As Integer) As Integer
- Declare Function addZIP_SetTempDrive Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_SetWindowHandle Lib "azip16.dll" (ByVal Hwnd As Integer) As Integer
- Declare Function addZIP_Span Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_Store Lib "azip16.dll" (ByVal lpStr As String) As Integer
- Declare Function addZIP_UseLFN Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
- Declare Function addZIP_View Lib "azip16.dll" (ByVal Int16 As Integer) As Integer
-
- ' constants for addZIP_SetCompressionLevel(...)
- Global Const azCOMPRESSION_MAXIMUM = &H3
- Global Const azCOMPRESSION_MINIMUM = &H1
- Global Const azCOMPRESSION_NONE = &H0
- Global Const azCOMPRESSION_NORMAL = &H2
-
- ' constants for addZIP_SaveStructure(...)
- Global Const azSTRUCTURE_ABSOLUTE = &H2
- Global Const azSTRUCTURE_NONE = &H0
- Global Const azSTRUCTURE_RELATIVE = &H1
-
- ' constants for addZIP_Overwrite(...)
- Global Const azOVERWRITE_ALL = &HB
- Global Const azOVERWRITE_NONE = &HC
- Global Const azOVERWRITE_QUERY = &HA
-
- ' constants for addZIP_SetArchiveDate()
- Global Const DATE_NEWEST = &H3
- Global Const DATE_OLDEST = &H2
- Global Const DATE_ORIGINAL = &H0
- Global Const DATE_TODAY = &H1
-
- ' constants for addZIP_IncludeXXX attribute functions
- Global Const azNEVER = &H0 ' files must never have this attribute set
- Global Const azALWAYS = &HFF ' files may or may not have this attribute set
- Global Const azYES = &H1 ' 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 = &HA
- Global Const AM_ZIPCOMMENT = &HB
- Global Const AM_ZIPPING = &HC
- Global Const AM_ZIPPED = &HD
- Global Const AM_UNZIPPING = &HE
- Global Const AM_UNZIPPED = &HF
- 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 = &H1
- Global Const azFT_NOT_ENCRYPTED = &H0
-
- ' Constants for whether file is text or binary in AM_VIEW
- Global Const azFT_BINARY = &H1
- Global Const azFT_TEXT = &H0
-
- ' 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 = &H0
- 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 = &HA
- Global Const azCM_TOKENISED = &H46
- Global Const azCM_UNKNOWN = &HFF
-
- ' Constants used in returning from a AM_QUERYOVERWRITE message
- Global Const azOW_NO = &H2
- Global Const azOW_NO_TO_ALL = &H3
- Global Const azOW_YES = &H0
- Global Const azOW_YES_TO_ALL = &H1
-
-