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.

68 lines
1.9 KiB

  1. /* File: C:\WACKER\xfer\cmprs.h (Created: 20-Jan-1994)
  2. * created from HAWIN sources
  3. * CMPRS.H -- Exported definitions for HyperACCESS compression routines
  4. *
  5. * Copyright 1989,1991,1994 by Hilgraeve Inc. -- Monroe, MI
  6. * All rights reserved
  7. *
  8. * $Revision: 1 $
  9. * $Date: 10/05/98 1:16p $
  10. */
  11. #if !defined(EOF)
  12. #define EOF (-1)
  13. #endif
  14. #define CMPRS_MINSIZE 4000L /* min. size of file to use compression on */
  15. /* return codes from compress_status() */
  16. #define COMPRESS_IDLE 0
  17. #define COMPRESS_ACTIVE 1
  18. #define COMPRESS_SHUTDOWN 2
  19. #define COMPRESS_ALL_DONE (-1)
  20. #define DCMP_UNFINISHED (-2)
  21. #define DCMP_FLUSH (-4)
  22. #define DCMP_RESET (-5)
  23. #define decompress_status compress_status
  24. extern int compress_enable(void);
  25. extern void compress_disable(void);
  26. extern unsigned int compress_status(void);
  27. extern int compress_start(int (**getfunc)(void *),
  28. void *p,
  29. long *loadcnt,
  30. int fPauses);
  31. extern void compress_stop(void);
  32. extern int decompress_start(int (**put_func)(void *, int),
  33. void *pP,
  34. int fPauses);
  35. extern void decompress_stop(void);
  36. extern int decompress_error(void);
  37. extern int decompress_continue(void);
  38. /* from cmprsrle.c */
  39. #if defined(DOS_HOST)
  40. extern void CmprsRLECompressBufrInit(BYTE *fpuchDataBufr,
  41. int sDataCnt);
  42. extern void CmprsRLEDecompressInit(BYTE *fpuchDataBufr,
  43. unsigned int usBufrSize,
  44. int (*PutCodes)(int mch),
  45. unsigned int *pusExpandedCnt);
  46. #else
  47. extern void CmprsRLECompressBufrInit(BYTE FAR *fpuchDataBufr,
  48. int sDataCnt);
  49. extern void CmprsRLEDecompressInit(BYTE FAR *fpuchDataBufr,
  50. unsigned int usBufrSize,
  51. int (*PutCodes)(int mch),
  52. unsigned int *pusExpandedCnt);
  53. #endif
  54. extern void CmprsRLECompressBufrFini(void);
  55. extern int CmprsRLECompress(void);
  56. extern int CmprsRLEDecompress(int mch);
  57. /***************************** end of cmprs.h **************************/