文件名称:macaddress
- 所属分类:
- 通讯编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 12kb
- 下载次数:
- 0次
- 提 供 者:
- 肖**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
此代码通过 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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GetMacAddr
..........\GetMacAddr.cpp
..........\GetMacAddr.dsp
..........\GetMacAddr.dsw
..........\GetMacAddr.h
..........\GetMacAddr.rc
..........\GetMacAddrDlg.cpp
..........\GetMacAddrDlg.h
..........\ReadMe.txt
..........\res
..........\...\GetMacAddr.rc2
..........\resource.h
..........\StdAfx.cpp
..........\StdAfx.h
..........\GetMacAddr.cpp
..........\GetMacAddr.dsp
..........\GetMacAddr.dsw
..........\GetMacAddr.h
..........\GetMacAddr.rc
..........\GetMacAddrDlg.cpp
..........\GetMacAddrDlg.h
..........\ReadMe.txt
..........\res
..........\...\GetMacAddr.rc2
..........\resource.h
..........\StdAfx.cpp
..........\StdAfx.h