Source code of Windows XP (NT5)
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.

85 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1995-1997 Microsoft Corporation
  3. Module Name:
  4. template.cxx
  5. Abstract:
  6. This is just a template for creating new NTSD extension commands.
  7. Author:
  8. Keith Moore (keithmo) 12-Nov-1997
  9. Revision History:
  10. --*/
  11. #include "inetdbgp.h"
  12. // Don't forget to add 'template' to inetdbg.def
  13. DECLARE_API( template )
  14. /*++
  15. Routine Description:
  16. This function is called as an NTSD extension to ...
  17. Arguments:
  18. hCurrentProcess - Supplies a handle to the current process (at the
  19. time the extension was called).
  20. hCurrentThread - Supplies a handle to the current thread (at the
  21. time the extension was called).
  22. CurrentPc - Supplies the current pc at the time the extension is
  23. called.
  24. lpExtensionApis - Supplies the address of the functions callable
  25. by this extension.
  26. lpArgumentString - Supplies the asciiz string that describes the
  27. ansi string to be dumped.
  28. Return Value:
  29. None.
  30. --*/
  31. {
  32. INIT_API();
  33. //
  34. // Skip leading blanks.
  35. //
  36. while( *lpArgumentString == ' ' ||
  37. *lpArgumentString == '\t' ) {
  38. lpArgumentString++;
  39. }
  40. if( *lpArgumentString == '\0' ) {
  41. //
  42. // ???
  43. //
  44. } else {
  45. //
  46. // ???
  47. //
  48. }
  49. } // DECLARE_API( template )