// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Perception_Automation_Core_H #define WINRT_Windows_Perception_Automation_Core_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.Perception.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Perception.Automation.Core.2.h" namespace winrt::impl { template auto consume_Windows_Perception_Automation_Core_ICorePerceptionAutomationStatics::SetActivationFactoryProvider(winrt::Windows::Foundation::IGetActivationFactory const& provider) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::Automation::Core::ICorePerceptionAutomationStatics)->SetActivationFactoryProvider(*(void**)(&provider))); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetActivationFactoryProvider(void* provider) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetActivationFactoryProvider(*reinterpret_cast(&provider)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Perception::Automation::Core { inline auto CorePerceptionAutomation::SetActivationFactoryProvider(winrt::Windows::Foundation::IGetActivationFactory const& provider) { impl::call_factory([&](ICorePerceptionAutomationStatics const& f) { return f.SetActivationFactoryProvider(provider); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif