BluetoothAuthenticateDeviceEx (irprops)
Last changed: e-semble-87.213.69.130

.
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("irprops.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