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.
Hi,
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 same place.
Since we need the PnpInstanceID value, that should set in ndis.sys and then wbemprox should be changed to read it from the registry.
Huw.