GetPacketListView.h
上传用户:qxsjcl
上传日期:2007-01-08
资源大小:263k
文件大小:2k
源码类别:

网络截获/分析

开发平台:

Visual C++

  1. #if !defined(AFX_GETPACKETLISTVIEW_H__C5FCEA31_9194_11D3_93DD_00A0C9685ADF__INCLUDED_)
  2. #define AFX_GETPACKETLISTVIEW_H__C5FCEA31_9194_11D3_93DD_00A0C9685ADF__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // GetPacketListView.h : header file
  7. //
  8. #include <afxcview.h>
  9. #include "protocol.h"
  10. #include <winsock.h>
  11. #include "FileterDlg.h"
  12. /////////////////////////////////////////////////////////////////////////////
  13. // GetPacketListView view
  14. class GetPacketListView : public CListView
  15. {
  16. protected:
  17. GetPacketListView();           // protected constructor used by dynamic creation
  18. DECLARE_DYNCREATE(GetPacketListView)
  19. // Attributes
  20. public:
  21. // Operations
  22. public:
  23. HANDLE hThread;
  24. void SetData(__u32 saddr,__u16 source,__u32 daddr,__u16 dest,BYTE* pPktData,int iDataSize);
  25. BOOL bIsSniffing;
  26. WSADATA wsaData;
  27. CONTROL_BLOCK Adapter;
  28.     PVOID    Packet;
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(GetPacketListView)
  32. public:
  33. virtual void OnInitialUpdate();
  34. protected:
  35. virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. virtual ~GetPacketListView();
  40. #ifdef _DEBUG
  41. virtual void AssertValid() const;
  42. virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(GetPacketListView)
  47. afx_msg void OnFileStart();
  48. afx_msg void OnFileStop();
  49. afx_msg void OnEditFilter();
  50. afx_msg void OnUpdateFileStart(CCmdUI* pCmdUI);
  51. afx_msg void OnUpdateFileStop(CCmdUI* pCmdUI);
  52. afx_msg void OnEditClearall();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_GETPACKETLISTVIEW_H__C5FCEA31_9194_11D3_93DD_00A0C9685ADF__INCLUDED_)