AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

gethostbyname

The Windows Sockets gethostbyname function retrieves host information corresponding to a host name from a host database.

VB4-32,5,6
Declare Function gethostbyname Lib "WSOCK32" (ByVal szHost As String) As Long

VB.NET
System.Net.Dns.GetHostByName

Operating Systems Supported
Requires Windows Sockets 1.1 or later

Library
Wsock32

Parameter Information
name
[out] A pointer to the null-terminated name of the host to resolve.

Return Values
If no error occurs, gethostbyname returns a pointer to the HOSTENT structure described above. Otherwise, it returns a NULL pointer and a specific error number can be retrieved by calling WSAGetLastError.

Examples

Related Functions

No VB.NET Example Found

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/