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.

154 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1994-1999 Microsoft Corporation
  3. Module Name :
  4. fservic.h
  5. Abstract:
  6. FTP Service Property Page
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __FSERVIC_H__
  14. #define __FSERVIC_H__
  15. //{{AFX_INCLUDES()
  16. #include "logui.h"
  17. //}}AFX_INCLUDES
  18. class CFtpServicePage : public CInetPropertyPage
  19. /*++
  20. Class Description:
  21. FTP Service property page
  22. Public Interface:
  23. CFtpServicePage : Constructor
  24. ~CFtpServicePage : Destructor
  25. --*/
  26. {
  27. DECLARE_DYNCREATE(CFtpServicePage)
  28. //
  29. // Constructors/Destructors
  30. //
  31. public:
  32. CFtpServicePage(
  33. IN CInetPropertySheet * pSheet = NULL
  34. );
  35. ~CFtpServicePage();
  36. //
  37. // Dialog Data
  38. //
  39. protected:
  40. //
  41. // Radio button IDs for unlimited radio control
  42. //
  43. enum
  44. {
  45. RADIO_UNLIMITED,
  46. RADIO_LIMITED,
  47. };
  48. //{{AFX_DATA(CFtpServicePage)
  49. enum { IDD = IDD_FTP_SERVICE };
  50. int m_nUnlimited;
  51. int m_nIpAddressSel;
  52. UINT m_nTCPPort;
  53. BOOL m_fEnableLogging;
  54. CString m_strComment;
  55. CEdit m_edit_MaxConnections;
  56. CStatic m_static_LogPrompt;
  57. CStatic m_static_Connections;
  58. CButton m_button_LogProperties;
  59. CComboBox m_combo_IpAddresses;
  60. CComboBox m_combo_LogFormats;
  61. //}}AFX_DATA
  62. UINT m_nOldTCPPort;
  63. BOOL m_fUnlimitedConnections;
  64. DWORD m_dwLogType;
  65. CILong m_nConnectionTimeOut;
  66. CILong m_nMaxConnections;
  67. CILong m_nVisibleMaxConnections;
  68. CString m_strDomainName;
  69. CIPAddress m_iaIpAddress;
  70. CLogUI m_ocx_LogProperties;
  71. //
  72. // Overrides
  73. //
  74. protected:
  75. virtual HRESULT FetchLoadedValues();
  76. virtual HRESULT SaveInfo();
  77. //{{AFX_VIRTUAL(CFtpServicePage)
  78. protected:
  79. virtual void DoDataExchange(CDataExchange * pDX);
  80. //}}AFX_VIRTUAL
  81. //
  82. // Implementation
  83. //
  84. protected:
  85. void SetControlStates();
  86. void SetLogState();
  87. void PopulateKnownIpAddresses();
  88. //LPCTSTR QueryMetaPath();
  89. //{{AFX_MSG(CFtpServicePage)
  90. afx_msg void OnCheckEnableLogging();
  91. afx_msg void OnRadioLimited();
  92. afx_msg void OnRadioUnlimited();
  93. afx_msg void OnButtonCurrentSessions();
  94. afx_msg void OnButtonProperties();
  95. virtual BOOL OnInitDialog();
  96. afx_msg void OnDestroy();
  97. //}}AFX_MSG
  98. afx_msg void OnItemChanged();
  99. DECLARE_MESSAGE_MAP()
  100. protected:
  101. CObListPlus m_oblIpAddresses;
  102. BOOL m_f10ConnectionLimit;
  103. };
  104. //
  105. // Inline Expansion
  106. //
  107. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  108. /*
  109. inline LPCTSTR CFtpServicePage::QueryMetaPath()
  110. {
  111. return ((CFtpSheet *)GetSheet())->GetInstanceProperties().QueryMetaRoot();
  112. }
  113. */
  114. #endif // __FSERVIC_H__