BluetoothFindFirstDevice function Null safety bthprops

int BluetoothFindFirstDevice(
  1. Pointer<BLUETOOTH_DEVICE_SEARCH_PARAMS> pbtsp,
  2. Pointer<BLUETOOTH_DEVICE_INFO> pbtdi
)

The BluetoothFindFirstDevice function begins the enumeration Bluetooth devices.

HBLUETOOTH_DEVICE_FIND BluetoothFindFirstDevice(
  const BLUETOOTH_DEVICE_SEARCH_PARAMS *pbtsp,
  BLUETOOTH_DEVICE_INFO                *pbtdi
);

Implementation

int BluetoothFindFirstDevice(Pointer<BLUETOOTH_DEVICE_SEARCH_PARAMS> pbtsp,
    Pointer<BLUETOOTH_DEVICE_INFO> pbtdi) {
  final _BluetoothFindFirstDevice = _bthprops.lookupFunction<
      IntPtr Function(Pointer<BLUETOOTH_DEVICE_SEARCH_PARAMS> pbtsp,
          Pointer<BLUETOOTH_DEVICE_INFO> pbtdi),
      int Function(Pointer<BLUETOOTH_DEVICE_SEARCH_PARAMS> pbtsp,
          Pointer<BLUETOOTH_DEVICE_INFO> pbtdi)>('BluetoothFindFirstDevice');
  return _BluetoothFindFirstDevice(pbtsp, pbtdi);
}