BluetoothFindFirstRadio function Null safety bthprops

int BluetoothFindFirstRadio (
  1. Pointer<BLUETOOTH_FIND_RADIO_PARAMS> pbtfrp,
  2. Pointer<IntPtr> phRadio
)

The BluetoothFindFirstRadio function begins the enumeration of local Bluetooth radios.

HBLUETOOTH_RADIO_FIND BluetoothFindFirstRadio(
  const BLUETOOTH_FIND_RADIO_PARAMS *pbtfrp,
  HANDLE                            *phRadio
);

Implementation

int BluetoothFindFirstRadio(
    Pointer<BLUETOOTH_FIND_RADIO_PARAMS> pbtfrp, Pointer<IntPtr> phRadio) {
  final _BluetoothFindFirstRadio = _bthprops.lookupFunction<
      IntPtr Function(
          Pointer<BLUETOOTH_FIND_RADIO_PARAMS> pbtfrp, Pointer<IntPtr> phRadio),
      int Function(Pointer<BLUETOOTH_FIND_RADIO_PARAMS> pbtfrp,
          Pointer<IntPtr> phRadio)>('BluetoothFindFirstRadio');
  return _BluetoothFindFirstRadio(pbtfrp, phRadio);
}