Intiates pairing for a remote device.
| C# | Visual Basic |
public static bool PairRequest( BluetoothAddress device, string pin )
Public Shared Function PairRequest ( _ device As BluetoothAddress, _ pin As String _ ) As Boolean
- device (BluetoothAddress)
- Remote device with which to pair.
- pin (String)
- Chosen PIN code, must be between 1 and 16 ASCII characters.
Whether the operation was successful.
On Windows CE platforms this calls BthPairRequest, its MSDN remarks say:
“BthPairRequest passes the parameters to the BthSetPIN function and creates an ACL connection. Once the connection is established, it calls the BthAuthenticate function to authenticate the device.”
On Windows XP/Vista platforms this calls BluetoothAuthenticateDevice, if the pin argument is set to null a Wizard is displayed to accept a PIN from the user, otherwise the function executes in transparent mode.
See also SetPin(BluetoothAddress, String)