BluetoothRegisterForAuthenticationEx function bluetooth

int BluetoothRegisterForAuthenticationEx(
  1. Pointer<BLUETOOTH_DEVICE_INFO> pbtdiIn,
  2. Pointer<IntPtr> phRegHandleOut,
  3. Pointer<NativeFunction<PFN_AUTHENTICATION_CALLBACK_EX>> pfnCallbackIn,
  4. Pointer<NativeType> pvParam
)

The BluetoothRegisterForAuthenticationEx function registers an application for a pin request, numeric comparison and callback function.

DWORD BluetoothRegisterForAuthenticationEx(
  const BLUETOOTH_DEVICE_INFO            *pbtdiIn,
  HBLUETOOTH_AUTHENTICATION_REGISTRATION *phRegHandleOut,
  PFN_AUTHENTICATION_CALLBACK_EX         pfnCallbackIn,
  PVOID                                  pvParam
);

Implementation

int BluetoothRegisterForAuthenticationEx(
        Pointer<BLUETOOTH_DEVICE_INFO> pbtdiIn,
        Pointer<IntPtr> phRegHandleOut,
        Pointer<NativeFunction<PFN_AUTHENTICATION_CALLBACK_EX>> pfnCallbackIn,
        Pointer pvParam) =>
    _BluetoothRegisterForAuthenticationEx(
        pbtdiIn, phRegHandleOut, pfnCallbackIn, pvParam);