Alex
Mon May 03 13:16:44 CDT 2004
NdisMQueryAdapterInstanceName will return just the adaptor name, and not the
user editable name visible under "My Network Places".
Yes, there is a NdisQueryAdapterInstanceName, and it's documented in DDK,
but:
> How can a ndis miniport driver find out the friendly name that you can see
> under "My Network Places" for one of it's instances?
so, I'm a miniport not a protocol, I don't have a "BindingHandle" to use
with NdisQueryAdapterInstanceName;
"Stephan Wolf" <stewo68@hotmail.com> wrote in message
news:ue2d90t912usnq3c1ge3693pja4ongmi4f@4ax.com...
> -> NdisMQueryAdapterInstanceName()
>
> "A miniport driver uses NdisMQueryAdapterInstanceName to retrieve the
> friendly name of an interface that the miniport driver controls."
>
>
http://msdn.microsoft.com/library/en-us/network/hh/network/103ndisx_82uq.asp
>
> (Note: NDIS protocol drivers can use NdisQueryAdapterInstanceName()
> (no 'M' in the name).)
>
> Actually, it seems even the NDIS dev team sometimes doesn't know about
> all the functions they created... ;)
>
> Stephan
> ---
> On Mon, 3 May 2004 02:50:16 -0700, "Alireza Dabagh [MS]"
> <alid@online.microsoft.com> wrote:
>
> >Alex, why do you need this name? One thing you should know is that this
name
> >will -not- be available if UI has never been invoked. i.e.the display
name
> >(a.k.a. ifAlias) is created the first time UI has to show the connection.
> >There is no guarantee that you can find the ifAlias (connection display
> >name) in the location below. As a matter of fact, very likely in LH you
> >won't see it there.
> >
> >In LH, we will provide a way to query this name from NDIS.
> >
> >-thanks, ali