Re: network interface name by Alireza
Alireza
Tue May 10 22:48:10 CDT 2005
I do not have a solution for you. You may want to re-architect your
app/driver to remove dependency on this name.
-ali
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Sophia" <Sophia@discussions.microsoft.com> wrote in message
news:A8B5A6A6-7C99-4FD4-A682-9AE2DFC7DA79@microsoft.com...
> now that i need to read the network connection name during the driver
> initialization time, what should i be doing? i am working on windows 2003
> server.
>
> thanks
>
> "Alireza Dabagh [MS]" wrote:
>
>> Yes, I know where they are in the registry and yes they can be changed by
>> user.
>> What I meant to say is that unless you bring up the UI that shows these
>> names, they are not there. The first time the UI comes up, these names
>> are
>> created and will be there from that point on.
>>
>> You are correct about the fact that these are not accessible to miniport
>> drivers.
>> Both issues will be addressed in Longhorn. first the connections names
>> (or
>> as we call them "ifAlias"'s) would be created at install time. Second, we
>> will provide a way for NDIS 6 miniports to query this name or will give
>> it
>> to NDIS 6 miniports at initialization time.
>>
>> -ali
>>
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Stephan Wolf [MVP]" <stewo68@hotmail.com> wrote in message
>> news:1114183130.442082.44560@f14g2000cwb.googlegroups.com...
>> >I guess the OP talks about
>> >
>> > "HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\<NetCfgInstanceId>\Connection\Name"
>> >
>> > ..where "NetCfgInstanceId" is the GUID of the network card instance.
>> >
>> > This name can actually be changed manually by the user (with sufficient
>> > rights). So what exactly do you mean by "The first time this UI comes
>> > up, these names are created"? Aren't these static entries?
>> >
>> > Also, NDIS drivers can only open and access registry entries:
>> >
>> > - in
>> > "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\<xxxx>",
>> > where "xxxx" is the instance number of the NDIS miniport, by using
>> > NdisOpenConfiguration().
>> >
>> > - below "HKLM\SYSTEM\CurrentControlSet\Services" by using
>> > NdisOpenProtocolConfiguration().
>> >
>> > NDIS miniports cannot open/access any other registry keys (unless they
>> > use non-NDIS functions).
>> >
>> > Stephan
>> >
>>
>>
>>