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.

100 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1998-2001 Microsoft Corporation
  3. Module Name:
  4. httpreq.c
  5. Abstract:
  6. Dumps UL_HTTP_REQUEST structures.
  7. Author:
  8. Keith Moore (keithmo) 31-Jul-1998
  9. Environment:
  10. User Mode.
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. //
  15. // Public functions.
  16. //
  17. DECLARE_API( ulreq )
  18. /*++
  19. Routine Description:
  20. Dumps HTTP_REQUEST structures.
  21. Arguments:
  22. None.
  23. Return Value:
  24. None.
  25. --*/
  26. {
  27. ULONG_PTR address = 0;
  28. ULONG result;
  29. HTTP_REQUEST request;
  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( "ulreq" );
  38. return;
  39. }
  40. //
  41. // Read the request header.
  42. //
  43. if (!ReadMemory(
  44. address,
  45. &request,
  46. sizeof(request),
  47. &result
  48. ))
  49. {
  50. dprintf(
  51. "ulreq: cannot read HTTP_REQUEST @ %p\n",
  52. address
  53. );
  54. return;
  55. }
  56. //
  57. // Dump it.
  58. //
  59. DumpUlRequest(
  60. "",
  61. "ulreq: ",
  62. address,
  63. &request
  64. );
  65. } // ulreq