// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Microsoft_Windows_ApplicationModel_DynamicDependency_H #define WINRT_Microsoft_Windows_ApplicationModel_DynamicDependency_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.ApplicationModel.2.h" #include "winrt/impl/Microsoft.Windows.ApplicationModel.DynamicDependency.2.h" namespace winrt::impl { template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IAddPackageDependencyOptions::Rank() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IAddPackageDependencyOptions)->get_Rank(&value)); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IAddPackageDependencyOptions::Rank(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IAddPackageDependencyOptions)->put_Rank(value)); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IAddPackageDependencyOptions::PrependIfRankCollision() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IAddPackageDependencyOptions)->get_PrependIfRankCollision(&value)); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IAddPackageDependencyOptions::PrependIfRankCollision(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IAddPackageDependencyOptions)->put_PrependIfRankCollision(value)); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::Architectures() const { winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyProcessorArchitectures value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->get_Architectures(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::Architectures(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyProcessorArchitectures const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->put_Architectures(static_cast(value))); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::VerifyDependencyResolution() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->get_VerifyDependencyResolution(&value)); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::VerifyDependencyResolution(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->put_VerifyDependencyResolution(value)); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::LifetimeArtifactKind() const { winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyLifetimeArtifactKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->get_LifetimeArtifactKind(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::LifetimeArtifactKind(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyLifetimeArtifactKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->put_LifetimeArtifactKind(static_cast(value))); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::LifetimeArtifact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->get_LifetimeArtifact(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_ICreatePackageDependencyOptions::LifetimeArtifact(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::ICreatePackageDependencyOptions)->put_LifetimeArtifact(*(void**)(&value))); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependency::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependency)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependency::Delete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependency)->Delete()); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependency::Add() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependency)->Add(&result)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyContext{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependency::Add(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::AddPackageDependencyOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependency)->Add2(*(void**)(&options), &result)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyContext{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyContext::ContextId() const { winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyContextId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyContext)->get_ContextId(put_abi(value))); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyContext::PackageDependencyId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyContext)->get_PackageDependencyId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyContext::PackageFullName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyContext)->get_PackageFullName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyContext::Remove() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyContext)->Remove()); } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyContextFactory::CreateInstance(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyContextId const& contextId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyContextFactory)->CreateInstance(impl::bind_in(contextId), &value)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyContext{ value, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyRankStatics::Default() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyRankStatics)->get_Default(&value)); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyStatics::GetFromId(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyStatics)->GetFromId(*(void**)(&id), &result)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependency{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyStatics::GetFromIdForSystem(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyStatics)->GetFromIdForSystem(*(void**)(&id), &result)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependency{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyStatics::Create(param::hstring const& packageFamilyName, winrt::Windows::ApplicationModel::PackageVersion const& minVersion) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyStatics)->Create(*(void**)(&packageFamilyName), impl::bind_in(minVersion), &result)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependency{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyStatics::Create(param::hstring const& packageFamilyName, winrt::Windows::ApplicationModel::PackageVersion const& minVersion, winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::CreatePackageDependencyOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyStatics)->Create2(*(void**)(&packageFamilyName), impl::bind_in(minVersion), *(void**)(&options), &result)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependency{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyStatics::CreateForSystem(param::hstring const& packageFamilyName, winrt::Windows::ApplicationModel::PackageVersion const& minVersion, winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::CreatePackageDependencyOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyStatics)->CreateForSystem(*(void**)(&packageFamilyName), impl::bind_in(minVersion), *(void**)(&options), &result)); return winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependency{ result, take_ownership_from_abi }; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyStatics::GenerationId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyStatics)->get_GenerationId(&value)); return value; } template auto consume_Microsoft_Windows_ApplicationModel_DynamicDependency_IPackageDependencyStatics2::PackageGraphRevisionId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::IPackageDependencyStatics2)->get_PackageGraphRevisionId(&value)); return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Rank(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Rank()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Rank(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Rank(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrependIfRankCollision(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrependIfRankCollision()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrependIfRankCollision(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrependIfRankCollision(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Architectures(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Architectures()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Architectures(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Architectures(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerifyDependencyResolution(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerifyDependencyResolution()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VerifyDependencyResolution(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VerifyDependencyResolution(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LifetimeArtifactKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LifetimeArtifactKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LifetimeArtifactKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LifetimeArtifactKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LifetimeArtifact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LifetimeArtifact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LifetimeArtifact(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LifetimeArtifact(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Delete() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Delete(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Add(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Add()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Add2(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Add(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContextId(struct struct_Microsoft_Windows_ApplicationModel_DynamicDependency_PackageDependencyContextId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContextId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PackageDependencyId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageDependencyId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PackageFullName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageFullName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Remove() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Remove(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(struct struct_Microsoft_Windows_ApplicationModel_DynamicDependency_PackageDependencyContextId contextId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&contextId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Default(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Default()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetFromId(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetFromId(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFromIdForSystem(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetFromIdForSystem(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Create(void* packageFamilyName, struct struct_Windows_ApplicationModel_PackageVersion minVersion, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&minVersion))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Create2(void* packageFamilyName, struct struct_Windows_ApplicationModel_PackageVersion minVersion, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&minVersion), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateForSystem(void* packageFamilyName, struct struct_Windows_ApplicationModel_PackageVersion minVersion, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForSystem(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&minVersion), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GenerationId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GenerationId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PackageGraphRevisionId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageGraphRevisionId()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Microsoft::Windows::ApplicationModel::DynamicDependency { constexpr auto operator|(PackageDependencyProcessorArchitectures const left, PackageDependencyProcessorArchitectures const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(PackageDependencyProcessorArchitectures& left, PackageDependencyProcessorArchitectures const right) noexcept { left = left | right; return left; } constexpr auto operator&(PackageDependencyProcessorArchitectures const left, PackageDependencyProcessorArchitectures const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(PackageDependencyProcessorArchitectures& left, PackageDependencyProcessorArchitectures const right) noexcept { left = left & right; return left; } constexpr auto operator~(PackageDependencyProcessorArchitectures const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(PackageDependencyProcessorArchitectures const left, PackageDependencyProcessorArchitectures const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(PackageDependencyProcessorArchitectures& left, PackageDependencyProcessorArchitectures const right) noexcept { left = left ^ right; return left; } inline AddPackageDependencyOptions::AddPackageDependencyOptions() : AddPackageDependencyOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline CreatePackageDependencyOptions::CreatePackageDependencyOptions() : CreatePackageDependencyOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto PackageDependency::GetFromId(param::hstring const& id) { return impl::call_factory([&](IPackageDependencyStatics const& f) { return f.GetFromId(id); }); } inline auto PackageDependency::GetFromIdForSystem(param::hstring const& id) { return impl::call_factory([&](IPackageDependencyStatics const& f) { return f.GetFromIdForSystem(id); }); } inline auto PackageDependency::Create(param::hstring const& packageFamilyName, winrt::Windows::ApplicationModel::PackageVersion const& minVersion) { return impl::call_factory([&](IPackageDependencyStatics const& f) { return f.Create(packageFamilyName, minVersion); }); } inline auto PackageDependency::Create(param::hstring const& packageFamilyName, winrt::Windows::ApplicationModel::PackageVersion const& minVersion, winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::CreatePackageDependencyOptions const& options) { return impl::call_factory([&](IPackageDependencyStatics const& f) { return f.Create(packageFamilyName, minVersion, options); }); } inline auto PackageDependency::CreateForSystem(param::hstring const& packageFamilyName, winrt::Windows::ApplicationModel::PackageVersion const& minVersion, winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::CreatePackageDependencyOptions const& options) { return impl::call_factory([&](IPackageDependencyStatics const& f) { return f.CreateForSystem(packageFamilyName, minVersion, options); }); } inline auto PackageDependency::GenerationId() { return impl::call_factory_cast([](IPackageDependencyStatics const& f) { return f.GenerationId(); }); } inline auto PackageDependency::PackageGraphRevisionId() { return impl::call_factory_cast([](IPackageDependencyStatics2 const& f) { return f.PackageGraphRevisionId(); }); } inline PackageDependencyContext::PackageDependencyContext(winrt::Microsoft::Windows::ApplicationModel::DynamicDependency::PackageDependencyContextId const& contextId) : PackageDependencyContext(impl::call_factory([&](IPackageDependencyContextFactory const& f) { return f.CreateInstance(contextId); })) { } inline auto PackageDependencyRank::Default() { return impl::call_factory_cast([](IPackageDependencyRankStatics const& f) { return f.Default(); }); } } 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