[Winpcap-users] Checking whether adapter is alive

Shmuel Lange shmuel.lange at code-red.biz
Sun Mar 5 14:16:01 GMT 2006


Yes. If I don't do that I would see blue-screen.

-----Original Message-----
From: winpcap-users-bounces at winpcap.org
[mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Bryan Kadzban
Sent: Sunday, March 05, 2006 3:36 PM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] Checking whether adapter is alive

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.)





More information about the Winpcap-users mailing list