[Windows][NDIS] NdisIfAllocateNetLuidIndex 如何找到新的免费 NetLuidIndex?

问题描述

MSDN 指出要构造 NET_LUID 必须获得 NetLuidIndex。 通常,对于新网络接口的首次出现,会生成此 NetLuidIndex

问题是:如何手动生成这个Index?注册表中是否有一个地方,用于存储所有分配的 NetLuidIndices(在这种情况下必须使用的持久存储)?

解决方法

看来,索引存储在里面 计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NDIS\IfTypes[接口类型]\IfUsedNetLuidIndices

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...