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.

87 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. FTMan
  5. File Name:
  6. PhPart.h
  7. Abstract:
  8. The definition of class CPhysicalPartitionData. The class that stores all information related
  9. to a physical partition
  10. Author:
  11. Cristian Teodorescu October 23, 1998
  12. Notes:
  13. Revision History:
  14. --*/
  15. /////////////////////////////////////////////////////////////////////////////
  16. #if !defined(AFX_PHPART_H_INCLUDED_)
  17. #define AFX_PHPART_H_INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. #include <winioctl.h>
  22. #include "Item.h"
  23. ////////////////////////////////////////////////////////////////////////////////////////////////////
  24. // Class CPhysicalPartitionData
  25. class CPhysicalPartitionData : public CItemData
  26. {
  27. public:
  28. // Constructor providing the partition information
  29. CPhysicalPartitionData(
  30. DWORD dwDiskNumber,
  31. DWORD dwSignature,
  32. const PPARTITION_INFORMATION pPartInfo,
  33. PARTITION_TYPE wPartitionType,
  34. CItemData* pParentData = NULL,
  35. BOOL bIsRootVolume = FALSE );
  36. virtual ~CPhysicalPartitionData() {};
  37. // Operations
  38. public:
  39. virtual BOOL ReadItemInfo( CString& strErrors );
  40. virtual BOOL ReadMembers( CObArray& arrMembersData, CString& strErrors );
  41. virtual int ComputeImageIndex() const;
  42. virtual BOOL operator==(CItemData& rData) const;
  43. // Provide item properties
  44. virtual void GetDisplayName( CString& strDisplay ) const;
  45. virtual void GetDisplayType( CString& strDisplay ) const ;
  46. virtual BOOL GetSize( LONGLONG& llSize ) const;
  47. virtual BOOL GetDiskNumber( ULONG& ulDiskNumber ) const;
  48. virtual BOOL GetOffset( LONGLONG& llOffset) const;
  49. BOOL IsFTPartition() const;
  50. //Data members
  51. public:
  52. DWORD m_dwDiskNumber;
  53. DWORD m_dwSignature;
  54. PARTITION_INFORMATION m_PartInfo;
  55. PARTITION_TYPE m_wPartitionType;
  56. protected:
  57. virtual BOOL RetrieveNTName( CString& strNTName ) const;
  58. virtual BOOL RetrieveDisksSet();
  59. };
  60. #endif // !defined(AFX_PHPART_H_INCLUDED_)