Try Snoop Component Suite version 2. Snoop is a packet capturing and sending component suite for Delphi using WinPcap.
http://www.snoopanalyzer.com/download/download.asp ----- Original Message ----- From: "Tom Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 06, 2004 6:34 AM Subject: [WinPcap-users] PacketGetAdapterNames() fails unless ethereal is run once > Hi, > > I have converted some of the WinPCap 3.1 beta 3 source to Delphi. I am trying > to create a Delphi app that sends out a raw ethernet packet. My first step is > to get a list of adapters. So, I call PacketGetAdapterNames() to create a > list. > > I have found that PacketGetAdapterNames() fails for me if I have not run an > ethereal capture first. Once I run an ethereal capture, the call to > PacketGetAdapterNames() succeeds. Why is this? The failure occurs in > PacketOpenAdapterNPF() when it calls CreateFile(). > > I've looked through the ethereal source a bit and didn't see any other > initialization that needs to occur. I am calling PacketGetAdapterNames() > directly. Is there something else that should happen first? > > Thanks, > Tom > > > ================================================================== > This is the WinPcap users list. It is archived at > http://www.mail-archive.com/[EMAIL PROTECTED]/ > > To unsubscribe use > mailto: [EMAIL PROTECTED] > ==================================================================