home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / lzexpand.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  128 lines

  1. /*
  2. ** lzdos.h - Public interface to LZEXP?.LIB.
  3. */
  4.  
  5. #ifndef _LZEXPAND_
  6. #define _LZEXPAND_
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. /*
  13. ** Error Return Codes
  14. */
  15.  
  16. #define LZERROR_BADINHANDLE   (-1)  /* invalid input handle */
  17. #define LZERROR_BADOUTHANDLE  (-2)  /* invalid output handle */
  18. #define LZERROR_READ          (-3)  /* corrupt compressed file format */
  19. #define LZERROR_WRITE         (-4)  /* out of space for output file */
  20. #define LZERROR_GLOBALLOC     (-5)  /* insufficient memory for LZFile struct */
  21. #define LZERROR_GLOBLOCK      (-6)  /* bad global handle */
  22. #define LZERROR_BADVALUE      (-7)  /* input parameter out of acceptable range*/
  23. #define LZERROR_UNKNOWNALG    (-8)  /* compression algorithm not recognized */
  24.  
  25.  
  26. /*
  27. ** Prototypes
  28. */
  29.  
  30. INT
  31. APIENTRY
  32. LZStart(
  33.     VOID
  34.     );
  35.  
  36. VOID
  37. APIENTRY
  38. LZDone(
  39.     VOID
  40.     );
  41.  
  42. LONG
  43. APIENTRY
  44. CopyLZFile(
  45.     INT,
  46.     INT
  47.     );
  48.  
  49. LONG
  50. APIENTRY
  51. LZCopy(
  52.     INT,
  53.     INT
  54.     );
  55.  
  56. INT
  57. APIENTRY
  58. LZInit(
  59.     INT
  60.     );
  61.  
  62. INT
  63. APIENTRY
  64. GetExpandedNameA(
  65.     LPSTR,
  66.     LPSTR
  67.     );
  68. INT
  69. APIENTRY
  70. GetExpandedNameW(
  71.     LPWSTR,
  72.     LPWSTR
  73.     );
  74. #ifdef UNICODE
  75. #define GetExpandedName  GetExpandedNameW
  76. #else
  77. #define GetExpandedName  GetExpandedNameA
  78. #endif // !UNICODE
  79.  
  80. INT
  81. APIENTRY
  82. LZOpenFileA(
  83.     LPSTR,
  84.     LPOFSTRUCT,
  85.     WORD
  86.     );
  87. INT
  88. APIENTRY
  89. LZOpenFileW(
  90.     LPWSTR,
  91.     LPOFSTRUCT,
  92.     WORD
  93.     );
  94. #ifdef UNICODE
  95. #define LZOpenFile  LZOpenFileW
  96. #else
  97. #define LZOpenFile  LZOpenFileA
  98. #endif // !UNICODE
  99.  
  100. LONG
  101. APIENTRY
  102. LZSeek(
  103.     INT,
  104.     LONG,
  105.     INT
  106.     );
  107.  
  108. INT
  109. APIENTRY
  110. LZRead(
  111.     INT,
  112.     LPSTR,
  113.     INT
  114.     );
  115.  
  116. VOID
  117. APIENTRY
  118. LZClose(
  119.     INT
  120.     );
  121.  
  122. #ifdef __cplusplus
  123. }
  124. #endif
  125.  
  126.  
  127. #endif // _LZEXPAND_
  128.