Leaked source code of windows server 2003
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.

114 lines
2.2 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. IN BOOLEAN ForceDismount DEFAULT FALSE
  32. );
  33. NONVIRTUAL
  34. PVOL_LIODPDRV
  35. QueryDupVolume(
  36. IN PCWSTRING NtDriveName,
  37. IN OUT PMESSAGE Message DEFAULT NULL,
  38. IN BOOLEAN ExclusiveWrite DEFAULT FALSE,
  39. IN BOOLEAN FormatMedia DEFAULT FALSE,
  40. IN MEDIA_TYPE MediaType DEFAULT Unknown
  41. ) CONST;
  42. NONVIRTUAL
  43. PNTFS_SA
  44. GetNtfsSuperArea(
  45. );
  46. NONVIRTUAL
  47. BOOLEAN
  48. Extend(
  49. IN OUT PMESSAGE Message,
  50. IN BOOLEAN Verify,
  51. IN BIG_INT nsecOldSize
  52. );
  53. private:
  54. NONVIRTUAL
  55. VOID
  56. Construct (
  57. );
  58. NONVIRTUAL
  59. VOID
  60. Destroy(
  61. );
  62. NTFS_SA _ntfssa;
  63. };
  64. INLINE
  65. PNTFS_SA
  66. NTFS_VOL::GetNtfsSuperArea(
  67. )
  68. /*++
  69. Routine Description:
  70. This method returns a pointer to the NTFS Super Area
  71. associated with this volume.
  72. Arguments:
  73. None.
  74. Return Value:
  75. A pointer to the NTFS Super Area.
  76. --*/
  77. {
  78. return &_ntfssa;
  79. }
  80. #endif // _NTFSVOL_