On Fri, Dec 28, 2001 at 06:15:33PM +0000, Fiach Reid wrote:
> Hope you all had a happy christmas. - If there is anybody on this list
> interested in doing VB or VC++ development with WinPCap, I've
> put together a COM wrapper for Packet.dll which should be of use.
You should also tell
winpcap@xxxxxxxxxxxxxxxxxxxxxxx
about that.
> Specifically, when I call PacketReceivePacket in async mode,
The page at
http://netgroup-serv.polito.it/winpcap/docs/dll.htm
says:
BOOLEAN PacketReceivePacket(LPADAPTER AdapterObject, LPPACKET lpPacket,
BOOLEAN Sync)
This function performs the capture of a set of packets. It has
the following input parameters:
o a pointer to an ADAPTER structure identifying the network
adapter from which the packets must be captured
o a pointer to a PACKET structure that will contain the packets
o a flag that indicates if the operation will be done in a
synchronous or asynchronous way. This parameter is obsolete and
is ignored by recent versions of PACKET.DLL, because the access
to the driver is always synchronous.
and, at least on Windows NT (NT 4.0 and NT 5.0 a/k/a Windows 2000),
that's true - it really does ignore the parameter. (It's not ignored by
the library routine on Windows OT, a/k/a Windows 95, Windows 98, and
Windows ME, but I don't know what effect it has there.)
So, at least on Windows NT/2000, with WinPcap 2.2, it shouldn't matter
whether you call it in sync or async mode.