The application must never attempt to modify this structure or to
free any of its components. Only one copy of this structure is
allocated per thread, so the application should copy any information
it needs before issuing any other function calls. This method will
automatically resolve an IP address passed as a string, converting it
to numeric form and calling the GetHostByAddress method.
This method is included for compatibility with existing
applications which already use the HOSTENT structure. Because this
function returns a pointer to a complex structure, it may not be
suitable for some programming languages. There is no Unicode
version of the HOSTENT structure and members will return
pointers to ANSI strings even if the application is compiled to use
Unicode.
This method is not compatible with IPv6 addresses. For
applications that must support both IPv4 and IPv6 address formats,
use the GetHostAddress and GetHostName methods.