次の方法で共有


BthAnswerBondingReq (Compact 2013)

3/26/2014

This function responds to a pair request from a Bluetooth device by using a PIN to authenticate the response.

Syntax

BOOL BthAnswerBondingReq ( 
  BT_ADDR* pBA, 
  LPCTSTR tszPin
);

Parameters

  • pBA
    [in] Pointer to the address of the peer device.
  • tszPin
    [in] Pointer to the PIN.

Return Value

If the function succeeds, returns TRUE; otherwise, FALSE. To get extended error information, call GetLastError.

Remarks

This function passes the parameters to the BthAnswerPairRequest function and returns TRUE if the pair request succeeds. If the pair request does not succeed, it calls BthRevokePIN and returns FALSE. The PIN passed into tszPin is converted to a multi-byte string before it is passed to BthAnswerPairRequest.

See Also

Reference

Bluetooth API Miscellaneous Functions
BthInitiateBonding