Hi:

I'm having a problem programmatically enabling my "Local Area
Conection". I've got the NTDDK and have compiled the "Enable" demo. If
I disable the device using the demo, then re-enable it using the demo,
everything seems to work.

But if I use Network Connections, right-click on my "Local Area
Conection" and click "disable", then use the demo to re-enable the NIC,
the "Local Area Conection" does NOT become re-enabled.

What am I doing wrong???

Re: Enabling a device by Eliyas

Eliyas
Thu Jan 13 14:53:53 CST 2005

Please use the Devcon sample from the latest DDK. The enable sample from the
Win2K DDK is known to have some problems.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272

--
-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: Enabling a device by Maxim

Maxim
Thu Jan 13 15:24:48 CST 2005

Enabling/Disabling a network connection is the same as PnP enable/disable
of the NIC's devnode.
The way to go is SetupDiCallClassInstaller with proper function codes,
DEVCON (as Eliyas mentioned) is a sample.

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

"Walt" <wz@aruplab.com> wrote in message
news:eisK9fY%23EHA.2012@TK2MSFTNGP15.phx.gbl...
> Hi:
>
> I'm having a problem programmatically enabling my "Local Area
> Conection". I've got the NTDDK and have compiled the "Enable" demo. If
> I disable the device using the demo, then re-enable it using the demo,
> everything seems to work.
>
> But if I use Network Connections, right-click on my "Local Area
> Conection" and click "disable", then use the demo to re-enable the NIC,
> the "Local Area Conection" does NOT become re-enabled.
>
> What am I doing wrong???
>