// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Microsoft_Windows_AppNotifications_Builder_H #define WINRT_Microsoft_Windows_AppNotifications_Builder_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/Microsoft.Windows.AppNotifications.h" #include "winrt/impl/Microsoft.Windows.AppNotifications.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Microsoft.Windows.AppNotifications.Builder.2.h" namespace winrt::impl { template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddArgument(param::hstring const& key, param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddArgument(*(void**)(&key), *(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetTimeStamp(winrt::Windows::Foundation::DateTime const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetTimeStamp(impl::bind_in(value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetDuration(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationDuration const& duration) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetDuration(static_cast(duration), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetScenario(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationScenario const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetScenario(static_cast(value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddText(param::hstring const& text) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddText(*(void**)(&text), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddText(param::hstring const& text, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationTextProperties const& properties) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddText2(*(void**)(&text), *(void**)(&properties), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAttributionText(param::hstring const& text) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAttributionText(*(void**)(&text), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAttributionText(param::hstring const& text, param::hstring const& language) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAttributionText2(*(void**)(&text), *(void**)(&language), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetInlineImage(winrt::Windows::Foundation::Uri const& imageUri) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetInlineImage(*(void**)(&imageUri), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetInlineImage(winrt::Windows::Foundation::Uri const& imageUri, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationImageCrop const& imageCrop) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetInlineImage2(*(void**)(&imageUri), static_cast(imageCrop), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetInlineImage(winrt::Windows::Foundation::Uri const& imageUri, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationImageCrop const& imagecrop, param::hstring const& alternateText) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetInlineImage3(*(void**)(&imageUri), static_cast(imagecrop), *(void**)(&alternateText), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAppLogoOverride(winrt::Windows::Foundation::Uri const& imageUri) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAppLogoOverride(*(void**)(&imageUri), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAppLogoOverride(winrt::Windows::Foundation::Uri const& imageUri, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationImageCrop const& imageCrop) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAppLogoOverride2(*(void**)(&imageUri), static_cast(imageCrop), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAppLogoOverride(winrt::Windows::Foundation::Uri const& imageUri, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationImageCrop const& imageCrop, param::hstring const& alternateText) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAppLogoOverride3(*(void**)(&imageUri), static_cast(imageCrop), *(void**)(&alternateText), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetHeroImage(winrt::Windows::Foundation::Uri const& imageUri) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetHeroImage(*(void**)(&imageUri), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetHeroImage(winrt::Windows::Foundation::Uri const& imageUri, param::hstring const& alternateText) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetHeroImage2(*(void**)(&imageUri), *(void**)(&alternateText), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAudioUri(winrt::Windows::Foundation::Uri const& audioUri) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAudioUri(*(void**)(&audioUri), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAudioUri(winrt::Windows::Foundation::Uri const& audioUri, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationAudioLooping const& loop) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAudioUri2(*(void**)(&audioUri), static_cast(loop), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAudioEvent(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationSoundEvent const& appNotificationSoundEvent) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAudioEvent(static_cast(appNotificationSoundEvent), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetAudioEvent(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationSoundEvent const& appNotificationSoundEvent, winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationAudioLooping const& loop) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetAudioEvent2(static_cast(appNotificationSoundEvent), static_cast(loop), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::MuteAudio() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->MuteAudio(&result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddTextBox(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddTextBox(*(void**)(&id), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddTextBox(param::hstring const& id, param::hstring const& placeHolderText, param::hstring const& title) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddTextBox2(*(void**)(&id), *(void**)(&placeHolderText), *(void**)(&title), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddButton(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddButton(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddComboBox(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationComboBox const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddComboBox(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::AddProgressBar(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->AddProgressBar(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::BuildNotification() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->BuildNotification(&result)); return winrt::Microsoft::Windows::AppNotifications::AppNotification{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetTag(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetTag(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilder::SetGroup(param::hstring const& group) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilder)->SetGroup(*(void**)(&group), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationBuilder{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationBuilderStatics::IsUrgentScenarioSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationBuilderStatics)->IsUrgentScenarioSupported(&result)); return result; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_Content(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::Content(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_Content(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::Arguments() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_Arguments(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::Arguments(param::map const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_Arguments(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::Icon() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_Icon(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::Icon(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_Icon(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::ToolTip() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_ToolTip(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::ToolTip(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_ToolTip(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::ContextMenuPlacement() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_ContextMenuPlacement(&value)); return value; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::ContextMenuPlacement(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_ContextMenuPlacement(value)); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::ButtonStyle() const { winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButtonStyle value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_ButtonStyle(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::ButtonStyle(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButtonStyle const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_ButtonStyle(static_cast(value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::InputId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_InputId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::InputId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_InputId(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::InvokeUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_InvokeUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::InvokeUri(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_InvokeUri(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::TargetAppId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->get_TargetAppId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::TargetAppId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->put_TargetAppId(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::AddArgument(param::hstring const& key, param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->AddArgument(*(void**)(&key), *(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::SetIcon(winrt::Windows::Foundation::Uri const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->SetIcon(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::SetToolTip(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->SetToolTip(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::SetContextMenuPlacement() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->SetContextMenuPlacement(&result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::SetButtonStyle(winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButtonStyle const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->SetButtonStyle(static_cast(value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::SetInputId(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->SetInputId(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::SetInvokeUri(winrt::Windows::Foundation::Uri const& protocolUri) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->SetInvokeUri(*(void**)(&protocolUri), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButton::SetInvokeUri(winrt::Windows::Foundation::Uri const& protocolUri, param::hstring const& targetAppId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButton)->SetInvokeUri2(*(void**)(&protocolUri), *(void**)(&targetAppId), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButtonFactory::CreateInstance(param::hstring const& content) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButtonFactory)->CreateInstance(*(void**)(&content), &value)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationButton{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButtonStatics::IsToolTipSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButtonStatics)->IsToolTipSupported(&result)); return result; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationButtonStatics::IsButtonStyleSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationButtonStatics)->IsButtonStyleSupported(&result)); return result; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::Items() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->get_Items(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::Items(param::map const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->put_Items(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::Title(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->put_Title(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::SelectedItem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->get_SelectedItem(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::SelectedItem(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->put_SelectedItem(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::AddItem(param::hstring const& id, param::hstring const& content) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->AddItem(*(void**)(&id), *(void**)(&content), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationComboBox{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::SetTitle(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->SetTitle(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationComboBox{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBox::SetSelectedItem(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBox)->SetSelectedItem(*(void**)(&id), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationComboBox{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationComboBoxFactory::CreateInstance(param::hstring const& id) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationComboBoxFactory)->CreateInstance(*(void**)(&id), &value)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationComboBox{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::Title(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->put_Title(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::Status() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->get_Status(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::Status(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->put_Status(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::Value() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->get_Value(&value)); return value; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::Value(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->put_Value(value)); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::ValueStringOverride() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->get_ValueStringOverride(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::ValueStringOverride(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->put_ValueStringOverride(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::SetTitle(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->SetTitle(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::BindTitle() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->BindTitle(&result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::SetStatus(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->SetStatus(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::BindStatus() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->BindStatus(&result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::SetValue(double value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->SetValue(value, &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::BindValue() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->BindValue(&result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::SetValueStringOverride(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->SetValueStringOverride(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationProgressBar::BindValueStringOverride() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationProgressBar)->BindValueStringOverride(&result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationProgressBar{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::Language() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->get_Language(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::Language(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->put_Language(*(void**)(&value))); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::IncomingCallAlignment() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->get_IncomingCallAlignment(&value)); return value; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::IncomingCallAlignment(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->put_IncomingCallAlignment(value)); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::MaxLines() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->get_MaxLines(&value)); return value; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::MaxLines(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->put_MaxLines(value)); } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::SetLanguage(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->SetLanguage(*(void**)(&value), &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationTextProperties{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::SetIncomingCallAlignment() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->SetIncomingCallAlignment(&result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationTextProperties{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_AppNotifications_Builder_IAppNotificationTextProperties::SetMaxLines(int32_t value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::AppNotifications::Builder::IAppNotificationTextProperties)->SetMaxLines(value, &result)); return winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationTextProperties{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddArgument(void* key, void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddArgument(*reinterpret_cast(&key), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTimeStamp(int64_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTimeStamp(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDuration(int32_t duration, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetDuration(*reinterpret_cast(&duration))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetScenario(int32_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetScenario(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddText(void* text, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddText(*reinterpret_cast(&text))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddText2(void* text, void* properties, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddText(*reinterpret_cast(&text), *reinterpret_cast(&properties))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAttributionText(void* text, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAttributionText(*reinterpret_cast(&text))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAttributionText2(void* text, void* language, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAttributionText(*reinterpret_cast(&text), *reinterpret_cast(&language))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetInlineImage(void* imageUri, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetInlineImage(*reinterpret_cast(&imageUri))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetInlineImage2(void* imageUri, int32_t imageCrop, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetInlineImage(*reinterpret_cast(&imageUri), *reinterpret_cast(&imageCrop))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetInlineImage3(void* imageUri, int32_t imagecrop, void* alternateText, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetInlineImage(*reinterpret_cast(&imageUri), *reinterpret_cast(&imagecrop), *reinterpret_cast(&alternateText))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAppLogoOverride(void* imageUri, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAppLogoOverride(*reinterpret_cast(&imageUri))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAppLogoOverride2(void* imageUri, int32_t imageCrop, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAppLogoOverride(*reinterpret_cast(&imageUri), *reinterpret_cast(&imageCrop))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAppLogoOverride3(void* imageUri, int32_t imageCrop, void* alternateText, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAppLogoOverride(*reinterpret_cast(&imageUri), *reinterpret_cast(&imageCrop), *reinterpret_cast(&alternateText))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetHeroImage(void* imageUri, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetHeroImage(*reinterpret_cast(&imageUri))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetHeroImage2(void* imageUri, void* alternateText, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetHeroImage(*reinterpret_cast(&imageUri), *reinterpret_cast(&alternateText))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAudioUri(void* audioUri, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAudioUri(*reinterpret_cast(&audioUri))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAudioUri2(void* audioUri, int32_t loop, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAudioUri(*reinterpret_cast(&audioUri), *reinterpret_cast(&loop))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAudioEvent(int32_t appNotificationSoundEvent, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAudioEvent(*reinterpret_cast(&appNotificationSoundEvent))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAudioEvent2(int32_t appNotificationSoundEvent, int32_t loop, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetAudioEvent(*reinterpret_cast(&appNotificationSoundEvent), *reinterpret_cast(&loop))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MuteAudio(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MuteAudio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTextBox(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddTextBox(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTextBox2(void* id, void* placeHolderText, void* title, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddTextBox(*reinterpret_cast(&id), *reinterpret_cast(&placeHolderText), *reinterpret_cast(&title))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddButton(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddButton(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddComboBox(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddComboBox(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddProgressBar(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddProgressBar(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BuildNotification(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().BuildNotification()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTag(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTag(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetGroup(void* group, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetGroup(*reinterpret_cast(&group))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsUrgentScenarioSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsUrgentScenarioSupported()); 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_Content(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Content(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_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(); } int32_t __stdcall put_Arguments(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Arguments(*reinterpret_cast const*>(&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(); } int32_t __stdcall get_ToolTip(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ToolTip()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ToolTip(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ToolTip(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContextMenuPlacement(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContextMenuPlacement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContextMenuPlacement(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContextMenuPlacement(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonStyle(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ButtonStyle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonStyle(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonStyle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InputId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InputId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InputId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InputId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InvokeUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InvokeUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InvokeUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InvokeUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetAppId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetAppId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetAppId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetAppId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddArgument(void* key, void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddArgument(*reinterpret_cast(&key), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetIcon(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetIcon(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetToolTip(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetToolTip(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContextMenuPlacement(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetContextMenuPlacement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetButtonStyle(int32_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetButtonStyle(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetInputId(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetInputId(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetInvokeUri(void* protocolUri, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetInvokeUri(*reinterpret_cast(&protocolUri))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetInvokeUri2(void* protocolUri, void* targetAppId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetInvokeUri(*reinterpret_cast(&protocolUri), *reinterpret_cast(&targetAppId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* content, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&content))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsToolTipSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsToolTipSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsButtonStyleSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsButtonStyleSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Items(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Items()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Items(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Items(*reinterpret_cast const*>(&value)); 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 put_Title(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Title(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedItem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedItem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedItem(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedItem(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddItem(void* id, void* content, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddItem(*reinterpret_cast(&id), *reinterpret_cast(&content))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTitle(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTitle(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSelectedItem(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetSelectedItem(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* id, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 put_Title(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Title(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Status(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Status(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ValueStringOverride(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ValueStringOverride()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ValueStringOverride(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ValueStringOverride(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTitle(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTitle(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BindTitle(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().BindTitle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetStatus(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetStatus(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BindStatus(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().BindStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetValue(double value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetValue(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BindValue(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().BindValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetValueStringOverride(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetValueStringOverride(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BindValueStringOverride(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().BindValueStringOverride()); 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_IncomingCallAlignment(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncomingCallAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncomingCallAlignment(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncomingCallAlignment(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxLines(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxLines()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxLines(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxLines(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetLanguage(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetLanguage(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetIncomingCallAlignment(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetIncomingCallAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetMaxLines(int32_t value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetMaxLines(value)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Microsoft::Windows::AppNotifications::Builder { inline AppNotificationBuilder::AppNotificationBuilder() : AppNotificationBuilder(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto AppNotificationBuilder::IsUrgentScenarioSupported() { return impl::call_factory_cast([](IAppNotificationBuilderStatics const& f) { return f.IsUrgentScenarioSupported(); }); } inline AppNotificationButton::AppNotificationButton() : AppNotificationButton(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline AppNotificationButton::AppNotificationButton(param::hstring const& content) : AppNotificationButton(impl::call_factory([&](IAppNotificationButtonFactory const& f) { return f.CreateInstance(content); })) { } inline auto AppNotificationButton::IsToolTipSupported() { return impl::call_factory_cast([](IAppNotificationButtonStatics const& f) { return f.IsToolTipSupported(); }); } inline auto AppNotificationButton::IsButtonStyleSupported() { return impl::call_factory_cast([](IAppNotificationButtonStatics const& f) { return f.IsButtonStyleSupported(); }); } inline AppNotificationComboBox::AppNotificationComboBox(param::hstring const& id) : AppNotificationComboBox(impl::call_factory([&](IAppNotificationComboBoxFactory const& f) { return f.CreateInstance(id); })) { } inline AppNotificationProgressBar::AppNotificationProgressBar() : AppNotificationProgressBar(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline AppNotificationTextProperties::AppNotificationTextProperties() : AppNotificationTextProperties(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif