2022-06-08 11:30:04 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2017-08-01 07:27:22 +00:00
|
|
|
|
|
|
|
#include <wrl.h>
|
|
|
|
#include <windows.devices.enumeration.h>
|
|
|
|
#include <windows.devices.bluetooth.h>
|
|
|
|
|
2018-07-10 08:38:33 +00:00
|
|
|
#if defined(_WIN32) && defined(__INTEL_COMPILER)
|
|
|
|
#error "Windows ICC fails to build the WinRT backend (QTBUG-68026)."
|
|
|
|
#endif
|
|
|
|
|
2017-08-01 07:27:22 +00:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
Microsoft::WRL::ComPtr<ABI::Windows::Devices::Enumeration::IDeviceInformationStatics> deviceInformationStatics;
|
|
|
|
ABI::Windows::Foundation::GetActivationFactory(Microsoft::WRL::Wrappers::HString::MakeReference
|
|
|
|
(RuntimeClass_Windows_Devices_Enumeration_DeviceInformation).Get(), &deviceInformationStatics);
|
|
|
|
|
2021-04-07 08:01:40 +00:00
|
|
|
(void)Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::IGattDeviceService3>().Get();
|
2017-08-01 07:27:22 +00:00
|
|
|
(void)Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothDevice>().Get();
|
|
|
|
(void)Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice>().Get();
|
|
|
|
return 0;
|
|
|
|
}
|