Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getnameinfo API

Status
Not open for further replies.

GhostWolf

Programmer
Jun 27, 2003
290
US
Has anyone used this call with VB6?

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).

GetNameInfo

GetHostByAddr

Hope this helps

HarleyQuinn
---------------------------------
Carter, hand me my thinking grenades!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before posting.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top