BthNsLookupServiceEnd (Windows CE 5.0)
This function frees the handle after previous calls to the BthNsLookupServiceBegin and BthNsLookupServiceNext functions.
Note To preserve Win32 compatibility, consider using the Winsock equivalent of this function. This function is equivalent to WSALookupServiceEnd.
INT BthNsLookupServiceEnd(HANDLE hLookup);
Parameters
- hLookup
[in] Handle obtained from BthNsLookupServiceBegin.
Return Values
If the operation was successful, the return value is zero. Otherwise, the value SOCKET_ERROR is returned. You can retrieve the specific error number by calling the WSAGetLastError function.
To cancel a pending inquiry, pass BTHNS_ABORT_CURRENT_INQUIRY as a handle parameter.
Remarks
If you call BthNsLookupServiceEnd from another thread while an existing BthNsLookupServiceNext is executing, the call to BthNsLookupServiceNext will be canceled and will return to the calling application immediately.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Bt_api.h.
Link Library: Btdrt.lib.
See Also
Bluetooth OS Functions | BthNsLookupServiceBegin | BthNsLookupServiceNext | WSAGetLastError | Bluetooth Application Development
Send Feedback on this topic to the authors