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.

113 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. ntfsvol.hxx
  5. Abstract:
  6. This class implements NTFS only VOLUME items.
  7. Author:
  8. Norbert P. Kusters (norbertk) 29-Jul-91
  9. --*/
  10. #if !defined(_NTFSVOL_)
  11. #define _NTFSVOL_
  12. #include "volume.hxx"
  13. #include "ntfssa.hxx"
  14. DECLARE_CLASS( NTFS_SA );
  15. DECLARE_CLASS( NTFS_VOL );
  16. DECLARE_CLASS( MESSAGE );
  17. class NTFS_VOL : public VOL_LIODPDRV {
  18. public:
  19. DECLARE_CONSTRUCTOR( NTFS_VOL );
  20. VIRTUAL
  21. ~NTFS_VOL(
  22. );
  23. NONVIRTUAL
  24. FORMAT_ERROR_CODE
  25. Initialize(
  26. IN PCWSTRING NtDriveName,
  27. IN OUT PMESSAGE Message DEFAULT NULL,
  28. IN BOOLEAN ExclusiveWrite DEFAULT FALSE,
  29. IN BOOLEAN FormatMedia DEFAULT FALSE,
  30. IN MEDIA_TYPE MediaType DEFAULT Unknown
  31. );
  32. NONVIRTUAL
  33. PVOL_LIODPDRV
  34. QueryDupVolume(
  35. IN PCWSTRING NtDriveName,
  36. IN OUT PMESSAGE Message DEFAULT NULL,
  37. IN BOOLEAN ExclusiveWrite DEFAULT FALSE,
  38. IN BOOLEAN FormatMedia DEFAULT FALSE,
  39. IN MEDIA_TYPE MediaType DEFAULT Unknown
  40. ) CONST;
  41. NONVIRTUAL
  42. PNTFS_SA
  43. GetNtfsSuperArea(
  44. );
  45. NONVIRTUAL
  46. BOOLEAN
  47. Extend(
  48. IN OUT PMESSAGE Message,
  49. IN BOOLEAN Verify,
  50. IN BIG_INT nsecOldSize
  51. );
  52. private:
  53. NONVIRTUAL
  54. VOID
  55. Construct (
  56. );
  57. NONVIRTUAL
  58. VOID
  59. Destroy(
  60. );
  61. NTFS_SA _ntfssa;
  62. };
  63. INLINE
  64. PNTFS_SA
  65. NTFS_VOL::GetNtfsSuperArea(
  66. )
  67. /*++
  68. Routine Description:
  69. This method returns a pointer to the NTFS Super Area
  70. associated with this volume.
  71. Arguments:
  72. None.
  73. Return Value:
  74. A pointer to the NTFS Super Area.
  75. --*/
  76. {
  77. return &_ntfssa;
  78. }
  79. #endif // _NTFSVOL_