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.

198 lines
5.7 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: geninc.cxx *
  3. * *
  4. * This module implements a program which generates structure offset *
  5. * definitions for kernel structures that are accessed in assembly code. *
  6. * *
  7. * Copyright (c) 1992-1999 Microsoft Corporation *
  8. \**************************************************************************/
  9. #include "precomp.hxx"
  10. include(BASE_INC_PATH\genxx.h)
  11. define(`pcomment',`genCom($1)')
  12. define(`pblank',`genSpc($1)')
  13. define(`pequate',`{ SEF_EQUATE, $2, $1 },')
  14. define(`pstruct',`{ SEF_EQUATE, $2, "sizeof_"$1 },')
  15. STRUC_ELEMENT ElementList[] = {
  16. START_LIST
  17. //
  18. // Default object type.
  19. //
  20. pcomment("Object Type Information")
  21. pblank()
  22. pequate("DEF_TYPE ",DEF_TYPE )
  23. //
  24. // Stuff from: \nt\private\windows\gdi\gre\hmgr.h
  25. //
  26. pcomment("Handle Manager Structures")
  27. pblank()
  28. pequate("UNIQUE_BITS ",UNIQUE_BITS )
  29. pequate("NONINDEX_BITS ",NONINDEX_BITS)
  30. pequate("INDEX_BITS ",INDEX_BITS )
  31. pequate("INDEX_MASK ",INDEX_MASK )
  32. pequate("VALIDUNIQUEMASK ",(USHORT)~FULLUNIQUE_MASK )
  33. pequate("OBJECT_OWNER_PUBLIC",OBJECT_OWNER_PUBLIC )
  34. pblank()
  35. pstruct("OBJECT",sizeof(OBJECT))
  36. pequate("object_cExclusiveLock ",OFFSET(OBJECT,cExclusiveLock))
  37. pequate("object_Tid ",OFFSET(OBJECT,Tid))
  38. pblank()
  39. pstruct("ENTRY",sizeof(ENTRY))
  40. pblank()
  41. pequate("entry_einfo ",OFFSET(ENTRY,einfo ))
  42. pequate("entry_ObjectOwner ",OFFSET(ENTRY,ObjectOwner))
  43. pequate("entry_Objt ",OFFSET(ENTRY,Objt ))
  44. pequate("entry_FullUnique ",OFFSET(ENTRY,FullUnique ))
  45. pblank()
  46. //
  47. // Stuff from: \nt\private\windows\gdi\gre\patblt.hxx
  48. //
  49. pcomment("PatBlt Structures")
  50. pblank()
  51. pstruct("FETCHFRAME",sizeof(FETCHFRAME))
  52. pblank()
  53. pequate("ff_pvTrg ",OFFSET(FETCHFRAME,pvTrg ))
  54. pequate("ff_pvPat ",OFFSET(FETCHFRAME,pvPat ))
  55. pequate("ff_xPat ",OFFSET(FETCHFRAME,xPat ))
  56. pequate("ff_cxPat ",OFFSET(FETCHFRAME,cxPat ))
  57. pequate("ff_culFill ",OFFSET(FETCHFRAME,culFill ))
  58. pequate("ff_culWidth ",OFFSET(FETCHFRAME,culWidth ))
  59. pequate("ff_culFillTmp ",OFFSET(FETCHFRAME,culFillTmp))
  60. pblank()
  61. //
  62. // Stuff from: \nt\public\sdk\inc\ntdef.h
  63. //
  64. pcomment("Math Structures")
  65. pblank()
  66. pstruct("LARGE_INTEGER",sizeof(LARGE_INTEGER))
  67. pblank()
  68. pequate("li_LowPart ",OFFSET(LARGE_INTEGER,u.LowPart))
  69. pequate("li_HighPart",OFFSET(LARGE_INTEGER,u.HighPart))
  70. pblank()
  71. //
  72. // Stuff from: \nt\public\sdk\inc\windef.h
  73. //
  74. pstruct("POINTL",sizeof(POINTL))
  75. pblank()
  76. pequate("ptl_x",OFFSET(POINTL,x))
  77. pequate("ptl_y",OFFSET(POINTL,y))
  78. pblank()
  79. //
  80. // Stuff from: \nt\private\windows\gdi\gre\xformobj.hxx
  81. //
  82. pcomment("Xform Structures")
  83. pblank()
  84. pequate("XFORM_SCALE ",XFORM_SCALE)
  85. pequate("XFORM_UNITY ",XFORM_UNITY)
  86. pequate("XFORM_Y_NEG ",XFORM_Y_NEG)
  87. pequate("XFORM_FORMAT_LTOFX",XFORM_FORMAT_LTOFX)
  88. pblank()
  89. //
  90. // Stuff from: \nt\private\windows\gdi\gre\engine.hxx
  91. //
  92. pstruct("MATRIX",sizeof(MATRIX))
  93. pblank()
  94. pequate("mx_efM11 ",OFFSET(MATRIX,efM11 ))
  95. pequate("mx_efM12 ",OFFSET(MATRIX,efM12 ))
  96. pequate("mx_efM21 ",OFFSET(MATRIX,efM21 ))
  97. pequate("mx_efM22 ",OFFSET(MATRIX,efM22 ))
  98. pequate("mx_efDx ",OFFSET(MATRIX,efDx ))
  99. pequate("mx_efDy ",OFFSET(MATRIX,efDy ))
  100. pequate("mx_fxDx ",OFFSET(MATRIX,fxDx ))
  101. pequate("mx_fxDy ",OFFSET(MATRIX,fxDy ))
  102. pequate("mx_flAccel",OFFSET(MATRIX,flAccel))
  103. pblank()
  104. pstruct("VECTORL",sizeof(VECTORL))
  105. pblank()
  106. pequate("vl_x",OFFSET(VECTORL,x))
  107. pequate("vl_y",OFFSET(VECTORL,y))
  108. pblank()
  109. //
  110. // Stuff from: \nt\private\windows\gdi\gre\epointfl.hxx
  111. //
  112. pstruct("VECTORFL",sizeof(VECTORFL))
  113. pblank()
  114. pequate("vfl_x",OFFSET(VECTORFL,x))
  115. pequate("vfl_y",OFFSET(VECTORFL,y))
  116. pblank()
  117. //
  118. // Stuff from \nt\private\windows\gdi\gre\rfntobj.hxx
  119. //
  120. pcomment("Wide Character to Glyph Mapping Structure")
  121. pblank()
  122. pequate("gr_wcLow ",OFFSET(GPRUN,wcLow ))
  123. pequate("gr_cGlyphs",OFFSET(GPRUN,cGlyphs))
  124. pequate("gr_apgd ",OFFSET(GPRUN,apgd ))
  125. pblank()
  126. pcomment("Wide Character Run Structure")
  127. pblank()
  128. pequate("gt_cRuns ",OFFSET(WCGP,cRuns ))
  129. pequate("gt_pgdDefault",OFFSET(WCGP,pgdDefault))
  130. pequate("gt_agpRun ",OFFSET(WCGP,agpRun ))
  131. pblank()
  132. pcomment("Realized Font Object Structures")
  133. pblank()
  134. pequate("rf_wcgp ",OFFSET(RFONT,wcgp ))
  135. pequate("rf_ulContent",OFFSET(RFONT, ulContent))
  136. pblank()
  137. pcomment("User Realized Font Object Structures")
  138. pblank()
  139. pequate("rfo_prfnt",OFFSET(RFONTOBJ,prfnt))
  140. pblank()
  141. //
  142. // Stuff from \nt\public\oak\inc\winddi.h
  143. //
  144. pcomment("Glyph Data Structure")
  145. pblank()
  146. pequate("gd_hg ",OFFSET(GLYPHDATA, hg ))
  147. pequate("gd_gdf",OFFSET(GLYPHDATA, gdf))
  148. pblank()
  149. pcomment("Glyph Position Structure")
  150. pblank()
  151. pequate("gp_hg ",OFFSET(GLYPHPOS, hg ))
  152. pequate("gp_pgdf",OFFSET(GLYPHPOS, pgdf))
  153. pequate("GLYPHPOS", sizeof(GLYPHPOS))
  154. pequate("FO_HGLYPHS", FO_HGLYPHS)
  155. pblank()
  156. END_LIST
  157. };