المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Convert a in_addr to an IPAddr



C++ Programming
05-05-2009, 04:13 AM
In my code I'm trying to call SendARP to get the MAC address of a computer on the local network. I have their IP address in the in_addr data format, but SendARP takes it as an IPAddr.

I looked on MSDN and they don't offer any explicit ways to convert between the two and google searches so far have not proven fruitful.

Anyone done this before?