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.

90 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. --*/
  4. #define BPB_SIZE 304
  5. #define BPB_CLR 1
  6. #define BPB_COPY 2
  7. #define BPB_AND 3
  8. #define BPB_OR 4
  9. typedef struct {
  10. int iColor;
  11. int iFirstColor;
  12. int iPlaneNumber;
  13. WORD wXpos;
  14. WORD wYpos;
  15. WORD wNumScans;
  16. WORD wOldNumScans;
  17. WORD wScanWidth;
  18. WORD wScanBytes;
  19. WORD wTopPad;
  20. WORD wEndPad;
  21. int iRibbon;
  22. int iColorMode;
  23. BOOL bComBlackMode;
  24. BYTE pszSheetSetting[8];
  25. HANDLE TempFile[4]; // Temp. file handles
  26. TCHAR TempName[4][MAX_PATH]; // Temp. file names
  27. BYTE BPBuf[BPB_SIZE]; // Black Pixel Buffer
  28. } PCPRDATASTRUCTURE;
  29. typedef PCPRDATASTRUCTURE FAR *LPPCPRDATASTRUCTURE;
  30. #define SHEET_CMD_DEFAULT "\x1B\x04\x00\x45\x14\x01\x01"
  31. #define SHEET_CMDLEN 7
  32. #define CMDID_PSIZE_LETTER 1
  33. #define CMDID_PSIZE_LEGAL 2
  34. #define CMDID_PSIZE_A4 3
  35. #define CMDID_PSIZE_A4LONG 4
  36. #define CMDID_PSIZE_B5 5
  37. #define CMDID_PSIZE_POSTCARD 6
  38. #define CMDID_PSOURCE_HOPPER 10
  39. #define CMDID_PSOURCE_MANUAL 11
  40. #define CMDID_COLOR_YELLOW 20
  41. #define CMDID_COLOR_MAGENTA 21
  42. #define CMDID_COLOR_CYAN 22
  43. #define CMDID_COLOR_BLACK 23
  44. #define CMDID_COLOR_BLACKONLY 24
  45. #define CMDID_COLOR_RGB 25
  46. #define CMDID_SELECT_RESOLUTION 26
  47. #define CMDID_MODE_COLOR 27
  48. #define CMDID_MODE_MONO 28
  49. #define CMDID_X_ABS_MOVE 30
  50. #define CMDID_Y_ABS_MOVE 31
  51. #define CMDID_RIBBON_MONO 40
  52. #define CMDID_RIBBON_3COLOR_A4 41
  53. #define CMDID_RIBBON_4COLOR_A4 42
  54. #define CMDID_RIBBON_4COLOR_A4LONG 43
  55. #define CMDID_RIBBON_3COLOR_KAICHO 44
  56. #define CMDID_RIBBON_3COLOR_SHOKA 45
  57. #define CMDID_BEGINPAGE 50
  58. #define CMDID_ENDPAGE 51
  59. #define P1_LETTER 0x02
  60. #define P1_LEGAL 0x03
  61. #define P1_A4 0x14
  62. #define P1_A4LONG 0x18
  63. #define P1_B5 0x25
  64. #define P1_POSTCARD 0x01
  65. #define P2_HOPPER 0x01
  66. #define P2_MANUAL 0xff
  67. #define P3_PORTRAIT 0x01
  68. #define YELLOW 1
  69. #define MAGENTA 2
  70. #define CYAN 3
  71. #define BLACK 4
  72. #define RGB_COLOR 5
  73. #define TEMP_NAME_PREFIX __TEXT("~82")