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.

179 lines
7.1 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: help.cxx
  3. *
  4. * Display the help information for gdiexts
  5. *
  6. * Created: 16-Feb-1995
  7. * Author: Lingyun Wang [lingyunw]
  8. *
  9. * Copyright (c) 1995-2000 Microsoft Corporation
  10. \**************************************************************************/
  11. #include "precomp.hxx"
  12. /******************************Public*Routine******************************\
  13. * help
  14. *
  15. * Prints a simple help summary of the debugging extentions.
  16. *
  17. * History:
  18. * 05-May-1993 -by- Gilman Wong [gilmanw]
  19. * Wrote it.
  20. \**************************************************************************/
  21. //
  22. // Debugger extention help. If you add any debugger extentions, please
  23. // add a brief description here. Thanks!
  24. //
  25. char *szHelp =
  26. "=======================================================================\n"
  27. "GDIEXTS server debugger extentions:\n"
  28. "-----------------------------------------------------------------------\n"
  29. "\n"
  30. "help -- Displays this help page.\n"
  31. "\n"
  32. "All of the debugger extensions support a -? option for extension\n"
  33. " specific help.\n"
  34. "All of the debugger extensions that expect a pointer (or handle)\n"
  35. " can parse expressions such as:\n"
  36. " ebp+8\n"
  37. " or\n"
  38. " win32k!gpentHmgr\n"
  39. "\n"
  40. "Switches are case insensitive and can be reordered unless otherwise\n"
  41. "specified in the extension help.\n"
  42. "\n"
  43. " - general extensions -\n"
  44. "\n"
  45. "dumphmgr -- handle manager objects\n"
  46. //"dumpdd -- DirectDraw: handle manager objects\n"
  47. "dumpobj [-p pid] [type] -- all objects of specific type\n"
  48. "dh <GDI HANDLE> -- HMGR entry of handle\n"
  49. "dht <GDI HANDLE> -- handle type/uniqueness/index\n"
  50. "dldev [LDEV ptr] -- LDEV\n"
  51. "dgdev [-clr | GRAPHICS_DEVICE] -- GRAPHICS_DEVICE list\n"
  52. "dfloat [-l num] Value -- Dump an IEEE float or float array\n"
  53. "dblt [BLTRECORD ptr] -- BLTRECORD\n"
  54. //"dddsurface [EDD_SURFACE ptr] -- EDD_SURFACE\n"
  55. //"dddlocal [EDD_DIRECTDRAW_LOCAL ptr] -- EDD_DIRECTDRAW_LOCAL\n"
  56. //"dddglobal [EDD_DIRECTDRAW_GLOBAL ptr] -- EDD_DIRECTDRAW_GLOBAL\n"
  57. "rgnlog nnn -- last nnn rgnlog entries\n"
  58. "stats -- accumulated statistics\n"
  59. "verifier -- Dump verifier information\n"
  60. "\n"
  61. "\n"
  62. " - type dump extensions -\n"
  63. "\n"
  64. "dt <Type> <Offset> -- GDI Type Dump w/ flag/enums\n"
  65. "bltinfo <BLTINFO Address> -- BLTINFO\n"
  66. "blendobj <BLENDOBJ Address> -- BLENDOBJ\n"
  67. "brush <BRUSH Address | HBRUSH> -- BRUSH\n"
  68. "brushobj <BRUSHOBJ Address> -- BRUSHOBJ\n"
  69. "clipobj <CLIPOBJ Address> -- CLIPOBJ\n"
  70. "ddc <DC Address | HDC> -- DC (ddc -? for more info)\n"
  71. "devmodea <DEVMODEA Address> -- Ascii DEVMODE\n"
  72. "devmodew <DEVMODEW Address> -- Unicode DEVMODE\n"
  73. "ebrush <EBRUSHOBJ Address> -- EBRUSHOBJ\n"
  74. "epathobj <EPATHOBJ Address> -- EPATHOBJ (+PATH)\n"
  75. "lineattrs <LINEATTRS Address> -- LINEATTRS\n"
  76. "maxtrix <MATRIX Address> -- MATRIX\n"
  77. "palette <PALETTE Address | HPALETTE> -- PALETTE\n"
  78. "path <PATH Address | HPATH> -- PATH\n"
  79. "pathobj <PATHOBJ Address> -- PATHOBJ\n"
  80. "pdev <PDEV Address> -- PDEV (pdev -? for more info)\n"
  81. "region <REGION Address | HRGN> -- REGION\n"
  82. "sprite <SPRITE Address> -- SPRITE\n"
  83. "spritestate <SPRITESTATE Address> -- SPRITE_STATE\n"
  84. "surface <SURFACE Address | HSURF> -- SURFACE\n"
  85. "surfobj <SURFOBJ Address | HSURF> -- SURFOBJ\n"
  86. "wndobj <WNDOBJ Address> -- WNDOBJ\n"
  87. "xlate <XLATE Address> -- XLATE\n"
  88. "xlateobj <XLATEOBJ Address> -- XLATEOBJ\n"
  89. //"obj <OBJ Address> -- OBJ\n"
  90. "\n"
  91. "\n"
  92. " - dc extensions -\n"
  93. "dclist -- list compact info about all known and readble surfaces\n"
  94. "ddc <DC Address | HDC> -- DC (ddc -? for more info)\n"
  95. "\n"
  96. " - session extensions -\n"
  97. "session [SessionId] -- Get/set session settings\n"
  98. "spoolfind <Tag> -- Search session pool for Tag\n"
  99. "spoolsum -- Summarize/verify pool numbers\n"
  100. "spoolused -- Show pool allocs by tag\n"
  101. "sprocess [SessionId [Flags]] -- Dump Processes in Session\n"
  102. "svtop <Session Virtual Address> -- Lookup physical address\n"
  103. "\n"
  104. " - surface extensions -\n"
  105. "pageinsurfs -- Page-in all surf objects found in hmgr\n"
  106. "pageinsurface <SURFACE Address> -- Page-in image bits for a surface\n"
  107. "surface <SURFACE Address | HSURF | -o SURFOBJ Address> -- Dump SURFACE type\n"
  108. "surfobj <SURFOBJ Address | HSURF> -- Dump SURFOBJ type\n"
  109. "surflist -- list compact info about all known and readable surfaces\n"
  110. "vsurf <SURFACE Address | HSURF | -o SURFOBJ Address> -- display a surface\n"
  111. "\n"
  112. " - process/thread extensions -\n"
  113. "batch [TEB Address | -t Thread] -- list batched GDI commands\n"
  114. "semorder [Thread] -- show semaphore usage history\n"
  115. "w32p [W32PROCESS Address | -p Process] -- dump W32PROCESS structure\n"
  116. "w32t [W32THREAD Address | -t Thread] -- dump W32THREAD structure\n"
  117. "\n"
  118. "\n"
  119. "hdc HDC [-?gltf]\n"
  120. "dcl DCLEVEL*\n"
  121. "dca DC_ATTR*\n"
  122. "ca COLORADJUSTMENT*\n"
  123. "efloat <EFLOAT Address> [Count]\n"
  124. "batch DISPLAY TEB BATCHED COMMANDS\n"
  125. "dpeb DISPLAY PEB CACHED OBJECTS\n"
  126. "floatl <FLOATL Address> [Count]\n"
  127. "xo XFORMOBJ*\n"
  128. "\n"
  129. " - font extensions -\n"
  130. "\n"
  131. "tstats\n"
  132. "gs FD_GLYPHSET*\n"
  133. "gdata GLYPHDATA*\n"
  134. "elf LOGFONTW*\n"
  135. "tm TEXTMETRICW*\n"
  136. "tmwi TMW_INTERNAL*\n"
  137. "helf HFONT\n"
  138. "ifi IFIMETRICS*\n"
  139. "fo RFONT* [-?axedtrfmoculhw]\n"
  140. "pfe PFE*\n"
  141. "pff PFF*\n"
  142. "pft PFT*\n"
  143. "stro STROBJ* [-?pheo]\n"
  144. "gb GLYPHBITS* [-?gh]\n"
  145. "gdf GLYPHDEF*\n"
  146. "gp GLYPHPOS*\n"
  147. "cache CACHE*\n"
  148. "fh FONTHASH*\n"
  149. "hb HASHBUCKET*\n"
  150. "fv FILEVIEW*\n"
  151. "ffv FONTFILEVIEW*\n"
  152. "cliserv CLISERV*\n"
  153. "dhelf HFONT\n"
  154. "difi IFIMETRICS*\n"
  155. "dstro STROBJ*\n"
  156. "gdicall GDICALL*\n"
  157. "hpfe HPFE\n"
  158. "proxymsg PROXYMSG*\n"
  159. "\n"
  160. "pubft -- dumps all PUBLIC fonts\n"
  161. "pvtft -- dumps all Private or Embedded fonts\n"
  162. "devft -- dumps all DEVICE fonts\n"
  163. "dispcache -- dumps glyph cache for display PDEV\n"
  164. "\n"
  165. "=======================================================================\n";
  166. DECLARE_API( help )
  167. {
  168. OutputControl OutCtl(Client);
  169. OutCtl.Output(szHelp);
  170. return S_OK;
  171. }