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] ==================================================================
