Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The WSALookupServiceBeginquery uses SVCID_INET_HOSTADDRBYNAME as the service class GUID. The host name is supplied in lpszServiceInstanceName. Ws2.dll specifies LUP_RETURN_BLOB and the NSP places a hostentstructure in the BLOB (using offsets instead of pointers as described previously). NSPs should honor these other LUP_RETURN_* flags as well.

Flag Description

LUP_RETURN_NAME

Returns the h_namemember from hostentstructure in lpszServiceInstanceName.

LUP_RETURN_ADDR

Returns addressing information from hostentin CSADDR_INFOstructures, port information is defaulted to zero. Note that this routine does notresolve host names consisting of a dotted Internet address.

See Also