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.

110 lines
2.6 KiB

  1. //============================================================================
  2. // Copyright(c) 1996, Microsoft Corporation
  3. //
  4. // File: ipxfltr.h
  5. //
  6. // History:
  7. // 08/30/96 Ram Cherala Created
  8. //
  9. // Class declarations for IPX Filter code.
  10. //============================================================================
  11. #ifndef _IPXFLTR_H_
  12. #define _IPXFLTR_H_
  13. #ifndef _DIALOG_H_
  14. #include "dialog.h"
  15. #endif
  16. #define IPX_NUM_COLUMNS 9
  17. struct FilterListEntry {
  18. ULONG FilterDefinition;
  19. UCHAR DestinationNetwork[4];
  20. UCHAR DestinationNetworkMask[4];
  21. UCHAR DestinationNode[6];
  22. UCHAR DestinationSocket[2];
  23. UCHAR SourceNetwork[4];
  24. UCHAR SourceNetworkMask[4];
  25. UCHAR SourceNode[6];
  26. UCHAR SourceSocket[2];
  27. UCHAR PacketType;
  28. // These are the string equivalents of the data above.
  29. // This is used by the getdispinfo
  30. CString stFilterDefinition;
  31. CString stDestinationNetwork;
  32. CString stDestinationNetworkMask;
  33. CString stDestinationNode;
  34. CString stDestinationSocket;
  35. CString stSourceNetwork;
  36. CString stSourceNetworkMask;
  37. CString stSourceNode;
  38. CString stSourceSocket;
  39. CString stPacketType;
  40. POSITION pos;
  41. };
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CIpxFilter dialog
  44. class CIpxFilter : public CBaseDialog
  45. {
  46. // Construction
  47. public:
  48. CIpxFilter(CWnd * pParent,
  49. IInfoBase * pInfoBase,
  50. DWORD dwFilterType );
  51. ~CIpxFilter();
  52. // Dialog Data
  53. //{{AFX_DATA(CIpxFilter)
  54. enum {
  55. IDD_INBOUND = IDD_IPXFILTER_INPUT,
  56. IDD_OUTBOUND = IDD_IPXFILTER_OUTPUT
  57. };
  58. CListCtrl m_listCtrl;
  59. //}}AFX_DATA
  60. // Overrides
  61. // ClassWizard generated virtual function overrides
  62. //{{AFX_VIRTUAL(CIpxFilter)
  63. protected:
  64. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  65. //}}AFX_VIRTUAL
  66. // Implementation
  67. private:
  68. VOID
  69. SetFilterActionButtonsAndText( DWORD dwFilterType,
  70. DWORD dwAction,
  71. BOOL bEnable = TRUE );
  72. protected:
  73. static DWORD m_dwHelpMap[];
  74. CWnd* m_pParent;
  75. SPIInfoBase m_spInfoBase;
  76. DWORD m_dwFilterType;
  77. CPtrList m_filterList;
  78. CString m_stAny;
  79. // Generated message map functions
  80. //{{AFX_MSG(CIpxFilter)
  81. afx_msg void OnDblclkIpxFilterList(NMHDR* pNMHDR, LRESULT* pResult);
  82. afx_msg void OnIpxFilterAdd();
  83. afx_msg void OnIpxFilterEdit();
  84. afx_msg void OnIpxFilterDelete();
  85. virtual void OnOK();
  86. virtual void OnCancel();
  87. virtual BOOL OnInitDialog();
  88. afx_msg void OnGetdispinfoIpxFilterList(NMHDR* pNMHDR, LRESULT* pResult);
  89. afx_msg void OnNotifyListItemChanged(NMHDR *, LRESULT *);
  90. //}}AFX_MSG
  91. DECLARE_MESSAGE_MAP()
  92. };
  93. #endif // _IPXFLTR_H_