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.

127 lines
1.5 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. INT
  51. APIENTRY
  52. GetExpandedNameA(
  53. LPSTR,
  54. LPSTR
  55. );
  56. INT
  57. APIENTRY
  58. GetExpandedNameW(
  59. LPWSTR,
  60. LPWSTR
  61. );
  62. #ifdef UNICODE
  63. #define GetExpandedName GetExpandedNameW
  64. #else
  65. #define GetExpandedName GetExpandedNameA
  66. #endif // !UNICODE
  67. INT
  68. APIENTRY
  69. LZOpenFileA(
  70. LPSTR,
  71. LPOFSTRUCT,
  72. WORD
  73. );
  74. INT
  75. APIENTRY
  76. LZOpenFileW(
  77. LPWSTR,
  78. LPOFSTRUCT,
  79. WORD
  80. );
  81. #ifdef UNICODE
  82. #define LZOpenFile LZOpenFileW
  83. #else
  84. #define LZOpenFile LZOpenFileA
  85. #endif // !UNICODE
  86. LONG
  87. APIENTRY
  88. LZSeek(
  89. INT,
  90. LONG,
  91. INT
  92. );
  93. INT
  94. APIENTRY
  95. LZRead(
  96. INT,
  97. LPSTR,
  98. INT
  99. );
  100. VOID
  101. APIENTRY
  102. LZClose(
  103. INT
  104. );
  105. #ifdef __cplusplus
  106. }
  107. #endif
  108. #endif // _LZEXPAND_