This function revokes the personal identification number (PIN) for the Bluetooth device.
| C# | Visual Basic |
bool RevokePin( BluetoothAddress device )
Function RevokePin ( _ device As BluetoothAddress _ ) As Boolean
- device (BluetoothAddress)
- The remote device.
True on success, else False.
On Windows CE platforms this calls BthRevokePIN, its MSDN remarks say:
“When the PIN is revoked, it is removed from registry. The active connection to the device is not necessary, nor is the presence of the Bluetooth controller.”
On Windows CE platforms this removes any pending BluetoothWin32Authentication object but does not remove the PIN for an already authenticated device. Use RemoveDevice to ensure a pairing is completely removed.
See also SetPin(BluetoothAddress, String)