I solved the problem by using the WinPCap library directly. I could not get my port to Delphi to work and I did not figure out why it would not work.
-Tom On Thursday 09 December 2004 23:13, Gianluca Varenni wrote: > Hi Tom. > > Have you solved your problems regarding adapters listing? > > Have a nice day > GV > > ----- Original Message ----- > From: "Fulvio Risso" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 24, 2004 5:52 PM > Subject: RE: [WinPcap-users] PacketGetAdapterNames() fails unless ethereal > is run once > > > Please do not use packet.dll API. > > Use the wpcap.dll onesinstead. > > So, in this case you should use the findalldevs_ex() > > > > Cheers, > > > > fulvio > > > >> -----Original Message----- > >> From: Tom Brown [mailto:[EMAIL PROTECTED] > >> Sent: venerdi 5 novembre 2004 22.35 > >> To: [EMAIL PROTECTED] > >> 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] > >> ================================================================== > > > > ================================================================== > > This is the WinPcap users list. It is archived at > > http://www.mail-archive.com/[email protected]/ > > > > To unsubscribe use > > mailto: [EMAIL PROTECTED] > > ================================================================== > > ================================================================== > This is the WinPcap users list. It is archived at > http://www.mail-archive.com/[email protected]/ > > To unsubscribe use > mailto: [EMAIL PROTECTED] > ================================================================== ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[email protected]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
