BluetoothAuthenticateDevice (irprops)
Last changed: -50.102.230.218

.
Summary
The BluetoothAuthenticateDeviceEx function sends an authentication request to a remote Bluetooth device. Additionally, this function allows for out-of-band data to be passed into the function call for the device being authenticated.

C# Signature:

[DllImport("bthprops.cpl", SetLastError=true)]
static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);

VB Signature:

Declare Function BluetoothAuthenticateDeviceEx Lib "irprops.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

The authenticationRequirement is actually an enum defined as:

  typedef enum  {
    MITMProtectionNotRequired        = 0x00,
    MITMProtectionRequired           = 0x01,
    MITMProtectionNotRequiredBonding     = 0x02,
    MITMProtectionRequiredBonding        = 0x03,
    MITMProtectionNotRequiredGeneralBonding  = 0x04,
    MITMProtectionRequiredGeneralBonding     = 0x05,
    MITMProtectionNotDefined         = 0xff
  } AUTHENTICATION_REQUIREMENTS;

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation