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.

119 lines
1.4 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. GetExpandedName%(
  59. LPTSTR%,
  60. LPTSTR%
  61. );
  62. INT
  63. APIENTRY
  64. LZOpenFile%(
  65. LPTSTR%,
  66. LPOFSTRUCT,
  67. WORD
  68. );
  69. LONG
  70. APIENTRY
  71. LZSeek(
  72. INT,
  73. LONG,
  74. INT
  75. );
  76. INT
  77. APIENTRY
  78. LZRead(
  79. INT,
  80. LPSTR,
  81. INT
  82. );
  83. VOID
  84. APIENTRY
  85. LZClose(
  86. INT
  87. );
  88. #ifdef __cplusplus
  89. }
  90. #endif
  91. #endif // _LZEXPAND_