The gethostbyaddr call is returning names, but I just learned of getnameinfo and wonder if it returns the same names - but haven't been able to find a code sample for it.
From the information I can find, it seems that GetNameInfo has superceeded GetHostByAddr (on systems running XP and above for native support).
In response to your original question, it looks like it depends exactly what you want the function to return (for example, GetNameInfo can't return the NetBios name should you be requiring that).
You've probably found these but here are two links detailing what the two functions can do (I've included the GetHostByAddr link as it references GetNameInfo in the remarks and intorduction).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.