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.

157 lines
3.4 KiB

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