// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Notifications_H #define WINRT_Windows_UI_Notifications_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.UI.h" #include "winrt/impl/Windows.ApplicationModel.2.h" #include "winrt/impl/Windows.Data.Xml.Dom.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.UI.Notifications.2.h" namespace winrt::impl { template auto consume_Windows_UI_Notifications_IAdaptiveNotificationContent::Kind() const { winrt::Windows::UI::Notifications::AdaptiveNotificationContentKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IAdaptiveNotificationContent)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IAdaptiveNotificationContent::Hints() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IAdaptiveNotificationContent)->get_Hints(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IAdaptiveNotificationText::Text() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IAdaptiveNotificationText)->get_Text(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IAdaptiveNotificationText::Text(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IAdaptiveNotificationText)->put_Text(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IAdaptiveNotificationText::Language() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IAdaptiveNotificationText)->get_Language(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IAdaptiveNotificationText::Language(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IAdaptiveNotificationText)->put_Language(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IBadgeNotification::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeNotification)->get_Content(&value)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeNotification::ExpirationTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeNotification)->put_ExpirationTime(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IBadgeNotification::ExpirationTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeNotification)->get_ExpirationTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeNotificationFactory::CreateBadgeNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeNotificationFactory)->CreateBadgeNotification(*(void**)(&content), &value)); return winrt::Windows::UI::Notifications::BadgeNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerForUser::CreateBadgeUpdaterForApplication() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerForUser)->CreateBadgeUpdaterForApplication(&result)); return winrt::Windows::UI::Notifications::BadgeUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerForUser::CreateBadgeUpdaterForApplication(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerForUser)->CreateBadgeUpdaterForApplicationWithId(*(void**)(&applicationId), &result)); return winrt::Windows::UI::Notifications::BadgeUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerForUser::CreateBadgeUpdaterForSecondaryTile(param::hstring const& tileId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerForUser)->CreateBadgeUpdaterForSecondaryTile(*(void**)(&tileId), &result)); return winrt::Windows::UI::Notifications::BadgeUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerForUser::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerForUser)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerStatics::CreateBadgeUpdaterForApplication() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerStatics)->CreateBadgeUpdaterForApplication(&result)); return winrt::Windows::UI::Notifications::BadgeUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerStatics::CreateBadgeUpdaterForApplication(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerStatics)->CreateBadgeUpdaterForApplicationWithId(*(void**)(&applicationId), &result)); return winrt::Windows::UI::Notifications::BadgeUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerStatics::CreateBadgeUpdaterForSecondaryTile(param::hstring const& tileId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerStatics)->CreateBadgeUpdaterForSecondaryTile(*(void**)(&tileId), &result)); return winrt::Windows::UI::Notifications::BadgeUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerStatics::GetTemplateContent(winrt::Windows::UI::Notifications::BadgeTemplateType const& type) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerStatics)->GetTemplateContent(static_cast(type), &result)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdateManagerStatics2::GetForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdateManagerStatics2)->GetForUser(*(void**)(&user), &result)); return winrt::Windows::UI::Notifications::BadgeUpdateManagerForUser{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IBadgeUpdater::Update(winrt::Windows::UI::Notifications::BadgeNotification const& notification) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdater)->Update(*(void**)(¬ification))); } template auto consume_Windows_UI_Notifications_IBadgeUpdater::Clear() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdater)->Clear()); } template auto consume_Windows_UI_Notifications_IBadgeUpdater::StartPeriodicUpdate(winrt::Windows::Foundation::Uri const& badgeContent, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdater)->StartPeriodicUpdate(*(void**)(&badgeContent), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_IBadgeUpdater::StartPeriodicUpdate(winrt::Windows::Foundation::Uri const& badgeContent, winrt::Windows::Foundation::DateTime const& startTime, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdater)->StartPeriodicUpdateAtTime(*(void**)(&badgeContent), impl::bind_in(startTime), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_IBadgeUpdater::StopPeriodicUpdate() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IBadgeUpdater)->StopPeriodicUpdate()); } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationHintsStatics::Style() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationHintsStatics)->get_Style(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationHintsStatics::Wrap() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationHintsStatics)->get_Wrap(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationHintsStatics::MaxLines() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationHintsStatics)->get_MaxLines(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationHintsStatics::MinLines() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationHintsStatics)->get_MinLines(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationHintsStatics::TextStacking() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationHintsStatics)->get_TextStacking(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationHintsStatics::Align() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationHintsStatics)->get_Align(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::Caption() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_Caption(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::Body() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_Body(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::Base() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_Base(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::Subtitle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_Subtitle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::Subheader() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_Subheader(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::Header() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_Header(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::TitleNumeral() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_TitleNumeral(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::SubheaderNumeral() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_SubheaderNumeral(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::HeaderNumeral() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_HeaderNumeral(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::CaptionSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_CaptionSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::BodySubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_BodySubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::BaseSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_BaseSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::SubtitleSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_SubtitleSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::TitleSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_TitleSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::SubheaderSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_SubheaderSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::SubheaderNumeralSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_SubheaderNumeralSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::HeaderSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_HeaderSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownAdaptiveNotificationTextStylesStatics::HeaderNumeralSubtle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownAdaptiveNotificationTextStylesStatics)->get_HeaderNumeralSubtle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IKnownNotificationBindingsStatics::ToastGeneric() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IKnownNotificationBindingsStatics)->get_ToastGeneric(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotification::ExpirationTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotification)->get_ExpirationTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotification::ExpirationTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotification)->put_ExpirationTime(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_INotification::Visual() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotification)->get_Visual(&value)); return winrt::Windows::UI::Notifications::NotificationVisual{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotification::Visual(winrt::Windows::UI::Notifications::NotificationVisual const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotification)->put_Visual(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_INotificationBinding::Template() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationBinding)->get_Template(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationBinding::Template(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationBinding)->put_Template(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_INotificationBinding::Language() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationBinding)->get_Language(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationBinding::Language(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationBinding)->put_Language(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_INotificationBinding::Hints() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationBinding)->get_Hints(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationBinding::GetTextElements() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationBinding)->GetTextElements(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationData::Values() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationData)->get_Values(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationData::SequenceNumber() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationData)->get_SequenceNumber(&value)); return value; } template auto consume_Windows_UI_Notifications_INotificationData::SequenceNumber(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationData)->put_SequenceNumber(value)); } template auto consume_Windows_UI_Notifications_INotificationDataFactory::CreateNotificationData(param::iterable> const& initialValues, uint32_t sequenceNumber) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationDataFactory)->CreateNotificationDataWithValuesAndSequenceNumber(*(void**)(&initialValues), sequenceNumber, &value)); return winrt::Windows::UI::Notifications::NotificationData{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationDataFactory::CreateNotificationData(param::iterable> const& initialValues) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationDataFactory)->CreateNotificationDataWithValues(*(void**)(&initialValues), &value)); return winrt::Windows::UI::Notifications::NotificationData{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationVisual::Language() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationVisual)->get_Language(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationVisual::Language(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationVisual)->put_Language(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_INotificationVisual::Bindings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationVisual)->get_Bindings(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_INotificationVisual::GetBinding(param::hstring const& templateName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::INotificationVisual)->GetBinding(*(void**)(&templateName), &result)); return winrt::Windows::UI::Notifications::NotificationBinding{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->get_Content(&value)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::DeliveryTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->get_DeliveryTime(put_abi(value))); return value; } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::ExpirationTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->put_ExpirationTime(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::ExpirationTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->get_ExpirationTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::Tag(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->put_Tag(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::Tag() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->get_Tag(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::Id(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->put_Id(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledTileNotification::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotification)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledTileNotificationFactory::CreateScheduledTileNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content, winrt::Windows::Foundation::DateTime const& deliveryTime) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledTileNotificationFactory)->CreateScheduledTileNotification(*(void**)(&content), impl::bind_in(deliveryTime), &value)); return winrt::Windows::UI::Notifications::ScheduledTileNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification)->get_Content(&value)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification::DeliveryTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification)->get_DeliveryTime(put_abi(value))); return value; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification::SnoozeInterval() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification)->get_SnoozeInterval(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification::MaximumSnoozeCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification)->get_MaximumSnoozeCount(&value)); return value; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification::Id(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification)->put_Id(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledToastNotification::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification2::Tag(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification2)->put_Tag(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledToastNotification2::Tag() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification2)->get_Tag(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification2::Group(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification2)->put_Group(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledToastNotification2::Group() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification2)->get_Group(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification2::SuppressPopup(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification2)->put_SuppressPopup(value)); } template auto consume_Windows_UI_Notifications_IScheduledToastNotification2::SuppressPopup() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification2)->get_SuppressPopup(&value)); return value; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification3::NotificationMirroring() const { winrt::Windows::UI::Notifications::NotificationMirroring value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification3)->get_NotificationMirroring(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification3::NotificationMirroring(winrt::Windows::UI::Notifications::NotificationMirroring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification3)->put_NotificationMirroring(static_cast(value))); } template auto consume_Windows_UI_Notifications_IScheduledToastNotification3::RemoteId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification3)->get_RemoteId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification3::RemoteId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification3)->put_RemoteId(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledToastNotification4::ExpirationTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification4)->get_ExpirationTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotification4::ExpirationTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotification4)->put_ExpirationTime(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IScheduledToastNotificationFactory::CreateScheduledToastNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content, winrt::Windows::Foundation::DateTime const& deliveryTime) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotificationFactory)->CreateScheduledToastNotification(*(void**)(&content), impl::bind_in(deliveryTime), &value)); return winrt::Windows::UI::Notifications::ScheduledToastNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotificationFactory::CreateScheduledToastNotificationRecurring(winrt::Windows::Data::Xml::Dom::XmlDocument const& content, winrt::Windows::Foundation::DateTime const& deliveryTime, winrt::Windows::Foundation::TimeSpan const& snoozeInterval, uint32_t maximumSnoozeCount) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotificationFactory)->CreateScheduledToastNotificationRecurring(*(void**)(&content), impl::bind_in(deliveryTime), impl::bind_in(snoozeInterval), maximumSnoozeCount, &value)); return winrt::Windows::UI::Notifications::ScheduledToastNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotificationShowingEventArgs::Cancel() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotificationShowingEventArgs)->get_Cancel(&value)); return value; } template auto consume_Windows_UI_Notifications_IScheduledToastNotificationShowingEventArgs::Cancel(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotificationShowingEventArgs)->put_Cancel(value)); } template auto consume_Windows_UI_Notifications_IScheduledToastNotificationShowingEventArgs::ScheduledToastNotification() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotificationShowingEventArgs)->get_ScheduledToastNotification(&value)); return winrt::Windows::UI::Notifications::ScheduledToastNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IScheduledToastNotificationShowingEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IScheduledToastNotificationShowingEventArgs)->GetDeferral(&result)); return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IShownTileNotification::Arguments() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IShownTileNotification)->get_Arguments(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutNotification::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutNotification)->get_Content(&value)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutNotification::ExpirationTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutNotification)->put_ExpirationTime(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_ITileFlyoutNotification::ExpirationTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutNotification)->get_ExpirationTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutNotificationFactory::CreateTileFlyoutNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutNotificationFactory)->CreateTileFlyoutNotification(*(void**)(&content), &value)); return winrt::Windows::UI::Notifications::TileFlyoutNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdateManagerStatics::CreateTileFlyoutUpdaterForApplication() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdateManagerStatics)->CreateTileFlyoutUpdaterForApplication(&result)); return winrt::Windows::UI::Notifications::TileFlyoutUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdateManagerStatics::CreateTileFlyoutUpdaterForApplication(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdateManagerStatics)->CreateTileFlyoutUpdaterForApplicationWithId(*(void**)(&applicationId), &result)); return winrt::Windows::UI::Notifications::TileFlyoutUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdateManagerStatics::CreateTileFlyoutUpdaterForSecondaryTile(param::hstring const& tileId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdateManagerStatics)->CreateTileFlyoutUpdaterForSecondaryTile(*(void**)(&tileId), &result)); return winrt::Windows::UI::Notifications::TileFlyoutUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdateManagerStatics::GetTemplateContent(winrt::Windows::UI::Notifications::TileFlyoutTemplateType const& type) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdateManagerStatics)->GetTemplateContent(static_cast(type), &result)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdater::Update(winrt::Windows::UI::Notifications::TileFlyoutNotification const& notification) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdater)->Update(*(void**)(¬ification))); } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdater::Clear() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdater)->Clear()); } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdater::StartPeriodicUpdate(winrt::Windows::Foundation::Uri const& tileFlyoutContent, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdater)->StartPeriodicUpdate(*(void**)(&tileFlyoutContent), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdater::StartPeriodicUpdate(winrt::Windows::Foundation::Uri const& tileFlyoutContent, winrt::Windows::Foundation::DateTime const& startTime, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdater)->StartPeriodicUpdateAtTime(*(void**)(&tileFlyoutContent), impl::bind_in(startTime), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdater::StopPeriodicUpdate() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdater)->StopPeriodicUpdate()); } template auto consume_Windows_UI_Notifications_ITileFlyoutUpdater::Setting() const { winrt::Windows::UI::Notifications::NotificationSetting value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileFlyoutUpdater)->get_Setting(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_ITileNotification::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileNotification)->get_Content(&value)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileNotification::ExpirationTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileNotification)->put_ExpirationTime(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_ITileNotification::ExpirationTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileNotification)->get_ExpirationTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileNotification::Tag(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileNotification)->put_Tag(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_ITileNotification::Tag() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileNotification)->get_Tag(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileNotificationFactory::CreateTileNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileNotificationFactory)->CreateTileNotification(*(void**)(&content), &value)); return winrt::Windows::UI::Notifications::TileNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerForUser::CreateTileUpdaterForApplicationForUser() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerForUser)->CreateTileUpdaterForApplication(&result)); return winrt::Windows::UI::Notifications::TileUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerForUser::CreateTileUpdaterForApplication(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerForUser)->CreateTileUpdaterForApplicationWithId(*(void**)(&applicationId), &result)); return winrt::Windows::UI::Notifications::TileUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerForUser::CreateTileUpdaterForSecondaryTile(param::hstring const& tileId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerForUser)->CreateTileUpdaterForSecondaryTile(*(void**)(&tileId), &result)); return winrt::Windows::UI::Notifications::TileUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerForUser::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerForUser)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerStatics::CreateTileUpdaterForApplication() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerStatics)->CreateTileUpdaterForApplication(&result)); return winrt::Windows::UI::Notifications::TileUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerStatics::CreateTileUpdaterForApplication(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerStatics)->CreateTileUpdaterForApplicationWithId(*(void**)(&applicationId), &result)); return winrt::Windows::UI::Notifications::TileUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerStatics::CreateTileUpdaterForSecondaryTile(param::hstring const& tileId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerStatics)->CreateTileUpdaterForSecondaryTile(*(void**)(&tileId), &result)); return winrt::Windows::UI::Notifications::TileUpdater{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerStatics::GetTemplateContent(winrt::Windows::UI::Notifications::TileTemplateType const& type) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerStatics)->GetTemplateContent(static_cast(type), &result)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdateManagerStatics2::GetForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdateManagerStatics2)->GetForUser(*(void**)(&user), &result)); return winrt::Windows::UI::Notifications::TileUpdateManagerForUser{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdater::Update(winrt::Windows::UI::Notifications::TileNotification const& notification) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->Update(*(void**)(¬ification))); } template auto consume_Windows_UI_Notifications_ITileUpdater::Clear() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->Clear()); } template auto consume_Windows_UI_Notifications_ITileUpdater::EnableNotificationQueue(bool enable) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->EnableNotificationQueue(enable)); } template auto consume_Windows_UI_Notifications_ITileUpdater::Setting() const { winrt::Windows::UI::Notifications::NotificationSetting value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->get_Setting(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_ITileUpdater::AddToSchedule(winrt::Windows::UI::Notifications::ScheduledTileNotification const& scheduledTile) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->AddToSchedule(*(void**)(&scheduledTile))); } template auto consume_Windows_UI_Notifications_ITileUpdater::RemoveFromSchedule(winrt::Windows::UI::Notifications::ScheduledTileNotification const& scheduledTile) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->RemoveFromSchedule(*(void**)(&scheduledTile))); } template auto consume_Windows_UI_Notifications_ITileUpdater::GetScheduledTileNotifications() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->GetScheduledTileNotifications(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_ITileUpdater::StartPeriodicUpdate(winrt::Windows::Foundation::Uri const& tileContent, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->StartPeriodicUpdate(*(void**)(&tileContent), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_ITileUpdater::StartPeriodicUpdate(winrt::Windows::Foundation::Uri const& tileContent, winrt::Windows::Foundation::DateTime const& startTime, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->StartPeriodicUpdateAtTime(*(void**)(&tileContent), impl::bind_in(startTime), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_ITileUpdater::StopPeriodicUpdate() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->StopPeriodicUpdate()); } template auto consume_Windows_UI_Notifications_ITileUpdater::StartPeriodicUpdateBatch(param::iterable const& tileContents, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->StartPeriodicUpdateBatch(*(void**)(&tileContents), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_ITileUpdater::StartPeriodicUpdateBatch(param::iterable const& tileContents, winrt::Windows::Foundation::DateTime const& startTime, winrt::Windows::UI::Notifications::PeriodicUpdateRecurrence const& requestedInterval) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater)->StartPeriodicUpdateBatchAtTime(*(void**)(&tileContents), impl::bind_in(startTime), static_cast(requestedInterval))); } template auto consume_Windows_UI_Notifications_ITileUpdater2::EnableNotificationQueueForSquare150x150(bool enable) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater2)->EnableNotificationQueueForSquare150x150(enable)); } template auto consume_Windows_UI_Notifications_ITileUpdater2::EnableNotificationQueueForWide310x150(bool enable) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater2)->EnableNotificationQueueForWide310x150(enable)); } template auto consume_Windows_UI_Notifications_ITileUpdater2::EnableNotificationQueueForSquare310x310(bool enable) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::ITileUpdater2)->EnableNotificationQueueForSquare310x310(enable)); } template auto consume_Windows_UI_Notifications_IToastActivatedEventArgs::Arguments() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastActivatedEventArgs)->get_Arguments(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastActivatedEventArgs2::UserInput() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastActivatedEventArgs2)->get_UserInput(&value)); return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollection::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollection)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollection::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollection)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollection::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollection)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastCollection::LaunchArgs() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollection)->get_LaunchArgs(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollection::LaunchArgs(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollection)->put_LaunchArgs(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastCollection::Icon() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollection)->get_Icon(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollection::Icon(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollection)->put_Icon(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastCollectionFactory::CreateInstance(param::hstring const& collectionId, param::hstring const& displayName, param::hstring const& launchArgs, winrt::Windows::Foundation::Uri const& iconUri) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionFactory)->CreateInstance(*(void**)(&collectionId), *(void**)(&displayName), *(void**)(&launchArgs), *(void**)(&iconUri), &value)); return winrt::Windows::UI::Notifications::ToastCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollectionManager::SaveToastCollectionAsync(winrt::Windows::UI::Notifications::ToastCollection const& collection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionManager)->SaveToastCollectionAsync(*(void**)(&collection), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollectionManager::FindAllToastCollectionsAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionManager)->FindAllToastCollectionsAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollectionManager::GetToastCollectionAsync(param::hstring const& collectionId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionManager)->GetToastCollectionAsync(*(void**)(&collectionId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollectionManager::RemoveToastCollectionAsync(param::hstring const& collectionId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionManager)->RemoveToastCollectionAsync(*(void**)(&collectionId), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollectionManager::RemoveAllToastCollectionsAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionManager)->RemoveAllToastCollectionsAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollectionManager::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionManager)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastCollectionManager::AppId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastCollectionManager)->get_AppId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastDismissedEventArgs::Reason() const { winrt::Windows::UI::Notifications::ToastDismissalReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastDismissedEventArgs)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IToastFailedEventArgs::ErrorCode() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastFailedEventArgs)->get_ErrorCode(put_abi(value))); return value; } template auto consume_Windows_UI_Notifications_IToastNotification::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->get_Content(&value)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotification::ExpirationTime(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->put_ExpirationTime(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastNotification::ExpirationTime() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->get_ExpirationTime(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotification::Dismissed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->add_Dismissed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Notifications_IToastNotification::Dismissed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Dismissed(handler)); } template auto consume_Windows_UI_Notifications_IToastNotification::Dismissed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->remove_Dismissed(impl::bind_in(token)); } template auto consume_Windows_UI_Notifications_IToastNotification::Activated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->add_Activated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Notifications_IToastNotification::Activated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Activated(handler)); } template auto consume_Windows_UI_Notifications_IToastNotification::Activated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->remove_Activated(impl::bind_in(token)); } template auto consume_Windows_UI_Notifications_IToastNotification::Failed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->add_Failed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Notifications_IToastNotification::Failed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Failed(handler)); } template auto consume_Windows_UI_Notifications_IToastNotification::Failed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification)->remove_Failed(impl::bind_in(token)); } template auto consume_Windows_UI_Notifications_IToastNotification2::Tag(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification2)->put_Tag(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastNotification2::Tag() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification2)->get_Tag(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotification2::Group(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification2)->put_Group(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastNotification2::Group() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification2)->get_Group(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotification2::SuppressPopup(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification2)->put_SuppressPopup(value)); } template auto consume_Windows_UI_Notifications_IToastNotification2::SuppressPopup() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification2)->get_SuppressPopup(&value)); return value; } template auto consume_Windows_UI_Notifications_IToastNotification3::NotificationMirroring() const { winrt::Windows::UI::Notifications::NotificationMirroring value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification3)->get_NotificationMirroring(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IToastNotification3::NotificationMirroring(winrt::Windows::UI::Notifications::NotificationMirroring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification3)->put_NotificationMirroring(static_cast(value))); } template auto consume_Windows_UI_Notifications_IToastNotification3::RemoteId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification3)->get_RemoteId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotification3::RemoteId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification3)->put_RemoteId(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastNotification4::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification4)->get_Data(&value)); return winrt::Windows::UI::Notifications::NotificationData{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotification4::Data(winrt::Windows::UI::Notifications::NotificationData const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification4)->put_Data(*(void**)(&value))); } template auto consume_Windows_UI_Notifications_IToastNotification4::Priority() const { winrt::Windows::UI::Notifications::ToastNotificationPriority value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification4)->get_Priority(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IToastNotification4::Priority(winrt::Windows::UI::Notifications::ToastNotificationPriority const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification4)->put_Priority(static_cast(value))); } template auto consume_Windows_UI_Notifications_IToastNotification6::ExpiresOnReboot() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification6)->get_ExpiresOnReboot(&value)); return value; } template auto consume_Windows_UI_Notifications_IToastNotification6::ExpiresOnReboot(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotification6)->put_ExpiresOnReboot(value)); } template auto consume_Windows_UI_Notifications_IToastNotificationActionTriggerDetail::Argument() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationActionTriggerDetail)->get_Argument(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationActionTriggerDetail::UserInput() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationActionTriggerDetail)->get_UserInput(&value)); return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationFactory::CreateToastNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationFactory)->CreateToastNotification(*(void**)(&content), &value)); return winrt::Windows::UI::Notifications::ToastNotification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationHistory::RemoveGroup(param::hstring const& group) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory)->RemoveGroup(*(void**)(&group))); } template auto consume_Windows_UI_Notifications_IToastNotificationHistory::RemoveGroup(param::hstring const& group, param::hstring const& applicationId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory)->RemoveGroupWithId(*(void**)(&group), *(void**)(&applicationId))); } template auto consume_Windows_UI_Notifications_IToastNotificationHistory::Remove(param::hstring const& tag, param::hstring const& group, param::hstring const& applicationId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory)->RemoveGroupedTagWithId(*(void**)(&tag), *(void**)(&group), *(void**)(&applicationId))); } template auto consume_Windows_UI_Notifications_IToastNotificationHistory::Remove(param::hstring const& tag, param::hstring const& group) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory)->RemoveGroupedTag(*(void**)(&tag), *(void**)(&group))); } template auto consume_Windows_UI_Notifications_IToastNotificationHistory::Remove(param::hstring const& tag) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory)->Remove(*(void**)(&tag))); } template auto consume_Windows_UI_Notifications_IToastNotificationHistory::Clear() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory)->Clear()); } template auto consume_Windows_UI_Notifications_IToastNotificationHistory::Clear(param::hstring const& applicationId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory)->ClearWithId(*(void**)(&applicationId))); } template auto consume_Windows_UI_Notifications_IToastNotificationHistory2::GetHistory() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory2)->GetHistory(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationHistory2::GetHistory(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistory2)->GetHistoryWithId(*(void**)(&applicationId), &result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationHistoryChangedTriggerDetail::ChangeType() const { winrt::Windows::UI::Notifications::ToastHistoryChangedType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistoryChangedTriggerDetail)->get_ChangeType(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IToastNotificationHistoryChangedTriggerDetail2::CollectionId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationHistoryChangedTriggerDetail2)->get_CollectionId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser::CreateToastNotifier() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser)->CreateToastNotifier(&result)); return winrt::Windows::UI::Notifications::ToastNotifier{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser::CreateToastNotifier(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser)->CreateToastNotifierWithId(*(void**)(&applicationId), &result)); return winrt::Windows::UI::Notifications::ToastNotifier{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser::History() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser)->get_History(&value)); return winrt::Windows::UI::Notifications::ToastNotificationHistory{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser2::GetToastNotifierForToastCollectionIdAsync(param::hstring const& collectionId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser2)->GetToastNotifierForToastCollectionIdAsync(*(void**)(&collectionId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser2::GetHistoryForToastCollectionIdAsync(param::hstring const& collectionId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser2)->GetHistoryForToastCollectionIdAsync(*(void**)(&collectionId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser2::GetToastCollectionManager() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser2)->GetToastCollectionManager(&result)); return winrt::Windows::UI::Notifications::ToastCollectionManager{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser2::GetToastCollectionManager(param::hstring const& appId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser2)->GetToastCollectionManagerWithAppId(*(void**)(&appId), &result)); return winrt::Windows::UI::Notifications::ToastCollectionManager{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser3::NotificationMode() const { winrt::Windows::UI::Notifications::ToastNotificationMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser3)->get_NotificationMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser3::NotificationModeChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser3)->add_NotificationModeChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser3::NotificationModeChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, NotificationModeChanged(handler)); } template auto consume_Windows_UI_Notifications_IToastNotificationManagerForUser3::NotificationModeChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerForUser3)->remove_NotificationModeChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Notifications_IToastNotificationManagerStatics::CreateToastNotifier() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerStatics)->CreateToastNotifier(&result)); return winrt::Windows::UI::Notifications::ToastNotifier{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerStatics::CreateToastNotifier(param::hstring const& applicationId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerStatics)->CreateToastNotifierWithId(*(void**)(&applicationId), &result)); return winrt::Windows::UI::Notifications::ToastNotifier{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerStatics::GetTemplateContent(winrt::Windows::UI::Notifications::ToastTemplateType const& type) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerStatics)->GetTemplateContent(static_cast(type), &result)); return winrt::Windows::Data::Xml::Dom::XmlDocument{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerStatics2::History() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerStatics2)->get_History(&value)); return winrt::Windows::UI::Notifications::ToastNotificationHistory{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerStatics4::GetForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerStatics4)->GetForUser(*(void**)(&user), &result)); return winrt::Windows::UI::Notifications::ToastNotificationManagerForUser{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotificationManagerStatics4::ConfigureNotificationMirroring(winrt::Windows::UI::Notifications::NotificationMirroring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerStatics4)->ConfigureNotificationMirroring(static_cast(value))); } template auto consume_Windows_UI_Notifications_IToastNotificationManagerStatics5::GetDefault() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotificationManagerStatics5)->GetDefault(&result)); return winrt::Windows::UI::Notifications::ToastNotificationManagerForUser{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotifier::Show(winrt::Windows::UI::Notifications::ToastNotification const& notification) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier)->Show(*(void**)(¬ification))); } template auto consume_Windows_UI_Notifications_IToastNotifier::Hide(winrt::Windows::UI::Notifications::ToastNotification const& notification) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier)->Hide(*(void**)(¬ification))); } template auto consume_Windows_UI_Notifications_IToastNotifier::Setting() const { winrt::Windows::UI::Notifications::NotificationSetting value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier)->get_Setting(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IToastNotifier::AddToSchedule(winrt::Windows::UI::Notifications::ScheduledToastNotification const& scheduledToast) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier)->AddToSchedule(*(void**)(&scheduledToast))); } template auto consume_Windows_UI_Notifications_IToastNotifier::RemoveFromSchedule(winrt::Windows::UI::Notifications::ScheduledToastNotification const& scheduledToast) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier)->RemoveFromSchedule(*(void**)(&scheduledToast))); } template auto consume_Windows_UI_Notifications_IToastNotifier::GetScheduledToastNotifications() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier)->GetScheduledToastNotifications(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IToastNotifier2::Update(winrt::Windows::UI::Notifications::NotificationData const& data, param::hstring const& tag, param::hstring const& group) const { winrt::Windows::UI::Notifications::NotificationUpdateResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier2)->UpdateWithTagAndGroup(*(void**)(&data), *(void**)(&tag), *(void**)(&group), reinterpret_cast(&result))); return result; } template auto consume_Windows_UI_Notifications_IToastNotifier2::Update(winrt::Windows::UI::Notifications::NotificationData const& data, param::hstring const& tag) const { winrt::Windows::UI::Notifications::NotificationUpdateResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier2)->UpdateWithTag(*(void**)(&data), *(void**)(&tag), reinterpret_cast(&result))); return result; } template auto consume_Windows_UI_Notifications_IToastNotifier3::ScheduledToastNotificationShowing(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier3)->add_ScheduledToastNotificationShowing(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Notifications_IToastNotifier3::ScheduledToastNotificationShowing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ScheduledToastNotificationShowing(handler)); } template auto consume_Windows_UI_Notifications_IToastNotifier3::ScheduledToastNotificationShowing(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IToastNotifier3)->remove_ScheduledToastNotificationShowing(impl::bind_in(token)); } template auto consume_Windows_UI_Notifications_IUserNotification::Notification() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IUserNotification)->get_Notification(&value)); return winrt::Windows::UI::Notifications::Notification{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IUserNotification::AppInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IUserNotification)->get_AppInfo(&value)); return winrt::Windows::ApplicationModel::AppInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Notifications_IUserNotification::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IUserNotification)->get_Id(&value)); return value; } template auto consume_Windows_UI_Notifications_IUserNotification::CreationTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IUserNotification)->get_CreationTime(put_abi(value))); return value; } template auto consume_Windows_UI_Notifications_IUserNotificationChangedEventArgs::ChangeKind() const { winrt::Windows::UI::Notifications::UserNotificationChangedKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IUserNotificationChangedEventArgs)->get_ChangeKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Notifications_IUserNotificationChangedEventArgs::UserNotificationId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Notifications::IUserNotificationChangedEventArgs)->get_UserNotificationId(&value)); return value; } template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Hints(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Hints()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Text(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Text()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Text(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Text(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Language(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Language()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Language(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Language(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : 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(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpirationTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpirationTime()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateBadgeNotification(void* content, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateBadgeNotification(*reinterpret_cast(&content))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateBadgeUpdaterForApplication(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBadgeUpdaterForApplication()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateBadgeUpdaterForApplicationWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBadgeUpdaterForApplication(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateBadgeUpdaterForSecondaryTile(void* tileId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBadgeUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateBadgeUpdaterForApplication(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBadgeUpdaterForApplication()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateBadgeUpdaterForApplicationWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBadgeUpdaterForApplication(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateBadgeUpdaterForSecondaryTile(void* tileId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateBadgeUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTemplateContent(int32_t type, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetTemplateContent(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Update(void* notification) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Update(*reinterpret_cast(¬ification)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clear() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdate(void* badgeContent, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdate(*reinterpret_cast(&badgeContent), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdateAtTime(void* badgeContent, int64_t startTime, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdate(*reinterpret_cast(&badgeContent), *reinterpret_cast(&startTime), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopPeriodicUpdate() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopPeriodicUpdate(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Style(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Style()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Wrap(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Wrap()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxLines(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxLines()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinLines(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinLines()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TextStacking(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextStacking()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Align(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Align()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Caption(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Caption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Body(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Body()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Base(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Base()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Subtitle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Subtitle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Subheader(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Subheader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Header(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Header()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TitleNumeral(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TitleNumeral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SubheaderNumeral(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SubheaderNumeral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HeaderNumeral(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeaderNumeral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CaptionSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaptionSubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BodySubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BodySubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BaseSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BaseSubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SubtitleSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SubtitleSubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TitleSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TitleSubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SubheaderSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SubheaderSubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SubheaderNumeralSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SubheaderNumeralSubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HeaderSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeaderSubtle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HeaderNumeralSubtle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeaderNumeralSubtle()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ToastGeneric(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToastGeneric()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExpirationTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpirationTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Visual(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Visual()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Visual(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Visual(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_Language(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Language()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Language(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Language(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Hints(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Hints()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTextElements(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetTextElements()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Values(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Values()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SequenceNumber(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SequenceNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SequenceNumber(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SequenceNumber(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateNotificationDataWithValuesAndSequenceNumber(void* initialValues, uint32_t sequenceNumber, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateNotificationData(*reinterpret_cast> const*>(&initialValues), sequenceNumber)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateNotificationDataWithValues(void* initialValues, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateNotificationData(*reinterpret_cast> const*>(&initialValues))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Language(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Language()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Language(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Language(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Bindings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Bindings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBinding(void* templateName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetBinding(*reinterpret_cast(&templateName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : 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(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeliveryTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeliveryTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpirationTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpirationTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Tag(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Tag(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tag(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tag()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Id(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Id(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateScheduledTileNotification(void* content, int64_t deliveryTime, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateScheduledTileNotification(*reinterpret_cast(&content), *reinterpret_cast(&deliveryTime))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : 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(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeliveryTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeliveryTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SnoozeInterval(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SnoozeInterval()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaximumSnoozeCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaximumSnoozeCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Id(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Id(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Tag(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Tag(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tag(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tag()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Group(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Group(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Group(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Group()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuppressPopup(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuppressPopup(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SuppressPopup(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuppressPopup()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NotificationMirroring(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NotificationMirroring()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_NotificationMirroring(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotificationMirroring(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RemoteId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoteId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExpirationTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpirationTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateScheduledToastNotification(void* content, int64_t deliveryTime, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateScheduledToastNotification(*reinterpret_cast(&content), *reinterpret_cast(&deliveryTime))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateScheduledToastNotificationRecurring(void* content, int64_t deliveryTime, int64_t snoozeInterval, uint32_t maximumSnoozeCount, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateScheduledToastNotificationRecurring(*reinterpret_cast(&content), *reinterpret_cast(&deliveryTime), *reinterpret_cast(&snoozeInterval), maximumSnoozeCount)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Cancel(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cancel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Cancel(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Cancel(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScheduledToastNotification(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScheduledToastNotification()); 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 : produce_base { int32_t __stdcall get_Arguments(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Arguments()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : 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(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpirationTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpirationTime()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateTileFlyoutNotification(void* content, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateTileFlyoutNotification(*reinterpret_cast(&content))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateTileFlyoutUpdaterForApplication(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileFlyoutUpdaterForApplication()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTileFlyoutUpdaterForApplicationWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileFlyoutUpdaterForApplication(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTileFlyoutUpdaterForSecondaryTile(void* tileId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileFlyoutUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTemplateContent(int32_t type, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetTemplateContent(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Update(void* notification) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Update(*reinterpret_cast(¬ification)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clear() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdate(void* tileFlyoutContent, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileFlyoutContent), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdateAtTime(void* tileFlyoutContent, int64_t startTime, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileFlyoutContent), *reinterpret_cast(&startTime), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopPeriodicUpdate() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopPeriodicUpdate(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Setting(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Setting()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : 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(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpirationTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpirationTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Tag(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Tag(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tag(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tag()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateTileNotification(void* content, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateTileNotification(*reinterpret_cast(&content))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateTileUpdaterForApplication(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileUpdaterForApplicationForUser()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTileUpdaterForApplicationWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileUpdaterForApplication(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTileUpdaterForSecondaryTile(void* tileId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateTileUpdaterForApplication(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileUpdaterForApplication()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTileUpdaterForApplicationWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileUpdaterForApplication(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTileUpdaterForSecondaryTile(void* tileId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTileUpdaterForSecondaryTile(*reinterpret_cast(&tileId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTemplateContent(int32_t type, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetTemplateContent(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Update(void* notification) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Update(*reinterpret_cast(¬ification)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clear() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EnableNotificationQueue(bool enable) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableNotificationQueue(enable); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Setting(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Setting()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddToSchedule(void* scheduledTile) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddToSchedule(*reinterpret_cast(&scheduledTile)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveFromSchedule(void* scheduledTile) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveFromSchedule(*reinterpret_cast(&scheduledTile)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetScheduledTileNotifications(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetScheduledTileNotifications()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdate(void* tileContent, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileContent), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdateAtTime(void* tileContent, int64_t startTime, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdate(*reinterpret_cast(&tileContent), *reinterpret_cast(&startTime), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopPeriodicUpdate() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopPeriodicUpdate(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdateBatch(void* tileContents, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdateBatch(*reinterpret_cast const*>(&tileContents), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartPeriodicUpdateBatchAtTime(void* tileContents, int64_t startTime, int32_t requestedInterval) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartPeriodicUpdateBatch(*reinterpret_cast const*>(&tileContents), *reinterpret_cast(&startTime), *reinterpret_cast(&requestedInterval)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall EnableNotificationQueueForSquare150x150(bool enable) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableNotificationQueueForSquare150x150(enable); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EnableNotificationQueueForWide310x150(bool enable) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableNotificationQueueForWide310x150(enable); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EnableNotificationQueueForSquare310x310(bool enable) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableNotificationQueueForSquare310x310(enable); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Arguments(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Arguments()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UserInput(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserInput()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LaunchArgs(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LaunchArgs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LaunchArgs(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LaunchArgs(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Icon(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Icon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Icon(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Icon(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* collectionId, void* displayName, void* launchArgs, void* iconUri, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&collectionId), *reinterpret_cast(&displayName), *reinterpret_cast(&launchArgs), *reinterpret_cast(&iconUri))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SaveToastCollectionAsync(void* collection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SaveToastCollectionAsync(*reinterpret_cast(&collection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllToastCollectionsAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().FindAllToastCollectionsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetToastCollectionAsync(void* collectionId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetToastCollectionAsync(*reinterpret_cast(&collectionId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveToastCollectionAsync(void* collectionId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().RemoveToastCollectionAsync(*reinterpret_cast(&collectionId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveAllToastCollectionsAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().RemoveAllToastCollectionsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ErrorCode(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : 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(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpirationTime(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpirationTime(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpirationTime(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpirationTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Dismissed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Dismissed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Dismissed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Dismissed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Activated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Activated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Activated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Activated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Failed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Failed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Failed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Failed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_Tag(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Tag(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tag(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tag()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Group(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Group(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Group(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Group()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuppressPopup(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuppressPopup(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SuppressPopup(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuppressPopup()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NotificationMirroring(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NotificationMirroring()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_NotificationMirroring(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotificationMirroring(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RemoteId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoteId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_Priority(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Priority()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Priority(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Priority(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExpiresOnReboot(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpiresOnReboot()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExpiresOnReboot(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExpiresOnReboot(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Argument(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Argument()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserInput(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserInput()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateToastNotification(void* content, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateToastNotification(*reinterpret_cast(&content))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RemoveGroup(void* group) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveGroup(*reinterpret_cast(&group)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveGroupWithId(void* group, void* applicationId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveGroup(*reinterpret_cast(&group), *reinterpret_cast(&applicationId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveGroupedTagWithId(void* tag, void* group, void* applicationId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Remove(*reinterpret_cast(&tag), *reinterpret_cast(&group), *reinterpret_cast(&applicationId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveGroupedTag(void* tag, void* group) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Remove(*reinterpret_cast(&tag), *reinterpret_cast(&group)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Remove(void* tag) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Remove(*reinterpret_cast(&tag)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clear() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearWithId(void* applicationId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(*reinterpret_cast(&applicationId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetHistory(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetHistory()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetHistoryWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetHistory(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ChangeType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChangeType()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CollectionId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CollectionId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateToastNotifier(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateToastNotifier()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateToastNotifierWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateToastNotifier(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_History(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().History()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetToastNotifierForToastCollectionIdAsync(void* collectionId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetToastNotifierForToastCollectionIdAsync(*reinterpret_cast(&collectionId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetHistoryForToastCollectionIdAsync(void* collectionId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetHistoryForToastCollectionIdAsync(*reinterpret_cast(&collectionId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetToastCollectionManager(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetToastCollectionManager()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetToastCollectionManagerWithAppId(void* appId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetToastCollectionManager(*reinterpret_cast(&appId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NotificationMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NotificationMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_NotificationModeChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().NotificationModeChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_NotificationModeChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().NotificationModeChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateToastNotifier(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateToastNotifier()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateToastNotifierWithId(void* applicationId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateToastNotifier(*reinterpret_cast(&applicationId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTemplateContent(int32_t type, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetTemplateContent(*reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_History(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().History()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConfigureNotificationMirroring(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ConfigureNotificationMirroring(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Show(void* notification) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Show(*reinterpret_cast(¬ification)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Hide(void* notification) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Hide(*reinterpret_cast(¬ification)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Setting(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Setting()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddToSchedule(void* scheduledToast) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddToSchedule(*reinterpret_cast(&scheduledToast)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveFromSchedule(void* scheduledToast) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveFromSchedule(*reinterpret_cast(&scheduledToast)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetScheduledToastNotifications(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetScheduledToastNotifications()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall UpdateWithTagAndGroup(void* data, void* tag, void* group, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Update(*reinterpret_cast(&data), *reinterpret_cast(&tag), *reinterpret_cast(&group))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateWithTag(void* data, void* tag, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Update(*reinterpret_cast(&data), *reinterpret_cast(&tag))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_ScheduledToastNotificationShowing(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ScheduledToastNotificationShowing(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ScheduledToastNotificationShowing(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ScheduledToastNotificationShowing(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Notification(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Notification()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CreationTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreationTime()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ChangeKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChangeKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserNotificationId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserNotificationId()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Notifications { constexpr auto operator|(NotificationKinds const left, NotificationKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(NotificationKinds& left, NotificationKinds const right) noexcept { left = left | right; return left; } constexpr auto operator&(NotificationKinds const left, NotificationKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(NotificationKinds& left, NotificationKinds const right) noexcept { left = left & right; return left; } constexpr auto operator~(NotificationKinds const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(NotificationKinds const left, NotificationKinds const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(NotificationKinds& left, NotificationKinds const right) noexcept { left = left ^ right; return left; } inline AdaptiveNotificationText::AdaptiveNotificationText() : AdaptiveNotificationText(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BadgeNotification::BadgeNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) : BadgeNotification(impl::call_factory([&](IBadgeNotificationFactory const& f) { return f.CreateBadgeNotification(content); })) { } inline auto BadgeUpdateManager::CreateBadgeUpdaterForApplication() { return impl::call_factory_cast([](IBadgeUpdateManagerStatics const& f) { return f.CreateBadgeUpdaterForApplication(); }); } inline auto BadgeUpdateManager::CreateBadgeUpdaterForApplication(param::hstring const& applicationId) { return impl::call_factory([&](IBadgeUpdateManagerStatics const& f) { return f.CreateBadgeUpdaterForApplication(applicationId); }); } inline auto BadgeUpdateManager::CreateBadgeUpdaterForSecondaryTile(param::hstring const& tileId) { return impl::call_factory([&](IBadgeUpdateManagerStatics const& f) { return f.CreateBadgeUpdaterForSecondaryTile(tileId); }); } inline auto BadgeUpdateManager::GetTemplateContent(winrt::Windows::UI::Notifications::BadgeTemplateType const& type) { return impl::call_factory([&](IBadgeUpdateManagerStatics const& f) { return f.GetTemplateContent(type); }); } inline auto BadgeUpdateManager::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IBadgeUpdateManagerStatics2 const& f) { return f.GetForUser(user); }); } inline auto KnownAdaptiveNotificationHints::Style() { return impl::call_factory_cast([](IKnownAdaptiveNotificationHintsStatics const& f) { return f.Style(); }); } inline auto KnownAdaptiveNotificationHints::Wrap() { return impl::call_factory_cast([](IKnownAdaptiveNotificationHintsStatics const& f) { return f.Wrap(); }); } inline auto KnownAdaptiveNotificationHints::MaxLines() { return impl::call_factory_cast([](IKnownAdaptiveNotificationHintsStatics const& f) { return f.MaxLines(); }); } inline auto KnownAdaptiveNotificationHints::MinLines() { return impl::call_factory_cast([](IKnownAdaptiveNotificationHintsStatics const& f) { return f.MinLines(); }); } inline auto KnownAdaptiveNotificationHints::TextStacking() { return impl::call_factory_cast([](IKnownAdaptiveNotificationHintsStatics const& f) { return f.TextStacking(); }); } inline auto KnownAdaptiveNotificationHints::Align() { return impl::call_factory_cast([](IKnownAdaptiveNotificationHintsStatics const& f) { return f.Align(); }); } inline auto KnownAdaptiveNotificationTextStyles::Caption() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.Caption(); }); } inline auto KnownAdaptiveNotificationTextStyles::Body() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.Body(); }); } inline auto KnownAdaptiveNotificationTextStyles::Base() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.Base(); }); } inline auto KnownAdaptiveNotificationTextStyles::Subtitle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.Subtitle(); }); } inline auto KnownAdaptiveNotificationTextStyles::Title() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.Title(); }); } inline auto KnownAdaptiveNotificationTextStyles::Subheader() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.Subheader(); }); } inline auto KnownAdaptiveNotificationTextStyles::Header() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.Header(); }); } inline auto KnownAdaptiveNotificationTextStyles::TitleNumeral() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.TitleNumeral(); }); } inline auto KnownAdaptiveNotificationTextStyles::SubheaderNumeral() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.SubheaderNumeral(); }); } inline auto KnownAdaptiveNotificationTextStyles::HeaderNumeral() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.HeaderNumeral(); }); } inline auto KnownAdaptiveNotificationTextStyles::CaptionSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.CaptionSubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::BodySubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.BodySubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::BaseSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.BaseSubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::SubtitleSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.SubtitleSubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::TitleSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.TitleSubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::SubheaderSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.SubheaderSubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::SubheaderNumeralSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.SubheaderNumeralSubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::HeaderSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.HeaderSubtle(); }); } inline auto KnownAdaptiveNotificationTextStyles::HeaderNumeralSubtle() { return impl::call_factory_cast([](IKnownAdaptiveNotificationTextStylesStatics const& f) { return f.HeaderNumeralSubtle(); }); } inline auto KnownNotificationBindings::ToastGeneric() { return impl::call_factory_cast([](IKnownNotificationBindingsStatics const& f) { return f.ToastGeneric(); }); } inline Notification::Notification() : Notification(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline NotificationData::NotificationData() : NotificationData(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline NotificationData::NotificationData(param::iterable> const& initialValues, uint32_t sequenceNumber) : NotificationData(impl::call_factory([&](INotificationDataFactory const& f) { return f.CreateNotificationData(initialValues, sequenceNumber); })) { } inline NotificationData::NotificationData(param::iterable> const& initialValues) : NotificationData(impl::call_factory([&](INotificationDataFactory const& f) { return f.CreateNotificationData(initialValues); })) { } inline ScheduledTileNotification::ScheduledTileNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content, winrt::Windows::Foundation::DateTime const& deliveryTime) : ScheduledTileNotification(impl::call_factory([&](IScheduledTileNotificationFactory const& f) { return f.CreateScheduledTileNotification(content, deliveryTime); })) { } inline ScheduledToastNotification::ScheduledToastNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content, winrt::Windows::Foundation::DateTime const& deliveryTime) : ScheduledToastNotification(impl::call_factory([&](IScheduledToastNotificationFactory const& f) { return f.CreateScheduledToastNotification(content, deliveryTime); })) { } inline ScheduledToastNotification::ScheduledToastNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content, winrt::Windows::Foundation::DateTime const& deliveryTime, winrt::Windows::Foundation::TimeSpan const& snoozeInterval, uint32_t maximumSnoozeCount) : ScheduledToastNotification(impl::call_factory([&](IScheduledToastNotificationFactory const& f) { return f.CreateScheduledToastNotificationRecurring(content, deliveryTime, snoozeInterval, maximumSnoozeCount); })) { } inline TileFlyoutNotification::TileFlyoutNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) : TileFlyoutNotification(impl::call_factory([&](ITileFlyoutNotificationFactory const& f) { return f.CreateTileFlyoutNotification(content); })) { } inline auto TileFlyoutUpdateManager::CreateTileFlyoutUpdaterForApplication() { return impl::call_factory_cast([](ITileFlyoutUpdateManagerStatics const& f) { return f.CreateTileFlyoutUpdaterForApplication(); }); } inline auto TileFlyoutUpdateManager::CreateTileFlyoutUpdaterForApplication(param::hstring const& applicationId) { return impl::call_factory([&](ITileFlyoutUpdateManagerStatics const& f) { return f.CreateTileFlyoutUpdaterForApplication(applicationId); }); } inline auto TileFlyoutUpdateManager::CreateTileFlyoutUpdaterForSecondaryTile(param::hstring const& tileId) { return impl::call_factory([&](ITileFlyoutUpdateManagerStatics const& f) { return f.CreateTileFlyoutUpdaterForSecondaryTile(tileId); }); } inline auto TileFlyoutUpdateManager::GetTemplateContent(winrt::Windows::UI::Notifications::TileFlyoutTemplateType const& type) { return impl::call_factory([&](ITileFlyoutUpdateManagerStatics const& f) { return f.GetTemplateContent(type); }); } inline TileNotification::TileNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) : TileNotification(impl::call_factory([&](ITileNotificationFactory const& f) { return f.CreateTileNotification(content); })) { } inline auto TileUpdateManager::CreateTileUpdaterForApplication() { return impl::call_factory_cast([](ITileUpdateManagerStatics const& f) { return f.CreateTileUpdaterForApplication(); }); } inline auto TileUpdateManager::CreateTileUpdaterForApplication(param::hstring const& applicationId) { return impl::call_factory([&](ITileUpdateManagerStatics const& f) { return f.CreateTileUpdaterForApplication(applicationId); }); } inline auto TileUpdateManager::CreateTileUpdaterForSecondaryTile(param::hstring const& tileId) { return impl::call_factory([&](ITileUpdateManagerStatics const& f) { return f.CreateTileUpdaterForSecondaryTile(tileId); }); } inline auto TileUpdateManager::GetTemplateContent(winrt::Windows::UI::Notifications::TileTemplateType const& type) { return impl::call_factory([&](ITileUpdateManagerStatics const& f) { return f.GetTemplateContent(type); }); } inline auto TileUpdateManager::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](ITileUpdateManagerStatics2 const& f) { return f.GetForUser(user); }); } inline ToastCollection::ToastCollection(param::hstring const& collectionId, param::hstring const& displayName, param::hstring const& launchArgs, winrt::Windows::Foundation::Uri const& iconUri) : ToastCollection(impl::call_factory([&](IToastCollectionFactory const& f) { return f.CreateInstance(collectionId, displayName, launchArgs, iconUri); })) { } inline ToastNotification::ToastNotification(winrt::Windows::Data::Xml::Dom::XmlDocument const& content) : ToastNotification(impl::call_factory([&](IToastNotificationFactory const& f) { return f.CreateToastNotification(content); })) { } inline auto ToastNotificationManager::CreateToastNotifier() { return impl::call_factory_cast([](IToastNotificationManagerStatics const& f) { return f.CreateToastNotifier(); }); } inline auto ToastNotificationManager::CreateToastNotifier(param::hstring const& applicationId) { return impl::call_factory([&](IToastNotificationManagerStatics const& f) { return f.CreateToastNotifier(applicationId); }); } inline auto ToastNotificationManager::GetTemplateContent(winrt::Windows::UI::Notifications::ToastTemplateType const& type) { return impl::call_factory([&](IToastNotificationManagerStatics const& f) { return f.GetTemplateContent(type); }); } inline auto ToastNotificationManager::History() { return impl::call_factory_cast([](IToastNotificationManagerStatics2 const& f) { return f.History(); }); } inline auto ToastNotificationManager::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IToastNotificationManagerStatics4 const& f) { return f.GetForUser(user); }); } inline auto ToastNotificationManager::ConfigureNotificationMirroring(winrt::Windows::UI::Notifications::NotificationMirroring const& value) { impl::call_factory([&](IToastNotificationManagerStatics4 const& f) { return f.ConfigureNotificationMirroring(value); }); } inline auto ToastNotificationManager::GetDefault() { return impl::call_factory_cast([](IToastNotificationManagerStatics5 const& f) { return f.GetDefault(); }); } } 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 {}; 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 {}; 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