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.

140 lines
3.0 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. ipadddlg.h
  7. FILE HISTORY:
  8. */
  9. #if !defined(AFX_IPADDDLG_H__24EB4276_990D_11D1_BA31_00C04FBF914A__INCLUDED_)
  10. #define AFX_IPADDDLG_H__24EB4276_990D_11D1_BA31_00C04FBF914A__INCLUDED_
  11. #if _MSC_VER >= 1000
  12. #pragma once
  13. #endif // _MSC_VER >= 1000
  14. #include <ipaddr.hpp>
  15. #include "dialog.h"
  16. #ifndef _REPNODPP_H
  17. #include "repnodpp.h"
  18. #endif
  19. #ifndef _ROOT_H
  20. #include "root.h"
  21. #endif
  22. #ifndef _REPPART_H
  23. #include "reppart.h"
  24. #endif
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CIPAddressDlg dialog
  27. class CIPAddressDlg : public CBaseDialog
  28. {
  29. // Construction
  30. public:
  31. CIPAddressDlg(CWnd* pParent = NULL); // standard constructor
  32. // Dialog Data
  33. //{{AFX_DATA(CIPAddressDlg)
  34. enum { IDD = IDD_IPADDRESS };
  35. CStatic m_staticDescription;
  36. CEdit m_editServerName;
  37. CButton m_buttonOK;
  38. CString m_strNameOrIp;
  39. //}}AFX_DATA
  40. virtual BOOL DoExtraValidation() { return TRUE; }
  41. virtual DWORD * GetHelpMap() { return WinsGetHelpMap(CIPAddressDlg::IDD);};
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CIPAddressDlg)
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. // Implementation
  49. protected:
  50. // Generated message map functions
  51. //{{AFX_MSG(CIPAddressDlg)
  52. virtual void OnOK();
  53. virtual BOOL OnInitDialog();
  54. afx_msg void OnChangeEditServerName();
  55. afx_msg void OnButtonBrowseComputers();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. public:
  59. BOOL ValidateIPAddress();
  60. CString m_strServerIp;
  61. CString m_strServerName;
  62. DWORD m_dwServerIp;
  63. protected:
  64. BOOL m_fNameRequired;
  65. };
  66. class CNewWinsServer : public CIPAddressDlg
  67. {
  68. public:
  69. virtual BOOL DoExtraValidation();
  70. public:
  71. CWinsRootHandler * m_pRootHandler;
  72. SPITFSNode m_spRootNode;
  73. };
  74. class CNewPersonaNonGrata : public CIPAddressDlg
  75. {
  76. public:
  77. CNewPersonaNonGrata()
  78. {
  79. m_fNameRequired = FALSE;
  80. }
  81. virtual BOOL DoExtraValidation();
  82. public:
  83. CRepNodePropAdvanced * m_pRepPropDlg;
  84. };
  85. class CNewReplicationPartner : public CIPAddressDlg
  86. {
  87. public:
  88. virtual BOOL DoExtraValidation();
  89. protected:
  90. virtual BOOL OnInitDialog();
  91. public:
  92. CReplicationPartnersHandler * m_pRepPartHandler;
  93. SPITFSNode m_spRepPartNode;
  94. };
  95. class CGetTriggerPartner : public CIPAddressDlg
  96. {
  97. public:
  98. CGetTriggerPartner()
  99. {
  100. m_fNameRequired = FALSE;
  101. }
  102. protected:
  103. virtual BOOL OnInitDialog();
  104. };
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  107. #endif // !defined(AFX_IPADDDLG_H__24EB4276_990D_11D1_BA31_00C04FBF914A__INCLUDED_)