Hi Phil I didn't get <why> you say you can no longer use the lower level API of packet.dll/packet32.h ?
I, for example, am using the API PacketOpenAdapter, etc, and not relying at all in wpcap upper layer functions, and it works OK with Windows XP and VC7. So you should be able to use LPADAPTER, LPPACKET, 'PacketopenAdapter', PacketReceivePacket, etc. The only thing you need to bother nowadays is the UNICODE/ASCII format for the strings returned by 'PacketopenAdapter'. Before Winpcap 3.1, it was UNICODE. Now it is ASCII. Pedro ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 06, 2004 3:02 PM Subject: [WinPcap-users] COMPATIBILITY PROBLEM BETWEEN STRUCTURES PCAP_T & LPPACKET > > > Hi all, > Since 4 weeks I've been doing my own experience of Winpcap (Its exported > functions) and Packet32.h (Its routines). I am working with a self-programmed > sniffer tool that was developped under Windows NT 4.0 with VC 6 as an MFC > project. The sniffer tool used since then packet32.h (but not the version that > is provided when downloading the developper's pack on the official site of > Winpcap). As you can imagine, this sniffer tool coupled with such system of > capture is incompatible, thus not working anymore under windows XP. Therefore, > I tried to update the tool under VC 6 buy emmbedding exported functions of > wpcap.dll in the script. So far, all was ok since I am able to list devices on > the local machine, open a device, print the packets and their contents. > > My problem is now the following. The former part of the script accessing the > adapter, was calling 'PacketopenAdapter'. This returns a pointer on an object of > type structure LPPACKET. This object was reused to store packets in a buffer so > that the program could assess them afterwards (PacketSendPacket or > PacketReceivePacket were taking the object as argument). Now, I access the > adapter via Pcap_open and it returns a pointer on an object of type structure > pcap_t. Is there any compatiblity between what is returned by Pcap_open and what > is returned by PacketOpenAdapter? > > Any help will be mostly appreciated, > > Regards, > > Filip. > > > ================================================================== > 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] ==================================================================
