Not supported on Windows XP
| C# | Visual Basic |
bool SetLinkKey( BluetoothAddress device, Guid linkKey )
Function SetLinkKey ( _ device As BluetoothAddress, _ linkKey As Guid _ ) As Boolean
- device (BluetoothAddress)
[Missing <param name="device"/> documentation for "M:InTheHand.Net.Bluetooth.IBluetoothSecurity.SetLinkKey(InTheHand.Net.BluetoothAddress,System.Guid)"]
- linkKey (Guid)
[Missing <param name="linkKey"/> documentation for "M:InTheHand.Net.Bluetooth.IBluetoothSecurity.SetLinkKey(InTheHand.Net.BluetoothAddress,System.Guid)"]
[Missing <returns> documentation for "M:InTheHand.Net.Bluetooth.IBluetoothSecurity.SetLinkKey(InTheHand.Net.BluetoothAddress,System.Guid)"]
On Windows CE platforms this calls BthSetLinkKey, its MSDN remarks say:
“The link key is persisted in registry until BthRevokeLinkKey is called.
“Typically, the Bluetooth stack manages link keys automatically, for example, it stores them when they are created. This function is useful primarily for backup purposes.
“While link key is stored, it will be automatically supplied once the link key request is issued by the authentication mechanism. If the link key is incorrect, the renegotiation that involves the PIN is initiated by the Bluetooth adapter, and the PIN code may be requested from the user.
“The link key length is 16 bytes. You cannot create link keys; they are generated by the Bluetooth hardware.”