// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_ApplicationModel_Resources_Core_H #define WINRT_Windows_ApplicationModel_Resources_Core_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Windows.ApplicationModel.Resources.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.ApplicationModel.Resources.Core.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_Resources_Core_INamedResource::Uri() const { void* uri{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Uri(&uri)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Uri(&uri)); } return winrt::Windows::Foundation::Uri{ uri, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_INamedResource::Candidates() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Candidates(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Candidates(&value)); } return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_INamedResource::Resolve() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Resolve(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Resolve(&result)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceCandidate{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_INamedResource::Resolve(winrt::Windows::ApplicationModel::Resources::Core::ResourceContext const& resourceContext) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResolveForContext(*(void**)(&resourceContext), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResolveForContext(*(void**)(&resourceContext), &result)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceCandidate{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_INamedResource::ResolveAll() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResolveAll(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResolveAll(&result)); } return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_INamedResource::ResolveAll(winrt::Windows::ApplicationModel::Resources::Core::ResourceContext const& resourceContext) const { void* instances{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResolveAllForContext(*(void**)(&resourceContext), &instances)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResolveAllForContext(*(void**)(&resourceContext), &instances)); } return winrt::Windows::Foundation::Collections::IVectorView{ instances, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::Qualifiers() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Qualifiers(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Qualifiers(&value)); } return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::IsMatch() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsMatch(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsMatch(&value)); } return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::IsMatchAsDefault() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsMatchAsDefault(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsMatchAsDefault(&value)); } return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::IsDefault() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsDefault(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsDefault(&value)); } return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::ValueAsString() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ValueAsString(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ValueAsString(&result)); } return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::GetValueAsFileAsync() const { void* operation{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetValueAsFileAsync(&operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetValueAsFileAsync(&operation)); } return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::GetQualifierValue(param::hstring const& qualifierName) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetQualifierValue(*(void**)(&qualifierName), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetQualifierValue(*(void**)(&qualifierName), &value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate2::GetValueAsStreamAsync() const { void* operation{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetValueAsStreamAsync(&operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetValueAsStreamAsync(&operation)); } return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate3::Kind() const { winrt::Windows::ApplicationModel::Resources::Core::ResourceCandidateKind value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Kind(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Kind(reinterpret_cast(&value))); } return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::QualifierValues() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_QualifierValues(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_QualifierValues(&value)); } return winrt::Windows::Foundation::Collections::IObservableMap{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Reset() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Reset()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Reset()); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Reset(param::iterable const& qualifierNames) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResetQualifierValues(*(void**)(&qualifierNames))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResetQualifierValues(*(void**)(&qualifierNames))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::OverrideToMatch(param::iterable const& result) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OverrideToMatch(*(void**)(&result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OverrideToMatch(*(void**)(&result))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Clone() const { void* clone{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Clone(&clone)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Clone(&clone)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceContext{ clone, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Languages() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Languages(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Languages(&value)); } return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Languages(param::async_vector_view const& languages) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Languages(*(void**)(&languages))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Languages(*(void**)(&languages))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics::CreateMatchingContext(param::iterable const& result) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateMatchingContext(*(void**)(&result), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateMatchingContext(*(void**)(&result), &value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceContext{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::GetForCurrentView() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForCurrentView(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForCurrentView(&value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceContext{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::SetGlobalQualifierValue(param::hstring const& key, param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetGlobalQualifierValue(*(void**)(&key), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetGlobalQualifierValue(*(void**)(&key), *(void**)(&value))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::ResetGlobalQualifierValues() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResetGlobalQualifierValues()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResetGlobalQualifierValues()); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::ResetGlobalQualifierValues(param::iterable const& qualifierNames) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ResetGlobalQualifierValuesForSpecifiedQualifiers(*(void**)(&qualifierNames))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResetGlobalQualifierValuesForSpecifiedQualifiers(*(void**)(&qualifierNames))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::GetForViewIndependentUse() const { void* loader{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForViewIndependentUse(&loader)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForViewIndependentUse(&loader)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceContext{ loader, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics3::SetGlobalQualifierValue(param::hstring const& key, param::hstring const& value, winrt::Windows::ApplicationModel::Resources::Core::ResourceQualifierPersistence const& persistence) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetGlobalQualifierValueWithPersistence(*(void**)(&key), *(void**)(&value), static_cast(persistence))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetGlobalQualifierValueWithPersistence(*(void**)(&key), *(void**)(&value), static_cast(persistence))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics4::GetForUIContext(winrt::Windows::UI::UIContext const& context) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetForUIContext(*(void**)(&context), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForUIContext(*(void**)(&context), &value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceContext{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager::MainResourceMap() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MainResourceMap(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MainResourceMap(&value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceMap{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager::AllResourceMaps() const { void* maps{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AllResourceMaps(&maps)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllResourceMaps(&maps)); } return winrt::Windows::Foundation::Collections::IMapView{ maps, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager::DefaultContext() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DefaultContext(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DefaultContext(&value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceContext{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager::LoadPriFiles(param::iterable const& files) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LoadPriFiles(*(void**)(&files))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LoadPriFiles(*(void**)(&files))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager::UnloadPriFiles(param::iterable const& files) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->UnloadPriFiles(*(void**)(&files))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->UnloadPriFiles(*(void**)(&files))); } } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager2::GetAllNamedResourcesForPackage(param::hstring const& packageName, winrt::Windows::ApplicationModel::Resources::Core::ResourceLayoutInfo const& resourceLayoutInfo) const { void* table{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetAllNamedResourcesForPackage(*(void**)(&packageName), impl::bind_in(resourceLayoutInfo), &table)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetAllNamedResourcesForPackage(*(void**)(&packageName), impl::bind_in(resourceLayoutInfo), &table)); } return winrt::Windows::Foundation::Collections::IVectorView{ table, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager2::GetAllSubtreesForPackage(param::hstring const& packageName, winrt::Windows::ApplicationModel::Resources::Core::ResourceLayoutInfo const& resourceLayoutInfo) const { void* table{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetAllSubtreesForPackage(*(void**)(&packageName), impl::bind_in(resourceLayoutInfo), &table)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetAllSubtreesForPackage(*(void**)(&packageName), impl::bind_in(resourceLayoutInfo), &table)); } return winrt::Windows::Foundation::Collections::IVectorView{ table, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManagerStatics::Current() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Current(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Current(&value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceManager{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManagerStatics::IsResourceReference(param::hstring const& resourceReference) const { bool isReference{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsResourceReference(*(void**)(&resourceReference), &isReference)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsResourceReference(*(void**)(&resourceReference), &isReference)); } return isReference; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceMap::Uri() const { void* uri{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Uri(&uri)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Uri(&uri)); } return winrt::Windows::Foundation::Uri{ uri, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceMap::GetValue(param::hstring const& resource) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetValue(*(void**)(&resource), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetValue(*(void**)(&resource), &value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceCandidate{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceMap::GetValue(param::hstring const& resource, winrt::Windows::ApplicationModel::Resources::Core::ResourceContext const& context) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetValueForContext(*(void**)(&resource), *(void**)(&context), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetValueForContext(*(void**)(&resource), *(void**)(&context), &value)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceCandidate{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceMap::GetSubtree(param::hstring const& reference) const { void* map{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetSubtree(*(void**)(&reference), &map)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetSubtree(*(void**)(&reference), &map)); } return winrt::Windows::ApplicationModel::Resources::Core::ResourceMap{ map, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::QualifierName() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_QualifierName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_QualifierName(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::QualifierValue() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_QualifierValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_QualifierValue(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::IsDefault() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsDefault(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsDefault(&value)); } return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::IsMatch() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsMatch(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsMatch(&value)); } return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::Score() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Score(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Score(&value)); } return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** uri) noexcept final try { clear_abi(uri); typename D::abi_guard guard(this->shim()); *uri = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Candidates(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Candidates()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Resolve(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Resolve()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResolveForContext(void* resourceContext, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Resolve(*reinterpret_cast(&resourceContext))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResolveAll(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ResolveAll()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResolveAllForContext(void* resourceContext, void** instances) noexcept final try { clear_abi(instances); typename D::abi_guard guard(this->shim()); *instances = detach_from>(this->shim().ResolveAll(*reinterpret_cast(&resourceContext))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Qualifiers(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Qualifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMatch(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMatch()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMatchAsDefault(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMatchAsDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDefault(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ValueAsString(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ValueAsString()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetValueAsFileAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetValueAsFileAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetQualifierValue(void* qualifierName, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetQualifierValue(*reinterpret_cast(&qualifierName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetValueAsStreamAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetValueAsStreamAsync()); 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_QualifierValues(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().QualifierValues()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Reset() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Reset(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResetQualifierValues(void* qualifierNames) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Reset(*reinterpret_cast const*>(&qualifierNames)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OverrideToMatch(void* result) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OverrideToMatch(*reinterpret_cast const*>(&result)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clone(void** clone) noexcept final try { clear_abi(clone); typename D::abi_guard guard(this->shim()); *clone = detach_from(this->shim().Clone()); return 0; } catch (...) { return to_hresult(); } 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 put_Languages(void* languages) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Languages(*reinterpret_cast const*>(&languages)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateMatchingContext(void* result, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateMatchingContext(*reinterpret_cast const*>(&result))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetGlobalQualifierValue(void* key, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetGlobalQualifierValue(*reinterpret_cast(&key), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResetGlobalQualifierValues() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetGlobalQualifierValues(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResetGlobalQualifierValuesForSpecifiedQualifiers(void* qualifierNames) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetGlobalQualifierValues(*reinterpret_cast const*>(&qualifierNames)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetForViewIndependentUse(void** loader) noexcept final try { clear_abi(loader); typename D::abi_guard guard(this->shim()); *loader = detach_from(this->shim().GetForViewIndependentUse()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetGlobalQualifierValueWithPersistence(void* key, void* value, int32_t persistence) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetGlobalQualifierValue(*reinterpret_cast(&key), *reinterpret_cast(&value), *reinterpret_cast(&persistence)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUIContext(void* context, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = 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_MainResourceMap(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MainResourceMap()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllResourceMaps(void** maps) noexcept final try { clear_abi(maps); typename D::abi_guard guard(this->shim()); *maps = detach_from>(this->shim().AllResourceMaps()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LoadPriFiles(void* files) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LoadPriFiles(*reinterpret_cast const*>(&files)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnloadPriFiles(void* files) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UnloadPriFiles(*reinterpret_cast const*>(&files)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetAllNamedResourcesForPackage(void* packageName, struct struct_Windows_ApplicationModel_Resources_Core_ResourceLayoutInfo resourceLayoutInfo, void** table) noexcept final try { clear_abi(table); typename D::abi_guard guard(this->shim()); *table = detach_from>(this->shim().GetAllNamedResourcesForPackage(*reinterpret_cast(&packageName), *reinterpret_cast(&resourceLayoutInfo))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAllSubtreesForPackage(void* packageName, struct struct_Windows_ApplicationModel_Resources_Core_ResourceLayoutInfo resourceLayoutInfo, void** table) noexcept final try { clear_abi(table); typename D::abi_guard guard(this->shim()); *table = detach_from>(this->shim().GetAllSubtreesForPackage(*reinterpret_cast(&packageName), *reinterpret_cast(&resourceLayoutInfo))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Current(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Current()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsResourceReference(void* resourceReference, bool* isReference) noexcept final try { typename D::abi_guard guard(this->shim()); *isReference = detach_from(this->shim().IsResourceReference(*reinterpret_cast(&resourceReference))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** uri) noexcept final try { clear_abi(uri); typename D::abi_guard guard(this->shim()); *uri = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetValue(void* resource, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetValue(*reinterpret_cast(&resource))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetValueForContext(void* resource, void* context, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetValue(*reinterpret_cast(&resource), *reinterpret_cast(&context))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSubtree(void* reference, void** map) noexcept final try { clear_abi(map); typename D::abi_guard guard(this->shim()); *map = detach_from(this->shim().GetSubtree(*reinterpret_cast(&reference))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_QualifierName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().QualifierName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_QualifierValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().QualifierValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDefault(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMatch(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMatch()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Score(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Score()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Resources::Core { inline ResourceContext::ResourceContext() : ResourceContext(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto ResourceContext::CreateMatchingContext(param::iterable const& result) { return impl::call_factory([&](IResourceContextStatics const& f) { return f.CreateMatchingContext(result); }); } inline auto ResourceContext::GetForCurrentView() { return impl::call_factory_cast([](IResourceContextStatics2 const& f) { return f.GetForCurrentView(); }); } inline auto ResourceContext::SetGlobalQualifierValue(param::hstring const& key, param::hstring const& value) { impl::call_factory([&](IResourceContextStatics2 const& f) { return f.SetGlobalQualifierValue(key, value); }); } inline auto ResourceContext::ResetGlobalQualifierValues() { impl::call_factory_cast([](IResourceContextStatics2 const& f) { return f.ResetGlobalQualifierValues(); }); } inline auto ResourceContext::ResetGlobalQualifierValues(param::iterable const& qualifierNames) { impl::call_factory([&](IResourceContextStatics2 const& f) { return f.ResetGlobalQualifierValues(qualifierNames); }); } inline auto ResourceContext::GetForViewIndependentUse() { return impl::call_factory_cast([](IResourceContextStatics2 const& f) { return f.GetForViewIndependentUse(); }); } inline auto ResourceContext::SetGlobalQualifierValue(param::hstring const& key, param::hstring const& value, winrt::Windows::ApplicationModel::Resources::Core::ResourceQualifierPersistence const& persistence) { impl::call_factory([&](IResourceContextStatics3 const& f) { return f.SetGlobalQualifierValue(key, value, persistence); }); } inline auto ResourceContext::GetForUIContext(winrt::Windows::UI::UIContext const& context) { return impl::call_factory([&](IResourceContextStatics4 const& f) { return f.GetForUIContext(context); }); } inline auto ResourceManager::Current() { return impl::call_factory_cast([](IResourceManagerStatics const& f) { return f.Current(); }); } inline auto ResourceManager::IsResourceReference(param::hstring const& resourceReference) { return impl::call_factory([&](IResourceManagerStatics const& f) { return f.IsResourceReference(resourceReference); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif