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.

120 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Abstract:
  4. @doc
  5. @module SsDlg.h | Header file for the Snapshot Set dialog
  6. @end
  7. Author:
  8. Adi Oltean [aoltean] 07/22/1999
  9. Revision History:
  10. Name Date Comments
  11. aoltean 07/22/1999 Created
  12. aoltean 08/05/1999 Splitting wizard functionality in a base class
  13. --*/
  14. #if !defined(__VSS_SS_DLG_H__)
  15. #define __VSS_SS_DLG_H__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CGuidList structure
  21. struct GuidList
  22. {
  23. GuidList(GUID Guid, GuidList* pPrev = NULL)
  24. {
  25. m_Guid = Guid;
  26. m_pPrev = pPrev;
  27. };
  28. ~GuidList()
  29. {
  30. if (m_pPrev)
  31. delete m_pPrev;
  32. };
  33. GUID m_Guid;
  34. GuidList* m_pPrev;
  35. private:
  36. GuidList();
  37. GuidList(const GuidList&);
  38. };
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CSnapshotSetDlg dialog
  41. class CSnapshotSetDlg : public CVssTestGenericDlg
  42. {
  43. // Construction
  44. public:
  45. CSnapshotSetDlg(
  46. IVssCoordinator *pICoord,
  47. VSS_ID SnapshotSetId,
  48. CWnd* pParent = NULL);
  49. ~CSnapshotSetDlg();
  50. // Dialog Data
  51. //{{AFX_DATA(CSnapshotSetDlg)
  52. enum { IDD = IDD_SS };
  53. CString m_strSnapshotSetId;
  54. int m_nSnapshotsCount;
  55. CComboBox m_cbVolumes;
  56. CComboBox m_cbProviders;
  57. int m_nAttributes;
  58. BOOL m_bAsync;
  59. //}}AFX_DATA
  60. // ClassWizard generated virtual function overrides
  61. //{{AFX_VIRTUAL(CSnapshotSetDlg)
  62. protected:
  63. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  64. //}}AFX_VIRTUAL
  65. protected:
  66. CComPtr<IVssCoordinator> m_pICoord;
  67. VSS_ID m_SnapshotSetId;
  68. VSS_ID m_VolumeId;
  69. VSS_ID m_ProviderId;
  70. bool m_bDo;
  71. GuidList* m_pProvidersList;
  72. // REMOVED: GuidList* m_pVolumesList;
  73. CComPtr<IVssSnapshot> m_pSnap;
  74. void EnableGroup();
  75. void InitMembers();
  76. void InitVolumes();
  77. void InitProviders();
  78. // Generated message map functions
  79. //{{AFX_MSG(CSnapshotSetDlg)
  80. virtual BOOL OnInitDialog();
  81. afx_msg void OnNext();
  82. afx_msg void OnBack();
  83. afx_msg void OnAdd();
  84. afx_msg void OnDo();
  85. afx_msg void OnClose();
  86. //}}AFX_MSG
  87. DECLARE_MESSAGE_MAP()
  88. };
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91. #endif // !defined(__VSS_SS_DLG_H__)