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.

60 lines
2.1 KiB

  1. /******************************Module*Header***********************************\
  2. *
  3. * *******************
  4. * * GDI SAMPLE CODE *
  5. * *******************
  6. *
  7. * Module Name: help.cxx
  8. *
  9. * Display the help information for p2kdx debug extension
  10. *
  11. * Copyright (C) 1994-1998 3Dlabs Inc. Ltd. All rights reserved.
  12. * Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved.
  13. ******************************************************************************/
  14. #include "dbgext.hxx"
  15. /**********************************Public*Routine******************************\
  16. *
  17. * help
  18. *
  19. * Prints a simple help summary of the debugging extentions.
  20. *
  21. *
  22. * Note: If you add any debugger extentions, please add a brief description here
  23. * then your new extention will be showed when the user types:
  24. * !p2kdx.help
  25. *
  26. ******************************************************************************/
  27. char* gaszHelp[] =
  28. {
  29. "=======================================================================\n"
  30. ,"Permedia 2 debugger extentions:\n"
  31. ,"-----------------------------------------------------------------------\n"
  32. ,"\n"
  33. ,"help\n"
  34. ,"Displays this help page.\n"
  35. ,"All of the debugger extensions support a -? option for extension specific "
  36. ,"help.\n"
  37. ,"All of the debugger extensions that expect a pointer (or handle) can\n"
  38. ,"parse expressions. Such as: ebp+8\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. ,"surf [Surf Pointer] -- dump permedia surf info\n"
  46. ,"pdev [PDev Pointer] [-?aghbipcrd] -- dump permedia PDev info\n"
  47. ,"fb [FunctionBlock Pointer] -- dump blt function block\n"
  48. ,"\n"
  49. ,"=======================================================================\n"
  50. ,NULL
  51. };
  52. DECLARE_API(help)
  53. {
  54. for (char **ppsz = gaszHelp; *ppsz; ppsz++)
  55. {
  56. dprintf("%s",*ppsz);
  57. }
  58. };// help()