case TAG_MAC1:
{
IP_ADAPTER_INFO AdapterInfo[16];
DWORD dwBufLen = sizeof(AdapterInfo);
DWORD dwStatus = GetAdaptersInfo(
AdapterInfo,
&dwBufLen);
ASSERT(dwStatus == ERROR_SUCCESS);
PIP_ADAPTER_INFO pAdapterInfo = AdapterInfo;
char addrbuf[64];
sprintf(addrbuf, "%X:%X:%X:%X:%X:%X:%X:%X"
pAdapterInfo->Address[0],
pAdapterInfo->Address[1],
pAdapterInfo->Address[2],
pAdapterInfo->Address[3],
pAdapterInfo->Address[4],
pAdapterInfo->Address[5],
pAdapterInfo->Address[6],
pAdapterInfo->Address[7]);
strncpy(procTag, addrbuf, sizeProcTag);
} return true
bein neu erstellen komm ein fehler raus und zwar
0:14:2D:20:A:30:0:0 dh keine zwei stellen bein der werte