Detecting disabled devices

I’ve nearly completed my project, the installer works great (based on devcon),
IM driver works fine, and the application installer is finished.

My problem is, during installation, I detect if the device is installed, if not, then
I install it.

On application startup, I again attempt to detect the device, but disabled devices are
not returned in the arrays generated from calls to getnetworkparams or getiftable from
the iphlpapi.dll.

It seems that if a device is installed but disabled, then there is no apparent means
of enabling it from userland application. SetIfEntry appears to allow a change of state
from admin disabled to admin enabled, but only if you know the interface index, which
cannot be determined because getnetworkparams and getiftable have no information about
disabled adapters.

I need a means of detecting disabled network interfaces from userland app…

Help!


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@circadence.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Devcon is the place to start. You can use setupapi to enumerate all of
the devices, including the disabled ones. I hope you are not planning
on auto enabling all disabled NICs or devices that you think need
though. The user, probably for very good reasons, disabled the device
in the first place.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Chris Caviness
Sent: Wednesday, June 30, 2004 10:30 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Detecting disabled devices

I’ve nearly completed my project, the installer works great (based on
devcon),
IM driver works fine, and the application installer is finished.

My problem is, during installation, I detect if the device is installed,
if not, then
I install it.

On application startup, I again attempt to detect the device, but
disabled devices are
not returned in the arrays generated from calls to getnetworkparams or
getiftable from
the iphlpapi.dll.

It seems that if a device is installed but disabled, then there is no
apparent means
of enabling it from userland application. SetIfEntry appears to allow a
change of state
from admin disabled to admin enabled, but only if you know the interface
index, which
cannot be determined because getnetworkparams and getiftable have no
information about
disabled adapters.

I need a means of detecting disabled network interfaces from userland
app…

Help!


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@circadence.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com