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.

102 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. httpres.c
  5. Abstract:
  6. Dumps UL_HTTP_REQUEST structures.
  7. Author:
  8. Michael Courage (MCourage) 29-Oct-1999
  9. Environment:
  10. User Mode.
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. //
  15. // Public functions.
  16. //
  17. DECLARE_API( httpres )
  18. /*++
  19. Routine Description:
  20. Dumps UL_INTERNAL_RESPONSE structures.
  21. Arguments:
  22. None.
  23. Return Value:
  24. None.
  25. --*/
  26. {
  27. ULONG_PTR address = 0;
  28. ULONG result;
  29. UL_INTERNAL_RESPONSE response;
  30. SNAPSHOT_EXTENSION_DATA();
  31. //
  32. // Snag the address from the command line.
  33. //
  34. address = GetExpression( args );
  35. if (address == 0)
  36. {
  37. PrintUsage( "httpres" );
  38. return;
  39. }
  40. //
  41. // Read the request header.
  42. //
  43. if (!ReadMemory(
  44. address,
  45. &response,
  46. sizeof(response),
  47. &result
  48. ))
  49. {
  50. dprintf(
  51. "httpres: cannot read UL_INTERNAL_RESPONSE @ %p\n",
  52. address
  53. );
  54. return;
  55. }
  56. //
  57. // Dump it.
  58. //
  59. DumpHttpResponse(
  60. "",
  61. "httpres: ",
  62. address,
  63. &response
  64. );
  65. } // httpres