GetPacketListView.h
资源名称:ntpacket.zip [点击查看]
上传用户:qxsjcl
上传日期:2007-01-08
资源大小:263k
文件大小:2k
源码类别:
网络截获/分析
开发平台:
Visual C++
- #if !defined(AFX_GETPACKETLISTVIEW_H__C5FCEA31_9194_11D3_93DD_00A0C9685ADF__INCLUDED_)
- #define AFX_GETPACKETLISTVIEW_H__C5FCEA31_9194_11D3_93DD_00A0C9685ADF__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // GetPacketListView.h : header file
- //
- #include <afxcview.h>
- #include "protocol.h"
- #include <winsock.h>
- #include "FileterDlg.h"
- /////////////////////////////////////////////////////////////////////////////
- // GetPacketListView view
- class GetPacketListView : public CListView
- {
- protected:
- GetPacketListView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(GetPacketListView)
- // Attributes
- public:
- // Operations
- public:
- HANDLE hThread;
- void SetData(__u32 saddr,__u16 source,__u32 daddr,__u16 dest,BYTE* pPktData,int iDataSize);
- BOOL bIsSniffing;
- WSADATA wsaData;
- CONTROL_BLOCK Adapter;
- PVOID Packet;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(GetPacketListView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~GetPacketListView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(GetPacketListView)
- afx_msg void OnFileStart();
- afx_msg void OnFileStop();
- afx_msg void OnEditFilter();
- afx_msg void OnUpdateFileStart(CCmdUI* pCmdUI);
- afx_msg void OnUpdateFileStop(CCmdUI* pCmdUI);
- afx_msg void OnEditClearall();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_GETPACKETLISTVIEW_H__C5FCEA31_9194_11D3_93DD_00A0C9685ADF__INCLUDED_)