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.

159 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. w3servic.h
  5. Abstract:
  6. WWW Service Property Page
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. //{{AFX_INCLUDES()
  14. #include "logui.h"
  15. //}}AFX_INCLUDES
  16. class CW3ServicePage : public CInetPropertyPage
  17. /*++
  18. Class Description:
  19. WWW Service Page
  20. Public Interface:
  21. CW3ServicePage : Constructor
  22. ~CW3ServicePage : Destructor
  23. --*/
  24. {
  25. DECLARE_DYNCREATE(CW3ServicePage)
  26. //
  27. // Construction
  28. //
  29. public:
  30. CW3ServicePage(IN CInetPropertySheet * pSheet = NULL);
  31. ~CW3ServicePage();
  32. //
  33. // Dialog Data
  34. //
  35. protected:
  36. //
  37. // Radio button IDs for unlimited radio control
  38. //
  39. enum
  40. {
  41. RADIO_UNLIMITED,
  42. RADIO_LIMITED,
  43. };
  44. //{{AFX_DATA(CW3ServicePage)
  45. enum { IDD = IDD_SERVICE };
  46. int m_nUnlimited;
  47. int m_nIpAddressSel;
  48. UINT m_nTCPPort;
  49. BOOL m_fUseKeepAlives;
  50. BOOL m_fEnableLogging;
  51. CString m_strComment;
  52. CString m_strDomainName;
  53. CEdit m_edit_SSLPort;
  54. CEdit m_edit_TCPPort;
  55. CEdit m_edit_MaxConnections;
  56. CButton m_radio_Unlimited;
  57. CButton m_button_LogProperties;
  58. CStatic m_static_SSLPort;
  59. CStatic m_static_Connections;
  60. CStatic m_static_LogPrompt;
  61. CComboBox m_combo_LogFormats;
  62. CComboBox m_combo_IpAddresses;
  63. //}}AFX_DATA
  64. int m_iSSL;
  65. BOOL m_fUnlimitedConnections;
  66. UINT m_nOldTCPPort;
  67. UINT m_nSSLPort;
  68. CILong m_nConnectionTimeOut;
  69. CILong m_nMaxConnections;
  70. CILong m_nVisibleMaxConnections;
  71. CLogUI m_ocx_LogProperties;
  72. CIPAddress m_iaIpAddress;
  73. DWORD m_dwLogType;
  74. //
  75. // Overrides
  76. //
  77. protected:
  78. virtual HRESULT FetchLoadedValues();
  79. virtual HRESULT SaveInfo();
  80. // ClassWizard generate virtual function overrides
  81. //{{AFX_VIRTUAL(CW3ServicePage)
  82. public:
  83. virtual BOOL OnSetActive();
  84. protected:
  85. virtual void DoDataExchange(CDataExchange * pDX);
  86. //}}AFX_VIRTUAL
  87. //
  88. // Implementation
  89. //
  90. protected:
  91. // Generated message map functions
  92. //{{AFX_MSG(CW3ServicePage)
  93. virtual BOOL OnInitDialog();
  94. afx_msg void OnRadioLimited();
  95. afx_msg void OnRadioUnlimited();
  96. afx_msg void OnCheckEnableLogging();
  97. afx_msg void OnButtonAdvanced();
  98. afx_msg void OnButtonProperties();
  99. afx_msg void OnDestroy();
  100. //}}AFX_MSG
  101. afx_msg void OnItemChanged();
  102. DECLARE_MESSAGE_MAP()
  103. void SetControlStates();
  104. void SetLogState();
  105. void GetTopBinding();
  106. void ShowTopBinding();
  107. BOOL StoreTopBinding();
  108. LPCTSTR QueryMetaPath();
  109. //
  110. // Access to the sheet data
  111. //
  112. protected:
  113. BOOL m_fCertInstalled;
  114. CObListPlus m_oblIpAddresses;
  115. CStringListEx m_strlBindings;
  116. CStringListEx m_strlSecureBindings;
  117. };
  118. //
  119. // Inline Expansion
  120. //
  121. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  122. inline LPCTSTR CW3ServicePage::QueryMetaPath()
  123. {
  124. return ((CW3Sheet *)GetSheet())->GetInstanceProperties().QueryMetaRoot();
  125. }