BluetoothEnumerateInstalledServices function Null safety bthprops

int BluetoothEnumerateInstalledServices (
  1. int hRadio,
  2. Pointer<BLUETOOTH_DEVICE_INFO> pbtdi,
  3. Pointer<Uint32> pcServiceInout,
  4. Pointer<GUID> pGuidServices
)

The BluetoothEnumerateInstalledServices function enumerates the services GUIDs (Globally Unique Identifiers) enabled on a Bluetooth device.

DWORD BluetoothEnumerateInstalledServices(
  HANDLE                      hRadio,
  const BLUETOOTH_DEVICE_INFO *pbtdi,
  DWORD                       *pcServiceInout,
  GUID                        *pGuidServices
);

Implementation

int BluetoothEnumerateInstalledServices(
    int hRadio,
    Pointer<BLUETOOTH_DEVICE_INFO> pbtdi,
    Pointer<Uint32> pcServiceInout,
    Pointer<GUID> pGuidServices) {
  final _BluetoothEnumerateInstalledServices = _bthprops.lookupFunction<
      Uint32 Function(IntPtr hRadio, Pointer<BLUETOOTH_DEVICE_INFO> pbtdi,
          Pointer<Uint32> pcServiceInout, Pointer<GUID> pGuidServices),
      int Function(
          int hRadio,
          Pointer<BLUETOOTH_DEVICE_INFO> pbtdi,
          Pointer<Uint32> pcServiceInout,
          Pointer<GUID> pGuidServices)>('BluetoothEnumerateInstalledServices');
  return _BluetoothEnumerateInstalledServices(
      hRadio, pbtdi, pcServiceInout, pGuidServices);
}