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.

145 lines
3.4 KiB

  1. /*++
  2. Module Name:
  3. frsProp.h
  4. Abstract:
  5. --*/
  6. #ifndef __FRSPROP_H_
  7. #define __FRSPROP_H_
  8. #include "dfsenums.h"
  9. #include "dfscore.h"
  10. #include "qwizpage.h" // The base class that implements the common functionality
  11. // of property and wizard pages
  12. // ----------------------------------------------------------------------------
  13. // CRealReplicaSetPropPage: Property Sheet Page for the Junction Point(Replica Set)
  14. class CRealReplicaSetPropPage : public CQWizardPageImpl<CRealReplicaSetPropPage>
  15. {
  16. public:
  17. enum { IDD = IDD_FRS_PROP };
  18. BEGIN_MSG_MAP(CRealReplicaSetPropPage)
  19. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  20. MESSAGE_HANDLER(WM_HELP, OnCtxHelp)
  21. MESSAGE_HANDLER(WM_CONTEXTMENU, OnCtxMenuHelp)
  22. MESSAGE_HANDLER(WM_PARENT_NODE_CLOSING, OnParentClosing)
  23. COMMAND_ID_HANDLER(IDC_FRSPROP_FILEFILTER_EDIT, OnEditFileFilter)
  24. COMMAND_ID_HANDLER(IDC_FRSPROP_DIRFILTER_EDIT, OnEditDirFilter)
  25. COMMAND_ID_HANDLER(IDC_FRSPROP_RESETSCHEDULE, OnResetSchedule)
  26. COMMAND_ID_HANDLER(IDC_FRSPROP_CUSTOMIZE, OnCustomize)
  27. CHAIN_MSG_MAP(CQWizardPageImpl<CRealReplicaSetPropPage>)
  28. END_MSG_MAP()
  29. CRealReplicaSetPropPage(
  30. );
  31. ~CRealReplicaSetPropPage(
  32. );
  33. LRESULT OnInitDialog(
  34. IN UINT i_uMsg,
  35. IN WPARAM i_wParam,
  36. LPARAM i_lParam,
  37. IN OUT BOOL& io_bHandled
  38. );
  39. LRESULT OnCtxHelp(
  40. IN UINT i_uMsg,
  41. IN WPARAM i_wParam,
  42. IN LPARAM i_lParam,
  43. IN OUT BOOL& io_bHandled
  44. );
  45. LRESULT OnCtxMenuHelp(
  46. IN UINT i_uMsg,
  47. IN WPARAM i_wParam,
  48. IN LPARAM i_lParam,
  49. IN OUT BOOL& io_bHandled
  50. );
  51. HRESULT Initialize(IN IReplicaSet* i_piReplicaSet);
  52. // Message handlers
  53. LRESULT OnApply(
  54. );
  55. LRESULT OnEditFileFilter(
  56. IN WORD i_wNotifyCode,
  57. IN WORD i_wID,
  58. IN HWND i_hWndCtl,
  59. IN OUT BOOL& io_bHandled
  60. );
  61. LRESULT OnEditDirFilter(
  62. IN WORD i_wNotifyCode,
  63. IN WORD i_wID,
  64. IN HWND i_hWndCtl,
  65. IN OUT BOOL& io_bHandled
  66. );
  67. LRESULT OnResetSchedule(
  68. IN WORD i_wNotifyCode,
  69. IN WORD i_wID,
  70. IN HWND i_hWndCtl,
  71. IN OUT BOOL& io_bHandled
  72. );
  73. LRESULT OnCustomize(
  74. IN WORD i_wNotifyCode,
  75. IN WORD i_wID,
  76. IN HWND i_hWndCtl,
  77. IN OUT BOOL& io_bHandled
  78. );
  79. // Used by the node to tell the propery page to close.
  80. LRESULT OnParentClosing(
  81. IN UINT i_uMsg,
  82. IN WPARAM i_wParam,
  83. LPARAM i_lParam,
  84. IN OUT BOOL& io_bHandled
  85. );
  86. // Used to set notification data
  87. HRESULT SetNotifyData(
  88. IN LONG_PTR i_lNotifyHandle,
  89. IN LPARAM i_lParam
  90. );
  91. protected:
  92. void _Reset();
  93. HRESULT _GetMemberDNInfo(
  94. IN BSTR i_bstrMemberDN,
  95. OUT BSTR* o_pbstrServer
  96. );
  97. private:
  98. LONG_PTR m_lNotifyHandle;
  99. LPARAM m_lNotifyParam;
  100. CComBSTR m_bstrTopologyPref;
  101. CComBSTR m_bstrFileFilter;
  102. CComBSTR m_bstrDirFilter;
  103. CComBSTR m_bstrPrimaryMemberDN;
  104. CComBSTR m_bstrHubMemberDN;
  105. long m_lNumOfMembers;
  106. long m_lNumOfConnections;
  107. CComPtr<IReplicaSet> m_piReplicaSet;
  108. };
  109. #endif // __FRSPROP_H_