// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #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.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::INamedResource)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::INamedResource)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::INamedResource)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::INamedResource)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::INamedResource)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::INamedResource)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate)->get_IsMatch(&value)); return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::IsMatchAsDefault() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate)->get_IsMatchAsDefault(&value)); return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::IsDefault() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate)->get_IsDefault(&value)); return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::ValueAsString() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate)->get_ValueAsString(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate::GetValueAsFileAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate)->GetQualifierValue(*(void**)(&qualifierName), &value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceCandidate2::GetValueAsStreamAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceCandidate3)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::QualifierValues() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContext)->get_QualifierValues(&value)); return winrt::Windows::Foundation::Collections::IObservableMap{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Reset() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContext)->Reset()); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Reset(param::iterable const& qualifierNames) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContext)->ResetQualifierValues(*(void**)(&qualifierNames))); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::OverrideToMatch(param::iterable const& result) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContext)->OverrideToMatch(*(void**)(&result))); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContext::Clone() const { void* clone{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContext)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContext)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContext)->put_Languages(*(void**)(&languages))); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics::CreateMatchingContext(param::iterable const& result) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics2)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics2)->SetGlobalQualifierValue(*(void**)(&key), *(void**)(&value))); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::ResetGlobalQualifierValues() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics2)->ResetGlobalQualifierValues()); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::ResetGlobalQualifierValues(param::iterable const& qualifierNames) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics2)->ResetGlobalQualifierValuesForSpecifiedQualifiers(*(void**)(&qualifierNames))); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceContextStatics2::GetForViewIndependentUse() const { void* loader{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics2)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics3)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceContextStatics4)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManager)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManager)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManager)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManager)->LoadPriFiles(*(void**)(&files))); } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceManager::UnloadPriFiles(param::iterable const& files) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManager)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManager2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManager2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManagerStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceManagerStatics)->IsResourceReference(*(void**)(&resourceReference), &isReference)); return isReference; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceMap::Uri() const { void* uri{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceMap)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceMap)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceMap)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceMap)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceQualifier)->get_QualifierName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::QualifierValue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceQualifier)->get_QualifierValue(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::IsDefault() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceQualifier)->get_IsDefault(&value)); return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::IsMatch() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceQualifier)->get_IsMatch(&value)); return value; } template auto consume_Windows_ApplicationModel_Resources_Core_IResourceQualifier::Score() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Resources::Core::IResourceQualifier)->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