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.

146 lines
3.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // NetName.h
  7. //
  8. // Abstract:
  9. // Definition of the CNetworkNameParamsPage class, which implements the
  10. // Parameters page for Network Name resources.
  11. //
  12. // Implementation File:
  13. // NetName.cpp
  14. //
  15. // Author:
  16. //
  17. // Revision History:
  18. //
  19. // Notes:
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. #ifndef _NETNAME_H_
  23. #define _NETNAME_H_
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Include Files
  26. /////////////////////////////////////////////////////////////////////////////
  27. #ifndef __cluadmex_h__
  28. #include <CluAdmEx.h>
  29. #endif
  30. #ifndef _BASEPAGE_H_
  31. #include "BasePage.h" // for CBasePropertyPage
  32. #endif
  33. /////////////////////////////////////////////////////////////////////////////
  34. // Forward Class Declarations
  35. /////////////////////////////////////////////////////////////////////////////
  36. class CNetworkNameParamsPage;
  37. /////////////////////////////////////////////////////////////////////////////
  38. // External Class Declarations
  39. /////////////////////////////////////////////////////////////////////////////
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CNetworkNameParamsPage dialog
  42. /////////////////////////////////////////////////////////////////////////////
  43. class CNetworkNameParamsPage : public CBasePropertyPage
  44. {
  45. DECLARE_DYNCREATE(CNetworkNameParamsPage)
  46. // Construction
  47. public:
  48. CNetworkNameParamsPage(void);
  49. // Second phase construction.
  50. virtual HRESULT HrInit(IN OUT CExtObject * peo);
  51. // Dialog Data
  52. //{{AFX_DATA(CNetworkNameParamsPage)
  53. enum { IDD = IDD_PP_NETNAME_PARAMETERS };
  54. CStatic m_staticName;
  55. CButton m_pbRename;
  56. CStatic m_staticCore;
  57. CEdit m_editName;
  58. CString m_strName;
  59. CButton m_cbRequireDNS;
  60. int m_nRequireDNS;
  61. CButton m_cbRequireKerberos;
  62. int m_nRequireKerberos;
  63. CEdit m_editNetBIOSStatus;
  64. DWORD m_dwNetBIOSStatus;
  65. CEdit m_editDNSStatus;
  66. DWORD m_dwDNSStatus;
  67. CEdit m_editKerberosStatus;
  68. DWORD m_dwKerberosStatus;
  69. //}}AFX_DATA
  70. CString m_strPrevName;
  71. int m_nPrevRequireDNS;
  72. int m_nPrevRequireKerberos;
  73. DWORD m_dwPrevNetBIOSStatus;
  74. DWORD m_dwPrevDNSStatus;
  75. DWORD m_dwPrevKerberosStatus;
  76. protected:
  77. enum
  78. {
  79. epropName = 0,
  80. epropRequireDNS,
  81. epropRequireKerberos,
  82. epropStatusNetBIOS,
  83. epropStatusDNS,
  84. epropStatusKerberos,
  85. epropMAX
  86. };
  87. CObjectProperty m_rgProps[epropMAX];
  88. // Overrides
  89. public:
  90. // ClassWizard generate virtual function overrides
  91. //{{AFX_VIRTUAL(CNetworkNameParamsPage)
  92. public:
  93. virtual BOOL OnSetActive();
  94. protected:
  95. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  96. //}}AFX_VIRTUAL
  97. virtual BOOL BApplyChanges(void);
  98. protected:
  99. virtual const CObjectProperty * Pprops(void) const { return m_rgProps; }
  100. virtual DWORD Cprops(void) const { return sizeof(m_rgProps) / sizeof(CObjectProperty); }
  101. virtual void CheckForDownlevelCluster();
  102. // Implementation
  103. protected:
  104. DWORD m_dwFlags;
  105. BOOL BCore(void) const { return (m_dwFlags & CLUS_FLAG_CORE) != 0; }
  106. // Generated message map functions
  107. //{{AFX_MSG(CNetworkNameParamsPage)
  108. virtual BOOL OnInitDialog();
  109. afx_msg void OnChangeName();
  110. afx_msg void OnRename();
  111. afx_msg void OnRequireDNS();
  112. //}}AFX_MSG
  113. DECLARE_MESSAGE_MAP()
  114. }; //*** class CNetworkNameParamsPage
  115. /////////////////////////////////////////////////////////////////////////////
  116. #endif // _NETNAME_H_