Bluetooth and WSALookupServiceEnd
Bluetooth uses the WSALookupServiceEnd function to terminate a query initiated in a previous call to WSALookupServiceBegin, and perhaps extended in subsequent calls to WSALookupServiceNext. The call to WSALookupServiceEnd terminates the query and cleans up the context.
The steps for device inquiry and service discovery in Bluetooth are sufficiently different to merit separate treatment. For more information on Bluetooth and the WSALookupServiceBegin function for device inquiries, see Bluetooth and WSALookupServiceBegin for Device Inquiry. For more information on Bluetooth and the WSALookupServiceBegin function for service discovery, see Bluetooth and WSALookupServiceBegin for Service Discovery.