Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The BluetoothSendAuthenticationResponseEx function is called when an authentication request to send the passkey or a Numeric Comparison response is made.
Syntax
DWORD BluetoothSendAuthenticationResponseEx(
[in, optional] HANDLE hRadioIn,
[in] PBLUETOOTH_AUTHENTICATE_RESPONSE pauthResponse
);
Parameters
[in, optional] hRadioIn
A handle of the Bluetooth radio device to specify local service information for.
[in] pauthResponse
Pointer to a BLUETOOTH_AUTHENTICATE_RESPONSE structure containing the response to the BTH_REMOTE_AUTHENTICATE_REQUEST event.
Return value
Returns ERROR_SUCCESS upon successful completion; returns the following error codes upon failure:
Return code | Description |
---|---|
|
The device was denied the passkey response. This may also indicate a communications problem with the local radio device. |
|
The device returned a failure code during authentication. |
Remarks
Callers can only use this function to respond to a pending authentication request. Applications should register with BluetoothRegisterForAuthenticationEx in order to be notified of incoming authentication requests.
Only the BLUETOOTH_AUTHENTICATION_METHOD_LEGACY, BLUETOOTH_AUTHENTICATION_METHOD_NUMERIC_COMPARISON and BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY_NOTIFICATION response types are valid.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista, Windows XP with SP2 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | bluetoothapis.h (include Bthsdpdef.h, BluetoothAPIs.h) |
Library | Bthprops.lib |
DLL | bthprops.cpl |