home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 37 / hot37.iso / FICHEROS / 9TOOL / ADDZIP.ZIP / vdbase / AZ32.H < prev    next >
C/C++ Source or Header  |  1998-02-01  |  6KB  |  154 lines

  1. *******************************************************************************
  2. *  FILE:         addzip.h (for 32 bit Visual dBase)
  3. *
  4. * C/C++ header file for addZIP compression libraries
  5. *
  6. * Copyright 1995,1997 Stephen Darlington. All rights reserved.
  7. *  USAGE:        (in a file)
  8. *                #include <addzip.h>
  9. *******************************************************************************
  10.  
  11. #ifndef _ADDZIP_H_
  12. #define _ADDZIP_H_
  13.  
  14. // constants for addZIP_SetCompressionLevel(...)
  15. #define azCOMPRESSION_NONE    0x00
  16. #define azCOMPRESSION_MINIMUM 0x01
  17. #define azCOMPRESSION_NORMAL  0x02
  18. #define azCOMPRESSION_MAXIMUM 0x03
  19.  
  20. // constants for addZIP_SaveStructure(...)
  21. #define azSTRUCTURE_NONE     0x00
  22. #define azSTRUCTURE_RELATIVE 0x01
  23. #define azSTRUCTURE_ABSOLUTE 0x02
  24.  
  25. // constants for addZIP_Overwrite(...)
  26. #define azOVERWRITE_QUERY 0x0a
  27. #define azOVERWRITE_ALL   0x0b
  28. #define azOVERWRITE_NONE  0x0c
  29.  
  30. // constants for addZIP_SetArchiveDate();
  31. #define DATE_ORIGINAL  0x00
  32. #define DATE_TODAY     0x01
  33. #define DATE_OLDEST    0x02
  34. #define DATE_NEWEST    0x03
  35.  
  36. // constants for addZIP_IncludeXXX attribute functions
  37. #define azNEVER  0x00  // files must never have this attribute set
  38. #define azYES    0x01  // files may or may not have this attribute set
  39. #define azALWAYS 0xff  // files must always have this attribute set
  40.  
  41. // constants for addZIP_ClearAttributes(...)
  42. #define azATTR_NONE 0
  43. #define azATTR_READONLY 1
  44. #define azATTR_HIDDEN 2
  45. #define azATTR_SYSTEM 4
  46. #define azATTR_ARCHIVE 32
  47. #define azATTR_ALL 39
  48.  
  49. // constants used in messages to identify library
  50. #define azLIBRARY_ADDZIP 0
  51.  
  52. //
  53. #define AM_SEARCHING      0x0a
  54. #define AM_ZIPCOMMENT     0x0b
  55. #define AM_ZIPPING        0x0c
  56. #define AM_ZIPPED         0x0d
  57. #define AM_UNZIPPING      0x0e
  58. #define AM_UNZIPPED       0x0f
  59. #define AM_TESTING        0x10
  60. #define AM_TESTED         0x11
  61. #define AM_DELETING       0x12
  62. #define AM_DELETED        0x13
  63. #define AM_DISKCHANGE     0x14
  64. #define AM_VIEW           0x15
  65. #define AM_ERROR          0x16
  66. #define AM_WARNING        0x17
  67. #define AM_QUERYOVERWRITE 0x18
  68. #define AM_COPYING        0x19
  69. #define AM_COPIED         0x1a
  70. //#define AM_REPAIRING      0x1b
  71. //#define AM_FILECOMMENT    0x1c
  72. //#define AM_PASSWORD       0x1d
  73. #define AM_ABORT          0xff
  74.  
  75. // Constants for compression method in AM_VIEW
  76. #define azCM_NONE 0              0x00
  77. #define azCM_SHRUNK              0x0a
  78. #define azCM_REDUCED_1           0x14
  79. #define azCM_REDUCED_2           0x1e
  80. #define azCM_REDUCED_3           0x28
  81. #define azCM_REDUCED_4           0x32
  82. #define azCM_IMPLODED            0x3c
  83. #define azCM_TOKENISED           0x46
  84. #define azCM_DEFLATED_NORMAL     0x50
  85. #define azCM_DEFLATED_MAXIMUM    0x51
  86. #define azCM_DEFLATED_FAST       0x52
  87. #define azCM_DEFLATED_SUPERFAST  0x53
  88. #define azCM_UNKNOWN             0xff
  89.  
  90. //Constants for whether file is encrypted or not in AM_VIEW
  91. #define azFT_NOT_ENCRYPTED 0x00
  92. #define azFT_ENCRYPTED     0x01
  93.  
  94. //Constants for whether file is text or binary in AM_VIEW
  95. #define azFT_TEXT   0x00
  96. #define azFT_BINARY 0x01
  97.  
  98. // Constants used in returning from a AM_QUERYOVERWRITE message
  99. #define azOW_YES        0x00
  100. #define azOW_YES_TO_ALL 0x01
  101. #define azOW_NO         0x02
  102. #define azOW_NO_TO_ALL  0x03
  103.  
  104. EXTERN CLONG addZIP( CVOID ) AZIP32
  105. EXTERN CWORD addZIP_Abort( CWORD ) AZIP32
  106. EXTERN CWORD addZIP_ArchiveName( CSTRING ) AZIP32
  107. EXTERN CWORD addZIP_BuildSFX( CWORD ) AZIP32
  108. EXTERN CWORD addZIP_ClearAttributes( CWORD ) AZIP32
  109. EXTERN CWORD addZIP_Comment( CSTRING ) AZIP32
  110. EXTERN CWORD addZIP_Delete( CWORD ) AZIP32
  111. EXTERN CWORD addZIP_DeleteComment( CWORD ) AZIP32
  112. EXTERN CWORD addZIP_DisplayComment( CWORD ) AZIP32
  113. EXTERN CWORD addZIP_Encrypt( CSTRING ) AZIP32
  114. EXTERN CWORD addZIP_Exclude( CSTRING ) AZIP32
  115. EXTERN CWORD addZIP_ExcludeListFile( CSTRING ) AZIP32
  116. EXTERN CWORD addZIP_Freshen( CWORD ) AZIP32
  117. EXTERN CWORD addZIP_GetLastError( CVOID ) AZIP32
  118. EXTERN CWORD addZIP_GetLastWarning( CVOID ) AZIP32
  119. EXTERN CWORD addZIP_Include( CSTRING ) AZIP32
  120. EXTERN CWORD addZIP_IncludeFilesNewer( CSTRING ) AZIP32
  121. EXTERN CWORD addZIP_IncludeFilesOlder( CSTRING ) AZIP32
  122. EXTERN CWORD addZIP_IncludeArchive( CWORD ) AZIP32
  123. EXTERN CWORD addZIP_IncludeDirectoryEntries( CWORD ) AZIP32
  124. EXTERN CWORD addZIP_IncludeHidden( CWORD ) AZIP32
  125. EXTERN CWORD addZIP_IncludeReadOnly( CWORD ) AZIP32
  126. EXTERN CWORD addZIP_IncludeSystem( CWORD ) AZIP32
  127. EXTERN CWORD addZIP_IncludeListFile( CSTRING ) AZIP32
  128. EXTERN CVOID addZIP_Initialise( CVOID ) AZIP32
  129. EXTERN CWORD addZIP_Overwrite( CWORD ) AZIP32
  130. EXTERN CWORD addZIP_Register( CSTRING, CLONG) AZIP32
  131. EXTERN CWORD addZIP_Recurse( CWORD ) AZIP32
  132. EXTERN CWORD addZIP_SaveAttributes( CWORD ) AZIP32
  133. EXTERN CWORD addZIP_SaveConfiguration( CSTRING ) AZIP32
  134. EXTERN CWORD addZIP_SaveRelativeTo( CSTRING ) AZIP32
  135. EXTERN CWORD addZIP_SaveStructure( CWORD ) AZIP32
  136. EXTERN CWORD addZIP_SetArchiveDate( CWORD ) AZIP32
  137. EXTERN CWORD addZIP_SetCompressionLevel( CWORD ) AZIP32
  138. EXTERN CWORD addZIP_SetParentWindowHandle( CHANDLE ) AZIP32
  139. EXTERN CWORD addZIP_SetTempDrive( CSTRING ) AZIP32
  140. EXTERN CWORD addZIP_SetWindowHandle( CHANDLE ) AZIP32
  141. EXTERN CWORD addZIP_Span( CWORD ) AZIP32
  142. EXTERN CWORD addZIP_Store( CSTRING ) AZIP32
  143. EXTERN CWORD addZIP_Update( CWORD ) AZIP32
  144. EXTERN CWORD addZIP_UseLFN( CWORD ) AZIP32
  145. EXTERN CWORD addZIP_View( CWORD ) AZIP32
  146. EXTERN CWORD addZIP_Move( CWORD ) AZIP32
  147. EXTERN CWORD addZIP_SaveConfiguration( CSTRING ) AZIP32
  148. EXTERN CWORD addZIP_SFXAutoExecute( CSTRING, CSTRING ) AZIP32
  149. EXTERN CWORD addZIP_SFXAutoPasswordPrompt( CWORD ) AZIP32
  150. EXTERN CWORD addZIP_SpanCreateImages( CWORD ) AZIP32
  151.  
  152. #endif
  153.  
  154.