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.

105 lines
1.2 KiB

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