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.

92 lines
2.8 KiB

  1. #if !defined(AFX_HOSTED_H__46C0FDC0_6E97_40CF_807A_91051E61BB1F__INCLUDED_)
  2. #define AFX_HOSTED_H__46C0FDC0_6E97_40CF_807A_91051E61BB1F__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Settings.h : header file
  7. //
  8. #include "vssprop.h" // VSSUI_VOLUME_LIST
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CSettings dialog
  11. class CSettings : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CSettings(CWnd* pParent = NULL); // standard constructor
  16. CSettings(LPCTSTR pszComputer, LPCTSTR pszVolume, CWnd* pParent = NULL);
  17. ~CSettings();
  18. // Dialog Data
  19. //{{AFX_DATA(CSettings)
  20. enum { IDD = IDD_SETTINGS };
  21. CStatic m_ctrlStorageVolumeStatic;
  22. CEdit m_ctrlDiffLimits;
  23. CSpinButtonCtrl m_ctrlSpin;
  24. CComboBox m_ctrlStorageVolume;
  25. CString m_strVolume;
  26. //}}AFX_DATA
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CSettings)
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. void _ResetInterfacePointers();
  36. HRESULT Init(
  37. IVssDifferentialSoftwareSnapshotMgmt *piDiffSnapMgmt,
  38. IN ITaskScheduler* piTS,
  39. IN BOOL bCluster,
  40. IN VSSUI_VOLUME_LIST* pVolumeList,
  41. IN BOOL bReadOnlyDiffVolume
  42. );
  43. HRESULT NotifyClusterTaskSchedulerResource(
  44. IN ITaskScheduler* i_piTS,
  45. IN LPCTSTR i_pszVolumeName
  46. );
  47. protected:
  48. CString m_strComputer;
  49. CComPtr<IVssDifferentialSoftwareSnapshotMgmt> m_spiDiffSnapMgmt;
  50. CComPtr<ITaskScheduler> m_spiTS;
  51. BOOL m_bCluster;
  52. VSSUI_VOLUME_LIST* m_pVolumeList;
  53. CString m_strDiffVolumeDisplayName;
  54. ULONGLONG m_llMaximumDiffSpace;
  55. ULONGLONG m_llDiffLimitsInMB;
  56. BOOL m_bHasDiffAreaAssociation;
  57. BOOL m_bReadOnlyDiffVolume;
  58. ULONGLONG m_llDiffVolumeTotalSpace;
  59. ULONGLONG m_llDiffVolumeFreeSpace;
  60. CComPtr<ITask> m_spiTask;
  61. PTSTR m_pszTaskName;
  62. // Generated message map functions
  63. //{{AFX_MSG(CSettings)
  64. virtual void OnOK();
  65. virtual void OnCancel();
  66. virtual BOOL OnInitDialog();
  67. afx_msg void OnViewFiles();
  68. afx_msg void OnSchedule();
  69. afx_msg void OnSelchangeDiffVolume();
  70. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  71. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  72. afx_msg void OnLimits();
  73. afx_msg void OnDeltaposSettingsSpin(NMHDR* pNMHDR, LRESULT* pResult);
  74. //}}AFX_MSG
  75. DECLARE_MESSAGE_MAP()
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_HOSTED_H__46C0FDC0_6E97_40CF_807A_91051E61BB1F__INCLUDED_)