WSALookupServiceEnd (Bluetooth)
A version of this page is also available for
4/8/2010
This function frees the handle after previous calls to the WSALookupServiceBegin (Bluetooth) and WSALookupServiceNext (Bluetooth) functions.
Note
This function is actually a Winsock function. However, the information that is presented in it is specific to Bluetooth.
Syntax
INT WSALookupServiceEnd(
HANDLE hLookup
);
Parameters
- hLookup
[in] Handle obtained from WSALookupServiceBegin (Bluetooth).
Return Value
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 to WSALookupServiceEnd (Bluetooth).
Remarks
If you call WSALookupServiceEnd from another thread while an existing WSALookupServiceNext (Bluetooth) is executing, the call to WSALookupServiceNext will be canceled and will return to the calling application immediately.
Requirements
Header | winsock2.h |
Library | Ws2.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
Bluetooth Application Development Functions
WSALookupServiceBegin (Bluetooth)
WSALookupServiceNext (Bluetooth)