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.

173 lines
10 KiB

  1. //--------------------------------------------------------------------------//
  2. // Copyright (c) 1996 - 1999 Microsoft Corporation
  3. // Filename: cmdid.h
  4. //
  5. // This file contains constants defined for indicies of PDEVICE.rgocd[].
  6. // It is used as the second parameter of WriteChannel(). If a mini driver
  7. // wants to call-back WriteChannel(), it must include this file.
  8. //
  9. // Created: 10/11/90 zhanw
  10. //
  11. // 10/25/96 -zhanw-
  12. // copied from \\trango\slmro tree. Remove vector commands.
  13. //--------------------------------------------------------------------------//
  14. // keep parentheses around constants to avoid potential errors in expansions.
  15. //****************
  16. // basic commands:
  17. //****************
  18. // --- from RESOLUTION:
  19. #define CMD_RES_FIRST 0 // 0
  20. #define CMD_RES_SELECTRES (CMD_RES_FIRST + RES_OCD_SELECTRES) // 0
  21. #define CMD_RES_BEGINGRAPHICS (CMD_RES_FIRST + RES_OCD_BEGINGRAPHICS) // 1
  22. #define CMD_RES_ENDGRAPHICS (CMD_RES_FIRST + RES_OCD_ENDGRAPHICS) // 2
  23. #define CMD_RES_SENDBLOCK (CMD_RES_FIRST + RES_OCD_SENDBLOCK) // 3
  24. #define CMD_RES_ENDBLOCK (CMD_RES_FIRST + RES_OCD_ENDBLOCK) // 4
  25. #define CMD_RES_LAST (CMD_RES_FIRST + RES_OCD_MAX - 1) // 4
  26. // --- from COMPRESSMODE
  27. #define CMD_CMP_FIRST (CMD_RES_LAST + 1) // 5
  28. #define CMD_CMP_NONE (CMD_CMP_FIRST + 0) // 5
  29. #define CMD_CMP_RLE (CMD_CMP_FIRST + 1) // 6
  30. #define CMD_CMP_TIFF (CMD_CMP_FIRST + 2) // 7
  31. #define CMD_CMP_DELTAROW (CMD_CMP_FIRST + 3) // 8
  32. #define CMD_CMP_BITREPEAT (CMD_CMP_FIRST + 4) // 9
  33. #define CMD_CMP_FE_RLE (CMD_CMP_FIRST + 5) // 10
  34. #define CMD_CMP_LAST (CMD_CMP_FE_RLE) // 10
  35. // --- from PAGECONTROL structure
  36. #define CMD_PC_FIRST (CMD_CMP_LAST + 1) // 11
  37. #define CMD_PC_BEGIN_DOC (CMD_PC_FIRST + PC_OCD_BEGIN_DOC) // 11
  38. #define CMD_PC_BEGIN_PAGE (CMD_PC_FIRST + PC_OCD_BEGIN_PAGE) // 12
  39. #define CMD_PC_DUPLEX_ON (CMD_PC_FIRST + PC_OCD_DUPLEX_ON) // 13
  40. #define CMD_PC_ENDDOC (CMD_PC_FIRST + PC_OCD_ENDDOC) // 14
  41. #define CMD_PC_ENDPAGE (CMD_PC_FIRST + PC_OCD_ENDPAGE) // 15
  42. #define CMD_PC_DUPLEX_OFF (CMD_PC_FIRST + PC_OCD_DUPLEX_OFF) // 16
  43. #define CMD_PC_ABORT (CMD_PC_FIRST + PC_OCD_ABORT) // 17
  44. #define CMD_PC_PORTRAIT (CMD_PC_FIRST + PC_OCD_PORTRAIT) // 18
  45. #define CMD_PC_ORIENTATION (CMD_PC_PORTRAIT) // 18
  46. #define CMD_PC_LANDSCAPE (CMD_PC_FIRST + PC_OCD_LANDSCAPE) // 19
  47. #define CMD_PC_MULT_COPIES (CMD_PC_FIRST + PC_OCD_MULT_COPIES) // 20
  48. #define CMD_PC_DUPLEX_VERT (CMD_PC_FIRST + PC_OCD_DUPLEX_VERT) // 21
  49. #define CMD_PC_DUPLEX_HORZ (CMD_PC_FIRST + PC_OCD_DUPLEX_HORZ) // 22
  50. #define CMD_PC_PRINT_DIR (CMD_PC_FIRST + PC_OCD_PRN_DIRECTION) // 23
  51. #define CMD_PC_JOB_SEPARATION (CMD_PC_FIRST + PC_OCD_JOB_SEPARATION) // 24
  52. #define CMD_PC_LAST (CMD_PC_FIRST + PC_OCD_MAX - 1) // 24
  53. // --- from CURSORMOVE
  54. #define CMD_CM_FIRST (CMD_PC_LAST + 1) // 25
  55. #define CMD_CM_XM_ABS (CMD_CM_FIRST + CM_OCD_XM_ABS)
  56. #define CMD_CM_XM_REL (CMD_CM_FIRST + CM_OCD_XM_REL)
  57. #define CMD_CM_XM_RELLEFT (CMD_CM_FIRST + CM_OCD_XM_RELLEFT)
  58. #define CMD_CM_YM_ABS (CMD_CM_FIRST + CM_OCD_YM_ABS)
  59. #define CMD_CM_YM_REL (CMD_CM_FIRST + CM_OCD_YM_REL)
  60. #define CMD_CM_YM_RELUP (CMD_CM_FIRST + CM_OCD_YM_RELUP)
  61. #define CMD_CM_YM_LINESPACING (CMD_CM_FIRST + CM_OCD_YM_LINESPACING)
  62. #define CMD_CM_XY_REL (CMD_CM_FIRST + CM_OCD_XY_REL)
  63. #define CMD_CM_XY_ABS (CMD_CM_FIRST + CM_OCD_XY_ABS)
  64. #define CMD_CM_CR (CMD_CM_FIRST + CM_OCD_CR)
  65. #define CMD_CM_LF (CMD_CM_FIRST + CM_OCD_LF)
  66. #define CMD_CM_FF (CMD_CM_FIRST + CM_OCD_FF)
  67. #define CMD_CM_BS (CMD_CM_FIRST + CM_OCD_BS)
  68. #define CMD_CM_UNI_DIR (CMD_CM_FIRST + CM_OCD_UNI_DIR)
  69. #define CMD_CM_UNI_DIR_OFF (CMD_CM_FIRST + CM_OCD_UNI_DIR_OFF)
  70. #define CMD_CM_PUSH_POS (CMD_CM_FIRST + CM_OCD_PUSH_POS)
  71. #define CMD_CM_POP_POS (CMD_CM_FIRST + CM_OCD_POP_POS)
  72. #define CMD_CM_LAST (CMD_CM_FIRST + CM_OCD_MAX - 1) // 41
  73. // --- from FONTSIMULATION
  74. #define CMD_FS_FIRST (CMD_CM_LAST + 1) // 42
  75. #define CMD_FS_BOLD_ON (CMD_FS_FIRST + FS_OCD_BOLD_ON)
  76. #define CMD_FS_BOLD_OFF (CMD_FS_FIRST + FS_OCD_BOLD_OFF)
  77. #define CMD_FS_ITALIC_ON (CMD_FS_FIRST + FS_OCD_ITALIC_ON)
  78. #define CMD_FS_ITALIC_OFF (CMD_FS_FIRST + FS_OCD_ITALIC_OFF)
  79. #define CMD_FS_UNDERLINE_ON (CMD_FS_FIRST + FS_OCD_UNDERLINE_ON)
  80. #define CMD_FS_UNDERLINE_OFF (CMD_FS_FIRST + FS_OCD_UNDERLINE_OFF)
  81. #define CMD_FS_DOUBLEUNDERLINE_ON (CMD_FS_FIRST + FS_OCD_DOUBLEUNDERLINE_ON)
  82. #define CMD_FS_DOUBLEUNDERLINE_OFF (CMD_FS_FIRST + FS_OCD_DOUBLEUNDERLINE_OFF)
  83. #define CMD_FS_STRIKETHRU_ON (CMD_FS_FIRST + FS_OCD_STRIKETHRU_ON)
  84. #define CMD_FS_STRIKETHRU_OFF (CMD_FS_FIRST + FS_OCD_STRIKETHRU_OFF)
  85. #define CMD_FS_WHITE_TEXT_ON (CMD_FS_FIRST + FS_OCD_WHITE_TEXT_ON)
  86. #define CMD_FS_WHITE_TEXT_OFF (CMD_FS_FIRST + FS_OCD_WHITE_TEXT_OFF)
  87. #define CMD_FS_SINGLE_BYTE (CMD_FS_FIRST + FS_OCD_SINGLE_BYTE)
  88. #define CMD_FS_DOUBLE_BYTE (CMD_FS_FIRST + FS_OCD_DOUBLE_BYTE)
  89. #define CMD_FS_VERT_ON (CMD_FS_FIRST + FS_OCD_VERT_ON)
  90. #define CMD_FS_VERT_OFF (CMD_FS_FIRST + FS_OCD_VERT_OFF)
  91. #define CMD_FS_LAST (CMD_FS_VERT_OFF) // 57
  92. // from DEVCOLOR
  93. #define CMD_DC_FIRST (CMD_FS_LAST + 1) // 58
  94. #define CMD_DC_TC_FIRST (CMD_DC_FIRST)
  95. #define CMD_DC_TC_BLACK (CMD_DC_TC_FIRST + DC_OCD_TC_BLACK)
  96. #define CMD_DC_TC_RED (CMD_DC_TC_FIRST + DC_OCD_TC_RED)
  97. #define CMD_DC_TC_GREEN (CMD_DC_TC_FIRST + DC_OCD_TC_GREEN)
  98. #define CMD_DC_TC_YELLOW (CMD_DC_TC_FIRST + DC_OCD_TC_YELLOW)
  99. #define CMD_DC_TC_BLUE (CMD_DC_TC_FIRST + DC_OCD_TC_BLUE)
  100. #define CMD_DC_TC_MAGENTA (CMD_DC_TC_FIRST + DC_OCD_TC_MAGENTA)
  101. #define CMD_DC_TC_CYAN (CMD_DC_TC_FIRST + DC_OCD_TC_CYAN)
  102. #define CMD_DC_TC_WHITE (CMD_DC_TC_FIRST + DC_OCD_TC_WHITE)
  103. #define CMD_DC_SETCOLORMODE (CMD_DC_TC_FIRST + DC_OCD_SETCOLORMODE) //66
  104. #define CMD_DC_PC_START (CMD_DC_TC_FIRST + DC_OCD_PC_START)
  105. #define CMD_DC_PC_ENTRY (CMD_DC_TC_FIRST + DC_OCD_PC_ENTRY)
  106. #define CMD_DC_PC_END (CMD_DC_TC_FIRST + DC_OCD_PC_END)
  107. #define CMD_DC_PC_SELECTINDEX (CMD_DC_TC_FIRST + DC_OCD_PC_SELECTINDEX)
  108. #define CMD_DC_SETMONOMODE (CMD_DC_TC_FIRST + DC_OCD_SETMONOMODE) // 71
  109. #define DC_NUM_OCDS_USED (DC_OCD_SETMONOMODE + 1)
  110. // these are from DEVCOLOR.orgocdPlanes:
  111. #define CMD_DC_GC_FIRST (CMD_DC_SETMONOMODE + 1)
  112. #define CMD_DC_GC_PLANE1 (CMD_DC_GC_FIRST + 0) // 72
  113. #define CMD_DC_GC_PLANE2 (CMD_DC_GC_FIRST + 1) // 73
  114. #define CMD_DC_GC_PLANE3 (CMD_DC_GC_FIRST + 2) // 74
  115. #define CMD_DC_GC_PLANE4 (CMD_DC_GC_FIRST + 3) // 75
  116. #define CMD_DC_LAST (CMD_DC_GC_PLANE4) // 75
  117. // --- from RECTFILL
  118. #define CMD_RF_FIRST (CMD_DC_LAST + 1) // 76
  119. #define CMD_RF_X_SIZE (CMD_RF_FIRST + RF_OCD_X_SIZE)
  120. #define CMD_RF_Y_SIZE (CMD_RF_FIRST + RF_OCD_Y_SIZE)
  121. #define CMD_RF_GRAY_FILL (CMD_RF_FIRST + RF_OCD_GRAY_FILL)
  122. #define CMD_RF_WHITE_FILL (CMD_RF_FIRST + RF_OCD_WHITE_FILL)
  123. #define CMD_RF_LAST (CMD_RF_WHITE_FILL) // 79
  124. // --- from DOWNLOADINFO
  125. #define CMD_DLI_FIRST (CMD_RF_LAST + 1) // 80
  126. #define CMD_BEGIN_DL_JOB (CMD_DLI_FIRST + DLI_OCD_BEGIN_DL_JOB) //81
  127. #define CMD_BEGIN_FONT_DL (CMD_DLI_FIRST + DLI_OCD_BEGIN_FONT_DL)
  128. #define CMD_SET_FONT_ID (CMD_DLI_FIRST + DLI_OCD_SET_FONT_ID)
  129. #define CMD_SEND_FONT_DCPT (CMD_DLI_FIRST + DLI_OCD_SEND_FONT_DESCRIPTOR)
  130. #define CMD_SELECT_FONT_ID (CMD_DLI_FIRST + DLI_OCD_SELECT_FONT_ID)
  131. #define CMD_SET_CHAR_CODE (CMD_DLI_FIRST + DLI_OCD_SET_CHAR_CODE)
  132. #define CMD_SEND_CHAR_DCPT (CMD_DLI_FIRST + DLI_OCD_SEND_CHAR_DESCRIPTOR)
  133. #define CMD_END_FONT_DL (CMD_DLI_FIRST + DLI_OCD_END_FONT_DL)
  134. #define CMD_MAKE_PERM (CMD_DLI_FIRST + DLI_OCD_MAKE_PERM)
  135. #define CMD_MAKE_TEMP (CMD_DLI_FIRST + DLI_OCD_MAKE_TEMP)
  136. #define CMD_END_DL_JOB (CMD_DLI_FIRST + DLI_OCD_END_DL_JOB)
  137. #define CMD_DEL_FONT (CMD_DLI_FIRST + DLI_OCD_DEL_FONT)
  138. #define CMD_DEL_ALL_FONTS (CMD_DLI_FIRST + DLI_OCD_DEL_ALL_FONTS)
  139. #define CMD_SET_SECOND_FONT_ID (CMD_DLI_FIRST + DLI_OCD_SET_SECOND_FONT_ID)
  140. #define CMD_SELECT_SECOND_FONT_ID (CMD_DLI_FIRST + DLI_OCD_SELECT_SECOND_FONT_ID)
  141. #define CMD_DLI_LAST (CMD_DLI_FIRST + DLI_OCD_MAX - 1) // 95
  142. #define MAXCMD (CMD_DLI_LAST + 1) // 96
  143. //*******************
  144. // extended commands:
  145. //*******************
  146. #define CMD_TEXTQUALITY (MAXCMD + 0) // command to select text quality
  147. #define CMD_PAPERSOURCE (MAXCMD + 1) // command to select paper source
  148. #define CMD_PAPERQUALITY (MAXCMD + 2) // command to select paper quality
  149. #define CMD_PAPERDEST (MAXCMD + 3) // selects paper destination
  150. #define CMD_PAPERSIZE (MAXCMD + 4) // selects paper size (Portrait or all)
  151. #define CMD_PAPERSIZE_LAND (MAXCMD + 5) // select landscape paper size
  152. #define CMD_PAGEPROTECT_ON (MAXCMD + 6) // selects page protection On
  153. #define CMD_PAGEPROTECT_OFF (MAXCMD + 7) // selects page protection Off
  154. #define CMD_IMAGECONTROL (MAXCMD + 8) // selects image control option
  155. #define CMD_PRINTDENSITY (MAXCMD + 9) // selects image control option
  156. #define MAXECMD 10 // total number of extended commands