Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
1.7 KiB

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