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. To convert an IPv4
address string in dotted notation to a 32-bit IP address, use the
GetAddress method.
This method is included for compatibility with existing
applications which already use the HOSTENT structure. Because this
method 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.