ULONG   ulMACAddr[2],
ulSize = 6;
LPBYTE pBuffer;

if (SendARP(inet_addr(_T("207.219.70.31")), 0,
ulMACAddr, &ulSize) == NO_ERROR)
{
pBuffer = (LPBYTE) ulMACAddr;

// access the address one byte at a time m_strText.Format("%02X:%02X:%02X:%02X:%02X:%02X\r\n",
pBuffer[0],
pBuffer[1],
pBuffer[2],
pBuffer[3],
pBuffer[4],
pBuffer[5]);

m_edit1.ReplaceSel(m_strText);
}
#include <IPHlpApi.h> 를 잊지 말아야할것

'NativeCode > api' 카테고리의 다른 글

HTTPS GET - Download HTML from HTTPS URL  (0) 2010.03.19
CkLibrary  (1) 2010.03.19
Event  (0) 2010.03.19
Deadlock 4가지 조건  (0) 2010.03.19
Synchronization Function  (0) 2010.03.19

+ Recent posts