Share via


BthAuthenticate (Compact 2013)

3/26/2014

This function authenticates a Bluetooth peer device.

Syntax

int BthAuthenticate(
  BT_ADDR *pba
);

Parameters

  • pba
    [in] Pointer to the address of the peer device.

Return Value

Value

Description

ERROR_SUCCESS

Success.

ERROR_NOT_FOUND

An active connection to the specified device does not exist.

ERROR_SERVICE_NOT_ACTIVE

The Bluetooth stack is not present.

Other standard HRESULT error codes may be returned as appropriate.

Remarks

To preserve Microsoft Win32 compatibility, consider using the Winsock equivalent of this function. To do so, set the optname parameter in the setsockopt function to SO_BTH_AUTHENTICATE.

Requirements

Header

bt_api.h

Library

Btd.lib,
Btdrt.lib

See Also

Reference

Bluetooth API Security Management Functions
BthAuthenticateEx
Bluetooth API Miscellaneous Functions