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.

120 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1994-1999 Microsoft Corporation
  3. Module Name :
  4. security.h
  5. Abstract:
  6. FTP Security Property Page Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef __FSECURITY_H__
  14. #define __FSECURITY_H__
  15. class CFtpSecurityPage : public CInetPropertyPage
  16. /*++
  17. Class Description:
  18. FTP Security property page
  19. Public Interface:
  20. CFtpSecurityPage : Constructor
  21. ~CFtpSecurityPage : Destructor
  22. --*/
  23. {
  24. DECLARE_DYNCREATE(CFtpSecurityPage)
  25. //
  26. // Construction
  27. //
  28. public:
  29. CFtpSecurityPage(CInetPropertySheet * pSheet = NULL);
  30. ~CFtpSecurityPage();
  31. //
  32. // Dialog Data
  33. //
  34. protected:
  35. //{{AFX_DATA(CFtpSecurityPage)
  36. enum { IDD = IDD_FTP_DIRECTORY_SECURITY };
  37. int m_nGrantedDenied;
  38. CStatic m_icon_Granted;
  39. CStatic m_icon_Denied;
  40. CButton m_radio_Granted;
  41. CButton m_button_Add;
  42. CButton m_button_Remove;
  43. CButton m_button_Edit;
  44. //}}AFX_DATA
  45. CIPAccessDescriptorListBox m_list_IpAddresses;
  46. CButton m_radio_Denied;
  47. //
  48. // Overrides
  49. //
  50. protected:
  51. virtual HRESULT FetchLoadedValues();
  52. virtual HRESULT SaveInfo();
  53. //{{AFX_VIRTUAL(CFtpSecurityPage)
  54. protected:
  55. virtual void DoDataExchange(CDataExchange * pDX);
  56. //}}AFX_VIRTUAL
  57. //
  58. // Implementation
  59. //
  60. protected:
  61. //{{AFX_MSG(CFtpSecurityPage)
  62. afx_msg void OnButtonAdd();
  63. afx_msg void OnButtonEdit();
  64. afx_msg void OnButtonRemove();
  65. afx_msg void OnDblclkListIpAddresses();
  66. afx_msg void OnErrspaceListIpAddresses();
  67. afx_msg void OnRadioGranted();
  68. afx_msg void OnRadioDenied();
  69. afx_msg void OnSelchangeListIpAddresses();
  70. afx_msg int OnVKeyToItem(UINT nKey, CListBox * pListBox, UINT nIndex);
  71. virtual BOOL OnInitDialog();
  72. //}}AFX_MSG
  73. afx_msg void OnItemChanged();
  74. DECLARE_MESSAGE_MAP()
  75. INT_PTR ShowPropertiesDialog(BOOL fAdd = FALSE);
  76. void FillListBox(CIPAccessDescriptor * pSelection = NULL);
  77. BOOL SetControlStates();
  78. DWORD SortAccessList();
  79. private:
  80. BOOL m_fDefaultGranted;
  81. BOOL m_fOldDefaultGranted;
  82. BOOL m_fIpDirty;
  83. CObListPlus m_oblAccessList;
  84. CRMCListBoxResources m_ListBoxRes;
  85. };
  86. #endif //__SECURITY_H__