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.

103 lines
2.9 KiB

  1. #ifndef CLUSTERPAGE_H
  2. #define CLUSTERPAGE_H
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. #include "MNLBUIData.h"
  6. #include "CommonClusterPage.h"
  7. class ClusterPage : public CPropertyPage
  8. {
  9. public:
  10. enum
  11. {
  12. IDD = IDD_CLUSTER_PAGE,
  13. };
  14. ClusterPage(
  15. CPropertySheet *pshOwner,
  16. LeftView::OPERATION op,
  17. NLB_EXTENDED_CLUSTER_CONFIGURATION *pNlbCfg,
  18. ENGINEHANDLE ehCluster OPTIONAL
  19. // ENGINEHANDLE ehInterface OPTIONAL
  20. );
  21. ~ClusterPage();
  22. // overrides of CPropertyPage
  23. virtual BOOL OnInitDialog();
  24. virtual BOOL OnNotify(WPARAM idCtrl , LPARAM pnmh , LRESULT* pResult) ;
  25. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam) ;
  26. BOOL SetActive(void);
  27. BOOL KillActive(void);
  28. afx_msg BOOL OnHelpInfo (HELPINFO* helpInfo );
  29. afx_msg void OnContextMenu( CWnd* pWnd, CPoint point );
  30. void
  31. mfn_SaveToNlbCfg(void);
  32. protected:
  33. LeftView::OPERATION m_operation; // operational context
  34. BOOL m_fWizard; // if this is a wizard
  35. BOOL m_fDisableClusterProperties; // if we're to disable
  36. // cluster properties.
  37. ENGINEHANDLE m_ehCluster; // engine handle to cluster (could be NULL)
  38. // ENGINEHANDLE m_ehInterface; // engine handle to inteface (could be NULL)
  39. //
  40. // Pointer to the object that does the actual work
  41. //
  42. CCommonClusterPage* m_pCommonClusterPage;
  43. //
  44. // The struct to be passed to the CCommonClusterPage as input and output
  45. //
  46. NETCFG_WLBS_CONFIG m_WlbsConfig;
  47. CPropertySheet *m_pshOwner;
  48. //
  49. // The (New) place to get/save config.
  50. //
  51. NLB_EXTENDED_CLUSTER_CONFIGURATION *m_pNlbCfg;
  52. void
  53. mfn_LoadFromNlbCfg(void);
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. static DWORD g_aHelpIDs_IDD_CLUSTER_PAGE [] = {
  57. IDC_GROUP_CL_IP, IDC_GROUP_CL_IP,
  58. IDC_TEXT_CL_IP, IDC_EDIT_CL_IP,
  59. IDC_EDIT_CL_IP, IDC_EDIT_CL_IP,
  60. IDC_TEXT_CL_MASK, IDC_EDIT_CL_MASK,
  61. IDC_EDIT_CL_MASK, IDC_EDIT_CL_MASK,
  62. IDC_TEXT_DOMAIN, IDC_EDIT_DOMAIN,
  63. IDC_EDIT_DOMAIN, IDC_EDIT_DOMAIN,
  64. IDC_TEXT_ETH, IDC_EDIT_ETH,
  65. IDC_EDIT_ETH, IDC_EDIT_ETH,
  66. IDC_GROUP_CL_MODE, IDC_GROUP_CL_MODE,
  67. IDC_RADIO_UNICAST, IDC_RADIO_UNICAST,
  68. IDC_RADIO_MULTICAST, IDC_RADIO_MULTICAST,
  69. IDC_CHECK_IGMP, IDC_CHECK_IGMP,
  70. IDC_GROUP_RCT, IDC_CHECK_RCT,
  71. IDC_CHECK_RCT, IDC_CHECK_RCT,
  72. IDC_TEXT_PASSW, IDC_EDIT_PASSW,
  73. IDC_EDIT_PASSW, IDC_EDIT_PASSW,
  74. IDC_TEXT_PASSW2, IDC_EDIT_PASSW2,
  75. IDC_EDIT_PASSW2, IDC_EDIT_PASSW2,
  76. 0, 0
  77. };
  78. #endif