WSALookupServiceNext Parameter Values for Enumerating Clouds (Windows CE 5.0)
The following list shows the values to pass in the WSALookupServiceNext (Windows Sockets) function when enumerating network clouds.
The lpqsResults parameter points to a result set in a WSAQUERYSET (Windows Sockets) structure on return. The following table shows the values this structure returns when it enumerates clouds.
WSAQUERYSET members Description dwSize Returns the size of this structure. lpszServiceInstanceName Returns a cloud name, if LUP_RETURN_NAME, LUP_RETURN_ALL, or NULL is specified. lpServiceClassID Returns SVCID_PNRCLOUD. dwNameSpace Returns NS_PNRPCLOUD. lpNSProviderID Returns NS_PROVIDER_PNRPCLOUD. lpBlob Returns a pointer to a BLOB (Windows Sockets) structure that points to a PNRPCLOUDINFO structure, if LUP_RETURN_BLOB, LUP_RETURN_ALL, or NULL is specified. Note All WSAQUERYSET members that are not specified in the table are reserved and must be set to NULL or zero (0) depending on the data type of the member.
When it enumerates cloud names, WSAQUERYSET.lpBlob returns a result set in the PNRPCLOUDINFO. The following table shows the possible return values.
PNRPCLOUDINFO members Description dwSize The size of this structure. Cloud The actual cloud value. enCloudState The current state of a cloud. PNRP_CLOUD_STATE specifies the valid values. enCloudFlags - If enCloudFlags is set to PNRP_CLOUD_NAME_LOCAL, the name is only valid locally.
- If enCloudFlags is not set, then the cloud name can be transferred to other computers.
- PNRP_CLOUD_FLAGS specifies the valid values. Some cloud names are valid on any computer on the same network. Other cloud names are valid only on a current computer, and may be valid only for a period of time.
See Also
Enumerating Clouds | Peer-to-Peer Application Development
Send Feedback on this topic to the authors