// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Shell_H #define WINRT_Windows_UI_Shell_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.Core.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Graphics.Imaging.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.StartScreen.2.h" #include "winrt/impl/Windows.UI.Shell.2.h" namespace winrt::impl { template auto consume_Windows_UI_Shell_IAdaptiveCard::ToJson() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IAdaptiveCard)->ToJson(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IAdaptiveCardBuilderStatics::CreateAdaptiveCardFromJson(param::hstring const& value) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IAdaptiveCardBuilderStatics)->CreateAdaptiveCardFromJson(*(void**)(&value), &result)); return winrt::Windows::UI::Shell::IAdaptiveCard{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IFocusSession::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSession)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IFocusSession::End() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSession)->End()); } template auto consume_Windows_UI_Shell_IFocusSessionManager::IsFocusActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManager)->get_IsFocusActive(&value)); return value; } template auto consume_Windows_UI_Shell_IFocusSessionManager::GetSession(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManager)->GetSession(*(void**)(&id), &result)); return winrt::Windows::UI::Shell::FocusSession{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IFocusSessionManager::TryStartFocusSession() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManager)->TryStartFocusSession(&result)); return winrt::Windows::UI::Shell::FocusSession{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IFocusSessionManager::TryStartFocusSession(winrt::Windows::Foundation::DateTime const& endTime) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManager)->TryStartFocusSession2(impl::bind_in(endTime), &result)); return winrt::Windows::UI::Shell::FocusSession{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IFocusSessionManager::DeactivateFocus() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManager)->DeactivateFocus()); } template auto consume_Windows_UI_Shell_IFocusSessionManager::IsFocusActiveChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManager)->add_IsFocusActiveChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Shell_IFocusSessionManager::IsFocusActiveChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, IsFocusActiveChanged(handler)); } template auto consume_Windows_UI_Shell_IFocusSessionManager::IsFocusActiveChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManager)->remove_IsFocusActiveChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Shell_IFocusSessionManagerStatics::GetDefault() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManagerStatics)->GetDefault(&result)); return winrt::Windows::UI::Shell::FocusSessionManager{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IFocusSessionManagerStatics::IsSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IFocusSessionManagerStatics)->get_IsSupported(&value)); return value; } template auto consume_Windows_UI_Shell_ISecurityAppManager::Register(winrt::Windows::UI::Shell::SecurityAppKind const& kind, param::hstring const& displayName, winrt::Windows::Foundation::Uri const& detailsUri, bool registerPerUser) const { winrt::guid result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ISecurityAppManager)->Register(static_cast(kind), *(void**)(&displayName), *(void**)(&detailsUri), registerPerUser, put_abi(result))); return result; } template auto consume_Windows_UI_Shell_ISecurityAppManager::Unregister(winrt::Windows::UI::Shell::SecurityAppKind const& kind, winrt::guid const& guidRegistration) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ISecurityAppManager)->Unregister(static_cast(kind), impl::bind_in(guidRegistration))); } template auto consume_Windows_UI_Shell_ISecurityAppManager::UpdateState(winrt::Windows::UI::Shell::SecurityAppKind const& kind, winrt::guid const& guidRegistration, winrt::Windows::UI::Shell::SecurityAppState const& state, winrt::Windows::UI::Shell::SecurityAppSubstatus const& substatus, winrt::Windows::Foundation::Uri const& detailsUri) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ISecurityAppManager)->UpdateState(static_cast(kind), impl::bind_in(guidRegistration), static_cast(state), static_cast(substatus), *(void**)(&detailsUri))); } template auto consume_Windows_UI_Shell_IShareWindowCommandEventArgs::WindowId() const { winrt::Windows::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandEventArgs)->get_WindowId(put_abi(value))); return value; } template auto consume_Windows_UI_Shell_IShareWindowCommandEventArgs::Command() const { winrt::Windows::UI::Shell::ShareWindowCommand value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandEventArgs)->get_Command(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Shell_IShareWindowCommandEventArgs::Command(winrt::Windows::UI::Shell::ShareWindowCommand const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandEventArgs)->put_Command(static_cast(value))); } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSource)->Start()); } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSource)->Stop()); } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::ReportCommandChanged() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSource)->ReportCommandChanged()); } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::CommandRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSource)->add_CommandRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::CommandRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CommandRequested(handler)); } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::CommandRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSource)->remove_CommandRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::CommandInvoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSource)->add_CommandInvoked(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::CommandInvoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CommandInvoked(handler)); } template auto consume_Windows_UI_Shell_IShareWindowCommandSource::CommandInvoked(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSource)->remove_CommandInvoked(impl::bind_in(token)); } template auto consume_Windows_UI_Shell_IShareWindowCommandSourceStatics::GetForCurrentView() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IShareWindowCommandSourceStatics)->GetForCurrentView(&result)); return winrt::Windows::UI::Shell::ShareWindowCommandSource{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManager::IsSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager)->get_IsSupported(&value)); return value; } template auto consume_Windows_UI_Shell_ITaskbarManager::IsPinningAllowed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager)->get_IsPinningAllowed(&value)); return value; } template auto consume_Windows_UI_Shell_ITaskbarManager::IsCurrentAppPinnedAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager)->IsCurrentAppPinnedAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManager::IsAppListEntryPinnedAsync(winrt::Windows::ApplicationModel::Core::AppListEntry const& appListEntry) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager)->IsAppListEntryPinnedAsync(*(void**)(&appListEntry), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManager::RequestPinCurrentAppAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager)->RequestPinCurrentAppAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManager::RequestPinAppListEntryAsync(winrt::Windows::ApplicationModel::Core::AppListEntry const& appListEntry) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager)->RequestPinAppListEntryAsync(*(void**)(&appListEntry), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManager2::IsSecondaryTilePinnedAsync(param::hstring const& tileId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager2)->IsSecondaryTilePinnedAsync(*(void**)(&tileId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManager2::RequestPinSecondaryTileAsync(winrt::Windows::UI::StartScreen::SecondaryTile const& secondaryTile) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager2)->RequestPinSecondaryTileAsync(*(void**)(&secondaryTile), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManager2::TryUnpinSecondaryTileAsync(param::hstring const& tileId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManager2)->TryUnpinSecondaryTileAsync(*(void**)(&tileId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_ITaskbarManagerStatics::GetDefault() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::ITaskbarManagerStatics)->GetDefault(&result)); return winrt::Windows::UI::Shell::TaskbarManager{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTab::Tag() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->get_Tag(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTab::Tag(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->put_Tag(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTab::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTab::Title(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->put_Title(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTab::Icon() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->get_Icon(&value)); return winrt::Windows::UI::Shell::WindowTabIcon{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTab::Icon(winrt::Windows::UI::Shell::WindowTabIcon const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->put_Icon(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTab::TreatAsSecondaryTileId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->get_TreatAsSecondaryTileId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTab::TreatAsSecondaryTileId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->put_TreatAsSecondaryTileId(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTab::Group() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->get_Group(&value)); return winrt::Windows::UI::Shell::WindowTabGroup{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTab::Group(winrt::Windows::UI::Shell::WindowTabGroup const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->put_Group(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTab::ReportThumbnailAvailable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTab)->ReportThumbnailAvailable()); } template auto consume_Windows_UI_Shell_IWindowTabCloseRequestedEventArgs::Tab() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabCloseRequestedEventArgs)->get_Tab(&value)); return winrt::Windows::UI::Shell::WindowTab{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabCollection::MoveTab(winrt::Windows::UI::Shell::WindowTab const& tab, uint32_t index) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabCollection)->MoveTab(*(void**)(&tab), index)); } template auto consume_Windows_UI_Shell_IWindowTabGroup::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabGroup)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabGroup::Title(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabGroup)->put_Title(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTabGroup::Icon() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabGroup)->get_Icon(&value)); return winrt::Windows::UI::Shell::WindowTabIcon{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabGroup::Icon(winrt::Windows::UI::Shell::WindowTabIcon const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabGroup)->put_Icon(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTabIconStatics::CreateFromFontGlyph(param::hstring const& glyph, param::hstring const& fontFamily) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabIconStatics)->CreateFromFontGlyph(*(void**)(&glyph), *(void**)(&fontFamily), &result)); return winrt::Windows::UI::Shell::WindowTabIcon{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabIconStatics::CreateFromFontGlyph(param::hstring const& glyph, param::hstring const& fontFamily, winrt::Windows::Foundation::Uri const& fontUri) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabIconStatics)->CreateFromFontGlyphWithUri(*(void**)(&glyph), *(void**)(&fontFamily), *(void**)(&fontUri), &result)); return winrt::Windows::UI::Shell::WindowTabIcon{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabIconStatics::CreateFromImage(winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& image) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabIconStatics)->CreateFromImage(*(void**)(&image), &result)); return winrt::Windows::UI::Shell::WindowTabIcon{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabManager::Tabs() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->get_Tabs(&value)); return winrt::Windows::UI::Shell::WindowTabCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabManager::SetActiveTab(winrt::Windows::UI::Shell::WindowTab const& tab) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->SetActiveTab(*(void**)(&tab))); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabSwitchRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->add_TabSwitchRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Shell_IWindowTabManager::TabSwitchRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, TabSwitchRequested(handler)); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabSwitchRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->remove_TabSwitchRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabCloseRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->add_TabCloseRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Shell_IWindowTabManager::TabCloseRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, TabCloseRequested(handler)); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabCloseRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->remove_TabCloseRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabTearOutRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->add_TabTearOutRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Shell_IWindowTabManager::TabTearOutRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, TabTearOutRequested(handler)); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabTearOutRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->remove_TabTearOutRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabThumbnailRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->add_TabThumbnailRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Shell_IWindowTabManager::TabThumbnailRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, TabThumbnailRequested(handler)); } template auto consume_Windows_UI_Shell_IWindowTabManager::TabThumbnailRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManager)->remove_TabThumbnailRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Shell_IWindowTabManagerStatics::GetForWindow(winrt::Windows::UI::WindowId const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManagerStatics)->GetForWindow(impl::bind_in(id), &result)); return winrt::Windows::UI::Shell::WindowTabManager{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabManagerStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManagerStatics)->IsSupported(&result)); return result; } template auto consume_Windows_UI_Shell_IWindowTabManagerStatics::IsTabTearOutSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabManagerStatics)->IsTabTearOutSupported(&result)); return result; } template auto consume_Windows_UI_Shell_IWindowTabSwitchRequestedEventArgs::Tab() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabSwitchRequestedEventArgs)->get_Tab(&value)); return winrt::Windows::UI::Shell::WindowTab{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabTearOutRequestedEventArgs::Tab() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabTearOutRequestedEventArgs)->get_Tab(&value)); return winrt::Windows::UI::Shell::WindowTab{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabTearOutRequestedEventArgs::WindowId() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabTearOutRequestedEventArgs)->get_WindowId(&value)); return value; } template auto consume_Windows_UI_Shell_IWindowTabTearOutRequestedEventArgs::WindowId(uint64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabTearOutRequestedEventArgs)->put_WindowId(value)); } template auto consume_Windows_UI_Shell_IWindowTabTearOutRequestedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabTearOutRequestedEventArgs)->GetDeferral(&result)); return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabThumbnailRequestedEventArgs::Tab() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabThumbnailRequestedEventArgs)->get_Tab(&value)); return winrt::Windows::UI::Shell::WindowTab{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabThumbnailRequestedEventArgs::RequestedSize() const { winrt::Windows::Graphics::Imaging::BitmapSize value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabThumbnailRequestedEventArgs)->get_RequestedSize(put_abi(value))); return value; } template auto consume_Windows_UI_Shell_IWindowTabThumbnailRequestedEventArgs::Image() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabThumbnailRequestedEventArgs)->get_Image(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabThumbnailRequestedEventArgs::Image(winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabThumbnailRequestedEventArgs)->put_Image(*(void**)(&value))); } template auto consume_Windows_UI_Shell_IWindowTabThumbnailRequestedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabThumbnailRequestedEventArgs)->GetDeferral(&result)); return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Shell_IWindowTabThumbnailRequestedEventArgs::IsCompositedOnWindow() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Shell::IWindowTabThumbnailRequestedEventArgs)->get_IsCompositedOnWindow(&value)); return value; } template struct produce : produce_base { int32_t __stdcall ToJson(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ToJson()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall CreateAdaptiveCardFromJson(void* value, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateAdaptiveCardFromJson(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #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 End() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().End(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsFocusActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFocusActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSession(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetSession(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryStartFocusSession(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryStartFocusSession()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryStartFocusSession2(int64_t endTime, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryStartFocusSession(*reinterpret_cast(&endTime))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeactivateFocus() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeactivateFocus(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_IsFocusActiveChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().IsFocusActiveChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_IsFocusActiveChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().IsFocusActiveChanged(*reinterpret_cast(&token)); return 0; } }; #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(); } int32_t __stdcall get_IsSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Register(int32_t kind, void* displayName, void* detailsUri, bool registerPerUser, winrt::guid* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Register(*reinterpret_cast(&kind), *reinterpret_cast(&displayName), *reinterpret_cast(&detailsUri), registerPerUser)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Unregister(int32_t kind, winrt::guid guidRegistration) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Unregister(*reinterpret_cast(&kind), *reinterpret_cast(&guidRegistration)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateState(int32_t kind, winrt::guid guidRegistration, int32_t state, int32_t substatus, void* detailsUri) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateState(*reinterpret_cast(&kind), *reinterpret_cast(&guidRegistration), *reinterpret_cast(&state), *reinterpret_cast(&substatus), *reinterpret_cast(&detailsUri)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WindowId(struct struct_Windows_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Command(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Command()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Command(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Command(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Start() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportCommandChanged() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportCommandChanged(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CommandRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CommandRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CommandRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CommandRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CommandInvoked(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CommandInvoked(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CommandInvoked(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CommandInvoked(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsPinningAllowed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPinningAllowed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsCurrentAppPinnedAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().IsCurrentAppPinnedAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsAppListEntryPinnedAsync(void* appListEntry, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().IsAppListEntryPinnedAsync(*reinterpret_cast(&appListEntry))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestPinCurrentAppAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestPinCurrentAppAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestPinAppListEntryAsync(void* appListEntry, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestPinAppListEntryAsync(*reinterpret_cast(&appListEntry))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsSecondaryTilePinnedAsync(void* tileId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().IsSecondaryTilePinnedAsync(*reinterpret_cast(&tileId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestPinSecondaryTileAsync(void* secondaryTile, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestPinSecondaryTileAsync(*reinterpret_cast(&secondaryTile))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryUnpinSecondaryTileAsync(void* tileId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryUnpinSecondaryTileAsync(*reinterpret_cast(&tileId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #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 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_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_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_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_TreatAsSecondaryTileId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TreatAsSecondaryTileId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TreatAsSecondaryTileId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TreatAsSecondaryTileId(*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_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 ReportThumbnailAvailable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReportThumbnailAvailable(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Tab(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tab()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall MoveTab(void* tab, uint32_t index) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveTab(*reinterpret_cast(&tab), index); 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_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 { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromFontGlyph(void* glyph, void* fontFamily, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromFontGlyph(*reinterpret_cast(&glyph), *reinterpret_cast(&fontFamily))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromFontGlyphWithUri(void* glyph, void* fontFamily, void* fontUri, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromFontGlyph(*reinterpret_cast(&glyph), *reinterpret_cast(&fontFamily), *reinterpret_cast(&fontUri))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromImage(void* image, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromImage(*reinterpret_cast(&image))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Tabs(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tabs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetActiveTab(void* tab) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetActiveTab(*reinterpret_cast(&tab)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_TabSwitchRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().TabSwitchRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TabSwitchRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TabSwitchRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_TabCloseRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().TabCloseRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TabCloseRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TabCloseRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_TabTearOutRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().TabTearOutRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TabTearOutRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TabTearOutRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_TabThumbnailRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().TabThumbnailRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TabThumbnailRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TabThumbnailRequested(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForWindow(struct struct_Windows_UI_WindowId id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForWindow(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsTabTearOutSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsTabTearOutSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Tab(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tab()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Tab(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tab()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WindowId(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_WindowId(uint64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().WindowId(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Tab(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tab()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequestedSize(struct struct_Windows_Graphics_Imaging_BitmapSize* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequestedSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Image(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Image()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Image(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Image(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCompositedOnWindow(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCompositedOnWindow()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Shell { inline auto AdaptiveCardBuilder::CreateAdaptiveCardFromJson(param::hstring const& value) { return impl::call_factory([&](IAdaptiveCardBuilderStatics const& f) { return f.CreateAdaptiveCardFromJson(value); }); } inline auto FocusSessionManager::GetDefault() { return impl::call_factory_cast([](IFocusSessionManagerStatics const& f) { return f.GetDefault(); }); } inline auto FocusSessionManager::IsSupported() { return impl::call_factory_cast([](IFocusSessionManagerStatics const& f) { return f.IsSupported(); }); } inline SecurityAppManager::SecurityAppManager() : SecurityAppManager(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto ShareWindowCommandSource::GetForCurrentView() { return impl::call_factory_cast([](IShareWindowCommandSourceStatics const& f) { return f.GetForCurrentView(); }); } inline auto TaskbarManager::GetDefault() { return impl::call_factory_cast([](ITaskbarManagerStatics const& f) { return f.GetDefault(); }); } inline WindowTab::WindowTab() : WindowTab(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline WindowTabGroup::WindowTabGroup() : WindowTabGroup(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto WindowTabIcon::CreateFromFontGlyph(param::hstring const& glyph, param::hstring const& fontFamily) { return impl::call_factory([&](IWindowTabIconStatics const& f) { return f.CreateFromFontGlyph(glyph, fontFamily); }); } inline auto WindowTabIcon::CreateFromFontGlyph(param::hstring const& glyph, param::hstring const& fontFamily, winrt::Windows::Foundation::Uri const& fontUri) { return impl::call_factory([&](IWindowTabIconStatics const& f) { return f.CreateFromFontGlyph(glyph, fontFamily, fontUri); }); } inline auto WindowTabIcon::CreateFromImage(winrt::Windows::Storage::Streams::IRandomAccessStreamReference const& image) { return impl::call_factory([&](IWindowTabIconStatics const& f) { return f.CreateFromImage(image); }); } inline auto WindowTabManager::GetForWindow(winrt::Windows::UI::WindowId const& id) { return impl::call_factory([&](IWindowTabManagerStatics const& f) { return f.GetForWindow(id); }); } inline auto WindowTabManager::IsSupported() { return impl::call_factory_cast([](IWindowTabManagerStatics const& f) { return f.IsSupported(); }); } inline auto WindowTabManager::IsTabTearOutSupported() { return impl::call_factory_cast([](IWindowTabManagerStatics const& f) { return f.IsTabTearOutSupported(); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif