文件名称:Delphigetmac
介绍说明--下载内容均来自于网络,请自行研究使用
Delphi获取网卡地址,也就是MAC地址,获取计算机中安装的第一块网卡的MAC地址,这里是使用Delphi调用了NetBios函数,用此函数,你可以获得除MAC地址以外的更多网络信息。将NCB的ncb_command成员设为NCBENUM,可以得到计算机的网卡数量 设为NCBASTAT,可以得到某块网卡的信息。
在查询MAC之前,需要将网卡Reset,可以通过NCB的ncb_command成员设为NCBRESET并调用NetBios函数来实现。-Delphi access to the network card address, or MAC address, access to the computer installed the first block in the MAC address of network card, here is the use of Delphi calls the NetBios function, using this function, you can get more information from outside the network MAC address. The NCB member of the ncb_command is set to NCBENUM, can get the number of computer network set to NCBASTAT, can get a piece of card information.
In the query MAC before, will need to network card Reset, NCB through the ncb_command member is NCBRESET and call the NetBios function to achieve.
在查询MAC之前,需要将网卡Reset,可以通过NCB的ncb_command成员设为NCBRESET并调用NetBios函数来实现。-Delphi access to the network card address, or MAC address, access to the computer installed the first block in the MAC address of network card, here is the use of Delphi calls the NetBios function, using this function, you can get more information from outside the network MAC address. The NCB member of the ncb_command is set to NCBENUM, can get the number of computer network set to NCBASTAT, can get a piece of card information.
In the query MAC before, will need to network card Reset, NCB through the ncb_command member is NCBRESET and call the NetBios function to achieve.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Delphi获取网卡地址\ex98.cfg
..................\ex98.dof
..................\ex98.dpr
..................\ex98.res
..................\mac.dcu
..................\mac.dfm
..................\mac.pas
Delphi获取网卡地址