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.

153 lines
2.9 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. CButton m_button_LogProperties;
  58. CComboBox m_combo_IpAddresses;
  59. CComboBox m_combo_LogFormats;
  60. //}}AFX_DATA
  61. UINT m_nOldTCPPort;
  62. BOOL m_fUnlimitedConnections;
  63. DWORD m_dwLogType;
  64. CILong m_nConnectionTimeOut;
  65. CILong m_nMaxConnections;
  66. CILong m_nVisibleMaxConnections;
  67. CString m_strDomainName;
  68. CIPAddress m_iaIpAddress;
  69. CLogUI m_ocx_LogProperties;
  70. //
  71. // Overrides
  72. //
  73. protected:
  74. virtual HRESULT FetchLoadedValues();
  75. virtual HRESULT SaveInfo();
  76. //{{AFX_VIRTUAL(CFtpServicePage)
  77. protected:
  78. virtual void DoDataExchange(CDataExchange * pDX);
  79. //}}AFX_VIRTUAL
  80. //
  81. // Implementation
  82. //
  83. protected:
  84. void SetControlStates();
  85. void SetLogState();
  86. void PopulateKnownIpAddresses();
  87. //LPCTSTR QueryMetaPath();
  88. //{{AFX_MSG(CFtpServicePage)
  89. afx_msg void OnCheckEnableLogging();
  90. afx_msg void OnRadioLimited();
  91. afx_msg void OnRadioUnlimited();
  92. afx_msg void OnButtonCurrentSessions();
  93. afx_msg void OnButtonProperties();
  94. virtual BOOL OnInitDialog();
  95. afx_msg void OnDestroy();
  96. //}}AFX_MSG
  97. afx_msg void OnItemChanged();
  98. DECLARE_MESSAGE_MAP()
  99. protected:
  100. CObListPlus m_oblIpAddresses;
  101. BOOL m_f10ConnectionLimit;
  102. };
  103. //
  104. // Inline Expansion
  105. //
  106. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  107. /*
  108. inline LPCTSTR CFtpServicePage::QueryMetaPath()
  109. {
  110. return ((CFtpSheet *)GetSheet())->GetInstanceProperties().QueryMetaRoot();
  111. }
  112. */
  113. #endif // __FSERVIC_H__