Partager via


BthNsLookupServiceEnd (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

INT BthNsLookupServiceEnd(
  HANDLE hLookup
);

Parameters

  • hLookup
    [in] Handle obtained from BthNsLookupServiceBegin.

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.

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

Header bt_api.h
Library Btdrt.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Bluetooth OS Functions
BthNsLookupServiceBegin
BthNsLookupServiceNext

Other Resources

WSAGetLastError
Bluetooth Application Development