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.
 
 
 
 
 
 

118 lines
2.7 KiB

#ifndef HOSTPAGE_H
#define HOSTPAGE_H
#include "stdafx.h"
#include "resource.h"
#include "MNLBUIData.h"
#include "IpSubnetMaskControl.h"
class HostPage : public CPropertyPage
{
public:
enum
{
IDD = IDD_HOST_PAGE,
};
HostPage(
CPropertySheet *psh,
NLB_EXTENDED_CLUSTER_CONFIGURATION *pNlbCfg,
ENGINEHANDLE ehCluster OPTIONAL,
const ENGINEHANDLE *pehInterface OPTIONAL
);
// member controls
CComboBox nicName;
CComboBox priority;
//
// IpAddress and subnet mask
//
CIPAddressCtrl ipAddress;
CIPAddressCtrl subnetMask;
CComboBox initialState;
CButton persistSuspend;
// overrides of CPropertyPage
virtual void DoDataExchange( CDataExchange* pDX );
virtual BOOL OnInitDialog();
virtual void OnOK();
virtual BOOL OnSetActive();
virtual BOOL OnKillActive();
afx_msg void OnSelectedNicChanged();
afx_msg void OnGainFocusDedicatedIP();
afx_msg void OnGainFocusDedicatedMask();
afx_msg BOOL OnHelpInfo (HELPINFO* helpInfo );
afx_msg void OnContextMenu( CWnd* pWnd, CPoint point );
virtual BOOL OnWizardFinish( );
private:
CPropertySheet *m_pshOwner;
ULONG m_AvailableHostPriorities;
ENGINEHANDLE m_ehCluster; // engine handle to cluster (could be NULL)
const ENGINEHANDLE *m_pehInterface; // engine handle to inteface (could be NULL)
ClusterData* m_clusterData;
// The (New) place to get/save config.
//
NLB_EXTENDED_CLUSTER_CONFIGURATION *m_pNlbCfg;
BOOL m_fSaved; // If the config has been saved (from ui) at least once.
void
mfn_LoadFromNlbCfg(void);
void
mfn_SaveToNlbCfg(void);
BOOL
mfn_ValidateData();
BOOL
mfn_ValidateDip(LPCWSTR szDip);
DECLARE_MESSAGE_MAP()
};
// help ids for this dialog.
//
static DWORD g_aHelpIDs_IDD_HOST_PAGE [] = {
IDC_GROUP_NIC, IDC_GROUP_NIC,
IDC_NIC_FRIENDLY, IDC_NIC_FRIENDLY,
IDC_TEXT_PRI, IDC_EDIT_PRI,
IDC_EDIT_PRI, IDC_EDIT_PRI,
IDC_GROUP_DED_IP, IDC_GROUP_DED_IP,
IDC_TEXT_DED_IP, IDC_EDIT_DED_IP,
IDC_EDIT_DED_IP, IDC_EDIT_DED_IP,
IDC_TEXT_DED_MASK, IDC_EDIT_DED_MASK,
IDC_EDIT_DED_MASK, IDC_EDIT_DED_MASK,
IDC_GROUP_INITIAL_HOST_STATE, IDC_GROUP_INITIAL_HOST_STATE,
IDC_COMBOBOX_DEFAULT_STATE, IDC_COMBOBOX_DEFAULT_STATE,
IDC_TEXT_DEFAULT_STATE, IDC_COMBOBOX_DEFAULT_STATE,
IDC_CHECK_PERSIST_SUSPEND, IDC_CHECK_PERSIST_SUSPEND,
0, 0
};
#endif