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

  1. *******************************************************************************
  2. *  FILE:         addunzip.h
  3. *
  4. * C/C++ header file for addUNZIP compression libraries
  5. *
  6. * Copyright 1995,1997 Stephen Darlington. All rights reserved.
  7. *  USAGE:        (in a file)
  8. *                #include <addunzip.h>
  9. *
  10. *******************************************************************************
  11.  
  12.  
  13. #ifndef _ADDUNZIP_H_
  14. #define _ADDUNZIP_H_
  15.  
  16. // constants for addUNZIP_Overwrite(...)
  17. #define azOVERWRITE_QUERY 0x0a
  18. #define azOVERWRITE_ALL   0x0b
  19. #define azOVERWRITE_NONE  0x0c
  20.  
  21. // constants used in messages
  22. #define azLIBRARY_ADDUNZIP 1
  23.  
  24. // constants for addUNZIP_RestoreAttributes(...)
  25. #define azATTR_NONE 0
  26. #define azATTR_READONLY 1
  27. #define azATTR_HIDDEN 2
  28. #define azATTR_SYSTEM 4
  29. #define azATTR_ARCHIVE 32
  30. #define azATTR_ALL 39
  31.  
  32. // addZIP & addUNZIP messages
  33. #define AM_SEARCHING      0x0a
  34. #define AM_ZIPCOMMENT     0x0b
  35. #define AM_ZIPPING        0x0c
  36. #define AM_ZIPPED         0x0d
  37. #define AM_UNZIPPING      0x0e
  38. #define AM_UNZIPPED       0x0f
  39. #define AM_TESTING        0x10
  40. #define AM_TESTED         0x11
  41. #define AM_DELETING       0x12
  42. #define AM_DELETED        0x13
  43. #define AM_DISKCHANGE     0x14
  44. #define AM_VIEW           0x15
  45. #define AM_ERROR          0x16
  46. #define AM_WARNING        0x17
  47. #define AM_QUERYOVERWRITE 0x18
  48. #define AM_COPYING        0x19
  49. #define AM_COPIED         0x1a
  50. //#define AM_REPAIRING      0x1b
  51. //#define AM_FILECOMMENT    0x1c
  52. //#define AM_PASSWORD       0x1d
  53. #define AM_ABORT          0xff
  54.  
  55. // Constants for compression method in AM_VIEW
  56. #define azCM_NONE 0              0x00
  57. #define azCM_SHRUNK              0x0a
  58. #define azCM_REDUCED_1           0x14
  59. #define azCM_REDUCED_2           0x1e
  60. #define azCM_REDUCED_3           0x28
  61. #define azCM_REDUCED_4           0x32
  62. #define azCM_IMPLODED            0x3c
  63. #define azCM_TOKENISED           0x46
  64. #define azCM_DEFLATED_NORMAL     0x50
  65. #define azCM_DEFLATED_MAXIMUM    0x51
  66. #define azCM_DEFLATED_FAST       0x52
  67. #define azCM_DEFLATED_SUPERFAST  0x53
  68. #define azCM_UNKNOWN             0xff
  69.  
  70. //Constants for whether file is encrypted or not in AM_VIEW
  71. #define azFT_NOT_ENCRYPTED 0x00
  72. #define azFT_ENCRYPTED     0x01
  73.  
  74. //Constants for whether file is text or binary in AM_VIEW
  75. #define azFT_TEXT   0x00
  76. #define azFT_BINARY 0x01
  77.  
  78. // Constants used in returning from a AM_QUERYOVERWRITE message
  79. #define azOW_YES        0x00
  80. #define azOW_YES_TO_ALL 0x01
  81. #define azOW_NO         0x02
  82. #define azOW_NO_TO_ALL  0x03
  83. EXTERN CLONG addUNZIP( CVOID ) AUNZIP16
  84. EXTERN CWORD addUNZIP_Abort( CWORD ) AUNZIP16
  85. EXTERN CWORD addUNZIP_ArchiveName( CSTRING ) AUNZIP16
  86. EXTERN CWORD addUNZIP_Decrypt( CSTRING ) AUNZIP16
  87. EXTERN CWORD addUNZIP_DisplayComment( CWORD ) AUNZIP16
  88. EXTERN CWORD addUNZIP_Exclude( CSTRING ) AUNZIP16
  89. EXTERN CWORD addUNZIP_ExcludeListFile( CSTRING ) AUNZIP16
  90. EXTERN CWORD addUNZIP_ExtractTo( CSTRING ) AUNZIP16
  91. EXTERN CWORD addUNZIP_Freshen( CWORD ) AUNZIP16
  92. EXTERN CWORD addUNZIP_GetLastError( CVOID ) AUNZIP16
  93. EXTERN CWORD addUNZIP_GetLastWarning( CVOID ) AUNZIP16
  94. EXTERN CWORD addUNZIP_Include( CSTRING ) AUNZIP16
  95. EXTERN CWORD addUNZIP_IncludeListFile( CSTRING ) AUNZIP16
  96. EXTERN CVOID addUNZIP_Initialise( CVOID ) AUNZIP16
  97. EXTERN CWORD addUNZIP_Overwrite( CWORD ) AUNZIP16
  98. EXTERN CWORD addUNZIP_RestoreAttributes( CWORD ) AUNZIP16
  99. EXTERN CWORD addUNZIP_RestoreStructure( CWORD ) AUNZIP16
  100. EXTERN CWORD addUNZIP_SetParentWindowHandle( CHANDLE ) AUNZIP16
  101. EXTERN CWORD addUNZIP_SetWindowHandle( CHANDLE ) AUNZIP16
  102. EXTERN CWORD addUNZIP_Test( CWORD ) AUNZIP16
  103. EXTERN CWORD addUNZIP_Update( CWORD ) AUNZIP16
  104. EXTERN CWORD addUNZIP_View( CWORD ) AUNZIP16
  105. EXTERN CWORD addUNZIP_SaveConfiguration( CSTRING ) AUNZIP16
  106.  
  107. #endif
  108.  
  109.