home *** CD-ROM | disk | FTP | other *** search
- ' Visual Basic declares file for
- '
- ' aunzip32.dll addUNZIP 32-bit decompression library
- '
- ' Copyright ⌐ 1996,1997 Stephen Darlington. All rights reserved.
- ' Written by Stephen Darlington June 1997
-
- Declare Function addUNZIP Lib "aunzip32.dll"() As Long
- Declare Function addUNZIP_ArchiveName Lib "aunzip32.dll"( ByVal filename As String) As Integer
- Declare Function addUNZIP_Decrypt Lib "aunzip32.dll"( ByVal cPassword As String) As Integer
- Declare Function addUNZIP_DisplayComment Lib "aunzip32.dll"( ByVal bFlag As Integer) As Integer
- Declare Function addUNZIP_Exclude Lib "aunzip32.dll"( ByVal files As String) As Integer
- Declare Function addUNZIP_ExcludeListFile Lib "aunzip32.dll"( ByVal cFile As String) As Integer
- Declare Function addUNZIP_ExtractTo Lib "aunzip32.dll"( ByVal cPath As String) As Integer
- Declare Function addUNZIP_Freshen Lib "aunzip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addUNZIP_GetLastError Lib "aunzip32.dll"() As Integer
- Declare Function addUNZIP_GetLastWarning Lib "aunzip32.dll"() As Integer
- Declare Function addUNZIP_Include Lib "aunzip32.dll"( ByVal files As String) As Integer
- Declare Function addUNZIP_IncludeListFile Lib "aunzip32.dll"( ByVal cFile As String) As Integer
- Declare Sub addUNZIP_Initialise Lib "aunzip32.dll" ()
- Declare Function addUNZIP_InstallCallback Lib "aunzip32.dll"( ByVal fn As Long) As Integer
- Declare Function addUNZIP_Overwrite Lib "aunzip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addUNZIP_Register Lib "aunzip32.dll"( ByVal cName As String, ByVal iNumber As Long) As Integer
- Declare Function addUNZIP_ResetDefaults Lib "aunzip32.dll"()
- Declare Function addUNZIP_RestoreAttributes Lib "aunzip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addUNZIP_RestoreStructure Lib "aunzip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addUNZIP_SetParentWindowHandle Lib "aunzip32.dll"( ByVal hwnd As Long) As Integer
- Declare Function addUNZIP_SetWindowHandle Lib "aunzip32.dll"( ByVal hwnd As Long) As Integer
- Declare Function addUNZIP_Test Lib "aunzip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addUNZIP_ToMemory Lib "aunzip32.dll"( ByVal lpStr As String, ByVal Uint32 As Long) As Integer
- Declare Function addUNZIP_Update Lib "aunzip32.dll"( ByVal iFlag As Integer) As Integer
- Declare Function addUNZIP_View Lib "aunzip32.dll"( ByVal bFlag As Integer) As Integer
-
- ' constants for addUNZIP_Overwrite(...)
- Global Const azOVERWRITE_ALL = &H0b
- Global Const azOVERWRITE_NONE = &H0c
- Global Const azOVERWRITE_QUERY = &H0a
-
- ' constants used in messages to identify library
- Global Const azLIBRARY_ADDUNZIP = 1
-
- ' constants for addUNZIP_RestoreAttributes(...)
- 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
-
- ' '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 = 0 &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
-
-