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.

121 lines
4.1 KiB

  1. ;---------------------------- Include File Header ---------------------------;
  2. ; Module Name: strucs.inc
  3. ;
  4. ; Most of these definitions are pulled straight from winddi.h. We have
  5. ; to copy these here because we don't have any good 'h2inc' C-include-to-
  6. ; Asm-include program for NT.
  7. ;
  8. ; Copyright (c) 1993-1994 Microsoft Corporation
  9. ;----------------------------------------------------------------------------;
  10. BMF_1BPP equ 1
  11. BMF_4BPP equ 2
  12. BMF_8BPP equ 3
  13. BMF_16BPP equ 4
  14. BMF_24BPP equ 5
  15. BMF_32BPP equ 6
  16. ;-----------------------------------------------------------------------;
  17. ; POINTL is used for points with a range of +/- 2G.
  18. ;-----------------------------------------------------------------------;
  19. POINTL STRUC
  20. ptl_x DD 0
  21. ptl_y DD 0
  22. POINTL ENDS
  23. ;-----------------------------------------------------------------------;
  24. ; SIZEL is used for extents with a range of +/- 2G
  25. ;-----------------------------------------------------------------------;
  26. SIZEL STRUC
  27. sizl_cx DD 0
  28. sizl_cy DD 0
  29. SIZEL ENDS
  30. ;-----------------------------------------------------------------------;
  31. ; Definition of a rectangle
  32. ;-----------------------------------------------------------------------;
  33. RECTL struc ; /* rcl */
  34. xLeft dd ?
  35. yTop dd ?
  36. xRight dd ?
  37. yBottom dd ?
  38. RECTL ends
  39. ;-----------------------------------------------------------------------;
  40. ; Definition of the physical device data structure
  41. ;
  42. ; NOTE: Changes to this structure must be reflected in driver.h!
  43. ;-----------------------------------------------------------------------;
  44. PDEV struc ; /* pdev, ppdev */
  45. pdev_xOffset dd ?
  46. pdev_yOffset dd ?
  47. pdev_xyOffset dd ?
  48. pdev_pjBase dd ?
  49. pdev_pjPorts dd ?
  50. pdev_pjScreen dd ?
  51. pdev_iBitmapFormat dd ?
  52. pdev_ulChipID dd ?
  53. pdev_ulChipNum dd ?
  54. PDEV ends
  55. ;-----------------------------------------------------------------------;
  56. ; Definition of our realized brush structures.
  57. ;
  58. ; NOTE: Changes to these structure must be reflected in driver.h!
  59. ;-----------------------------------------------------------------------;
  60. RBRUSH struc ; /* rb, prb */
  61. rb_fl dd ?
  62. rb_bTransparent dd ?
  63. rb_ulForeColor dd ?
  64. rb_ulBackColor dd ?
  65. rb_ptlBrushOrg db (size POINTL) dup(?)
  66. rb_apbe dd ?
  67. ; I haven't declared rb_aulPattern because we don't know the size of the
  68. ; rb_apbe array here.
  69. RBRUSH ends
  70. BRUSHENTRY struc ; /* be, pbe */
  71. be_prbVerify dd ?
  72. be_x dd ?
  73. be_y dd ?
  74. be_xy dd ?
  75. BRUSHENTRY ends
  76. ;-----------------------------------------------------------------------;
  77. ; Definitions for text output
  78. ;-----------------------------------------------------------------------;
  79. GLYPHPOS struc ; /* gp */
  80. gp_hg dd ? ; hglyph (unused by vga)
  81. gp_pgdf dd ? ; glyphdef
  82. gp_x dd ? ; glyph x position
  83. gp_y dd ? ; glyph y position
  84. GLYPHPOS ends
  85. GLYPHDEF struc ; /* gdf */
  86. gdf_pgb dd ? ; points to GLYPHBITS
  87. GLYPHDEF ends
  88. GLYPHBITS struc ; /* gb */
  89. gb_x dd ? ; glyph x offset
  90. gb_y dd ? ; glyph y offset
  91. gb_cx dd ? ; glyph width in pels
  92. gb_cy dd ? ; glyph height in pels
  93. gb_aj db ? ; glyph bit mask
  94. GLYPHBITS ends
  95. ;-----------------------------------------------------------------------;
  96. ; Macro to do a simple RET, with no stack stuff, in a proc.
  97. ;-----------------------------------------------------------------------;
  98. PLAIN_RET macro
  99. db 0c3h
  100. endm