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_HOSTNAME as the service class GUID. If lpszServiceInstanceNameis NULL or references a NULL string, the local host is to be resolved. Otherwise, a lookup on a specified host name shall occur. For the purposes of emulating gethostnameWs2.dll will specify a null pointer for lpszServiceInstanceName, and specify LUP_RETURN_NAME so that the host name is returned in the lpszServiceInstanceNameparameter. If an application uses this query and specifies LUP_RETURN_ADDR then the host address will be provided in a CSADDR_INFOstructure. The LUP_RETURN_BLOB action is undefined for this query. Port information will be defaulted to zero unless the lpszQueryStringreferences a service such as FTP, in which case the complete transport address of the indicated service will be supplied.

See Also