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.

125 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. ipdomdlg.h
  5. Abstract:
  6. IP and domain security restrictions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. #ifndef _IPDOMDLG_H_
  14. #define _IPDOMDLG_H_
  15. class CIPDomainDlg : public CEmphasizedDialog
  16. /*++
  17. Class Description:
  18. IP address and domain name restrictions dialog
  19. Public Interface:
  20. CIPDomainDlg : Constructor
  21. GetAccessList : Get the list of granted/denied objects
  22. --*/
  23. {
  24. //
  25. // Construction
  26. //
  27. public:
  28. //
  29. // standard constructor
  30. //
  31. CIPDomainDlg(
  32. IN OUT BOOL & fIpDirty,
  33. IN OUT BOOL & fDefaultGranted,
  34. IN OUT BOOL & fOldDefaultGranted,
  35. IN CObListPlus & oblAccessList,
  36. IN CWnd * pParent = NULL
  37. );
  38. //
  39. // Access
  40. //
  41. public:
  42. CObListPlus & GetAccessList();
  43. //
  44. // Dialog Data
  45. //
  46. protected:
  47. //{{AFX_DATA(CIPDomainDlg)
  48. enum { IDD = IDD_IP_SECURITY };
  49. int m_nGrantedDenied;
  50. CStatic m_icon_Granted;
  51. CStatic m_icon_Denied;
  52. CButton m_radio_Granted;
  53. CButton m_button_Add;
  54. CButton m_button_Remove;
  55. CButton m_button_Edit;
  56. CButton m_radio_Denied;
  57. CIPAccessDescriptorListBox m_list_IpAddresses;
  58. //}}AFX_DATA
  59. //
  60. // Overrides
  61. //
  62. protected:
  63. //{{AFX_VIRTUAL(CIPDomainDlg)
  64. protected:
  65. virtual void DoDataExchange(CDataExchange * pDX);
  66. //}}AFX_VIRTUAL
  67. //
  68. // Implementation
  69. //
  70. protected:
  71. // Generated message map functions
  72. //{{AFX_MSG(CIPDomainDlg)
  73. afx_msg void OnButtonAdd();
  74. afx_msg void OnButtonEdit();
  75. afx_msg void OnButtonRemove();
  76. afx_msg void OnDblclkListIpAddresses();
  77. afx_msg void OnErrspaceListIpAddresses();
  78. afx_msg void OnRadioGranted();
  79. afx_msg void OnRadioDenied();
  80. afx_msg void OnSelchangeListIpAddresses();
  81. afx_msg int OnVKeyToItem(UINT nKey, CListBox * pListBox, UINT nIndex);
  82. virtual BOOL OnInitDialog();
  83. //}}AFX_MSG
  84. DECLARE_MESSAGE_MAP()
  85. INT_PTR ShowPropertiesDialog(BOOL fAdd = FALSE);
  86. void FillListBox(CIPAccessDescriptor * pSelection = NULL);
  87. BOOL SetControlStates();
  88. DWORD SortAccessList();
  89. private:
  90. BOOL & m_fDefaultGranted;
  91. BOOL & m_fOldDefaultGranted;
  92. BOOL & m_fIpDirty;
  93. CObListPlus m_oblAccessListGranted, m_oblAccessListDenied;
  94. CObListPlus m_oblReturnList;
  95. CObListPlus * m_pCurrentList;
  96. CRMCListBoxResources m_ListBoxRes;
  97. };
  98. #endif // _IPDOMDLG_H_