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.

45 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. --*/
  4. #define RL4_MAXISIZE 0xFFFE
  5. #define RL4_MAXHEIGHT 0xFFFE
  6. #define RL4_MAXWIDTH 4096
  7. #define VALID 0x00
  8. #define INVALID 0x01
  9. typedef struct tag_COMP_DATA {
  10. PBYTE RL_ImagePtr;
  11. PBYTE RL_CodePtr;
  12. PBYTE RL_BufEnd;
  13. DWORD RL_ImageSize;
  14. DWORD RL_CodeSize;
  15. BYTE BUF_OVERFLOW;
  16. } COMP_DATA, *PCOMP_DATA;
  17. // #291170: Image data is not printed partly
  18. DWORD RL_ECmd(PBYTE, PBYTE, DWORD, DWORD);
  19. BYTE RL_Init(PBYTE, PBYTE, DWORD, DWORD, PCOMP_DATA);
  20. char RL_Enc( PCOMP_DATA );
  21. #define RL4_BLACK 0x00
  22. #define RL4_WHITE 0x01
  23. #define RL4_BYTE 0x00
  24. #define RL4_NONBYTE 0x01
  25. #define RL4_CLEAN 0x00
  26. #define RL4_DIRTY 0x01
  27. #define RL4_FIRST 0x00
  28. #define RL4_SECOND 0x01
  29. #define COMP_FAIL 0x00
  30. #define COMP_SUCC 0x01
  31. #define CODBUFSZ 0x7FED /* NOTE : THIS SHOULD MATCH THE SPACE GIVEN */
  32. /* TO COMPRESSED DATA BY THE DEVICE */
  33. /* DRIVER. CHANGE THIS BASED ON YOUR */
  34. /* OWN DISCRETION. C.Chi */