Hi all,

I am writing a gui for network adapter config tool like mux example in
DDK.
In my UI i want to determine if any network component is disabled or
not.
i can send an ioctl to the lower interface and get the connect status
but how can i find out disabled / enabled status ?

"Network and dial-up connections" windows is able to show the status
of any netowrk adapter as disabled/connected/network cable unplugged.

how can i get this status ?

This is for win2k and above.

Regards,
Vijay Chegu
//vijaychegunetworkdisable

Re: How determine network itnerface disable status ? by Eliyas

Eliyas
Mon Sep 08 12:04:42 CDT 2003

CM_Get_DevNode_Status_Ex.

DEVCON sample in the DDK shows how to use this API.

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx



Re: How determine network itnerface disable status ? by Maxim

Maxim
Mon Sep 08 14:12:36 CDT 2003

> "Network and dial-up connections" windows is able to show the status
> of any netowrk adapter as disabled/connected/network cable unplugged.

IOCTL_NDIS_QUERY_GLOBAL_STATS for OID_GEN_MEDIA_CONNECT_STATUS can help.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



Re: How determine network itnerface disable status ? by vijaychegu

vijaychegu
Tue Sep 09 01:24:10 CDT 2003

Thanx Eliyaz. Will check it out.

Shatskih, i am using the oid u mentioned to detect connection status
but this wont help for disabled adapters.

Thanx & Regards,
Vijay Chegu

Re: How determine network itnerface disable status ? by stewo68

stewo68
Tue Sep 09 03:21:04 CDT 2003

Right. You won't even be able to open the I/O control interface (file
handle) to the respective disabled adapter, so
IOCTL_NDIS_QUERY_GLOBAL_STATS cannot be used.

Note that "disabled" adapters are fully visible for the INetCfg
interface.

Stephan
---
On 8 Sep 2003 23:24:10 -0700, vijaychegu@indiatimes.com (Vijay Chegu)
wrote:

>Thanx Eliyaz. Will check it out.
>
>Shatskih, i am using the oid u mentioned to detect connection status
>but this wont help for disabled adapters.
>
>Thanx & Regards,
>Vijay Chegu