home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 37 / hot37.iso / FICHEROS / 9TOOL / ADDZIP.ZIP / DELPHI / ADDZIPC.PAS < prev    next >
Pascal/Delphi Source File  |  1998-02-01  |  3KB  |  116 lines

  1. unit ADDZIPC;
  2.  
  3. interface
  4.  
  5. {
  6. addzipu.pas - addZip utility functions
  7.  
  8. Borland Delphi interface unit for addZIP compression libraries
  9. Copyright ⌐ 1995,1997 Stephen Darlington. All rights reserved.
  10.  
  11. Borland Delphi interface unit created by Brad Clarke.
  12. }
  13.  
  14. { constants for addZIP_CreateSFX(...) }
  15. Const azSFX_NO = $00;
  16. Const azSFX_DOS16 = $01;
  17. Const azSFX_DOS32 = $02;
  18. Const azSFX_WIN16 = $03;
  19. Const azSFX_WIN32 = $04;
  20.  
  21. { constants for addZIP_SetCompressionLevel(...) }
  22. Const azCOMPRESSION_NONE = $00;
  23. Const azCOMPRESSION_MINIMUM = $01;
  24. Const azCOMPRESSION_NORMAL = $02;
  25. Const azCOMPRESSION_MAXIMUM = $03;
  26.  
  27. { constants for addZIP_SaveStructure(...) }
  28. Const azSTRUCTURE_NONE = $00;
  29. Const azSTRUCTURE_RELATIVE = $01;
  30. Const azSTRUCTURE_ABSOLUTE = $02;
  31.  
  32. { constants for addZIP_Overwrite(...) }
  33. Const azOVERWRITE_QUERY = $0a;
  34. Const azOVERWRITE_ALL = $0b;
  35. Const azOVERWRITE_NONE = $0c;
  36.  
  37. { constants for addZIP_SetArchiveDate(); }
  38. Const DATE_ORIGINAL = $00;
  39. Const DATE_TODAY = $01;
  40. Const DATE_OLDEST = $02;
  41. Const DATE_NEWEST = $03;
  42.  
  43. { constants for addZIP_IncludeXXX attribute functions }
  44. Const azNEVER = $00; { files must never have this attribute set}
  45. Const azYES = $01; { files may or may not have this attribute set}
  46. Const azALWAYS = $ff; { files must always have this attribute set}
  47.  
  48. { constants for addZIP_ClearAttributes(...) }
  49. { constants for addUNZIP_RestoreAttributes(...) }
  50. Const azATTR_NONE = 0;
  51. Const azATTR_READONLY = 1;
  52. Const azATTR_HIDDEN = 2;
  53. Const azATTR_SYSTEM = 4;
  54. Const azATTR_ARCHIVE = 32;
  55. Const azATTR_ALL = 39;
  56.  
  57. { constants used in messages to identify library }
  58. Const azLIBRARY_ADDZIP = 0;
  59. Const azLIBRARY_ADDUNZIP = 1;
  60.  
  61. { addZIP & addUNZIP messages }
  62. Const AM_SEARCHING = $0a;
  63. Const AM_ZIPCOMMENT = $0b;
  64. Const AM_ZIPPING = $0c;
  65. Const AM_ZIPPED = $0d;
  66. Const AM_UNZIPPING = $0e;
  67. Const AM_UNZIPPED = $0f;
  68. Const AM_TESTING = $10;
  69. Const AM_TESTED = $11;
  70. Const AM_DELETING = $12;
  71. Const AM_DELETED = $13;
  72. Const AM_DISKCHANGE = $14;
  73. Const AM_VIEW = $15;
  74. Const AM_ERROR = $16;
  75. Const AM_WARNING = $17;
  76. Const AM_QUERYOVERWRITE = $18;
  77. Const AM_COPYING = $19;
  78. Const AM_COPIED = $1a;
  79. Const AM_REPAIRING = $1b;
  80. Const AM_FILECOMMENT = $1c;
  81. Const AM_PASSWORD = $1d;
  82. Const AM_ABORT = $ff;
  83.  
  84. { Constants for compression method in AM_VIEW }
  85. Const azCM_NONE = $00;
  86. Const azCM_SHRUNK = $0a;
  87. Const azCM_REDUCED_1 = $14;
  88. Const azCM_REDUCED_2 = $1e;
  89. Const azCM_REDUCED_3 = $28;
  90. Const azCM_REDUCED_4 = $32;
  91. Const azCM_IMPLODED = $3c;
  92. Const azCM_TOKENISED = $46;
  93. Const azCM_DEFLATED_NORMAL = $50;
  94. Const azCM_DEFLATED_MAXIMUM = $51;
  95. Const azCM_DEFLATED_FAST = $52;
  96. Const azCM_DEFLATED_SUPERFAST = $53;
  97. Const azCM_UNKNOWN = $ff;
  98.  
  99. {Constants for whether file is encrypted or not in AM_VIEW }
  100. Const azFT_NOT_ENCRYPTED = $00;
  101. Const azFT_ENCRYPTED = $01;
  102.  
  103. {Constants for whether file is text or binary in AM_VIEW }
  104. Const azFT_TEXT = $00;
  105. Const azFT_BINARY = $01;
  106.  
  107. { Constants used in returning from a AM_QUERYOVERWRITE message }
  108. Const azOW_YES = $00;
  109. Const azOW_YES_TO_ALL = $01;
  110. Const azOW_NO = $02;
  111. Const azOW_NO_TO_ALL = $03;
  112.  
  113. implementation
  114.  
  115. end.
  116.