取本地适配器

易语言 2021-05-28 17:53:48

.如果真 (dwSize > 0)
szDescription = 编码_Unicode到Ansi (指针到字节集 (pDescription, dwSize × 2 + 2))
.如果真结束
PhysicalAddress = GetPhysicalAddress (pCurrAddresses + 44, 指针_到整数 (pCurrAddresses + 44 + 8)) ' 物理地址
IsDhcpv4Enabled = GetDhcpv4Enabled (pCurrAddresses)
pFriendlyName = 指针_到整数 (pCurrAddresses + 40)
dwSize = lstrlenW (pFriendlyName)取本地适配器开源。