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.

62 lines
1.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: VolInfo.hxx
  7. //
  8. // Contents: Grab bag for volume-wide information
  9. //
  10. // History: 28-Jul-98 KyleP Pulled from cicat.hxx
  11. //
  12. //----------------------------------------------------------------------------
  13. #pragma once
  14. //+---------------------------------------------------------------------------
  15. //
  16. // Class: CVolumeInfo
  17. //
  18. // Purpose: Grab bag for volume-wide information
  19. //
  20. // History: 28-Jul-98 KyleP Pulled from cicat.hxx
  21. //
  22. //----------------------------------------------------------------------------
  23. class CVolumeInfo
  24. {
  25. public:
  26. CVolumeInfo()
  27. : _wch(0),
  28. _fUsnVolume(FALSE),
  29. _JournalId(0),
  30. _CreationTime(0),
  31. _SerialNumber(0)
  32. {
  33. }
  34. void Set( WCHAR wc,
  35. ULONGLONG const & CreationTime,
  36. ULONG SerialNumber,
  37. BOOL fUsnVolume,
  38. ULONGLONG const & JournalId );
  39. WCHAR DriveLetter() { return _wch; }
  40. BOOL FUsnVolume() { return _fUsnVolume; }
  41. HANDLE Volume() { return _xVolume.Get(); }
  42. VOLUMEID VolumeId() { return _wch; }
  43. ULONGLONG const & JournalId() { return _JournalId; }
  44. ULONGLONG const & CreationTime() { return _CreationTime; }
  45. ULONG SerialNumber() { return _SerialNumber; }
  46. private:
  47. ULONGLONG _JournalId; // Journal ID
  48. ULONGLONG _CreationTime; // Create timestamp
  49. ULONG _SerialNumber; // Serial Number
  50. SWin32Handle _xVolume;
  51. BOOL _fUsnVolume; // Does the volume support usns ?
  52. WCHAR _wch; // Drive letter of volume
  53. };