// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Microsoft_UI_Composition_SystemBackdrops_H #define WINRT_Microsoft_UI_Composition_SystemBackdrops_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Microsoft.UI.Composition.h" #include "winrt/impl/Microsoft.UI.2.h" #include "winrt/impl/Microsoft.UI.Composition.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Core.2.h" #include "winrt/impl/Microsoft.UI.Composition.SystemBackdrops.2.h" namespace winrt::impl { template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::FallbackColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->get_FallbackColor(put_abi(value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::FallbackColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->put_FallbackColor(impl::bind_in(value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::LuminosityOpacity() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->get_LuminosityOpacity(&value)); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::LuminosityOpacity(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->put_LuminosityOpacity(value)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::TintColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->get_TintColor(put_abi(value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::TintColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->put_TintColor(impl::bind_in(value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::TintOpacity() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->get_TintOpacity(&value)); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController::TintOpacity(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController)->put_TintOpacity(value)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController2::ResetProperties() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController2)->ResetProperties()); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController3::Kind() const { winrt::Microsoft::UI::Composition::SystemBackdrops::DesktopAcrylicKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController3)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController3::Kind(winrt::Microsoft::UI::Composition::SystemBackdrops::DesktopAcrylicKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicController3)->put_Kind(static_cast(value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicControllerStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IDesktopAcrylicControllerStatics)->IsSupported(&result)); return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::FallbackColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->get_FallbackColor(put_abi(value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::FallbackColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->put_FallbackColor(impl::bind_in(value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::LuminosityOpacity() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->get_LuminosityOpacity(&value)); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::LuminosityOpacity(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->put_LuminosityOpacity(value)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::TintColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->get_TintColor(put_abi(value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::TintColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->put_TintColor(impl::bind_in(value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::TintOpacity() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->get_TintOpacity(&value)); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController::TintOpacity(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController)->put_TintOpacity(value)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2::Kind() const { winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2::Kind(winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2)->put_Kind(static_cast(value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2::ResetProperties() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2)->ResetProperties()); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaControllerStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaControllerStatics)->IsSupported(&result)); return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::HighContrastBackgroundColor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->get_HighContrastBackgroundColor(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::HighContrastBackgroundColor(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->put_HighContrastBackgroundColor(*(void**)(&value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::IsHighContrast() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->get_IsHighContrast(&value)); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::IsHighContrast(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->put_IsHighContrast(value)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::IsInputActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->get_IsInputActive(&value)); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::IsInputActive(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->put_IsInputActive(value)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::Theme() const { winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropTheme value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->get_Theme(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration::Theme(winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropTheme const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropConfiguration)->put_Theme(static_cast(value))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropController::SetTarget(winrt::Microsoft::UI::WindowId const& windowId, winrt::Windows::UI::Composition::CompositionTarget const& desktopWindowTarget) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropController)->SetTargetWithWindowId(impl::bind_in(windowId), *(void**)(&desktopWindowTarget), &result)); return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropController::SetTarget(winrt::Windows::UI::Core::CoreWindow const& coreWindow, winrt::Windows::UI::Composition::CompositionTarget const& compositionTarget) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropController)->SetTargetWithCoreWindow(*(void**)(&coreWindow), *(void**)(&compositionTarget), &result)); return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::State() const { winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropControllerWithTargets)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::AddSystemBackdropTarget(winrt::Microsoft::UI::Composition::ICompositionSupportsSystemBackdrop const& systemBackdropTarget) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropControllerWithTargets)->AddSystemBackdropTarget(*(void**)(&systemBackdropTarget), &result)); return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::RemoveAllSystemBackdropTargets() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropControllerWithTargets)->RemoveAllSystemBackdropTargets()); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::RemoveSystemBackdropTarget(winrt::Microsoft::UI::Composition::ICompositionSupportsSystemBackdrop const& systemBackdropTarget) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropControllerWithTargets)->RemoveSystemBackdropTarget(*(void**)(&systemBackdropTarget), &result)); return result; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::SetSystemBackdropConfiguration(winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropConfiguration const& configuration) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropControllerWithTargets)->SetSystemBackdropConfiguration(*(void**)(&configuration))); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::StateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropControllerWithTargets)->add_StateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StateChanged(handler)); } template auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets::StateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Composition::SystemBackdrops::ISystemBackdropControllerWithTargets)->remove_StateChanged(impl::bind_in(token)); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FallbackColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FallbackColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FallbackColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FallbackColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LuminosityOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LuminosityOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LuminosityOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LuminosityOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintOpacity(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ResetProperties() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetProperties(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Kind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Kind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FallbackColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FallbackColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FallbackColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FallbackColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LuminosityOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LuminosityOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LuminosityOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LuminosityOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TintOpacity(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TintOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TintOpacity(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TintOpacity(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Kind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Kind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResetProperties() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetProperties(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HighContrastBackgroundColor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().HighContrastBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HighContrastBackgroundColor(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HighContrastBackgroundColor(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHighContrast(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHighContrast()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHighContrast(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHighContrast(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInputActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInputActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsInputActive(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsInputActive(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Theme(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Theme()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Theme(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Theme(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall SetTargetWithWindowId(struct struct_Microsoft_UI_WindowId windowId, void* desktopWindowTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTarget(*reinterpret_cast(&windowId), *reinterpret_cast(&desktopWindowTarget))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTargetWithCoreWindow(void* coreWindow, void* compositionTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetTarget(*reinterpret_cast(&coreWindow), *reinterpret_cast(&compositionTarget))); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSystemBackdropTarget(void* systemBackdropTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AddSystemBackdropTarget(*reinterpret_cast(&systemBackdropTarget))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveAllSystemBackdropTargets() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveAllSystemBackdropTargets(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveSystemBackdropTarget(void* systemBackdropTarget, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RemoveSystemBackdropTarget(*reinterpret_cast(&systemBackdropTarget))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSystemBackdropConfiguration(void* configuration) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetSystemBackdropConfiguration(*reinterpret_cast(&configuration)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_StateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StateChanged(*reinterpret_cast(&token)); return 0; } }; } WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::SystemBackdrops { inline DesktopAcrylicController::DesktopAcrylicController() : DesktopAcrylicController(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto DesktopAcrylicController::IsSupported() { return impl::call_factory_cast([](IDesktopAcrylicControllerStatics const& f) { return f.IsSupported(); }); } inline MicaController::MicaController() : MicaController(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto MicaController::IsSupported() { return impl::call_factory_cast([](IMicaControllerStatics const& f) { return f.IsSupported(); }); } inline SystemBackdropConfiguration::SystemBackdropConfiguration() : SystemBackdropConfiguration(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif