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.

210 lines
5.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. servpp.h
  7. This file contains the prototypes for the server
  8. property page(s).
  9. FILE HISTORY:
  10. */
  11. #if !defined(AFX_SERVPP_H__A1A51385_AAB3_11D0_AB8B_00C04FC3357A__INCLUDED_)
  12. #define AFX_SERVPP_H__A1A51385_AAB3_11D0_AB8B_00C04FC3357A__INCLUDED_
  13. #if !defined _DNSPROP_H
  14. #include "dnsprop.h"
  15. #endif
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CServerPropGeneral dialog
  21. class CServerPropGeneral : public CPropertyPageBase
  22. {
  23. DECLARE_DYNCREATE(CServerPropGeneral)
  24. // Construction
  25. public:
  26. CServerPropGeneral();
  27. ~CServerPropGeneral();
  28. // Dialog Data
  29. //{{AFX_DATA(CServerPropGeneral)
  30. enum { IDD = IDP_SERVER_GENERAL };
  31. CEdit m_editMinutes;
  32. CEdit m_editHours;
  33. CEdit m_editConflictAttempts;
  34. CSpinButtonCtrl m_spinMinutes;
  35. CSpinButtonCtrl m_spinHours;
  36. CSpinButtonCtrl m_spinConflictAttempts;
  37. CButton m_checkStatAutoRefresh;
  38. CButton m_checkAuditLogging;
  39. BOOL m_nAuditLogging;
  40. BOOL m_nAutoRefresh;
  41. BOOL m_bShowBootp;
  42. //}}AFX_DATA
  43. DWORD m_dwSetFlags;
  44. DWORD m_dwRefreshInterval;
  45. BOOL m_bUpdateStatsRefresh;
  46. BOOL m_fIsInNt5Domain;
  47. UINT m_uImage;
  48. // Context Help Support
  49. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CServerPropGeneral::IDD); }
  50. // Overrides
  51. // ClassWizard generate virtual function overrides
  52. //{{AFX_VIRTUAL(CServerPropGeneral)
  53. public:
  54. virtual BOOL OnApply();
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  59. int m_nHours, m_nMinutes;
  60. // Implementation
  61. protected:
  62. // Generated message map functions
  63. //{{AFX_MSG(CServerPropGeneral)
  64. virtual BOOL OnInitDialog();
  65. afx_msg void OnCheckAutoRefresh();
  66. afx_msg void OnCheckAuditLogging();
  67. afx_msg void OnChangeEditRefreshHours();
  68. afx_msg void OnChangeEditRefreshMinutes();
  69. afx_msg void OnCheckShowBootp();
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. void ValidateRefreshInterval();
  73. public:
  74. };
  75. /////////////////////////////////////////////////////////////////////////////
  76. // CServerPropAdvanced dialog
  77. class CServerPropAdvanced : public CPropertyPageBase
  78. {
  79. DECLARE_DYNCREATE(CServerPropAdvanced)
  80. // Construction
  81. public:
  82. CServerPropAdvanced();
  83. ~CServerPropAdvanced();
  84. // Dialog Data
  85. //{{AFX_DATA(CServerPropAdvanced)
  86. enum { IDD = IDP_SERVER_ADVANCED };
  87. CStatic m_staticCredentials;
  88. CButton m_buttonCredentials;
  89. CButton m_buttonBrowseBackup;
  90. CStatic m_staticBindings;
  91. CButton m_buttonBindings;
  92. CStatic m_staticDatabase;
  93. CButton m_buttonBrowseDatabase;
  94. CEdit m_editDatabasePath;
  95. CButton m_buttonBrowseLog;
  96. CEdit m_editAuditLogPath;
  97. CEdit m_editBackupPath;
  98. CStatic m_staticLogFile;
  99. CSpinButtonCtrl m_spinConflictAttempts;
  100. CEdit m_editConflictAttempts;
  101. //}}AFX_DATA
  102. int m_nConflictAttempts;
  103. DWORD m_dwSetFlags;
  104. DWORD m_dwIp;
  105. CString m_strDatabasePath;
  106. CString m_strAuditLogPath;
  107. CString m_strBackupPath;
  108. CString m_strComputerName;
  109. BOOL m_fPathChange;
  110. // Context Help Support
  111. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CServerPropAdvanced::IDD); }
  112. // Overrides
  113. // ClassWizard generate virtual function overrides
  114. //{{AFX_VIRTUAL(CServerPropAdvanced)
  115. public:
  116. virtual BOOL OnApply();
  117. protected:
  118. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  119. //}}AFX_VIRTUAL
  120. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  121. DWORD GetMachineName(CString & strName);
  122. // Implementation
  123. protected:
  124. // Generated message map functions
  125. //{{AFX_MSG(CServerPropAdvanced)
  126. virtual BOOL OnInitDialog();
  127. afx_msg void OnButtonBrowseDatabase();
  128. afx_msg void OnButtonBrowseLog();
  129. afx_msg void OnChangeEditConflictAttempts();
  130. afx_msg void OnChangeEditDatabasePath();
  131. afx_msg void OnChangeEditLogPath();
  132. afx_msg void OnButtonBindings();
  133. afx_msg void OnButtonBrowseBackup();
  134. afx_msg void OnChangeEditBackup();
  135. afx_msg void OnButtonCredentials();
  136. //}}AFX_MSG
  137. DECLARE_MESSAGE_MAP()
  138. };
  139. //{{AFX_INSERT_LOCATION}}
  140. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  141. //}}AFX
  142. class CServerProperties : public CPropertyPageHolderBase
  143. {
  144. friend class CServerPropGeneral;
  145. public:
  146. CServerProperties(ITFSNode * pNode,
  147. IComponentData * pComponentData,
  148. ITFSComponentData * pTFSCompData,
  149. LPCTSTR pszSheetName);
  150. virtual ~CServerProperties();
  151. ITFSComponentData * GetTFSCompData()
  152. {
  153. if (m_spTFSCompData)
  154. m_spTFSCompData->AddRef();
  155. return m_spTFSCompData;
  156. }
  157. void SetVersion(LARGE_INTEGER & liVersion);
  158. void SetDnsRegistration(DWORD dwDynDnsFlags, DHCP_OPTION_SCOPE_TYPE dhcpOptionType);
  159. public:
  160. CServerPropGeneral m_pageGeneral;
  161. CServerPropAdvanced m_pageAdvanced;
  162. CDnsPropRegistration m_pageDns;
  163. LARGE_INTEGER m_liVersion;
  164. protected:
  165. SPITFSComponentData m_spTFSCompData;
  166. };
  167. #endif // !defined(AFX_SERVPP_H__A1A51385_AAB3_11D0_AB8B_00C04FC3357A__INCLUDED_)