Compartilhar via


WSALookupServiceNext Parameter Values for Resolving Peer Names (Windows CE 5.0)

Send Feedback

When WSALookupServiceNext (Windows Sockets) is called to resolve names, on return, the lpqsResults parameter points to a result set in a WSAQUERYSET (Windows Sockets) structure.

The following table shows the values that this structure returns when resolving names.

Values Description
dwSize Returns the size of this structure.
lpszServiceInstanceName Returns a peer name, if LUP_RETURN_NAME, LUP_RETURN_ALL, or NULL is specified.
lpServiceClassID Returns SVCID_PNRPNAME.
dwNameSpace Returns NS_PNRPNAME.
lpNSProviderID Returns NS_PROVIDER_PNRPNAME.
lpszContext Returns the cloud name if LUP_RETURN_NAME, LUP_RETURN_ALL, or NULL is specified.
dwNumberOfCsAddrs Returns the number of entries in the CSADDR_INFO array if LUP_RETURN_ADDR, LUP_RETURN_ALL, or NULL is specified. This value and the information in lpcsaBuffer are the key bits of information returned in this structure.
lpcsaBuffer Returns a pointer to an array of CSADDR_INFO structures if LUP_RETURN_ADDR, LUP_RETURN_ALL, or NULL is specified. This buffer and the value in dwNumberOfCsAddrs are the most information bits returned in this structure.

See Also

Resolving a Peer Name | Peer-to-Peer Application Development

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.