Re: Network cable unplugged

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: KM (konstmor_at_nospam_yahoo.com)
Date: 08/11/04


Date: Wed, 11 Aug 2004 14:57:11 -0700

Or just enumerating adapter and interface info in registry. :-)
Btw, really easy to implement (I've done that once for setting IP address.. don't remember the reason, though)

-- 
 Regards,
        KM, BSquare Corp.
> Ok so far we had API, WMI, how about going low level to NDIS?
>
> IOCTL_NDIS_QUERY_GLOBAL_STATS
> OID_GEN_MEDIA_CONNECT_STATUS
>
> Best regards,
> Slobodan
>
> "Greg Brown" <abc@123.com> wrote in message news:%23LZPL78fEHA.592@TK2MSFTNGP11.phx.gbl...
> > I need to be able to determine if the network cable is unplugged.  I've been
> > through various news groups and the MS API, and cannot find anything.  I
> > have a headless device, so I have network setup happening on a non-desktop
> > interface.  I need to be able to determine the difference between
> > 000.000.000.000 as not set up yet, and 000.000.000.000 as no cable plugged
> > in.  DHCP may or may not be present (one possible user configuration would
> > be two users connected with a crossover cable and manual IP's).
> >
> > Thanks,
> >
> > Greg
> >
> >
>
>