[Winpcap-users] Checking whether adapter is alive
Bryan Kadzban
bryan at kadzban.is-a-geek.net
Sun Mar 5 13:35:40 GMT 2006
Shmuel Lange wrote:
> I use PacketOpenAdapter (of WinPcap 3.1) function to open wireless
> adapter and then I use PacketRequest function to do somthing.
>
> Is there is way to check whether the user remove the wireless card
> before I call PacketRequest function?
>
Because if you don't, it blue-screens, right? Or aren't you seeing that?
(Last October, I reported a case where disabling or enabling any NIC
(though not any connection), or changing driver options, would BSOD on
the next PacketRequest call -- in my case, to either set or get an NDIS
OID. I think it has something to do with how npf.sys doesn't handle
device PnP events correctly (it leaves a "stale" pointer somewhere),
though I have no idea how to make it do so. In the meantime, I've just
been shutting down the npf driver before doing any kind of disable,
enable, or driver-option-change. I still have a memory dump of when the
BSOD happens, if anyone wants it, but it's 512 megs.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://www.winpcap.org/pipermail/winpcap-users/attachments/20060305/49bbfd29/signature.pgp
More information about the Winpcap-users
mailing list