// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Microsoft_Windows_Globalization_H #define WINRT_Microsoft_Windows_Globalization_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/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Microsoft.Windows.Globalization.2.h" namespace winrt::impl { template auto consume_Microsoft_Windows_Globalization_IApplicationLanguagesStatics::Languages() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Globalization::IApplicationLanguagesStatics)->get_Languages(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_Globalization_IApplicationLanguagesStatics::ManifestLanguages() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Globalization::IApplicationLanguagesStatics)->get_ManifestLanguages(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_Globalization_IApplicationLanguagesStatics::PrimaryLanguageOverride() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Globalization::IApplicationLanguagesStatics)->get_PrimaryLanguageOverride(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_Globalization_IApplicationLanguagesStatics::PrimaryLanguageOverride(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Globalization::IApplicationLanguagesStatics)->put_PrimaryLanguageOverride(*(void**)(&value))); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Languages(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Languages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManifestLanguages(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ManifestLanguages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrimaryLanguageOverride(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrimaryLanguageOverride()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrimaryLanguageOverride(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrimaryLanguageOverride(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Microsoft::Windows::Globalization { inline auto ApplicationLanguages::Languages() { return impl::call_factory_cast(*)(IApplicationLanguagesStatics const&), ApplicationLanguages, IApplicationLanguagesStatics>([](IApplicationLanguagesStatics const& f) { return f.Languages(); }); } inline auto ApplicationLanguages::ManifestLanguages() { return impl::call_factory_cast(*)(IApplicationLanguagesStatics const&), ApplicationLanguages, IApplicationLanguagesStatics>([](IApplicationLanguagesStatics const& f) { return f.ManifestLanguages(); }); } inline auto ApplicationLanguages::PrimaryLanguageOverride() { return impl::call_factory_cast([](IApplicationLanguagesStatics const& f) { return f.PrimaryLanguageOverride(); }); } inline auto ApplicationLanguages::PrimaryLanguageOverride(param::hstring const& value) { impl::call_factory([&](IApplicationLanguagesStatics const& f) { return f.PrimaryLanguageOverride(value); }); } } 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