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.

123 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1994-1999 Microsoft Corporation
  3. Module Name :
  4. facc.h
  5. Abstract:
  6. FTP Accounts Property Page
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __FACC_H__
  14. #define __FACC_H__
  15. class CFtpAccountsPage : public CInetPropertyPage
  16. {
  17. /*++
  18. Class Description:
  19. FTP Service property page
  20. Public Interface:
  21. CFtpAccountsPage : Constructor
  22. ~CFtpAccountsPage : Destructor
  23. --*/
  24. DECLARE_DYNCREATE(CFtpAccountsPage)
  25. //
  26. // Constructor/Destructor
  27. //
  28. public:
  29. CFtpAccountsPage(
  30. IN CInetPropertySheet * pSheet = NULL
  31. );
  32. ~CFtpAccountsPage();
  33. //
  34. // Dialog Data
  35. //
  36. protected:
  37. //{{AFX_DATA(CFtpAccountsPage)
  38. enum { IDD = IDD_FTP_ACCOUNTS };
  39. BOOL m_fAllowAnonymous;
  40. BOOL m_fOnlyAnonymous;
  41. BOOL m_fPasswordSync;
  42. CString m_strUserName;
  43. CEdit m_edit_Password;
  44. CEdit m_edit_UserName;
  45. CStatic m_static_Password;
  46. CStatic m_static_UserName;
  47. CStatic m_static_AccountPrompt;
  48. CButton m_button_CheckPassword;
  49. CButton m_button_Browse;
  50. CButton m_button_CurrentSessions;
  51. CButton m_chk_PasswordSync;
  52. CButton m_chk_AllowAnymous;
  53. CButton m_chk_OnlyAnonymous;
  54. //}}AFX_DATA
  55. CStrPassword m_strPassword;
  56. //
  57. // Overrides
  58. //
  59. protected:
  60. virtual HRESULT FetchLoadedValues();
  61. virtual HRESULT SaveInfo();
  62. //{{AFX_VIRTUAL(CFtpAccountsPage)
  63. public:
  64. protected:
  65. virtual void DoDataExchange(CDataExchange * pDX);
  66. //}}AFX_VIRTUAL
  67. //
  68. // Implementation
  69. //
  70. protected:
  71. void SetControlStates(BOOL fAllowAnonymous);
  72. //{{AFX_MSG(CFtpAccountsPage)
  73. virtual BOOL OnInitDialog();
  74. afx_msg void OnButtonCheckPassword();
  75. afx_msg void OnButtonBrowseUser();
  76. afx_msg void OnCheckAllowAnonymous();
  77. afx_msg void OnCheckAllowOnlyAnonymous();
  78. afx_msg void OnCheckEnablePwSynchronization();
  79. afx_msg void OnSelchangeListAdministrators();
  80. afx_msg void OnChangeEditUsername();
  81. //}}AFX_MSG
  82. afx_msg void OnItemChanged();
  83. DECLARE_MESSAGE_MAP()
  84. private:
  85. BOOL m_fPasswordSyncChanged;
  86. BOOL m_fPasswordSyncMsgShown;
  87. BOOL m_fUserNameChanged;
  88. CString m_strServerName;
  89. };
  90. #endif // __FACC_H__