// WARNING: Please don't edit this file. It was generated by C++/WinRT // v2.0.250303.1 #pragma once #ifndef WINRT_Microsoft_Windows_Widgets_Providers_H #define WINRT_Microsoft_Windows_Widgets_Providers_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Microsoft.Windows.Widgets.h" #include "winrt/impl/Microsoft.Windows.Widgets.2.h" #include "winrt/impl/Microsoft.Windows.Widgets.Providers.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" namespace winrt::impl { template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetActionInvokedArgs< D>::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetActionInvokedArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetActionInvokedArgs< D>::Verb() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetActionInvokedArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Verb(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Verb(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetActionInvokedArgs< D>::Data() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetActionInvokedArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Data(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Data(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetActionInvokedArgs< D>::CustomState() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetActionInvokedArgs, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CustomState(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CustomState(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetAnalyticsInfoReportedArgs< D>::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetAnalyticsInfoReportedArgs< D>::AnalyticsJson() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AnalyticsJson(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AnalyticsJson(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetContext::Id() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetContext, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Id(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Id(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetContext< D>::DefinitionId() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetContext, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DefinitionId(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DefinitionId(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetContext::Size() const { winrt::Microsoft::Windows::Widgets::WidgetSize value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetContext, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->get_Size(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->get_Size(reinterpret_cast(&value))); } return value; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetContext::IsActive() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetContext, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsActive(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsActive(&value)); } return value; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetContextChangedArgs< D>::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetCustomizationRequestedArgs< D>::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetCustomizationRequestedArgs< D>::CustomState() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CustomState(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CustomState(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetErrorInfoReportedArgs< D>::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetErrorInfoReportedArgs< D>::ErrorJson() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ErrorJson(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ErrorJson(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetInfo::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo>**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetInfo::Template() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Template(&value)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo>**)this; check_hresult(_winrt_abi_type->get_Template(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetInfo::Data() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Data(&value)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo>**)this; check_hresult(_winrt_abi_type->get_Data(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetInfo::CustomState() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CustomState(&value)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo>**)this; check_hresult(_winrt_abi_type->get_CustomState(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetInfo< D>::LastUpdateTime() const { winrt::Windows::Foundation::DateTime value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LastUpdateTime(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo>**)this; check_hresult(_winrt_abi_type->get_LastUpdateTime(put_abi(value))); } return value; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetInfo2< D>::IsPlaceholderContent() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo2, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPlaceholderContent(&value)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo2>**)this; check_hresult(_winrt_abi_type->get_IsPlaceholderContent(&value)); } return value; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetInfo3::Rank() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo3, D const*>( static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Rank(&value)); } else { auto const _winrt_abi_type = *(abi_t< winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo3>**)this; check_hresult(_winrt_abi_type->get_Rank(&value)); } return value; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetManager< D>::UpdateWidget(winrt::Microsoft::Windows::Widgets::Providers:: WidgetUpdateRequestOptions const& widgetUpdateRequestOptions) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->UpdateWidget(*(void**)(&widgetUpdateRequestOptions))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->UpdateWidget(*(void**)(&widgetUpdateRequestOptions))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetManager< D>::GetWidgetIds() const { uint32_t result_impl_size{}; void** result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetWidgetIds(&result_impl_size, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetWidgetIds(&result_impl_size, &result)); } return com_array{result, result_impl_size, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetManager< D>::GetWidgetInfo(param::hstring const& widgetId) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->GetWidgetInfo(*(void**)(&widgetId), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->GetWidgetInfo(*(void**)(&widgetId), &result)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetInfo{ result, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetManager< D>::GetWidgetInfos() const { uint32_t result_impl_size{}; void** result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetWidgetInfos(&result_impl_size, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetWidgetInfos(&result_impl_size, &result)); } return com_array{ result, result_impl_size, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetManager< D>::DeleteWidget(param::hstring const& widgetId) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->DeleteWidget(*(void**)(&widgetId))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->DeleteWidget(*(void**)(&widgetId))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetManager2< D>::SendMessageToContent(param::hstring const& widgetId, param::hstring const& message) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SendMessageToContent(*(void**)(&widgetId), *(void**)(&message))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SendMessageToContent(*(void**)(&widgetId), *(void**)(&message))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetManagerStatics< D>::GetDefault() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetManagerStatics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetDefault(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetDefault(&result)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetManager{ result, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetMessageReceivedArgs< D>::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetMessageReceivedArgs< D>::Message() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Message(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Message(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProvider:: CreateWidget( winrt::Microsoft::Windows::Widgets::Providers::WidgetContext const& widgetContext) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateWidget(*(void**)(&widgetContext))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateWidget(*(void**)(&widgetContext))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProvider< D>::DeleteWidget(param::hstring const& widgetId, param::hstring const& customState) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->DeleteWidget(*(void**)(&widgetId), *(void**)(&customState))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->DeleteWidget(*(void**)(&widgetId), *(void**)(&customState))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProvider< D>::OnActionInvoked(winrt::Microsoft::Windows::Widgets::Providers:: WidgetActionInvokedArgs const& actionInvokedArgs) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->OnActionInvoked(*(void**)(&actionInvokedArgs))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->OnActionInvoked(*(void**)(&actionInvokedArgs))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProvider< D>::OnWidgetContextChanged(winrt::Microsoft::Windows::Widgets::Providers:: WidgetContextChangedArgs const& contextChangedArgs) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnWidgetContextChanged( *(void**)(&contextChangedArgs))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnWidgetContextChanged( *(void**)(&contextChangedArgs))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProvider::Activate( winrt::Microsoft::Windows::Widgets::Providers::WidgetContext const& widgetContext) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Activate(*(void**)(&widgetContext))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Activate(*(void**)(&widgetContext))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProvider::Deactivate( param::hstring const& widgetId) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Deactivate(*(void**)(&widgetId))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Deactivate(*(void**)(&widgetId))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProvider2< D>::OnCustomizationRequested(winrt::Microsoft::Windows::Widgets::Providers:: WidgetCustomizationRequestedArgs const& customizationRequestedArgs) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider2, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnCustomizationRequested( *(void**)(&customizationRequestedArgs))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnCustomizationRequested( *(void**)(&customizationRequestedArgs))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProviderAnalytics< D>::OnAnalyticsInfoReported(winrt::Microsoft::Windows::Widgets::Providers:: WidgetAnalyticsInfoReportedArgs const& args) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderAnalytics, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnAnalyticsInfoReported(*(void**)(&args))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnAnalyticsInfoReported(*(void**)(&args))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProviderErrors< D>::OnErrorInfoReported(winrt::Microsoft::Windows::Widgets::Providers:: WidgetErrorInfoReportedArgs const& args) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderErrors, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnErrorInfoReported(*(void**)(&args))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnErrorInfoReported(*(void**)(&args))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetProviderMessage< D>::OnMessageReceived(winrt::Microsoft::Windows::Widgets::Providers:: WidgetMessageReceivedArgs const& args) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderMessage, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnMessageReceived(*(void**)(&args))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnMessageReceived(*(void**)(&args))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceProvider< D>::OnResourceRequested(winrt::Microsoft::Windows::Widgets::Providers:: WidgetResourceRequestedArgs const& args) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceProvider, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnResourceRequested(*(void**)(&args))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnResourceRequested(*(void**)(&args))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequest< D>::Uri() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Uri(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Uri(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequest< D>::Method() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Method(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Method(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequest< D>::Method(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Method(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Method(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequest< D>::Content() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Content(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Content(&value)); } return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequest:: Content( winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequest< D>::Headers() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Headers(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Headers(&value)); } return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequestedArgs< D>::WidgetContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetContext(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetContext{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequestedArgs< D>::Request() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Request(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Request(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceRequest{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequestedArgs< D>::Response() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Response(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Response(&value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceResponse{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequestedArgs< D>::Response(winrt::Microsoft::Windows::Widgets::Providers:: WidgetResourceResponse const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Response(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Response(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceRequestedArgs< D>::GetDeferral() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetDeferral(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetDeferral(&result)); } return winrt::Windows::Foundation::Deferral{result, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceResponse< D>::Content() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceResponse, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Content(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Content(&value)); } return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceResponse< D>::Headers() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceResponse, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Headers(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Headers(&value)); } return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceResponse< D>::ReasonPhrase() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceResponse, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ReasonPhrase(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ReasonPhrase(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceResponse< D>::StatusCode() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceResponse, D const*>(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_StatusCode(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StatusCode(&value)); } return value; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetResourceResponseFactory< D>::CreateInstance(winrt::Windows::Storage::Streams:: IRandomAccessStreamReference const& content, param::hstring const& reasonPhrase, int32_t statusCode) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance( *(void**)(&content), *(void**)(&reasonPhrase), statusCode, &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance( *(void**)(&content), *(void**)(&reasonPhrase), statusCode, &value)); } return winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceResponse{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions< D>::WidgetId() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidgetId(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidgetId(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions< D>::Template() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Template(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Template(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions< D>::Template(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Template(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Template(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions< D>::Data() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Data(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Data(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions< D>::Data(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions< D>::CustomState() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CustomState(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CustomState(&value)); } return hstring{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions< D>::CustomState(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CustomState(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CustomState(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions2< D>::IsPlaceholderContent() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPlaceholderContent(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsPlaceholderContent(&value)); } return winrt::Windows::Foundation::IReference{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions2< D>::IsPlaceholderContent(winrt::Windows::Foundation::IReference const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsPlaceholderContent(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsPlaceholderContent(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions3< D>::Rank() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Rank(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Rank(&value)); } return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptions3< D>::Rank(winrt::Windows::Foundation::IReference const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Rank(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Rank(*(void**)(&value))); } } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptionsFactory< D>::CreateInstance(param::hstring const& widgetId) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult( _winrt_abi_type->CreateInstance(*(void**)(&widgetId), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult( _winrt_abi_type->CreateInstance(*(void**)(&widgetId), &value)); } return winrt::Microsoft::Windows::Widgets::Providers:: WidgetUpdateRequestOptions{value, take_ownership_from_abi}; } template auto consume_Microsoft_Windows_Widgets_Providers_IWidgetUpdateRequestOptionsStatics< D>::UnsetValue() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_UnsetValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UnsetValue(&value)); } return hstring{value, take_ownership_from_abi}; } #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetActionInvokedArgs> : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Verb(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Verb()); 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 get_CustomState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomState()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AnalyticsJson(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnalyticsJson()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetContext> { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefinitionId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefinitionId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Size(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().Size()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsActive()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetContextChangedArgs> : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomState()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetErrorInfoReportedArgs> : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorJson(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorJson()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Template(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Template()); 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 get_CustomState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastUpdateTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from( this->shim().LastUpdateTime()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo2> { int32_t __stdcall get_IsPlaceholderContent(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPlaceholderContent()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetInfo3> { int32_t __stdcall get_Rank(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Rank()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager> { int32_t __stdcall UpdateWidget( void* widgetUpdateRequestOptions) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateWidget( *reinterpret_cast( &widgetUpdateRequestOptions)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetWidgetIds(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetWidgetIds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetWidgetInfo(void* widgetId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetWidgetInfo( *reinterpret_cast(&widgetId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetWidgetInfos(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().GetWidgetInfos()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteWidget(void* widgetId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeleteWidget(*reinterpret_cast(&widgetId)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetManager2> { int32_t __stdcall SendMessageToContent(void* widgetId, void* message) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SendMessageToContent( *reinterpret_cast(&widgetId), *reinterpret_cast(&message)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetManagerStatics> : produce_base { int32_t __stdcall GetDefault(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetManager>( this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetMessageReceivedArgs> : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider> { int32_t __stdcall CreateWidget(void* widgetContext) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CreateWidget( *reinterpret_cast(&widgetContext)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteWidget(void* widgetId, void* customState) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeleteWidget(*reinterpret_cast(&widgetId), *reinterpret_cast(&customState)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnActionInvoked(void* actionInvokedArgs) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnActionInvoked( *reinterpret_cast( &actionInvokedArgs)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnWidgetContextChanged( void* contextChangedArgs) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnWidgetContextChanged( *reinterpret_cast( &contextChangedArgs)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Activate(void* widgetContext) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Activate( *reinterpret_cast(&widgetContext)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Deactivate(void* widgetId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Deactivate(*reinterpret_cast(&widgetId)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetProvider2> { int32_t __stdcall OnCustomizationRequested( void* customizationRequestedArgs) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnCustomizationRequested( *reinterpret_cast( &customizationRequestedArgs)); return 0; } catch (...) { return to_hresult(); } }; template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderAnalytics> : produce_base { int32_t __stdcall OnAnalyticsInfoReported(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnAnalyticsInfoReported( *reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderErrors> : produce_base { int32_t __stdcall OnErrorInfoReported(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnErrorInfoReported( *reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderMessage> : produce_base { int32_t __stdcall OnMessageReceived(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnMessageReceived( *reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceProvider> : produce_base { int32_t __stdcall OnResourceRequested(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnResourceRequested( *reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest> : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Method(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Method()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Method(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Method(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Content(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Windows::Storage::Streams::IRandomAccessStreamReference>( this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Content(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Content( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Headers(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Windows::Foundation::Collections::IMap>( this->shim().Headers()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequestedArgs> : produce_base { int32_t __stdcall get_WidgetContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetContext>( this->shim().WidgetContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Request(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceRequest>( this->shim().Request()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Response(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceResponse>( this->shim().Response()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Response(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Response( *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from( this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceResponse> : produce_base { int32_t __stdcall get_Content(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Windows::Storage::Streams::IRandomAccessStreamReference>( this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Headers(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Windows::Foundation::Collections::IMap>( this->shim().Headers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReasonPhrase(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReasonPhrase()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StatusCode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StatusCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* content, void* reasonPhrase, int32_t statusCode, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from< winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceResponse>( this->shim().CreateInstance( *reinterpret_cast( &content), *reinterpret_cast(&reasonPhrase), statusCode)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetUpdateRequestOptions> : produce_base { int32_t __stdcall get_WidgetId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidgetId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Template(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Template()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Template(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Template(*reinterpret_cast(&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(); } int32_t __stdcall get_CustomState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomState(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetUpdateRequestOptions2> : produce_base { int32_t __stdcall get_IsPlaceholderContent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>( this->shim().IsPlaceholderContent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsPlaceholderContent(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsPlaceholderContent( *reinterpret_cast const*>( &value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce< D, winrt::Microsoft::Windows::Widgets::Providers::IWidgetUpdateRequestOptions3> : produce_base { int32_t __stdcall get_Rank(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>( this->shim().Rank()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Rank(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Rank( *reinterpret_cast< winrt::Windows::Foundation::IReference const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* widgetId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance( *reinterpret_cast(&widgetId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UnsetValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UnsetValue()); return 0; } catch (...) { return to_hresult(); } }; #endif } // namespace winrt::impl WINRT_EXPORT namespace winrt::Microsoft::Windows::Widgets::Providers { inline auto WidgetManager::GetDefault() { return impl::call_factory_cast< winrt::Microsoft::Windows::Widgets::Providers::WidgetManager (*)( IWidgetManagerStatics const&), WidgetManager, IWidgetManagerStatics>( [](IWidgetManagerStatics const& f) { return f.GetDefault(); }); } inline WidgetResourceResponse::WidgetResourceResponse( winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& content, param::hstring const& reasonPhrase, int32_t statusCode) : WidgetResourceResponse( impl::call_factory( [&](IWidgetResourceResponseFactory const& f) { return f.CreateInstance(content, reasonPhrase, statusCode); })) {} inline WidgetUpdateRequestOptions::WidgetUpdateRequestOptions( param::hstring const& widgetId) : WidgetUpdateRequestOptions( impl::call_factory( [&](IWidgetUpdateRequestOptionsFactory const& f) { return f.CreateInstance(widgetId); })) {} inline auto WidgetUpdateRequestOptions::UnsetValue() { return impl::call_factory_cast< hstring (*)(IWidgetUpdateRequestOptionsStatics const&), WidgetUpdateRequestOptions, IWidgetUpdateRequestOptionsStatics>( [](IWidgetUpdateRequestOptionsStatics const& f) { return f.UnsetValue(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetActionInvokedArgs> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetContextChangedArgs> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetErrorInfoReportedArgs> : 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::Microsoft::Windows::Widgets::Providers::IWidgetManagerStatics> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetMessageReceivedArgs> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderAnalytics> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderErrors> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetProviderMessage> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceProvider> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequest> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceRequestedArgs> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetResourceResponse> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetUpdateRequestOptions> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetUpdateRequestOptions2> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::IWidgetUpdateRequestOptions3> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetActionInvokedArgs> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetContextChangedArgs> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetErrorInfoReportedArgs> : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetMessageReceivedArgs> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceRequest> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceRequestedArgs> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetResourceResponse> : winrt::impl::hash_base {}; template <> struct hash< winrt::Microsoft::Windows::Widgets::Providers::WidgetUpdateRequestOptions> : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } // namespace std #endif