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.

173 lines
3.9 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved
  3. Module Name:
  4. WzUnmang.h
  5. Abstract:
  6. Wizard for Unmanaging media - Copy Set Wizard.
  7. Author:
  8. Rohde Wakefield [rohde] 26-09-1997
  9. Revision History:
  10. --*/
  11. #ifndef _WZUNMANG_H
  12. #define _WZUNMANG_H
  13. // Pre-declare
  14. class CUnmanageWizard;
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CUnmanageWizardSelect dialog
  17. class CUnmanageWizardSelect : public CSakWizardPage
  18. {
  19. // Construction
  20. public:
  21. CUnmanageWizardSelect( );
  22. ~CUnmanageWizardSelect();
  23. // Dialog Data
  24. //{{AFX_DATA(CUnmanageWizardSelect)
  25. enum { IDD = IDD_WIZ_UNMANAGE_SELECT };
  26. //}}AFX_DATA
  27. // Overrides
  28. // ClassWizard generate virtual function overrides
  29. //{{AFX_VIRTUAL(CUnmanageWizardSelect)
  30. public:
  31. virtual BOOL OnSetActive();
  32. virtual LRESULT OnWizardNext();
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. HRESULT m_hrAvailable;
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(CUnmanageWizardSelect)
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnButtonRefresh();
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. private:
  45. void SetButtons();
  46. public:
  47. };
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CUnmanageWizardIntro dialog
  50. class CUnmanageWizardIntro : public CSakWizardPage
  51. {
  52. // Construction
  53. public:
  54. CUnmanageWizardIntro( );
  55. ~CUnmanageWizardIntro();
  56. // Dialog Data
  57. //{{AFX_DATA(CUnmanageWizardIntro)
  58. enum { IDD = IDD_WIZ_UNMANAGE_INTRO };
  59. // NOTE - ClassWizard will add data members here.
  60. // DO NOT EDIT what you see in these blocks of generated code !
  61. //}}AFX_DATA
  62. // Overrides
  63. // ClassWizard generate virtual function overrides
  64. //{{AFX_VIRTUAL(CUnmanageWizardIntro)
  65. public:
  66. virtual BOOL OnSetActive();
  67. protected:
  68. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  69. //}}AFX_VIRTUAL
  70. protected:
  71. // Generated message map functions
  72. //{{AFX_MSG(CUnmanageWizardIntro)
  73. virtual BOOL OnInitDialog();
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. };
  77. /////////////////////////////////////////////////////////////////////////////
  78. // CUnmanageWizardFinish dialog
  79. class CUnmanageWizardFinish : public CSakWizardPage
  80. {
  81. // Construction
  82. public:
  83. CUnmanageWizardFinish( );
  84. ~CUnmanageWizardFinish();
  85. // Dialog Data
  86. //{{AFX_DATA(CUnmanageWizardFinish)
  87. enum { IDD = IDD_WIZ_UNMANAGE_FINISH };
  88. // NOTE - ClassWizard will add data members here.
  89. // DO NOT EDIT what you see in these blocks of generated code !
  90. //}}AFX_DATA
  91. // Overrides
  92. // ClassWizard generate virtual function overrides
  93. //{{AFX_VIRTUAL(CUnmanageWizardFinish)
  94. public:
  95. virtual BOOL OnSetActive();
  96. protected:
  97. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  98. //}}AFX_VIRTUAL
  99. protected:
  100. // Generated message map functions
  101. //{{AFX_MSG(CUnmanageWizardFinish)
  102. virtual BOOL OnInitDialog();
  103. //}}AFX_MSG
  104. DECLARE_MESSAGE_MAP()
  105. };
  106. class CUnmanageWizard : public CSakWizardSheet
  107. {
  108. // Construction
  109. public:
  110. CUnmanageWizard();
  111. virtual ~CUnmanageWizard();
  112. public:
  113. // Property Pages
  114. CUnmanageWizardIntro m_IntroPage;
  115. CUnmanageWizardSelect m_SelectPage;
  116. CUnmanageWizardFinish m_FinishPage;
  117. CString m_DisplayName;
  118. // Attributes
  119. public:
  120. CComPtr<IHsmManagedResource> m_pHsmResource;
  121. CComPtr<IFsaResource> m_pFsaResource;
  122. // Operations
  123. public:
  124. virtual HRESULT OnFinish( void );
  125. STDMETHOD( AddWizardPages ) ( IN RS_PCREATE_HANDLE Handle, IN IUnknown* pPropSheetCallback, IN ISakSnapAsk* pSakSnapAsk );
  126. void DoThreadSetup( );
  127. };
  128. #endif