// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Devices_Bluetooth_Advertisement_H #define WINRT_Windows_Devices_Bluetooth_Advertisement_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Devices.Bluetooth.h" #include "winrt/impl/Windows.Devices.Bluetooth.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.Devices.Bluetooth.Advertisement.2.h" namespace winrt::impl { template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::Flags() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->get_Flags(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::Flags(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->put_Flags(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::LocalName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->get_LocalName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::LocalName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->put_LocalName(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::ServiceUuids() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->get_ServiceUuids(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::ManufacturerData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->get_ManufacturerData(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::DataSections() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->get_DataSections(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::GetManufacturerDataByCompanyId(uint16_t companyId) const { void* dataList{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->GetManufacturerDataByCompanyId(companyId, &dataList)); return winrt::Windows::Foundation::Collections::IVectorView{ dataList, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisement::GetSectionsByType(uint8_t type) const { void* sectionList{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisement)->GetSectionsByType(type, §ionList)); return winrt::Windows::Foundation::Collections::IVectorView{ sectionList, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementBytePattern::DataType() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementBytePattern)->get_DataType(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementBytePattern::DataType(uint8_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementBytePattern)->put_DataType(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementBytePattern::Offset() const { int16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementBytePattern)->get_Offset(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementBytePattern::Offset(int16_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementBytePattern)->put_Offset(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementBytePattern::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementBytePattern)->get_Data(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementBytePattern::Data(winrt::Windows::Storage::Streams::IBuffer const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementBytePattern)->put_Data(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementBytePatternFactory::Create(uint8_t dataType, int16_t offset, winrt::Windows::Storage::Streams::IBuffer const& data) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementBytePatternFactory)->Create(dataType, offset, *(void**)(&data), &value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementBytePattern{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataSection::DataType() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataSection)->get_DataType(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataSection::DataType(uint8_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataSection)->put_DataType(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataSection::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataSection)->get_Data(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataSection::Data(winrt::Windows::Storage::Streams::IBuffer const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataSection)->put_Data(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataSectionFactory::Create(uint8_t dataType, winrt::Windows::Storage::Streams::IBuffer const& data) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataSectionFactory)->Create(dataType, *(void**)(&data), &value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementDataSection{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::Flags() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_Flags(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::IncompleteService16BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_IncompleteService16BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::CompleteService16BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_CompleteService16BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::IncompleteService32BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_IncompleteService32BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::CompleteService32BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_CompleteService32BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::IncompleteService128BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_IncompleteService128BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::CompleteService128BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_CompleteService128BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ShortenedLocalName() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ShortenedLocalName(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::CompleteLocalName() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_CompleteLocalName(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::TxPowerLevel() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_TxPowerLevel(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::PeripheralConnectionIntervalRange() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_PeripheralConnectionIntervalRange(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ServiceSolicitation16BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ServiceSolicitation16BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ServiceSolicitation32BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ServiceSolicitation32BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ServiceSolicitation128BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ServiceSolicitation128BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ServiceData16BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ServiceData16BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ServiceData32BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ServiceData32BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ServiceData128BitUuids() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ServiceData128BitUuids(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::PublicTargetAddress() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_PublicTargetAddress(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::RandomTargetAddress() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_RandomTargetAddress(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::Appearance() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_Appearance(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::AdvertisingInterval() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_AdvertisingInterval(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementDataTypesStatics::ManufacturerSpecificData() const { uint8_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementDataTypesStatics)->get_ManufacturerSpecificData(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementFilter::Advertisement() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementFilter)->get_Advertisement(&value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementFilter::Advertisement(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementFilter)->put_Advertisement(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementFilter::BytePatterns() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementFilter)->get_BytePatterns(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher::Status() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher::Advertisement() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher)->get_Advertisement(&value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher)->Start()); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher)->Stop()); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher::StatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher)->add_StatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher::StatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StatusChanged(handler)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher::StatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher)->remove_StatusChanged(impl::bind_in(token)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::PreferredTransmitPowerLevelInDBm() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->get_PreferredTransmitPowerLevelInDBm(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::PreferredTransmitPowerLevelInDBm(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->put_PreferredTransmitPowerLevelInDBm(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::UseExtendedAdvertisement() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->get_UseExtendedAdvertisement(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::UseExtendedAdvertisement(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->put_UseExtendedAdvertisement(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::IsAnonymous() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->get_IsAnonymous(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::IsAnonymous(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->put_IsAnonymous(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::IncludeTransmitPowerLevel() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->get_IncludeTransmitPowerLevel(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher2::IncludeTransmitPowerLevel(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher2)->put_IncludeTransmitPowerLevel(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher3::PrimaryPhy() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPhyType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher3)->get_PrimaryPhy(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher3::PrimaryPhy(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPhyType const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher3)->put_PrimaryPhy(static_cast(value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher3::SecondaryPhy() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPhyType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher3)->get_SecondaryPhy(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisher3::SecondaryPhy(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPhyType const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisher3)->put_SecondaryPhy(static_cast(value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisherFactory::Create(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement const& advertisement) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisherFactory)->Create(*(void**)(&advertisement), &value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisher{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisherStatusChangedEventArgs::Status() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPublisherStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisherStatusChangedEventArgs)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisherStatusChangedEventArgs::Error() const { winrt::Windows::Devices::Bluetooth::BluetoothError value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisherStatusChangedEventArgs)->get_Error(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2::SelectedTransmitPowerLevelInDBm() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementPublisherStatusChangedEventArgs2)->get_SelectedTransmitPowerLevelInDBm(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs::RawSignalStrengthInDBm() const { int16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs)->get_RawSignalStrengthInDBm(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs::BluetoothAddress() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs)->get_BluetoothAddress(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs::AdvertisementType() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs)->get_AdvertisementType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs::Timestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs)->get_Timestamp(put_abi(value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs::Advertisement() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs)->get_Advertisement(&value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs2::BluetoothAddressType() const { winrt::Windows::Devices::Bluetooth::BluetoothAddressType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs2)->get_BluetoothAddressType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs2::TransmitPowerLevelInDBm() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs2)->get_TransmitPowerLevelInDBm(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs2::IsAnonymous() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs2)->get_IsAnonymous(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs2::IsConnectable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs2)->get_IsConnectable(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs2::IsScannable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs2)->get_IsScannable(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs2::IsDirected() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs2)->get_IsDirected(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs2::IsScanResponse() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs2)->get_IsScanResponse(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs3::PrimaryPhy() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPhyType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs3)->get_PrimaryPhy(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementReceivedEventArgs3::SecondaryPhy() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementPhyType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementReceivedEventArgs3)->get_SecondaryPhy(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementScanParameters::ScanWindow() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementScanParameters)->get_ScanWindow(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementScanParameters::ScanInterval() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementScanParameters)->get_ScanInterval(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementScanParametersStatics::CoexistenceOptimized() const { void* parameters{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementScanParametersStatics)->CoexistenceOptimized(¶meters)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementScanParameters{ parameters, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementScanParametersStatics::LowLatency() const { void* parameters{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementScanParametersStatics)->LowLatency(¶meters)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementScanParameters{ parameters, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::MinSamplingInterval() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_MinSamplingInterval(put_abi(value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::MaxSamplingInterval() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_MaxSamplingInterval(put_abi(value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::MinOutOfRangeTimeout() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_MinOutOfRangeTimeout(put_abi(value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::MaxOutOfRangeTimeout() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_MaxOutOfRangeTimeout(put_abi(value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Status() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcherStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::ScanningMode() const { winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEScanningMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_ScanningMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::ScanningMode(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEScanningMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->put_ScanningMode(static_cast(value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::SignalStrengthFilter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_SignalStrengthFilter(&value)); return winrt::Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::SignalStrengthFilter(winrt::Windows::Devices::Bluetooth::BluetoothSignalStrengthFilter const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->put_SignalStrengthFilter(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::AdvertisementFilter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->get_AdvertisementFilter(&value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::AdvertisementFilter(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->put_AdvertisementFilter(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->Start()); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->Stop()); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Received(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->add_Received(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Received(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Received(handler)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Received(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->remove_Received(impl::bind_in(token)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Stopped(handler)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher::Stopped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher)->remove_Stopped(impl::bind_in(token)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher2::AllowExtendedAdvertisements() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher2)->get_AllowExtendedAdvertisements(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher2::AllowExtendedAdvertisements(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher2)->put_AllowExtendedAdvertisements(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::UseUncoded1MPhy() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->get_UseUncoded1MPhy(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::UseUncoded1MPhy(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->put_UseUncoded1MPhy(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::UseCodedPhy() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->get_UseCodedPhy(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::UseCodedPhy(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->put_UseCodedPhy(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::ScanParameters() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->get_ScanParameters(&value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementScanParameters{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::ScanParameters(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementScanParameters const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->put_ScanParameters(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::UseHardwareFilter() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->get_UseHardwareFilter(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcher3::UseHardwareFilter(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcher3)->put_UseHardwareFilter(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcherFactory::Create(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter const& advertisementFilter) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcherFactory)->Create(*(void**)(&advertisementFilter), &value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementWatcher{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEAdvertisementWatcherStoppedEventArgs::Error() const { winrt::Windows::Devices::Bluetooth::BluetoothError value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEAdvertisementWatcherStoppedEventArgs)->get_Error(reinterpret_cast(&value))); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEManufacturerData::CompanyId() const { uint16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEManufacturerData)->get_CompanyId(&value)); return value; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEManufacturerData::CompanyId(uint16_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEManufacturerData)->put_CompanyId(value)); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEManufacturerData::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEManufacturerData)->get_Data(&value)); return winrt::Windows::Storage::Streams::IBuffer{ value, take_ownership_from_abi }; } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEManufacturerData::Data(winrt::Windows::Storage::Streams::IBuffer const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEManufacturerData)->put_Data(*(void**)(&value))); } template auto consume_Windows_Devices_Bluetooth_Advertisement_IBluetoothLEManufacturerDataFactory::Create(uint16_t companyId, winrt::Windows::Storage::Streams::IBuffer const& data) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Devices::Bluetooth::Advertisement::IBluetoothLEManufacturerDataFactory)->Create(companyId, *(void**)(&data), &value)); return winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEManufacturerData{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Flags(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Flags()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Flags(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Flags(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LocalName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LocalName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LocalName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceUuids(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ServiceUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManufacturerData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ManufacturerData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DataSections(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DataSections()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetManufacturerDataByCompanyId(uint16_t companyId, void** dataList) noexcept final try { clear_abi(dataList); typename D::abi_guard guard(this->shim()); *dataList = detach_from>(this->shim().GetManufacturerDataByCompanyId(companyId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSectionsByType(uint8_t type, void** sectionList) noexcept final try { clear_abi(sectionList); typename D::abi_guard guard(this->shim()); *sectionList = detach_from>(this->shim().GetSectionsByType(type)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DataType(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DataType(uint8_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DataType(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Offset(int16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Offset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Offset(int16_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Offset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint8_t dataType, int16_t offset, void* data, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(dataType, offset, *reinterpret_cast(&data))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DataType(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DataType(uint8_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DataType(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint8_t dataType, void* data, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(dataType, *reinterpret_cast(&data))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Flags(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Flags()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncompleteService16BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncompleteService16BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompleteService16BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompleteService16BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncompleteService32BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncompleteService32BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompleteService32BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompleteService32BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncompleteService128BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncompleteService128BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompleteService128BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompleteService128BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShortenedLocalName(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShortenedLocalName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompleteLocalName(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompleteLocalName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TxPowerLevel(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TxPowerLevel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PeripheralConnectionIntervalRange(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PeripheralConnectionIntervalRange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceSolicitation16BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceSolicitation16BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceSolicitation32BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceSolicitation32BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceSolicitation128BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceSolicitation128BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceData16BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceData16BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceData32BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceData32BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceData128BitUuids(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceData128BitUuids()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PublicTargetAddress(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PublicTargetAddress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RandomTargetAddress(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RandomTargetAddress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Appearance(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Appearance()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AdvertisingInterval(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AdvertisingInterval()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManufacturerSpecificData(uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManufacturerSpecificData()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Advertisement(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Advertisement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Advertisement(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Advertisement(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BytePatterns(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BytePatterns()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Advertisement(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Advertisement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Start() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_StatusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StatusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StatusChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreferredTransmitPowerLevelInDBm(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PreferredTransmitPowerLevelInDBm()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreferredTransmitPowerLevelInDBm(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreferredTransmitPowerLevelInDBm(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UseExtendedAdvertisement(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseExtendedAdvertisement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UseExtendedAdvertisement(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UseExtendedAdvertisement(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAnonymous(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAnonymous()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAnonymous(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAnonymous(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncludeTransmitPowerLevel(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncludeTransmitPowerLevel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncludeTransmitPowerLevel(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncludeTransmitPowerLevel(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PrimaryPhy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrimaryPhy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrimaryPhy(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrimaryPhy(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SecondaryPhy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SecondaryPhy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SecondaryPhy(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SecondaryPhy(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* advertisement, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&advertisement))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Error(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Error()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedTransmitPowerLevelInDBm(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SelectedTransmitPowerLevelInDBm()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RawSignalStrengthInDBm(int16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RawSignalStrengthInDBm()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BluetoothAddress(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BluetoothAddress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AdvertisementType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AdvertisementType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Timestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Advertisement(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Advertisement()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BluetoothAddressType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BluetoothAddressType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TransmitPowerLevelInDBm(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TransmitPowerLevelInDBm()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAnonymous(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAnonymous()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsConnectable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsConnectable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsScannable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScannable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDirected(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDirected()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsScanResponse(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScanResponse()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PrimaryPhy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrimaryPhy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SecondaryPhy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SecondaryPhy()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ScanWindow(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScanWindow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScanInterval(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScanInterval()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CoexistenceOptimized(void** parameters) noexcept final try { clear_abi(parameters); typename D::abi_guard guard(this->shim()); *parameters = detach_from(this->shim().CoexistenceOptimized()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LowLatency(void** parameters) noexcept final try { clear_abi(parameters); typename D::abi_guard guard(this->shim()); *parameters = detach_from(this->shim().LowLatency()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MinSamplingInterval(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinSamplingInterval()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxSamplingInterval(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxSamplingInterval()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinOutOfRangeTimeout(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinOutOfRangeTimeout()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxOutOfRangeTimeout(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxOutOfRangeTimeout()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScanningMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScanningMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ScanningMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScanningMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignalStrengthFilter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalStrengthFilter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignalStrengthFilter(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignalStrengthFilter(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AdvertisementFilter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AdvertisementFilter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AdvertisementFilter(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AdvertisementFilter(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Start() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Received(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Received(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Received(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Received(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Stopped(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowExtendedAdvertisements(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowExtendedAdvertisements()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowExtendedAdvertisements(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowExtendedAdvertisements(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UseUncoded1MPhy(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseUncoded1MPhy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UseUncoded1MPhy(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UseUncoded1MPhy(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UseCodedPhy(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseCodedPhy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UseCodedPhy(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UseCodedPhy(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScanParameters(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScanParameters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ScanParameters(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScanParameters(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UseHardwareFilter(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseHardwareFilter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UseHardwareFilter(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UseHardwareFilter(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* advertisementFilter, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&advertisementFilter))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Error(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Error()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CompanyId(uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompanyId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CompanyId(uint16_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CompanyId(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint16_t companyId, void* data, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(companyId, *reinterpret_cast(&data))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Devices::Bluetooth::Advertisement { constexpr auto operator|(BluetoothLEAdvertisementFlags const left, BluetoothLEAdvertisementFlags const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(BluetoothLEAdvertisementFlags& left, BluetoothLEAdvertisementFlags const right) noexcept { left = left | right; return left; } constexpr auto operator&(BluetoothLEAdvertisementFlags const left, BluetoothLEAdvertisementFlags const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(BluetoothLEAdvertisementFlags& left, BluetoothLEAdvertisementFlags const right) noexcept { left = left & right; return left; } constexpr auto operator~(BluetoothLEAdvertisementFlags const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(BluetoothLEAdvertisementFlags const left, BluetoothLEAdvertisementFlags const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(BluetoothLEAdvertisementFlags& left, BluetoothLEAdvertisementFlags const right) noexcept { left = left ^ right; return left; } inline BluetoothLEAdvertisement::BluetoothLEAdvertisement() : BluetoothLEAdvertisement(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BluetoothLEAdvertisementBytePattern::BluetoothLEAdvertisementBytePattern() : BluetoothLEAdvertisementBytePattern(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BluetoothLEAdvertisementBytePattern::BluetoothLEAdvertisementBytePattern(uint8_t dataType, int16_t offset, winrt::Windows::Storage::Streams::IBuffer const& data) : BluetoothLEAdvertisementBytePattern(impl::call_factory([&](IBluetoothLEAdvertisementBytePatternFactory const& f) { return f.Create(dataType, offset, data); })) { } inline BluetoothLEAdvertisementDataSection::BluetoothLEAdvertisementDataSection() : BluetoothLEAdvertisementDataSection(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BluetoothLEAdvertisementDataSection::BluetoothLEAdvertisementDataSection(uint8_t dataType, winrt::Windows::Storage::Streams::IBuffer const& data) : BluetoothLEAdvertisementDataSection(impl::call_factory([&](IBluetoothLEAdvertisementDataSectionFactory const& f) { return f.Create(dataType, data); })) { } inline auto BluetoothLEAdvertisementDataTypes::Flags() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.Flags(); }); } inline auto BluetoothLEAdvertisementDataTypes::IncompleteService16BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.IncompleteService16BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::CompleteService16BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.CompleteService16BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::IncompleteService32BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.IncompleteService32BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::CompleteService32BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.CompleteService32BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::IncompleteService128BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.IncompleteService128BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::CompleteService128BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.CompleteService128BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::ShortenedLocalName() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ShortenedLocalName(); }); } inline auto BluetoothLEAdvertisementDataTypes::CompleteLocalName() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.CompleteLocalName(); }); } inline auto BluetoothLEAdvertisementDataTypes::TxPowerLevel() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.TxPowerLevel(); }); } inline auto BluetoothLEAdvertisementDataTypes::PeripheralConnectionIntervalRange() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.PeripheralConnectionIntervalRange(); }); } inline auto BluetoothLEAdvertisementDataTypes::ServiceSolicitation16BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ServiceSolicitation16BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::ServiceSolicitation32BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ServiceSolicitation32BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::ServiceSolicitation128BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ServiceSolicitation128BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::ServiceData16BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ServiceData16BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::ServiceData32BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ServiceData32BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::ServiceData128BitUuids() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ServiceData128BitUuids(); }); } inline auto BluetoothLEAdvertisementDataTypes::PublicTargetAddress() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.PublicTargetAddress(); }); } inline auto BluetoothLEAdvertisementDataTypes::RandomTargetAddress() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.RandomTargetAddress(); }); } inline auto BluetoothLEAdvertisementDataTypes::Appearance() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.Appearance(); }); } inline auto BluetoothLEAdvertisementDataTypes::AdvertisingInterval() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.AdvertisingInterval(); }); } inline auto BluetoothLEAdvertisementDataTypes::ManufacturerSpecificData() { return impl::call_factory_cast([](IBluetoothLEAdvertisementDataTypesStatics const& f) { return f.ManufacturerSpecificData(); }); } inline BluetoothLEAdvertisementFilter::BluetoothLEAdvertisementFilter() : BluetoothLEAdvertisementFilter(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BluetoothLEAdvertisementPublisher::BluetoothLEAdvertisementPublisher() : BluetoothLEAdvertisementPublisher(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BluetoothLEAdvertisementPublisher::BluetoothLEAdvertisementPublisher(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisement const& advertisement) : BluetoothLEAdvertisementPublisher(impl::call_factory([&](IBluetoothLEAdvertisementPublisherFactory const& f) { return f.Create(advertisement); })) { } inline auto BluetoothLEAdvertisementScanParameters::CoexistenceOptimized() { return impl::call_factory_cast([](IBluetoothLEAdvertisementScanParametersStatics const& f) { return f.CoexistenceOptimized(); }); } inline auto BluetoothLEAdvertisementScanParameters::LowLatency() { return impl::call_factory_cast([](IBluetoothLEAdvertisementScanParametersStatics const& f) { return f.LowLatency(); }); } inline BluetoothLEAdvertisementWatcher::BluetoothLEAdvertisementWatcher() : BluetoothLEAdvertisementWatcher(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BluetoothLEAdvertisementWatcher::BluetoothLEAdvertisementWatcher(winrt::Windows::Devices::Bluetooth::Advertisement::BluetoothLEAdvertisementFilter const& advertisementFilter) : BluetoothLEAdvertisementWatcher(impl::call_factory([&](IBluetoothLEAdvertisementWatcherFactory const& f) { return f.Create(advertisementFilter); })) { } inline BluetoothLEManufacturerData::BluetoothLEManufacturerData() : BluetoothLEManufacturerData(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BluetoothLEManufacturerData::BluetoothLEManufacturerData(uint16_t companyId, winrt::Windows::Storage::Streams::IBuffer const& data) : BluetoothLEManufacturerData(impl::call_factory([&](IBluetoothLEManufacturerDataFactory const& f) { return f.Create(companyId, data); })) { } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif