Share via


CancelInquiry (Compact 2013)

3/26/2014

This function cancels the current inquiry operation.

Syntax

HRESULT CancelInquiry();

Parameters

None.

Return Value

The following table shows the possible return values.

Value

Description

S_OK

Success.

SOCKET_ERROR

Call to BthNsLookupServiceEnd is unsuccessful. To get extended error information, call WSAGetLastError.

Remarks

For more information about this function, see section "Inquiry Cancel Command" in the Core Specification Version 2.1+EDR, Bluetooth web site.

Note

To preserve Win32 compatibility, consider using the Winsock equivalent of this function. To do so, pass BTHNS_ABORT_CURRENT_INQUIRY as a handle parameter in WSALookupServiceEnd.

Requirements

Header

bthutil_p.h

Library

Bthutil.lib

See Also

Reference

Bluetooth API Miscellaneous Functions
Bluetooth API Management Functions
BthStartInquiryAsync
BthPerformInquiry