Arkady
Wed Oct 22 02:50:04 CDT 2003
Additionally ( API ) : GetIfEntry()/SetIfEntry() for choosed adapter
Arkady
"Vijay Chegu" <vijaychegu@indiatimes.com> wrote in message
news:68150d83.0310212155.7481ed8c@posting.google.com...
> Hi All,
>
> Found the solution.
>
> Arkadyf,
> As i mentioned i dont want link status, i want network interface
> enable disable status.
>
> In win32_networkadapter class there is an attribute
> uint32 ConfigManagerErrorCode;
>
> This will give me the enable/disable status.
> For disabled adapter the value is 22.
>
> Thanx and Regards,
> Vijay Chegu
>
>
> "arkadyf" <arkadyf@hotmailxdotxcom> wrote in message
news:<OCx5tg$lDHA.2676@TK2MSFTNGP11.phx.gbl>...
> > Look at
http://www.ndis.com/faq/Contributors/CheckNet/default.htm
> > Arkady
> >
> > "Vijay Chegu" <vijaychegu@indiatimes.com> wrote in message
> > news:68150d83.0310210759.797c5ce5@posting.google.com...
> > > Hi All,
> > >
> > > Is it possible to determine thru WMI whether a network interface is
> > > either enabled or disabled.
> > >
> > > Devcon sample in winddk displays this status but i would like to know
> > > if the same can be obtained from WMI.
> > >
> > > "Win32_NetworkAdapter" class has two attributes
> > > string Status;
> > > uint16 StatusInfo;
> > >
> > > when i see these values for network interface thru wbemtest.exe values
> > > are null.
> > >
> > > According to the description of "StatusInfo" this should be able to
> > > give me enabled or disabled status.
> > >
> > > Is there any other way thru WMI to detect enabled/disable status.
> > >
> > > Thanxs & Regards,
> > > Vijay Chegu
> > > PS: Plz note i dont want network connection status, i want
> > > enable/disable status which can be altered in "network and dialup
> > > connections" window through right click.
> > > //vijaycheguwmienabledisable