Location:
Search - Netapi32 m
Search list
Description: 此代码通过 NetApi32.dll 中提供的API来实现 Windows 系统中网卡MAC地址的获取。首先发送 NCBENUM 命名枚举机器上所有网卡(因为一台PC上有可能装多张网卡),由此可以获得网卡的数目和每张网卡的内部编号,接着针对每个网卡编号发送 NCBASTAT 命令获取其 MAC 地址。注意使用本例所提供的方法获取MAC地址,网卡事先必须与 MS NetBEIU 协议进行绑定。-NetApi32.dll this code provided by the Windows API to achieve system China and MAC address access. Send NCBENUM first named Enumerate all card machine (a PC because there may be multiple network cards installed), This card available and the number of each card's internal numbers, Then, for each card sent NCBASTAT Order No. access to its MAC address. Attention to the use of the cases provided by the acquisition of MAC address, NIC must be preceded with MS NetBEIU agreement binding.
Platform: |
Size: 12288 |
Author: 肖和平 |
Hits: