Leaked source code of windows server 2003
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.

142 lines
1.8 KiB

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