最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
get The local Mac Address
时间:2022-07-02 12:02:46 编辑:袖梨 来源:一聚教程网
Dim mc As ManagementClass
Dim moc As ManagementObjectCollection
Dim mo As ManagementObject
mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
moc = mc.GetInstances() ' Get all network adapter instances
For Each mo In moc
If mo.Item("IPEnabled") = True Then
TextBox1.Text = mo.Item("MacAddress").ToString()
End If
mo.Dispose()
Next
Dim moc As ManagementObjectCollection
Dim mo As ManagementObject
mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
moc = mc.GetInstances() ' Get all network adapter instances
For Each mo In moc
If mo.Item("IPEnabled") = True Then
TextBox1.Text = mo.Item("MacAddress").ToString()
End If
mo.Dispose()
Next
相关文章
- 《原神》5.2卡池抽取建议 11-14
- 《原神》5.2版本新怪物介绍 11-14
- 《原神》希诺宁增伤触发方法 11-14
- 《原神》循音觅奇活动入口 11-14
- 《原神》循音觅奇兑换码获取方法 11-14
- 《原神》花羽会活动飞行技巧介绍 11-14