[PATCH] wineboot: Add network adapter information to the registry.
huw at codeweavers.com
Mon Jul 19 03:14:22 CDT 2021
On Mon, Jul 19, 2021 at 03:39:16PM +0800, Haoyang Chen wrote:
> 在 2021/7/19 下午3:16, Huw Davies 写道:
> > We're already adding some network card keys in ndis.sys, so probably
> > this should go there instead of wineboot.
> > Also, which is these does the app you're looking at actually need? I
> > don't see DefaultNameIndex and DefaultNameResourceId in my Windows 10
> > VM and don't see PnpInstanceID on many of the adaptors in my Windows 7
> > VM.
> > Huw.
> There is an application which needs to query the "real" MAC address.
> It first enumerates all the MAC addresses through the GetAdaptersInfo()
> function, and then goes to the registry to look up the PnpInstanceID
> value of the corresponding network card.
Ok, so we don't need the DefaultName* values.
> It does not query the ndis.sys key.
I'm not sure why you mention this. I was simply
suggesting moving the creation of these keys to
ndis.sys, so that all of this stuff is in the
Since we need the PnpInstanceID value, that should
set in ndis.sys and then wbemprox should be changed
to read it from the registry.
More information about the wine-devel