printf( "The NCBENUM return code is: 0x%x\n ", uRetCode );
if ( uRetCode == 0 )
{
printf( "Ethernet Count is : %d\n ", lana_enum.length);
// 对每一张网卡,以其网卡编号为输入编号,获取其MAC地址
for ( int i=0; i < lana_enum.length; ++i)
getmac_one( lana_enum.lana[i]);
}
return 0;
}
------解决方案--------------------还不如用IPHelper APIs.
------解决方案--------------------http://blog.sina.com.cn/u/4a22dd10010005bo
内容有相关部分,你可以自己去分解