From: eugals on 1 Apr 2010 05:21 Hi. I have an Ethernet network adapter on my computer and it is present in the network connection list as the "Local Area Connection". What I want is to "clone" this INetConnection (and all of it's configuration components) so I could use independent "network connections", with independent setting sets, but referring to same physical device. Unfortunately INetConnection::Duplicate (http:// msdn.microsoft.com/en-us/library/aa365096(v=VS.85).aspx) returns E_NOTIMPL for the connection I have (I believe it's not implemented for everything except RAS-connections). Is there any other way to do what I want? I found the WDK's INetCfgClassSetup::Install method, is it what i'm looking for? Am I allowed to pass there an existing oemXXX.inf or I'm supposed to cook it myself? How can I ask WinAPI to give me path to the cached C:\Windows\inf\oemXXX.inf for the INetCfgComponent I want? Is it ok for Windows to maintain several independent INetCfgComponent- s referring to the same physical device? Thanks in advance. Evgeny.
From: Pavel A. on 1 Apr 2010 06:54 Maybe netsh can help. Type "netsh dump" and see what part of the config script you can "replay" on the new netcard. Regards, --pa "eugals" <eugals(a)gmail.com> wrote in message news:6a0ee536-477c-4ef4-9640-5ecb95966b5d(a)10g2000yqq.googlegroups.com... > Hi. > > I have an Ethernet network adapter on my computer and it is present in > the network connection list as the "Local Area Connection". > What I want is to "clone" this INetConnection (and all of it's > configuration components) so I could use independent "network > connections", with independent setting sets, but referring to same > physical device. Unfortunately INetConnection::Duplicate (http:// > msdn.microsoft.com/en-us/library/aa365096(v=VS.85).aspx) returns > E_NOTIMPL for the connection I have (I believe it's not implemented > for everything except RAS-connections). > > Is there any other way to do what I want? > > I found the WDK's INetCfgClassSetup::Install method, is it what i'm > looking for? Am I allowed to pass there an existing oemXXX.inf or I'm > supposed to cook it myself? How can I ask WinAPI to give me path to > the cached C:\Windows\inf\oemXXX.inf for the INetCfgComponent I want? > Is it ok for Windows to maintain several independent INetCfgComponent- > s referring to the same physical device? > > Thanks in advance. Evgeny.
From: eugals on 1 Apr 2010 11:36 On Apr 1, 2:54 pm, "Pavel A." <pave...(a)12fastmail34.fm> wrote: > Maybe netsh can help. > Type "netsh dump" and see what part of the config script you can "replay" > on the new netcard. > Hi Pavel, That's a great idea. Thank you so much! I never knew the netsh can do all that stuff. Gonna try if it's enough for what I want Evgeny.
From: eugals on 1 Apr 2010 14:27 On Apr 1, 7:36 pm, eugals <eug...(a)gmail.com> wrote: > Gonna try if it's enough for what I want Nope, netsh does a lot of stuff but, as far as I see, you cannot install any new network adapter/connection with it :(
From: Pavel A. on 1 Apr 2010 20:20 "eugals" <eugals(a)gmail.com> wrote in message news:ee692ea4-458b-4405-b7f8-da804fab1ea6(a)z4g2000yqa.googlegroups.com... > On Apr 1, 7:36 pm, eugals <eug...(a)gmail.com> wrote: >> Gonna try if it's enough for what I want > > Nope, netsh does a lot of stuff but, as far as I see, you cannot > install any new network adapter/connection with it :( Correct, but you wanted to replicate configuration of one adapter unto another? Adapters are installed by the conventional way. Another possibility is a device coinstaller, or deeper digging into INetCfg... -- pa
|
Pages: 1 Prev: Can I obtain a certificate from Microsoft directly? Next: ndis reset. |