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.

189 lines
8.7 KiB

  1. .XLIST ;AN000;
  2. PAGE ;AN000;
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000;
  4. ;; DOS - GRAPHICS Command
  5. ;;
  6. ;; ;AN000;
  7. ;; File Name: GRSHAR.STR ;AN000;
  8. ;; ---------- ;AN000;
  9. ;; ;AN000;
  10. ;; Description: ;AN000;
  11. ;; ------------ ;AN000;
  12. ;; Include file containing structures and equates for ;AN000;
  13. ;; Shared Data Area. ;AN000;
  14. ;; ;AN000;
  15. ;; This area is used for communication between the installation process ;AN000;
  16. ;; and the Print Screen process; it contains all the information ;AN000;
  17. ;; extracted from the printer profile. ;AN000;
  18. ;; ;AN000;
  19. ;; ;AN000;
  20. ;; Change History: ;AN000;
  21. ;; --------------- ;AN000;
  22. ;; ;AN000;
  23. ;; ;AN000;
  24. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000;
  25. ;; ;AN000;
  26. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000;
  27. .LIST ;AN000;
  28. ; ;AN000;
  29. SHARED_DATA_AREA_STR STRUC ; ;AN000;
  30. SD_TOTAL_SIZE DW ? ; Total # bytes ALLOCATED to the ;AN000;
  31. ; the Shared Data Area. ;AN000;
  32. ;;;;;;;;;;;; Environment ;;;;;;;;;;;;;; ;AN000;
  33. SWITCHES DB 0 ; Command line switches ;AN000;
  34. HARDWARE_CONFIG DB ? ; Type of video hardware ;AN000;
  35. PRINTER_TYPE DB ? ; Type of printer attached ;AN000;
  36. ; ;AN000;
  37. ;;;;;;;;;;;; Profile Data ;;;;;;;;;;;;; ;AN000;
  38. DARKADJUST_VALUE DB 0 ; Darkness adjustment value ;AN000;
  39. ; ;AN000;
  40. NUM_PRT_COLOR DB ? ; Number of print colors ;AN000;
  41. COLORPRINT_PTR DW ? ; Pointer to COLORPRINT info ;AN000;
  42. ; ;AN000;
  43. NUM_PRT_BANDS DB ? ; Number of selectable print bands ;AN000;
  44. COLORSELECT_PTR DW ? ; Pointer to COLORSELECT info ;AN000;
  45. ; bands ;AN000;
  46. DISPLAYMODE_PTR DW ? ; Pointer to start of DISPLAYMODE ;AN000;
  47. ; info ;AN000;
  48. ;\/ ~~mda(001) ----------------------------------------------------------
  49. ; Added DATA_TYPE, which can be either DATA_ROW or DATA_COL.
  50. ; Needed so know if should send info to the printer in row
  51. ; or column format. IBM and EPSON use column format and HP
  52. ; PCL uses row format.
  53. DATA_TYPE DB ?
  54. ;/\ ~~mda(001) ----------------------------------------------------------
  55. ;\/ ~~mda(001) ----------------------------------------------------------
  56. ; Added ROW_TO_EXTRACT which is set in PRINT_BW_APA and
  57. ; used in STORE_BOX so we know what row to extract from the
  58. ; printer box.
  59. ROW_TO_EXTRACT DB ?
  60. ;/\ ~~mda(001) ----------------------------------------------------------
  61. ;\/ ~~mda(001) ----------------------------------------------------------
  62. ; Added COUNT which is used to store either the ASCII
  63. ; or the binary representation of the count. This is used
  64. ; instead of LOW_BYT_COUNT_PTR and HIGH_BYT_COUNT_PTR in
  65. ; the DISPLAYMODE structure. Also added NUM_BYTES_FOR_COUNT
  66. ; which is the length of the ascii number in COUNT.
  67. DB ? ; COUNT grows up
  68. DB ? ; ^
  69. DB ? ; ^
  70. DB ? ; ^
  71. COUNT DB ? ; ^
  72. NUM_BYTES_FOR_COUNT DB ? ; Number of bytes needed to store ascii #
  73. ;/\ ~~mda(001) ----------------------------------------------------------
  74. ;\/ ~~mda(001) ----------------------------------------------------------
  75. ; Added the following variable (which is set in PARSE_GRAPHICS
  76. ; and used in END_PRT_LINE) so we know if we have a printer,
  77. ; such as an IBM printer, that needs a CR & LF to be sent after
  78. ; each scan line is printed. Note: HP PCL printers don't
  79. ; need a CR, LF to be sent.
  80. PRINTER_NEEDS_CR_LF DB ?
  81. ;/\ ~~mda(001) ----------------------------------------------------------
  82. ;
  83. SHARED_DATA_AREA_STR ENDS ;; ;AN000;
  84. ;AN000;
  85. ;AN000;
  86. ;;;;;;;;; COLORSELECT info structure ;;;; ;AN000;
  87. ; ;AN000;
  88. COLORSELECT_STR STRUC ; ;AN000;
  89. NUM_SELECT_ESC DB ? ; number of escape bytes to ;AN000;
  90. ; select this band ;AN000;
  91. SELECT_ESC DB ? ; Escape bytes to select band ;AN000;
  92. COLORSELECT_STR ENDS ;; ;AN000;
  93. ;AN000;
  94. ;AN000;
  95. ;AN000;
  96. ;;;;;;;;; COLORPRINT info structure ;;;;; ;AN000;
  97. ; ;AN000;
  98. COLORPRINT_STR STRUC ; ;AN000;
  99. RED DB ? ; RGB value ;AN000;
  100. GREEN DB ? ; ;AN000;
  101. BLUE DB ? ; ;AN000;
  102. ; Bit mask indicating color ;AN000;
  103. SELECT_MASK DB ? ; bands required: ;AN000;
  104. ; Bit 0: first band in table ;AN000;
  105. COLORPRINT_STR ENDS ;; Bit 1: second band... ;AN000;
  106. ;AN000;
  107. ;AN000;
  108. ;;;;;;;;; DISPLAYMODE info structure ;;;; ;AN000;
  109. ; A new block is built when a ;AN000;
  110. DISPLAYMODE_STR STRUC ; DISPLAYMODE statement is ;AN000;
  111. ; found ;AN000;
  112. NEXT_DISP_MODE DW ? ; Pointer to info for next ;AN000;
  113. ; display mode; -1 if last ;AN000;
  114. NUM_DISP_MODE DB ? ; Number of display modes for ;AN000;
  115. DISP_MODE_LIST_PTR DW ? ; this record - list of them ;AN000;
  116. ; ;AN000;
  117. BOX_WIDTH DB ? ; Print box size - horizontal ;AN000;
  118. BOX_HEIGHT DB ? ; Print box size - vertical ;AN000;
  119. ; ;AN000;
  120. NUM_PATTERNS DB ? ; Number of grey patterns for ;AN000;
  121. ; this box size ;AN000;
  122. PATTERN_TAB_PTR DW ? ; pointer to grey pattern table ;AN000;
  123. ; for this display mode ;AN000;
  124. NUM_GRAPHICS_ESC DB ? ; # of escape byte for GRAPHICS ;AN000;
  125. GRAPHICS_ESC_PTR DW ? ; pointer to GRAPHICS escape ;AN000;
  126. LOW_BYT_COUNT_PTR DW ? ; pointers to number of bytes sent ;AN000;
  127. HGH_BYT_COUNT_PTR DW ? ; to the printer (1 word holds this ;AN000;
  128. ; number but, must be send 1 byte ;AN000;
  129. ; at a time). ;AN000;
  130. NUM_SETUP_ESC DB ? ; # of escape byte for SETUP ;AN000;
  131. SETUP_ESC_PTR DW ? ; pointer to SETUP escape seq ;AN000;
  132. ; for this display mode ;AN000;
  133. NUM_RESTORE_ESC DB ? ; # of escape byte for RESTORE ;AN000;
  134. RESTORE_ESC_PTR DW ? ; pointer to RESTORE escape ;AN000;
  135. ; seq for this display mode ;AN000;
  136. PRINT_OPTIONS DB ? ; ;AN000;
  137. ; ;AN000;
  138. ;\/ ~~mda(001) ----------------------------------------------------------
  139. ; The following is the # of esc bytes after the word DATA
  140. ; in the GRAPHICS statement.
  141. NUM_GRAPHICS_ESC_AFTER_DATA DB ? ;
  142. ;/\ ~~mda(001) ----------------------------------------------------------
  143. DISPLAYMODE_STR ENDS ;; ;AN000;
  144. ;
  145. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000;
  146. ;; ;AN000;
  147. ;; SHARED DATA AREA - EQUATES ;AN000;
  148. ;; ;AN000;
  149. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;AN000;
  150. ;AN000;
  151. ; SWITCHES DB <bit mask> ; Command line switches: ;AN000;
  152. REVERSE_SW EQU 1 ; /R ;AN000;
  153. BACKGROUND_SW EQU 2 ; /B ;AN000;
  154. ; ;AN000;
  155. ; HARDWARE_CONFIG DB <bit mask> ; Type of video hardware ;AN000;
  156. PALACE EQU 1 ; attached ;AN000;
  157. ROUNDUP EQU 2 ; PS 2 MODEL 50 60 AND 80 ;AN000;
  158. EGA EQU 4 ; Enhance Graphics Adapter ;AN000;
  159. PC_CONVERTIBLE EQU 8 ; PC Convertible LCD ;AN000;
  160. OLD_ADAPTER EQU 16 ; Color Graph. Adater or MONO ;AN000;
  161. ; ;AN000;
  162. ; PRINTER_TYPE DB <bit mask> ; Type of printer attached ;AN000;
  163. COLOR EQU 1 ; ;AN000;
  164. BLACK_WHITE EQU 2 ; ;AN000;
  165. ; ;AN000;
  166. ; PRINT_OPTIONS DB <bit mask> ; ;AN000;
  167. ROTATE EQU 1 ; ;AN000;
  168. ;\/ ~~mda(001) ----------------------------------------------------------
  169. ; Added the following equates, which are used for the
  170. ; DATA_TYPE.
  171. ;
  172. DATA_COL EQU 0
  173. DATA_ROW EQU 1
  174. ;
  175. ;/\ ~~mda(001) ----------------------------------------------------------
  176. ;\/ ~~mda(001) ----------------------------------------------------------
  177. ; Added the following equates, which are used during parsing
  178. ; and printing, to distinguish between esc seq., types of
  179. ; counts, and data.
  180. ESC_NUM_CODE EQU 0E0H
  181. COUNT_CODE EQU 0C0H
  182. LOWCOUNT_CODE EQU 0C1H
  183. HIGHCOUNT_CODE EQU 0C2H
  184. DATA_CODE EQU 0DDH
  185. ;
  186. ;/\ ~~mda(001) ----------------------------------------------------------
  187.