我已成功地获得了网卡地址,哪们教我怎样转换成注册码?
oicq8 2001-07-11 01:17:19 我已成功地获得了网卡地址,哪们教我怎样转换成注册码?
CTcpCfg m_TcpCfg;
m_TcpCfg.Init();
for(int ii = 0; ii < m_TcpCfg.GetTotalNetCards(); ii++)
{
m_TcpCfg.GetCard(ii).szDescription;
//AfxMessageBox(m_TcpCfg.GetCard(i).szDescription);
}
TCHAR szAddr[128];
NET_CARD card = m_TcpCfg.GetCard(0);
wsprintf(szAddr,_T("%d%d%d%d%02x%02x"),card.szMacAddr[0],
card.szMacAddr[1],card.szMacAddr[2],card.szMacAddr[3],card.szMacAddr[4],card.szMacAddr[5]);
_tcsupr(szAddr);