// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_ViewManagement_H #define WINRT_Windows_UI_ViewManagement_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.Devices.Enumeration.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Core.2.h" #include "winrt/impl/Windows.UI.Popups.2.h" #include "winrt/impl/Windows.UI.WindowManagement.2.h" #include "winrt/impl/Windows.UI.ViewManagement.2.h" namespace winrt::impl { template auto consume_Windows_UI_ViewManagement_IAccessibilitySettings::HighContrast() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IAccessibilitySettings)->get_HighContrast(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IAccessibilitySettings::HighContrastScheme() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IAccessibilitySettings)->get_HighContrastScheme(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IAccessibilitySettings::HighContrastChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IAccessibilitySettings)->add_HighContrastChanged(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_ViewManagement_IAccessibilitySettings::HighContrastChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, HighContrastChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IAccessibilitySettings::HighContrastChanged(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IAccessibilitySettings)->remove_HighContrastChanged(impl::bind_in(cookie)); } template auto consume_Windows_UI_ViewManagement_IActivationViewSwitcher::ShowAsStandaloneAsync(int32_t viewId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IActivationViewSwitcher)->ShowAsStandaloneAsync(viewId, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IActivationViewSwitcher::ShowAsStandaloneAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ViewSizePreference const& sizePreference) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IActivationViewSwitcher)->ShowAsStandaloneWithSizePreferenceAsync(viewId, static_cast(sizePreference), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IActivationViewSwitcher::IsViewPresentedOnActivationVirtualDesktop(int32_t viewId) const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IActivationViewSwitcher)->IsViewPresentedOnActivationVirtualDesktop(viewId, &value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::Orientation() const { winrt::Windows::UI::ViewManagement::ApplicationViewOrientation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_Orientation(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::AdjacentToLeftDisplayEdge() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_AdjacentToLeftDisplayEdge(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::AdjacentToRightDisplayEdge() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_AdjacentToRightDisplayEdge(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::IsFullScreen() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_IsFullScreen(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::IsOnLockScreen() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_IsOnLockScreen(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::IsScreenCaptureEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_IsScreenCaptureEnabled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::IsScreenCaptureEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->put_IsScreenCaptureEnabled(value)); } template auto consume_Windows_UI_ViewManagement_IApplicationView::Title(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->put_Title(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationView::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationView::Id() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->get_Id(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView::Consolidated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->add_Consolidated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IApplicationView::Consolidated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Consolidated(handler)); } template auto consume_Windows_UI_ViewManagement_IApplicationView::Consolidated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView)->remove_Consolidated(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IApplicationView2::SuppressSystemOverlays() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView2)->get_SuppressSystemOverlays(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView2::SuppressSystemOverlays(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView2)->put_SuppressSystemOverlays(value)); } template auto consume_Windows_UI_ViewManagement_IApplicationView2::VisibleBounds() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView2)->get_VisibleBounds(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView2::VisibleBoundsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView2)->add_VisibleBoundsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IApplicationView2::VisibleBoundsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, VisibleBoundsChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IApplicationView2::VisibleBoundsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView2)->remove_VisibleBoundsChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IApplicationView2::SetDesiredBoundsMode(winrt::Windows::UI::ViewManagement::ApplicationViewBoundsMode const& boundsMode) const { bool success{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView2)->SetDesiredBoundsMode(static_cast(boundsMode), &success)); return success; } template auto consume_Windows_UI_ViewManagement_IApplicationView2::DesiredBoundsMode() const { winrt::Windows::UI::ViewManagement::ApplicationViewBoundsMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView2)->get_DesiredBoundsMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView3::TitleBar() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->get_TitleBar(&value)); return winrt::Windows::UI::ViewManagement::ApplicationViewTitleBar{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationView3::FullScreenSystemOverlayMode() const { winrt::Windows::UI::ViewManagement::FullScreenSystemOverlayMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->get_FullScreenSystemOverlayMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView3::FullScreenSystemOverlayMode(winrt::Windows::UI::ViewManagement::FullScreenSystemOverlayMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->put_FullScreenSystemOverlayMode(static_cast(value))); } template auto consume_Windows_UI_ViewManagement_IApplicationView3::IsFullScreenMode() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->get_IsFullScreenMode(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView3::TryEnterFullScreenMode() const { bool success{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->TryEnterFullScreenMode(&success)); return success; } template auto consume_Windows_UI_ViewManagement_IApplicationView3::ExitFullScreenMode() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->ExitFullScreenMode()); } template auto consume_Windows_UI_ViewManagement_IApplicationView3::ShowStandardSystemOverlays() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->ShowStandardSystemOverlays()); } template auto consume_Windows_UI_ViewManagement_IApplicationView3::TryResizeView(winrt::Windows::Foundation::Size const& value) const { bool success{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->TryResizeView(impl::bind_in(value), &success)); return success; } template auto consume_Windows_UI_ViewManagement_IApplicationView3::SetPreferredMinSize(winrt::Windows::Foundation::Size const& minSize) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView3)->SetPreferredMinSize(impl::bind_in(minSize))); } template auto consume_Windows_UI_ViewManagement_IApplicationView4::ViewMode() const { winrt::Windows::UI::ViewManagement::ApplicationViewMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView4)->get_ViewMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationView4::IsViewModeSupported(winrt::Windows::UI::ViewManagement::ApplicationViewMode const& viewMode) const { bool isViewModeSupported{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView4)->IsViewModeSupported(static_cast(viewMode), &isViewModeSupported)); return isViewModeSupported; } template auto consume_Windows_UI_ViewManagement_IApplicationView4::TryEnterViewModeAsync(winrt::Windows::UI::ViewManagement::ApplicationViewMode const& viewMode) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView4)->TryEnterViewModeAsync(static_cast(viewMode), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationView4::TryEnterViewModeAsync(winrt::Windows::UI::ViewManagement::ApplicationViewMode const& viewMode, winrt::Windows::UI::ViewManagement::ViewModePreferences const& viewModePreferences) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView4)->TryEnterViewModeWithPreferencesAsync(static_cast(viewMode), *(void**)(&viewModePreferences), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationView4::TryConsolidateAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView4)->TryConsolidateAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationView7::PersistedStateId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView7)->get_PersistedStateId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationView7::PersistedStateId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView7)->put_PersistedStateId(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationView9::WindowingEnvironment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView9)->get_WindowingEnvironment(&value)); return winrt::Windows::UI::WindowManagement::WindowingEnvironment{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationView9::GetDisplayRegions() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationView9)->GetDisplayRegions(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewConsolidatedEventArgs::IsUserInitiated() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewConsolidatedEventArgs)->get_IsUserInitiated(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewConsolidatedEventArgs2::IsAppInitiated() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewConsolidatedEventArgs2)->get_IsAppInitiated(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewFullscreenStatics::TryUnsnapToFullscreen() const { bool success{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewFullscreenStatics)->TryUnsnapToFullscreen(&success)); return success; } template auto consume_Windows_UI_ViewManagement_IApplicationViewInteropStatics::GetApplicationViewIdForWindow(winrt::Windows::UI::Core::ICoreWindow const& window) const { int32_t id{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewInteropStatics)->GetApplicationViewIdForWindow(*(void**)(&window), &id)); return id; } template auto consume_Windows_UI_ViewManagement_IApplicationViewScalingStatics::DisableLayoutScaling() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewScalingStatics)->get_DisableLayoutScaling(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewScalingStatics::TrySetDisableLayoutScaling(bool disableLayoutScaling) const { bool success{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewScalingStatics)->TrySetDisableLayoutScaling(disableLayoutScaling, &success)); return success; } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics::Value() const { winrt::Windows::UI::ViewManagement::ApplicationViewState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics)->get_Value(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics::TryUnsnap() const { bool success{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics)->TryUnsnap(&success)); return success; } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics2::GetForCurrentView() const { void* current{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics2)->GetForCurrentView(¤t)); return winrt::Windows::UI::ViewManagement::ApplicationView{ current, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics2::TerminateAppOnFinalViewClose() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics2)->get_TerminateAppOnFinalViewClose(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics2::TerminateAppOnFinalViewClose(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics2)->put_TerminateAppOnFinalViewClose(value)); } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics3::PreferredLaunchWindowingMode() const { winrt::Windows::UI::ViewManagement::ApplicationViewWindowingMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics3)->get_PreferredLaunchWindowingMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics3::PreferredLaunchWindowingMode(winrt::Windows::UI::ViewManagement::ApplicationViewWindowingMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics3)->put_PreferredLaunchWindowingMode(static_cast(value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics3::PreferredLaunchViewSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics3)->get_PreferredLaunchViewSize(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics3::PreferredLaunchViewSize(winrt::Windows::Foundation::Size const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics3)->put_PreferredLaunchViewSize(impl::bind_in(value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics4::ClearAllPersistedState() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics4)->ClearAllPersistedState()); } template auto consume_Windows_UI_ViewManagement_IApplicationViewStatics4::ClearPersistedState(param::hstring const& key) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewStatics4)->ClearPersistedState(*(void**)(&key))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::DisableShowingMainViewOnActivation() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->DisableShowingMainViewOnActivation()); } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::TryShowAsStandaloneAsync(int32_t viewId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->TryShowAsStandaloneAsync(viewId, &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::TryShowAsStandaloneAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ViewSizePreference const& sizePreference) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->TryShowAsStandaloneWithSizePreferenceAsync(viewId, static_cast(sizePreference), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::TryShowAsStandaloneAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ViewSizePreference const& sizePreference, int32_t anchorViewId, winrt::Windows::UI::ViewManagement::ViewSizePreference const& anchorSizePreference) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync(viewId, static_cast(sizePreference), anchorViewId, static_cast(anchorSizePreference), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::SwitchAsync(int32_t viewId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->SwitchAsync(viewId, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::SwitchAsync(int32_t toViewId, int32_t fromViewId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->SwitchFromViewAsync(toViewId, fromViewId, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::SwitchAsync(int32_t toViewId, int32_t fromViewId, winrt::Windows::UI::ViewManagement::ApplicationViewSwitchingOptions const& options) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->SwitchFromViewWithOptionsAsync(toViewId, fromViewId, static_cast(options), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics::PrepareForCustomAnimatedSwitchAsync(int32_t toViewId, int32_t fromViewId, winrt::Windows::UI::ViewManagement::ApplicationViewSwitchingOptions const& options) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics)->PrepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, static_cast(options), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics2::DisableSystemViewActivationPolicy() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics2)->DisableSystemViewActivationPolicy()); } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics3::TryShowAsViewModeAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ApplicationViewMode const& viewMode) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics3)->TryShowAsViewModeAsync(viewId, static_cast(viewMode), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewSwitcherStatics3::TryShowAsViewModeAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ApplicationViewMode const& viewMode, winrt::Windows::UI::ViewManagement::ViewModePreferences const& viewModePreferences) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewSwitcherStatics3)->TryShowAsViewModeWithPreferencesAsync(viewId, static_cast(viewMode), *(void**)(&viewModePreferences), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ForegroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ForegroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ForegroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ForegroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::BackgroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_BackgroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::BackgroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_BackgroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonForegroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonForegroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonForegroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonForegroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonBackgroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonBackgroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonBackgroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonBackgroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonHoverForegroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonHoverForegroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonHoverForegroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonHoverForegroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonHoverBackgroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonHoverBackgroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonHoverBackgroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonHoverBackgroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonPressedForegroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonPressedForegroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonPressedForegroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonPressedForegroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonPressedBackgroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonPressedBackgroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonPressedBackgroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonPressedBackgroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::InactiveForegroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_InactiveForegroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::InactiveForegroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_InactiveForegroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::InactiveBackgroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_InactiveBackgroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::InactiveBackgroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_InactiveBackgroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonInactiveForegroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonInactiveForegroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonInactiveForegroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonInactiveForegroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonInactiveBackgroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->put_ButtonInactiveBackgroundColor(*(void**)(&value))); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTitleBar::ButtonInactiveBackgroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTitleBar)->get_ButtonInactiveBackgroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTransferContext::ViewId() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTransferContext)->get_ViewId(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IApplicationViewTransferContext::ViewId(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTransferContext)->put_ViewId(value)); } template auto consume_Windows_UI_ViewManagement_IApplicationViewTransferContextStatics::DataPackageFormatId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewTransferContextStatics)->get_DataPackageFormatId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IApplicationViewWithContext::UIContext() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IApplicationViewWithContext)->get_UIContext(&value)); return winrt::Windows::UI::UIContext{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IInputPane::Showing(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPane)->add_Showing(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IInputPane::Showing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Showing(handler)); } template auto consume_Windows_UI_ViewManagement_IInputPane::Showing(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPane)->remove_Showing(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IInputPane::Hiding(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPane)->add_Hiding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IInputPane::Hiding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Hiding(handler)); } template auto consume_Windows_UI_ViewManagement_IInputPane::Hiding(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPane)->remove_Hiding(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IInputPane::OccludedRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPane)->get_OccludedRect(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IInputPane2::TryShow() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPane2)->TryShow(&result)); return result; } template auto consume_Windows_UI_ViewManagement_IInputPane2::TryHide() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPane2)->TryHide(&result)); return result; } template auto consume_Windows_UI_ViewManagement_IInputPaneControl::Visible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPaneControl)->get_Visible(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IInputPaneControl::Visible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPaneControl)->put_Visible(value)); } template auto consume_Windows_UI_ViewManagement_IInputPaneStatics::GetForCurrentView() const { void* inputPane{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPaneStatics)->GetForCurrentView(&inputPane)); return winrt::Windows::UI::ViewManagement::InputPane{ inputPane, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IInputPaneStatics2::GetForUIContext(winrt::Windows::UI::UIContext const& context) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPaneStatics2)->GetForUIContext(*(void**)(&context), &result)); return winrt::Windows::UI::ViewManagement::InputPane{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IInputPaneVisibilityEventArgs::OccludedRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPaneVisibilityEventArgs)->get_OccludedRect(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IInputPaneVisibilityEventArgs::EnsuredFocusedElementInView(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPaneVisibilityEventArgs)->put_EnsuredFocusedElementInView(value)); } template auto consume_Windows_UI_ViewManagement_IInputPaneVisibilityEventArgs::EnsuredFocusedElementInView() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IInputPaneVisibilityEventArgs)->get_EnsuredFocusedElementInView(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics)->StartProjectingAsync(projectionViewId, anchorViewId, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics::SwapDisplaysForViewsAsync(int32_t projectionViewId, int32_t anchorViewId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics)->SwapDisplaysForViewsAsync(projectionViewId, anchorViewId, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics::StopProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics)->StopProjectingAsync(projectionViewId, anchorViewId, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics::ProjectionDisplayAvailable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics)->get_ProjectionDisplayAvailable(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics::ProjectionDisplayAvailableChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics)->add_ProjectionDisplayAvailableChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics::ProjectionDisplayAvailableChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, ProjectionDisplayAvailableChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics::ProjectionDisplayAvailableChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics)->remove_ProjectionDisplayAvailableChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics2::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Devices::Enumeration::DeviceInformation const& displayDeviceInfo) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics2)->StartProjectingWithDeviceInfoAsync(projectionViewId, anchorViewId, *(void**)(&displayDeviceInfo), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics2::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Foundation::Rect const& selection) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics2)->RequestStartProjectingAsync(projectionViewId, anchorViewId, impl::bind_in(selection), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics2::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& prefferedPlacement) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics2)->RequestStartProjectingWithPlacementAsync(projectionViewId, anchorViewId, impl::bind_in(selection), static_cast(prefferedPlacement), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IProjectionManagerStatics2::GetDeviceSelector() const { void* selector{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IProjectionManagerStatics2)->GetDeviceSelector(&selector)); return hstring{ selector, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IUISettings::HandPreference() const { winrt::Windows::UI::ViewManagement::HandPreference value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_HandPreference(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::CursorSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_CursorSize(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::ScrollBarSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_ScrollBarSize(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::ScrollBarArrowSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_ScrollBarArrowSize(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::ScrollBarThumbBoxSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_ScrollBarThumbBoxSize(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::MessageDuration() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_MessageDuration(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::AnimationsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_AnimationsEnabled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::CaretBrowsingEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_CaretBrowsingEnabled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::CaretBlinkRate() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_CaretBlinkRate(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::CaretWidth() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_CaretWidth(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::DoubleClickTime() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_DoubleClickTime(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::MouseHoverTime() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->get_MouseHoverTime(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings::UIElementColor(winrt::Windows::UI::ViewManagement::UIElementType const& desiredElement) const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings)->UIElementColor(static_cast(desiredElement), put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings2::TextScaleFactor() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings2)->get_TextScaleFactor(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings2::TextScaleFactorChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings2)->add_TextScaleFactorChanged(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_ViewManagement_IUISettings2::TextScaleFactorChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, TextScaleFactorChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IUISettings2::TextScaleFactorChanged(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings2)->remove_TextScaleFactorChanged(impl::bind_in(cookie)); } template auto consume_Windows_UI_ViewManagement_IUISettings3::GetColorValue(winrt::Windows::UI::ViewManagement::UIColorType const& desiredColor) const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings3)->GetColorValue(static_cast(desiredColor), put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings3::ColorValuesChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings3)->add_ColorValuesChanged(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_ViewManagement_IUISettings3::ColorValuesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ColorValuesChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IUISettings3::ColorValuesChanged(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings3)->remove_ColorValuesChanged(impl::bind_in(cookie)); } template auto consume_Windows_UI_ViewManagement_IUISettings4::AdvancedEffectsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings4)->get_AdvancedEffectsEnabled(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings4::AdvancedEffectsEnabledChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token cookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings4)->add_AdvancedEffectsEnabledChanged(*(void**)(&handler), put_abi(cookie))); return cookie; } template auto consume_Windows_UI_ViewManagement_IUISettings4::AdvancedEffectsEnabledChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AdvancedEffectsEnabledChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IUISettings4::AdvancedEffectsEnabledChanged(winrt::event_token const& cookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings4)->remove_AdvancedEffectsEnabledChanged(impl::bind_in(cookie)); } template auto consume_Windows_UI_ViewManagement_IUISettings5::AutoHideScrollBars() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings5)->get_AutoHideScrollBars(&value)); return value; } template auto consume_Windows_UI_ViewManagement_IUISettings5::AutoHideScrollBarsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings5)->add_AutoHideScrollBarsChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IUISettings5::AutoHideScrollBarsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AutoHideScrollBarsChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IUISettings5::AutoHideScrollBarsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings5)->remove_AutoHideScrollBarsChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IUISettings6::AnimationsEnabledChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings6)->add_AnimationsEnabledChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IUISettings6::AnimationsEnabledChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AnimationsEnabledChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IUISettings6::AnimationsEnabledChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings6)->remove_AnimationsEnabledChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IUISettings6::MessageDurationChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings6)->add_MessageDurationChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_ViewManagement_IUISettings6::MessageDurationChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, MessageDurationChanged(handler)); } template auto consume_Windows_UI_ViewManagement_IUISettings6::MessageDurationChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUISettings6)->remove_MessageDurationChanged(impl::bind_in(token)); } template auto consume_Windows_UI_ViewManagement_IUIViewSettings::UserInteractionMode() const { winrt::Windows::UI::ViewManagement::UserInteractionMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUIViewSettings)->get_UserInteractionMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IUIViewSettingsStatics::GetForCurrentView() const { void* current{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IUIViewSettingsStatics)->GetForCurrentView(¤t)); return winrt::Windows::UI::ViewManagement::UIViewSettings{ current, take_ownership_from_abi }; } template auto consume_Windows_UI_ViewManagement_IViewModePreferences::ViewSizePreference() const { winrt::Windows::UI::ViewManagement::ViewSizePreference value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IViewModePreferences)->get_ViewSizePreference(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_ViewManagement_IViewModePreferences::ViewSizePreference(winrt::Windows::UI::ViewManagement::ViewSizePreference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IViewModePreferences)->put_ViewSizePreference(static_cast(value))); } template auto consume_Windows_UI_ViewManagement_IViewModePreferences::CustomSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IViewModePreferences)->get_CustomSize(put_abi(value))); return value; } template auto consume_Windows_UI_ViewManagement_IViewModePreferences::CustomSize(winrt::Windows::Foundation::Size const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IViewModePreferences)->put_CustomSize(impl::bind_in(value))); } template auto consume_Windows_UI_ViewManagement_IViewModePreferencesStatics::CreateDefault(winrt::Windows::UI::ViewManagement::ApplicationViewMode const& mode) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::ViewManagement::IViewModePreferencesStatics)->CreateDefault(static_cast(mode), &result)); return winrt::Windows::UI::ViewManagement::ViewModePreferences{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HighContrast(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HighContrast()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HighContrastScheme(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HighContrastScheme()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_HighContrastChanged(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().HighContrastChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_HighContrastChanged(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().HighContrastChanged(*reinterpret_cast(&cookie)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ShowAsStandaloneAsync(int32_t viewId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().ShowAsStandaloneAsync(viewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAsStandaloneWithSizePreferenceAsync(int32_t viewId, int32_t sizePreference, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().ShowAsStandaloneAsync(viewId, *reinterpret_cast(&sizePreference))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsViewPresentedOnActivationVirtualDesktop(int32_t viewId, bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsViewPresentedOnActivationVirtualDesktop(viewId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Orientation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Orientation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AdjacentToLeftDisplayEdge(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AdjacentToLeftDisplayEdge()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AdjacentToRightDisplayEdge(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AdjacentToRightDisplayEdge()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsFullScreen(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFullScreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOnLockScreen(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOnLockScreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsScreenCaptureEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScreenCaptureEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsScreenCaptureEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsScreenCaptureEnabled(value); 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_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Id(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Consolidated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Consolidated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Consolidated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Consolidated(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SuppressSystemOverlays(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuppressSystemOverlays()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuppressSystemOverlays(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuppressSystemOverlays(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VisibleBounds(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VisibleBounds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_VisibleBoundsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VisibleBoundsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VisibleBoundsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VisibleBoundsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall SetDesiredBoundsMode(int32_t boundsMode, bool* success) noexcept final try { typename D::abi_guard guard(this->shim()); *success = detach_from(this->shim().SetDesiredBoundsMode(*reinterpret_cast(&boundsMode))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DesiredBoundsMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesiredBoundsMode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TitleBar(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TitleBar()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FullScreenSystemOverlayMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FullScreenSystemOverlayMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FullScreenSystemOverlayMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FullScreenSystemOverlayMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsFullScreenMode(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFullScreenMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryEnterFullScreenMode(bool* success) noexcept final try { typename D::abi_guard guard(this->shim()); *success = detach_from(this->shim().TryEnterFullScreenMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ExitFullScreenMode() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExitFullScreenMode(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowStandardSystemOverlays() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowStandardSystemOverlays(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryResizeView(winrt::Windows::Foundation::Size value, bool* success) noexcept final try { typename D::abi_guard guard(this->shim()); *success = detach_from(this->shim().TryResizeView(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPreferredMinSize(winrt::Windows::Foundation::Size minSize) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPreferredMinSize(*reinterpret_cast(&minSize)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ViewMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsViewModeSupported(int32_t viewMode, bool* isViewModeSupported) noexcept final try { typename D::abi_guard guard(this->shim()); *isViewModeSupported = detach_from(this->shim().IsViewModeSupported(*reinterpret_cast(&viewMode))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryEnterViewModeAsync(int32_t viewMode, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryEnterViewModeAsync(*reinterpret_cast(&viewMode))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryEnterViewModeWithPreferencesAsync(int32_t viewMode, void* viewModePreferences, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryEnterViewModeAsync(*reinterpret_cast(&viewMode), *reinterpret_cast(&viewModePreferences))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryConsolidateAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryConsolidateAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PersistedStateId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PersistedStateId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PersistedStateId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PersistedStateId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WindowingEnvironment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WindowingEnvironment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDisplayRegions(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDisplayRegions()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsUserInitiated(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsUserInitiated()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsAppInitiated(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAppInitiated()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryUnsnapToFullscreen(bool* success) noexcept final try { typename D::abi_guard guard(this->shim()); *success = detach_from(this->shim().TryUnsnapToFullscreen()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetApplicationViewIdForWindow(void* window, int32_t* id) noexcept final try { typename D::abi_guard guard(this->shim()); *id = detach_from(this->shim().GetApplicationViewIdForWindow(*reinterpret_cast(&window))); 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 get_DisableLayoutScaling(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisableLayoutScaling()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TrySetDisableLayoutScaling(bool disableLayoutScaling, bool* success) noexcept final try { typename D::abi_guard guard(this->shim()); *success = detach_from(this->shim().TrySetDisableLayoutScaling(disableLayoutScaling)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Value(int32_t* 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 TryUnsnap(bool* success) noexcept final try { typename D::abi_guard guard(this->shim()); *success = detach_from(this->shim().TryUnsnap()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** current) noexcept final try { clear_abi(current); typename D::abi_guard guard(this->shim()); *current = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TerminateAppOnFinalViewClose(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TerminateAppOnFinalViewClose()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TerminateAppOnFinalViewClose(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TerminateAppOnFinalViewClose(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreferredLaunchWindowingMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreferredLaunchWindowingMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreferredLaunchWindowingMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreferredLaunchWindowingMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PreferredLaunchViewSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreferredLaunchViewSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreferredLaunchViewSize(winrt::Windows::Foundation::Size value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreferredLaunchViewSize(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ClearAllPersistedState() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearAllPersistedState(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearPersistedState(void* key) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearPersistedState(*reinterpret_cast(&key)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall DisableShowingMainViewOnActivation() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisableShowingMainViewOnActivation(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryShowAsStandaloneAsync(int32_t viewId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryShowAsStandaloneAsync(viewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryShowAsStandaloneWithSizePreferenceAsync(int32_t viewId, int32_t sizePreference, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryShowAsStandaloneAsync(viewId, *reinterpret_cast(&sizePreference))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync(int32_t viewId, int32_t sizePreference, int32_t anchorViewId, int32_t anchorSizePreference, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryShowAsStandaloneAsync(viewId, *reinterpret_cast(&sizePreference), anchorViewId, *reinterpret_cast(&anchorSizePreference))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SwitchAsync(int32_t viewId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SwitchAsync(viewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SwitchFromViewAsync(int32_t toViewId, int32_t fromViewId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SwitchAsync(toViewId, fromViewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SwitchFromViewWithOptionsAsync(int32_t toViewId, int32_t fromViewId, uint32_t options, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SwitchAsync(toViewId, fromViewId, *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PrepareForCustomAnimatedSwitchAsync(int32_t toViewId, int32_t fromViewId, uint32_t options, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PrepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall DisableSystemViewActivationPolicy() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisableSystemViewActivationPolicy(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryShowAsViewModeAsync(int32_t viewId, int32_t viewMode, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryShowAsViewModeAsync(viewId, *reinterpret_cast(&viewMode))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryShowAsViewModeWithPreferencesAsync(int32_t viewId, int32_t viewMode, void* viewModePreferences, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryShowAsViewModeAsync(viewId, *reinterpret_cast(&viewMode), *reinterpret_cast(&viewModePreferences))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_ForegroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForegroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForegroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ForegroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BackgroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonForegroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonForegroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonForegroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonForegroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonBackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonBackgroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonBackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonHoverForegroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonHoverForegroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonHoverForegroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonHoverForegroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonHoverBackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonHoverBackgroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonHoverBackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonHoverBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonPressedForegroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonPressedForegroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonPressedForegroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonPressedForegroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonPressedBackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonPressedBackgroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonPressedBackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonPressedBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InactiveForegroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InactiveForegroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InactiveForegroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InactiveForegroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InactiveBackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InactiveBackgroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InactiveBackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().InactiveBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonInactiveForegroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonInactiveForegroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonInactiveForegroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonInactiveForegroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ButtonInactiveBackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ButtonInactiveBackgroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ButtonInactiveBackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ButtonInactiveBackgroundColor()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ViewId(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewId(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewId(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DataPackageFormatId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataPackageFormatId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UIContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UIContext()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_Showing(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Showing(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Showing(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Showing(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Hiding(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Hiding(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Hiding(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Hiding(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_OccludedRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OccludedRect()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryShow(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryShow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryHide(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryHide()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Visible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Visible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Visible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Visible(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** inputPane) noexcept final try { clear_abi(inputPane); typename D::abi_guard guard(this->shim()); *inputPane = 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 GetForUIContext(void* context, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUIContext(*reinterpret_cast(&context))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OccludedRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OccludedRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EnsuredFocusedElementInView(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnsuredFocusedElementInView(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EnsuredFocusedElementInView(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EnsuredFocusedElementInView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().StartProjectingAsync(projectionViewId, anchorViewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SwapDisplaysForViewsAsync(int32_t projectionViewId, int32_t anchorViewId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SwapDisplaysForViewsAsync(projectionViewId, anchorViewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().StopProjectingAsync(projectionViewId, anchorViewId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProjectionDisplayAvailable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProjectionDisplayAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ProjectionDisplayAvailableChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ProjectionDisplayAvailableChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ProjectionDisplayAvailableChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ProjectionDisplayAvailableChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StartProjectingWithDeviceInfoAsync(int32_t projectionViewId, int32_t anchorViewId, void* displayDeviceInfo, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().StartProjectingAsync(projectionViewId, anchorViewId, *reinterpret_cast(&displayDeviceInfo))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Foundation::Rect selection, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestStartProjectingAsync(projectionViewId, anchorViewId, *reinterpret_cast(&selection))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestStartProjectingWithPlacementAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Foundation::Rect selection, int32_t prefferedPlacement, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestStartProjectingAsync(projectionViewId, anchorViewId, *reinterpret_cast(&selection), *reinterpret_cast(&prefferedPlacement))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeviceSelector(void** selector) noexcept final try { clear_abi(selector); typename D::abi_guard guard(this->shim()); *selector = detach_from(this->shim().GetDeviceSelector()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HandPreference(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HandPreference()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CursorSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CursorSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScrollBarSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScrollBarSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScrollBarArrowSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScrollBarArrowSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScrollBarThumbBoxSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScrollBarThumbBoxSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MessageDuration(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MessageDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AnimationsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnimationsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CaretBrowsingEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaretBrowsingEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CaretBlinkRate(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaretBlinkRate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CaretWidth(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CaretWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DoubleClickTime(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DoubleClickTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MouseHoverTime(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MouseHoverTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UIElementColor(int32_t desiredElement, struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UIElementColor(*reinterpret_cast(&desiredElement))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TextScaleFactor(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextScaleFactor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_TextScaleFactorChanged(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().TextScaleFactorChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TextScaleFactorChanged(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TextScaleFactorChanged(*reinterpret_cast(&cookie)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetColorValue(int32_t desiredColor, struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetColorValue(*reinterpret_cast(&desiredColor))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ColorValuesChanged(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().ColorValuesChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ColorValuesChanged(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ColorValuesChanged(*reinterpret_cast(&cookie)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AdvancedEffectsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AdvancedEffectsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_AdvancedEffectsEnabledChanged(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().AdvancedEffectsEnabledChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AdvancedEffectsEnabledChanged(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AdvancedEffectsEnabledChanged(*reinterpret_cast(&cookie)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AutoHideScrollBars(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutoHideScrollBars()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_AutoHideScrollBarsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AutoHideScrollBarsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AutoHideScrollBarsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AutoHideScrollBarsChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_AnimationsEnabledChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AnimationsEnabledChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AnimationsEnabledChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AnimationsEnabledChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_MessageDurationChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().MessageDurationChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_MessageDurationChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().MessageDurationChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #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 get_UserInteractionMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserInteractionMode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** current) noexcept final try { clear_abi(current); typename D::abi_guard guard(this->shim()); *current = 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_ViewSizePreference(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewSizePreference()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewSizePreference(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewSizePreference(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CustomSize(winrt::Windows::Foundation::Size value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CustomSize(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateDefault(int32_t mode, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateDefault(*reinterpret_cast(&mode))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::ViewManagement { constexpr auto operator|(ApplicationViewSwitchingOptions const left, ApplicationViewSwitchingOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(ApplicationViewSwitchingOptions& left, ApplicationViewSwitchingOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(ApplicationViewSwitchingOptions const left, ApplicationViewSwitchingOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(ApplicationViewSwitchingOptions& left, ApplicationViewSwitchingOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(ApplicationViewSwitchingOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(ApplicationViewSwitchingOptions const left, ApplicationViewSwitchingOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(ApplicationViewSwitchingOptions& left, ApplicationViewSwitchingOptions const right) noexcept { left = left ^ right; return left; } inline AccessibilitySettings::AccessibilitySettings() : AccessibilitySettings(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto ApplicationView::TryUnsnapToFullscreen() { return impl::call_factory_cast([](IApplicationViewFullscreenStatics const& f) { return f.TryUnsnapToFullscreen(); }); } inline auto ApplicationView::GetApplicationViewIdForWindow(winrt::Windows::UI::Core::ICoreWindow const& window) { return impl::call_factory([&](IApplicationViewInteropStatics const& f) { return f.GetApplicationViewIdForWindow(window); }); } inline auto ApplicationView::Value() { return impl::call_factory_cast([](IApplicationViewStatics const& f) { return f.Value(); }); } inline auto ApplicationView::TryUnsnap() { return impl::call_factory_cast([](IApplicationViewStatics const& f) { return f.TryUnsnap(); }); } inline auto ApplicationView::GetForCurrentView() { return impl::call_factory_cast([](IApplicationViewStatics2 const& f) { return f.GetForCurrentView(); }); } inline auto ApplicationView::TerminateAppOnFinalViewClose() { return impl::call_factory_cast([](IApplicationViewStatics2 const& f) { return f.TerminateAppOnFinalViewClose(); }); } inline auto ApplicationView::TerminateAppOnFinalViewClose(bool value) { impl::call_factory([&](IApplicationViewStatics2 const& f) { return f.TerminateAppOnFinalViewClose(value); }); } inline auto ApplicationView::PreferredLaunchWindowingMode() { return impl::call_factory_cast([](IApplicationViewStatics3 const& f) { return f.PreferredLaunchWindowingMode(); }); } inline auto ApplicationView::PreferredLaunchWindowingMode(winrt::Windows::UI::ViewManagement::ApplicationViewWindowingMode const& value) { impl::call_factory([&](IApplicationViewStatics3 const& f) { return f.PreferredLaunchWindowingMode(value); }); } inline auto ApplicationView::PreferredLaunchViewSize() { return impl::call_factory_cast([](IApplicationViewStatics3 const& f) { return f.PreferredLaunchViewSize(); }); } inline auto ApplicationView::PreferredLaunchViewSize(winrt::Windows::Foundation::Size const& value) { impl::call_factory([&](IApplicationViewStatics3 const& f) { return f.PreferredLaunchViewSize(value); }); } inline auto ApplicationView::ClearAllPersistedState() { impl::call_factory_cast([](IApplicationViewStatics4 const& f) { return f.ClearAllPersistedState(); }); } inline auto ApplicationView::ClearPersistedState(param::hstring const& key) { impl::call_factory([&](IApplicationViewStatics4 const& f) { return f.ClearPersistedState(key); }); } inline auto ApplicationViewScaling::DisableLayoutScaling() { return impl::call_factory_cast([](IApplicationViewScalingStatics const& f) { return f.DisableLayoutScaling(); }); } inline auto ApplicationViewScaling::TrySetDisableLayoutScaling(bool disableLayoutScaling) { return impl::call_factory([&](IApplicationViewScalingStatics const& f) { return f.TrySetDisableLayoutScaling(disableLayoutScaling); }); } inline auto ApplicationViewSwitcher::DisableShowingMainViewOnActivation() { impl::call_factory_cast([](IApplicationViewSwitcherStatics const& f) { return f.DisableShowingMainViewOnActivation(); }); } inline auto ApplicationViewSwitcher::TryShowAsStandaloneAsync(int32_t viewId) { return impl::call_factory([&](IApplicationViewSwitcherStatics const& f) { return f.TryShowAsStandaloneAsync(viewId); }); } inline auto ApplicationViewSwitcher::TryShowAsStandaloneAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ViewSizePreference const& sizePreference) { return impl::call_factory([&](IApplicationViewSwitcherStatics const& f) { return f.TryShowAsStandaloneAsync(viewId, sizePreference); }); } inline auto ApplicationViewSwitcher::TryShowAsStandaloneAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ViewSizePreference const& sizePreference, int32_t anchorViewId, winrt::Windows::UI::ViewManagement::ViewSizePreference const& anchorSizePreference) { return impl::call_factory([&](IApplicationViewSwitcherStatics const& f) { return f.TryShowAsStandaloneAsync(viewId, sizePreference, anchorViewId, anchorSizePreference); }); } inline auto ApplicationViewSwitcher::SwitchAsync(int32_t viewId) { return impl::call_factory([&](IApplicationViewSwitcherStatics const& f) { return f.SwitchAsync(viewId); }); } inline auto ApplicationViewSwitcher::SwitchAsync(int32_t toViewId, int32_t fromViewId) { return impl::call_factory([&](IApplicationViewSwitcherStatics const& f) { return f.SwitchAsync(toViewId, fromViewId); }); } inline auto ApplicationViewSwitcher::SwitchAsync(int32_t toViewId, int32_t fromViewId, winrt::Windows::UI::ViewManagement::ApplicationViewSwitchingOptions const& options) { return impl::call_factory([&](IApplicationViewSwitcherStatics const& f) { return f.SwitchAsync(toViewId, fromViewId, options); }); } inline auto ApplicationViewSwitcher::PrepareForCustomAnimatedSwitchAsync(int32_t toViewId, int32_t fromViewId, winrt::Windows::UI::ViewManagement::ApplicationViewSwitchingOptions const& options) { return impl::call_factory([&](IApplicationViewSwitcherStatics const& f) { return f.PrepareForCustomAnimatedSwitchAsync(toViewId, fromViewId, options); }); } inline auto ApplicationViewSwitcher::DisableSystemViewActivationPolicy() { impl::call_factory_cast([](IApplicationViewSwitcherStatics2 const& f) { return f.DisableSystemViewActivationPolicy(); }); } inline auto ApplicationViewSwitcher::TryShowAsViewModeAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ApplicationViewMode const& viewMode) { return impl::call_factory([&](IApplicationViewSwitcherStatics3 const& f) { return f.TryShowAsViewModeAsync(viewId, viewMode); }); } inline auto ApplicationViewSwitcher::TryShowAsViewModeAsync(int32_t viewId, winrt::Windows::UI::ViewManagement::ApplicationViewMode const& viewMode, winrt::Windows::UI::ViewManagement::ViewModePreferences const& viewModePreferences) { return impl::call_factory([&](IApplicationViewSwitcherStatics3 const& f) { return f.TryShowAsViewModeAsync(viewId, viewMode, viewModePreferences); }); } inline ApplicationViewTransferContext::ApplicationViewTransferContext() : ApplicationViewTransferContext(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto ApplicationViewTransferContext::DataPackageFormatId() { return impl::call_factory_cast([](IApplicationViewTransferContextStatics const& f) { return f.DataPackageFormatId(); }); } inline auto InputPane::GetForCurrentView() { return impl::call_factory_cast([](IInputPaneStatics const& f) { return f.GetForCurrentView(); }); } inline auto InputPane::GetForUIContext(winrt::Windows::UI::UIContext const& context) { return impl::call_factory([&](IInputPaneStatics2 const& f) { return f.GetForUIContext(context); }); } inline auto ProjectionManager::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) { return impl::call_factory([&](IProjectionManagerStatics const& f) { return f.StartProjectingAsync(projectionViewId, anchorViewId); }); } inline auto ProjectionManager::SwapDisplaysForViewsAsync(int32_t projectionViewId, int32_t anchorViewId) { return impl::call_factory([&](IProjectionManagerStatics const& f) { return f.SwapDisplaysForViewsAsync(projectionViewId, anchorViewId); }); } inline auto ProjectionManager::StopProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) { return impl::call_factory([&](IProjectionManagerStatics const& f) { return f.StopProjectingAsync(projectionViewId, anchorViewId); }); } inline auto ProjectionManager::ProjectionDisplayAvailable() { return impl::call_factory_cast([](IProjectionManagerStatics const& f) { return f.ProjectionDisplayAvailable(); }); } inline auto ProjectionManager::ProjectionDisplayAvailableChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](IProjectionManagerStatics const& f) { return f.ProjectionDisplayAvailableChanged(handler); }); } inline auto ProjectionManager::ProjectionDisplayAvailableChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return ProjectionManager::ProjectionDisplayAvailableChanged_revoker{ f, f.ProjectionDisplayAvailableChanged(handler) }; } inline auto ProjectionManager::ProjectionDisplayAvailableChanged(winrt::event_token const& token) { impl::call_factory([&](IProjectionManagerStatics const& f) { return f.ProjectionDisplayAvailableChanged(token); }); } inline auto ProjectionManager::StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Devices::Enumeration::DeviceInformation const& displayDeviceInfo) { return impl::call_factory([&](IProjectionManagerStatics2 const& f) { return f.StartProjectingAsync(projectionViewId, anchorViewId, displayDeviceInfo); }); } inline auto ProjectionManager::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Foundation::Rect const& selection) { return impl::call_factory([&](IProjectionManagerStatics2 const& f) { return f.RequestStartProjectingAsync(projectionViewId, anchorViewId, selection); }); } inline auto ProjectionManager::RequestStartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& prefferedPlacement) { return impl::call_factory([&](IProjectionManagerStatics2 const& f) { return f.RequestStartProjectingAsync(projectionViewId, anchorViewId, selection, prefferedPlacement); }); } inline auto ProjectionManager::GetDeviceSelector() { return impl::call_factory_cast([](IProjectionManagerStatics2 const& f) { return f.GetDeviceSelector(); }); } inline UISettings::UISettings() : UISettings(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto UIViewSettings::GetForCurrentView() { return impl::call_factory_cast([](IUIViewSettingsStatics const& f) { return f.GetForCurrentView(); }); } inline auto ViewModePreferences::CreateDefault(winrt::Windows::UI::ViewManagement::ApplicationViewMode const& mode) { return impl::call_factory([&](IViewModePreferencesStatics const& f) { return f.CreateDefault(mode); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif