Tech Support > Microsoft Windows > Drivers > How determine network itnerface disable status ?
How determine network itnerface disable status ?
Posted by Vijay Chegu on September 8th, 2003


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

Posted by Eliyas Yakub [MSFT] on September 8th, 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


Posted by Maxim S. Shatskih on September 8th, 2003


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



Posted by Vijay Chegu on September 9th, 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

Posted by Stephan Wolf on September 9th, 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:


Similar Posts