BluetoothGetRadioInfo function Null safety bthprops

int BluetoothGetRadioInfo(
  1. int hRadio,
  2. Pointer<BLUETOOTH_RADIO_INFO> pRadioInfo
)

The BluetoothGetRadioInfo function obtains information about a Bluetooth radio.

DWORD BluetoothGetRadioInfo(
  HANDLE                hRadio,
  PBLUETOOTH_RADIO_INFO pRadioInfo
);

Implementation

int BluetoothGetRadioInfo(
    int hRadio, Pointer<BLUETOOTH_RADIO_INFO> pRadioInfo) {
  final _BluetoothGetRadioInfo = _bthprops.lookupFunction<
      Uint32 Function(IntPtr hRadio, Pointer<BLUETOOTH_RADIO_INFO> pRadioInfo),
      int Function(int hRadio,
          Pointer<BLUETOOTH_RADIO_INFO> pRadioInfo)>('BluetoothGetRadioInfo');
  return _BluetoothGetRadioInfo(hRadio, pRadioInfo);
}