BluetoothFindNextDevice function Null safety bthprops

int BluetoothFindNextDevice (
  1. int hFind,
  2. Pointer<BLUETOOTH_DEVICE_INFO> pbtdi
)

The BluetoothFindNextDevice function finds the next Bluetooth device.

BOOL BluetoothFindNextDevice(
  HBLUETOOTH_DEVICE_FIND hFind,
  BLUETOOTH_DEVICE_INFO  *pbtdi
);

Implementation

int BluetoothFindNextDevice(int hFind, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi) {
  final _BluetoothFindNextDevice = _bthprops.lookupFunction<
      Int32 Function(IntPtr hFind, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi),
      int Function(int hFind,
          Pointer<BLUETOOTH_DEVICE_INFO> pbtdi)>('BluetoothFindNextDevice');
  return _BluetoothFindNextDevice(hFind, pbtdi);
}