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.

135 lines
3.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. Servpp.h
  7. Server properties header file
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_)
  11. #define AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_
  12. #ifndef _SPDDB_H
  13. #include "spddb.h"
  14. #endif
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. #define AUTO_REFRESH_MINUTES_MAX 180
  19. #define AUTO_REFRESH_SECONDS_MAX 59
  20. BOOL IsLocalSystemAccount(LPCTSTR pszAccount);
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CMachinePropRefresh dialog
  23. class CMachinePropRefresh : public CPropertyPageBase
  24. {
  25. DECLARE_DYNCREATE(CMachinePropRefresh)
  26. // Construction
  27. public:
  28. CMachinePropRefresh();
  29. ~CMachinePropRefresh();
  30. // Dialog Data
  31. //{{AFX_DATA(CMachinePropRefresh)
  32. enum { IDD = IDP_SERVER_REFRESH };
  33. CEdit m_editSeconds;
  34. CEdit m_editMinutes;
  35. CSpinButtonCtrl m_spinSeconds;
  36. CSpinButtonCtrl m_spinMinutes;
  37. CButton m_checkEnableStats;
  38. CButton m_checkEnableDns;
  39. //}}AFX_DATA
  40. void UpdateButtons();
  41. void ValidateMinutes();
  42. void ValidateSeconds();
  43. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  44. // Context Help Support
  45. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_IDP_SERVER_REFRESH[0]; }
  46. BOOL m_bAutoRefresh;
  47. BOOL m_bEnableDns;
  48. DWORD m_dwRefreshInterval;
  49. // Overrides
  50. // ClassWizard generate virtual function overrides
  51. //{{AFX_VIRTUAL(CMachinePropRefresh)
  52. public:
  53. virtual BOOL OnApply();
  54. protected:
  55. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. protected:
  59. // Generated message map functions
  60. //{{AFX_MSG(CMachinePropRefresh)
  61. virtual BOOL OnInitDialog();
  62. afx_msg void OnCheckEnableStats();
  63. afx_msg void OnCheckEnableDns();
  64. afx_msg void OnChangeEditMinutes();
  65. afx_msg void OnChangeEditSeconds();
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  71. //}}AFX
  72. class CMachineProperties : public CPropertyPageHolderBase
  73. {
  74. friend class CMachinePropRefresh;
  75. public:
  76. CMachineProperties(ITFSNode * pNode,
  77. IComponentData * pComponentData,
  78. ITFSComponentData * pTFSCompData,
  79. ISpdInfo * pSpdInfo,
  80. LPCTSTR pszSheetName,
  81. BOOL fSpdInfoLoaded);
  82. virtual ~CMachineProperties();
  83. ITFSComponentData * GetTFSCompData()
  84. {
  85. if (m_spTFSCompData)
  86. m_spTFSCompData->AddRef();
  87. return m_spTFSCompData;
  88. }
  89. HRESULT GetSpdInfo(ISpdInfo ** ppSpdInfo)
  90. {
  91. Assert(ppSpdInfo);
  92. *ppSpdInfo = NULL;
  93. SetI((LPUNKNOWN *) ppSpdInfo, m_spSpdInfo);
  94. return hrOK;
  95. }
  96. public:
  97. CMachinePropRefresh m_pageRefresh;
  98. CString m_strMachineName;
  99. protected:
  100. SPITFSComponentData m_spTFSCompData;
  101. SPISpdInfo m_spSpdInfo;
  102. BOOL m_fSpdInfoLoaded;
  103. };
  104. #endif // !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_)