YES! You're lucky I found this threadOriginally Posted by GizmoB73
I spent probably 3 hours trying to figure this out. I am programming in Visual Studio 6 (C++ and VB) and I have figured out a solution.
You can use the devcon package from microsoft to enable/disable any device including network adaptors.
http://support.microsoft.com/?kbid=311272
For example, if I wanted to disable a local PCI lan card and then enable it again, I would do:
Call Shell("devcon.exe disable *SUBSYS_813910EC*", vbHide)
Call Shell("devcon.exe enable *SUBSYS_813910EC*", vbHide)
You can also use devcon to list all your hardware so you can better specify which devices you want to enable/disable
devcon.exe findall *
PCI\VEN_10EC&DEV_8139&SUBSYS_813910EC&REV_10\3&61A AA01&0&48 : Realtek RTL8139 Family PCI Fast Ethernet NIC
...there's my device.
Cheers![]()
-Nico



LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks