This project is read-only.

Some help on 2008 and Win7

Oct 6, 2009 at 3:33 PM

Is there any example code on this site on this project?
The examples from the site "Tamir Gal | SharpPcap" doesn't seem to exactly match the structure of the current build.

It seems I cant get any reaction from the PcapDotNet

I have some simple code, pasted below: but I get nothing when I start it up.

Imports PcapDotNet
' Get a list of devices

Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

devices.Open(PcapDotNet.Core.LivePacketDevice.DefaultSnapshotLength, Core.PacketDeviceOpenAttributes.NoCaptureRemote, 1000)



// BlackWand

Oct 7, 2009 at 9:17 PM
Edited Oct 8, 2009 at 8:37 PM

Hi BlackWand,


I'm not sure exactly what you're trying to figure out.

  1. WinPcap current stable build doesn't support Windows 7 as you can see in the WinPcap page:
  2. There is an example project for getting all the devices in the Developer's Pack available at the Downloads section.
  3. In your code, I don't understand what is the 'devices' variable. Where is it initialized?


Give me more details about the problem you are having and I'll try to help you.



Oct 8, 2009 at 7:32 AM

The cause for why this isn't working is most probably because of Windows 7.
I'm no longer in need to fix myself a sniffer, not yet anyways.

Thanks for the answer thought.

// BlackWand

Mar 12, 2010 at 8:59 AM

Pcap.Net version 0.5.0 was released today.

This version supports WinPcap 4.1.1 and Windows 7 (32 and 64 bits).