Introduction - If you have any usage issues, please Google them yourself
A use WinPcap packet capture of a simple example, briefly demonstrated the use of Winpcap library.
Packet : 117143154packetcapture.rar filelist
PacketCapture
PacketCapture\PacketCaptureDlg.cpp
PacketCapture\PacketCaptureDlg.h
PacketCapture\PacketCapture.opt
PacketCapture\PacketCapture.dsp
PacketCapture\PacketCapture.positions
PacketCapture\PacketCapture.clw
PacketCapture\ReadMe.txt
PacketCapture\PacketCapture.h
PacketCapture\PacketCapture.cpp
PacketCapture\StdAfx.h
PacketCapture\StdAfx.cpp
PacketCapture\res
PacketCapture\res\PacketCapture.rc2
PacketCapture\res\PacketCapture.ico
PacketCapture\PacketCapture.dsw
PacketCapture\PacketCapture.ncb
PacketCapture\PacketCapture.plg
PacketCapture\Resource.h
PacketCapture\PacketCapture.aps
PacketCapture\PacketCapture.rc
PacketCapture\WpdPack
PacketCapture\WpdPack\Include
PacketCapture\WpdPack\Include\bittypes.h
PacketCapture\WpdPack\Include\bucket_lookup.h
PacketCapture\WpdPack\Include\count_packets.h
PacketCapture\WpdPack\Include\Devioctl.h
PacketCapture\WpdPack\Include\Gnuc.h
PacketCapture\WpdPack\Include\ip6_misc.h
PacketCapture\WpdPack\Include\memory_t.h
PacketCapture\WpdPack\Include\normal_lookup.h
PacketCapture\WpdPack\Include\Ntddndis.h
PacketCapture\WpdPack\Include\Ntddpack.h
PacketCapture\WpdPack\Include\Packet32.h
PacketCapture\WpdPack\Include\pcap-bpf.h
PacketCapture\WpdPack\Include\pcap-int.h
PacketCapture\WpdPack\Include\pcap-stdinc.h
PacketCapture\WpdPack\Include\pcap.h
PacketCapture\WpdPack\Include\remote-ext.h
PacketCapture\WpdPack\Include\tcp_session.h
PacketCapture\WpdPack\Include\time_calls.h
PacketCapture\WpdPack\Include\tme.h
PacketCapture\WpdPack\Include\Win32-Extensions.h
PacketCapture\WpdPack\Lib
PacketCapture\WpdPack\Lib\libpacket.a
PacketCapture\WpdPack\Lib\libwpcap.a
PacketCapture\WpdPack\Lib\Packet.lib
PacketCapture\WpdPack\Lib\wpcap.lib