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.

162 lines
3.3 KiB

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