// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_Management_Deployment_H #define WINRT_Windows_Management_Deployment_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.Management.h" #include "winrt/impl/Windows.ApplicationModel.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Management.Deployment.2.h" namespace winrt::impl { template auto consume_Windows_Management_Deployment_IAddPackageOptions::DependencyPackageUris() 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_DependencyPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DependencyPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::TargetVolume() 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_TargetVolume(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TargetVolume(&value)); } return winrt::Windows::Management::Deployment::PackageVolume{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::TargetVolume(winrt::Windows::Management::Deployment::PackageVolume 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->put_TargetVolume(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_TargetVolume(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::OptionalPackageFamilyNames() 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_OptionalPackageFamilyNames(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OptionalPackageFamilyNames(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::OptionalPackageUris() 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_OptionalPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OptionalPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::RelatedPackageUris() 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_RelatedPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RelatedPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ExternalLocationUri() 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_ExternalLocationUri(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExternalLocationUri(&value)); } return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ExternalLocationUri(winrt::Windows::Foundation::Uri 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->put_ExternalLocationUri(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ExternalLocationUri(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::StubPackageOption() const { winrt::Windows::Management::Deployment::StubPackageOption 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_StubPackageOption(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StubPackageOption(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::StubPackageOption(winrt::Windows::Management::Deployment::StubPackageOption 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->put_StubPackageOption(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_StubPackageOption(static_cast(value))); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::DeveloperMode() 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_DeveloperMode(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeveloperMode(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::DeveloperMode(bool 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->put_DeveloperMode(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeveloperMode(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ForceAppShutdown() 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_ForceAppShutdown(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceAppShutdown(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ForceAppShutdown(bool 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->put_ForceAppShutdown(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceAppShutdown(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ForceTargetAppShutdown() 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_ForceTargetAppShutdown(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceTargetAppShutdown(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ForceTargetAppShutdown(bool 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->put_ForceTargetAppShutdown(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceTargetAppShutdown(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ForceUpdateFromAnyVersion() 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_ForceUpdateFromAnyVersion(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceUpdateFromAnyVersion(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::ForceUpdateFromAnyVersion(bool 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->put_ForceUpdateFromAnyVersion(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceUpdateFromAnyVersion(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::InstallAllResources() 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_InstallAllResources(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InstallAllResources(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::InstallAllResources(bool 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->put_InstallAllResources(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InstallAllResources(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::RequiredContentGroupOnly() 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_RequiredContentGroupOnly(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RequiredContentGroupOnly(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::RequiredContentGroupOnly(bool 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->put_RequiredContentGroupOnly(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RequiredContentGroupOnly(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::RetainFilesOnFailure() 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_RetainFilesOnFailure(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RetainFilesOnFailure(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::RetainFilesOnFailure(bool 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->put_RetainFilesOnFailure(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RetainFilesOnFailure(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::StageInPlace() 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_StageInPlace(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StageInPlace(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::StageInPlace(bool 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->put_StageInPlace(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_StageInPlace(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::AllowUnsigned() 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_AllowUnsigned(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllowUnsigned(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::AllowUnsigned(bool 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->put_AllowUnsigned(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AllowUnsigned(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions::DeferRegistrationWhenPackagesAreInUse() 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_DeferRegistrationWhenPackagesAreInUse(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeferRegistrationWhenPackagesAreInUse(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions::DeferRegistrationWhenPackagesAreInUse(bool 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->put_DeferRegistrationWhenPackagesAreInUse(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeferRegistrationWhenPackagesAreInUse(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions2::ExpectedDigests() 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_ExpectedDigests(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpectedDigests(&value)); } return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAddPackageOptions2::LimitToExistingPackages() 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_LimitToExistingPackages(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LimitToExistingPackages(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions2::LimitToExistingPackages(bool 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->put_LimitToExistingPackages(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LimitToExistingPackages(value)); } } template auto consume_Windows_Management_Deployment_IAddPackageOptions3::PackageOperationPriority() const { winrt::Windows::Management::Deployment::PackageOperationPriority 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_PackageOperationPriority(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PackageOperationPriority(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IAddPackageOptions3::PackageOperationPriority(winrt::Windows::Management::Deployment::PackageOperationPriority 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->put_PackageOperationPriority(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PackageOperationPriority(static_cast(value))); } } template auto consume_Windows_Management_Deployment_IAppInstallerManager::SetAutoUpdateSettings(param::hstring const& packageFamilyName, winrt::Windows::Management::Deployment::AutoUpdateSettingsOptions const& appInstallerInfo) 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->SetAutoUpdateSettings(*(void**)(&packageFamilyName), *(void**)(&appInstallerInfo))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetAutoUpdateSettings(*(void**)(&packageFamilyName), *(void**)(&appInstallerInfo))); } } template auto consume_Windows_Management_Deployment_IAppInstallerManager::ClearAutoUpdateSettings(param::hstring const& packageFamilyName) 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->ClearAutoUpdateSettings(*(void**)(&packageFamilyName))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ClearAutoUpdateSettings(*(void**)(&packageFamilyName))); } } template auto consume_Windows_Management_Deployment_IAppInstallerManager::PauseAutoUpdatesUntil(param::hstring const& packageFamilyName, winrt::Windows::Foundation::DateTime const& dateTime) 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->PauseAutoUpdatesUntil(*(void**)(&packageFamilyName), impl::bind_in(dateTime))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PauseAutoUpdatesUntil(*(void**)(&packageFamilyName), impl::bind_in(dateTime))); } } template auto consume_Windows_Management_Deployment_IAppInstallerManagerStatics::GetDefault() 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->GetDefault(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetDefault(&result)); } return winrt::Windows::Management::Deployment::AppInstallerManager{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAppInstallerManagerStatics::GetForSystem() 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->GetForSystem(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForSystem(&result)); } return winrt::Windows::Management::Deployment::AppInstallerManager{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::Version() const { winrt::Windows::ApplicationModel::PackageVersion 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_Version(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Version(put_abi(value))); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::Version(winrt::Windows::ApplicationModel::PackageVersion 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->put_Version(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Version(impl::bind_in(value))); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::AppInstallerUri() 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_AppInstallerUri(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AppInstallerUri(&value)); } return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::AppInstallerUri(winrt::Windows::Foundation::Uri 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->put_AppInstallerUri(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AppInstallerUri(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::OnLaunch() 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_OnLaunch(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OnLaunch(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::OnLaunch(bool 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->put_OnLaunch(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_OnLaunch(value)); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::HoursBetweenUpdateChecks() const { uint32_t 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_HoursBetweenUpdateChecks(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HoursBetweenUpdateChecks(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::HoursBetweenUpdateChecks(uint32_t 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->put_HoursBetweenUpdateChecks(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_HoursBetweenUpdateChecks(value)); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::ShowPrompt() 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_ShowPrompt(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShowPrompt(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::ShowPrompt(bool 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->put_ShowPrompt(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ShowPrompt(value)); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::UpdateBlocksActivation() 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_UpdateBlocksActivation(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UpdateBlocksActivation(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::UpdateBlocksActivation(bool 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->put_UpdateBlocksActivation(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_UpdateBlocksActivation(value)); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::AutomaticBackgroundTask() 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_AutomaticBackgroundTask(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AutomaticBackgroundTask(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::AutomaticBackgroundTask(bool 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->put_AutomaticBackgroundTask(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AutomaticBackgroundTask(value)); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::ForceUpdateFromAnyVersion() 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_ForceUpdateFromAnyVersion(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceUpdateFromAnyVersion(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::ForceUpdateFromAnyVersion(bool 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->put_ForceUpdateFromAnyVersion(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceUpdateFromAnyVersion(value)); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::IsAutoRepairEnabled() 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_IsAutoRepairEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsAutoRepairEnabled(&value)); } return value; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::IsAutoRepairEnabled(bool 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->put_IsAutoRepairEnabled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsAutoRepairEnabled(value)); } } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::UpdateUris() 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_UpdateUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UpdateUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::RepairUris() 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_RepairUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RepairUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::DependencyPackageUris() 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_DependencyPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DependencyPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptions::OptionalPackageUris() 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_OptionalPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OptionalPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IAutoUpdateSettingsOptionsStatics::CreateFromAppInstallerInfo(winrt::Windows::ApplicationModel::AppInstallerInfo const& appInstallerInfo) 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->CreateFromAppInstallerInfo(*(void**)(&appInstallerInfo), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateFromAppInstallerInfo(*(void**)(&appInstallerInfo), &result)); } return winrt::Windows::Management::Deployment::AutoUpdateSettingsOptions{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerOptions::Members() 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_Members(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Members(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerOptions::ForceAppShutdown() 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_ForceAppShutdown(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceAppShutdown(&value)); } return value; } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerOptions::ForceAppShutdown(bool 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->put_ForceAppShutdown(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceAppShutdown(value)); } } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerOptions::CreateCollisionOption() const { winrt::Windows::Management::Deployment::SharedPackageContainerCreationCollisionOptions 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_CreateCollisionOption(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CreateCollisionOption(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerOptions::CreateCollisionOption(winrt::Windows::Management::Deployment::SharedPackageContainerCreationCollisionOptions 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->put_CreateCollisionOption(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CreateCollisionOption(static_cast(value))); } } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerResult::Container() 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_Container(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Container(&value)); } return winrt::Windows::Management::Deployment::SharedPackageContainer{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerResult::Status() const { winrt::Windows::Management::Deployment::SharedPackageContainerOperationStatus 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_Status(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Status(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_ICreateSharedPackageContainerResult::ExtendedError() const { winrt::hresult 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_ExtendedError(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtendedError(put_abi(value))); } return value; } template auto consume_Windows_Management_Deployment_IDeleteSharedPackageContainerOptions::ForceAppShutdown() 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_ForceAppShutdown(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceAppShutdown(&value)); } return value; } template auto consume_Windows_Management_Deployment_IDeleteSharedPackageContainerOptions::ForceAppShutdown(bool 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->put_ForceAppShutdown(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceAppShutdown(value)); } } template auto consume_Windows_Management_Deployment_IDeleteSharedPackageContainerOptions::AllUsers() 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_AllUsers(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllUsers(&value)); } return value; } template auto consume_Windows_Management_Deployment_IDeleteSharedPackageContainerOptions::AllUsers(bool 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->put_AllUsers(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AllUsers(value)); } } template auto consume_Windows_Management_Deployment_IDeleteSharedPackageContainerResult::Status() const { winrt::Windows::Management::Deployment::SharedPackageContainerOperationStatus 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_Status(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Status(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IDeleteSharedPackageContainerResult::ExtendedError() const { winrt::hresult 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_ExtendedError(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtendedError(put_abi(value))); } return value; } template auto consume_Windows_Management_Deployment_IDeploymentResult::ErrorText() 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_ErrorText(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ErrorText(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IDeploymentResult::ActivityId() const { winrt::guid 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_ActivityId(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ActivityId(put_abi(value))); } return value; } template auto consume_Windows_Management_Deployment_IDeploymentResult::ExtendedErrorCode() const { winrt::hresult 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_ExtendedErrorCode(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtendedErrorCode(put_abi(value))); } return value; } template auto consume_Windows_Management_Deployment_IDeploymentResult2::IsRegistered() 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_IsRegistered(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsRegistered(&value)); } return value; } template auto consume_Windows_Management_Deployment_IFindSharedPackageContainerOptions::Name() 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_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IFindSharedPackageContainerOptions::Name(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->put_Name(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Name(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IFindSharedPackageContainerOptions::PackageFamilyName() 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_PackageFamilyName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PackageFamilyName(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IFindSharedPackageContainerOptions::PackageFamilyName(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->put_PackageFamilyName(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PackageFamilyName(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IPackageAllUserProvisioningOptions::OptionalPackageFamilyNames() 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_OptionalPackageFamilyNames(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OptionalPackageFamilyNames(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageAllUserProvisioningOptions::ProjectionOrderPackageFamilyNames() 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_ProjectionOrderPackageFamilyNames(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ProjectionOrderPackageFamilyNames(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageAllUserProvisioningOptions2::DeferAutomaticRegistration() 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_DeferAutomaticRegistration(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeferAutomaticRegistration(&value)); } return value; } template auto consume_Windows_Management_Deployment_IPackageAllUserProvisioningOptions2::DeferAutomaticRegistration(bool 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->put_DeferAutomaticRegistration(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeferAutomaticRegistration(value)); } } template auto consume_Windows_Management_Deployment_IPackageManager::AddPackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions) const { void* deploymentOperation{}; 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->AddPackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::UpdatePackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions) const { void* deploymentOperation{}; 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->UpdatePackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->UpdatePackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::RemovePackageAsync(param::hstring const& packageFullName) const { void* deploymentOperation{}; 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->RemovePackageAsync(*(void**)(&packageFullName), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemovePackageAsync(*(void**)(&packageFullName), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::StagePackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris) const { void* deploymentOperation{}; 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->StagePackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StagePackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::RegisterPackageAsync(winrt::Windows::Foundation::Uri const& manifestUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions) const { void* deploymentOperation{}; 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->RegisterPackageAsync(*(void**)(&manifestUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RegisterPackageAsync(*(void**)(&manifestUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackages() const { void* packageCollection{}; 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->FindPackages(&packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackages(&packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackagesForUser(param::hstring const& userSecurityId) const { void* packageCollection{}; 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->FindPackagesByUserSecurityId(*(void**)(&userSecurityId), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityId(*(void**)(&userSecurityId), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackages(param::hstring const& packageName, param::hstring const& packagePublisher) const { void* packageCollection{}; 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->FindPackagesByNamePublisher(*(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByNamePublisher(*(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackagesForUser(param::hstring const& userSecurityId, param::hstring const& packageName, param::hstring const& packagePublisher) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdNamePublisher(*(void**)(&userSecurityId), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdNamePublisher(*(void**)(&userSecurityId), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindUsers(param::hstring const& packageFullName) const { void* users{}; 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->FindUsers(*(void**)(&packageFullName), &users)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindUsers(*(void**)(&packageFullName), &users)); } return winrt::Windows::Foundation::Collections::IIterable{ users, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::SetPackageState(param::hstring const& packageFullName, winrt::Windows::Management::Deployment::PackageState const& packageState) 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->SetPackageState(*(void**)(&packageFullName), static_cast(packageState))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetPackageState(*(void**)(&packageFullName), static_cast(packageState))); } } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackage(param::hstring const& packageFullName) const { void* packageInformation{}; 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->FindPackageByPackageFullName(*(void**)(&packageFullName), &packageInformation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackageByPackageFullName(*(void**)(&packageFullName), &packageInformation)); } return winrt::Windows::ApplicationModel::Package{ packageInformation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::CleanupPackageForUserAsync(param::hstring const& packageName, param::hstring const& userSecurityId) const { void* deploymentOperation{}; 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->CleanupPackageForUserAsync(*(void**)(&packageName), *(void**)(&userSecurityId), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CleanupPackageForUserAsync(*(void**)(&packageName), *(void**)(&userSecurityId), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackages(param::hstring const& packageFamilyName) const { void* packageCollection{}; 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->FindPackagesByPackageFamilyName(*(void**)(&packageFamilyName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByPackageFamilyName(*(void**)(&packageFamilyName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackagesForUser(param::hstring const& userSecurityId, param::hstring const& packageFamilyName) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdPackageFamilyName(*(void**)(&userSecurityId), *(void**)(&packageFamilyName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdPackageFamilyName(*(void**)(&userSecurityId), *(void**)(&packageFamilyName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager::FindPackageForUser(param::hstring const& userSecurityId, param::hstring const& packageFullName) const { void* packageInformation{}; 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->FindPackageByUserSecurityIdPackageFullName(*(void**)(&userSecurityId), *(void**)(&packageFullName), &packageInformation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackageByUserSecurityIdPackageFullName(*(void**)(&userSecurityId), *(void**)(&packageFullName), &packageInformation)); } return winrt::Windows::ApplicationModel::Package{ packageInformation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager10::ProvisionPackageForAllUsersAsync(param::hstring const& mainPackageFamilyName, winrt::Windows::Management::Deployment::PackageAllUserProvisioningOptions const& options) 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->ProvisionPackageForAllUsersWithOptionsAsync(*(void**)(&mainPackageFamilyName), *(void**)(&options), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ProvisionPackageForAllUsersWithOptionsAsync(*(void**)(&mainPackageFamilyName), *(void**)(&options), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager11::RemovePackageByUriAsync(winrt::Windows::Foundation::Uri const& packageUri, winrt::Windows::Management::Deployment::RemovePackageOptions const& options) 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->RemovePackageByUriAsync(*(void**)(&packageUri), *(void**)(&options), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemovePackageByUriAsync(*(void**)(&packageUri), *(void**)(&options), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager12::IsPackageRemovalPending(param::hstring const& packageFullName) const { bool 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->IsPackageRemovalPending(*(void**)(&packageFullName), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsPackageRemovalPending(*(void**)(&packageFullName), &result)); } return result; } template auto consume_Windows_Management_Deployment_IPackageManager12::IsPackageRemovalPendingForUser(param::hstring const& packageFullName, param::hstring const& userSecurityId) const { bool 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->IsPackageRemovalPendingForUser(*(void**)(&packageFullName), *(void**)(&userSecurityId), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsPackageRemovalPendingForUser(*(void**)(&packageFullName), *(void**)(&userSecurityId), &result)); } return result; } template auto consume_Windows_Management_Deployment_IPackageManager12::IsPackageRemovalPendingByUri(winrt::Windows::Foundation::Uri const& packageUri) const { bool 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->IsPackageRemovalPendingByUri(*(void**)(&packageUri), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsPackageRemovalPendingByUri(*(void**)(&packageUri), &result)); } return result; } template auto consume_Windows_Management_Deployment_IPackageManager12::IsPackageRemovalPendingByUriForUser(winrt::Windows::Foundation::Uri const& packageUri, param::hstring const& userSecurityId) const { bool 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->IsPackageRemovalPendingByUriForUser(*(void**)(&packageUri), *(void**)(&userSecurityId), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsPackageRemovalPendingByUriForUser(*(void**)(&packageUri), *(void**)(&userSecurityId), &result)); } return result; } template auto consume_Windows_Management_Deployment_IPackageManager2::RemovePackageAsync(param::hstring const& packageFullName, winrt::Windows::Management::Deployment::RemovalOptions const& removalOptions) const { void* deploymentOperation{}; 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->RemovePackageWithOptionsAsync(*(void**)(&packageFullName), static_cast(removalOptions), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemovePackageWithOptionsAsync(*(void**)(&packageFullName), static_cast(removalOptions), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::StagePackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions) const { void* deploymentOperation{}; 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->StagePackageWithOptionsAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StagePackageWithOptionsAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::RegisterPackageByFullNameAsync(param::hstring const& mainPackageFullName, param::async_iterable const& dependencyPackageFullNames, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions) const { void* deploymentOperation{}; 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->RegisterPackageByFullNameAsync(*(void**)(&mainPackageFullName), *(void**)(&dependencyPackageFullNames), static_cast(deploymentOptions), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RegisterPackageByFullNameAsync(*(void**)(&mainPackageFullName), *(void**)(&dependencyPackageFullNames), static_cast(deploymentOptions), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::FindPackagesWithPackageTypes(winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesWithPackageTypes(static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesWithPackageTypes(static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::FindPackagesForUserWithPackageTypes(param::hstring const& userSecurityId, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdWithPackageTypes(*(void**)(&userSecurityId), static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdWithPackageTypes(*(void**)(&userSecurityId), static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::FindPackagesWithPackageTypes(param::hstring const& packageName, param::hstring const& packagePublisher, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesByNamePublisherWithPackageTypes(*(void**)(&packageName), *(void**)(&packagePublisher), static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByNamePublisherWithPackageTypes(*(void**)(&packageName), *(void**)(&packagePublisher), static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::FindPackagesForUserWithPackageTypes(param::hstring const& userSecurityId, param::hstring const& packageName, param::hstring const& packagePublisher, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(*(void**)(&userSecurityId), *(void**)(&packageName), *(void**)(&packagePublisher), static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(*(void**)(&userSecurityId), *(void**)(&packageName), *(void**)(&packagePublisher), static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::FindPackagesWithPackageTypes(param::hstring const& packageFamilyName, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesByPackageFamilyNameWithPackageTypes(*(void**)(&packageFamilyName), static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByPackageFamilyNameWithPackageTypes(*(void**)(&packageFamilyName), static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::FindPackagesForUserWithPackageTypes(param::hstring const& userSecurityId, param::hstring const& packageFamilyName, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(*(void**)(&userSecurityId), *(void**)(&packageFamilyName), static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(*(void**)(&userSecurityId), *(void**)(&packageFamilyName), static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager2::StageUserDataAsync(param::hstring const& packageFullName) const { void* deploymentOperation{}; 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->StageUserDataAsync(*(void**)(&packageFullName), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StageUserDataAsync(*(void**)(&packageFullName), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::AddPackageVolumeAsync(param::hstring const& packageStorePath) const { void* packageVolume{}; 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->AddPackageVolumeAsync(*(void**)(&packageStorePath), &packageVolume)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPackageVolumeAsync(*(void**)(&packageStorePath), &packageVolume)); } return winrt::Windows::Foundation::IAsyncOperation{ packageVolume, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::AddPackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume) const { void* deploymentOperation{}; 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->AddPackageToVolumeAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPackageToVolumeAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::ClearPackageStatus(param::hstring const& packageFullName, winrt::Windows::Management::Deployment::PackageStatus const& status) 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->ClearPackageStatus(*(void**)(&packageFullName), static_cast(status))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ClearPackageStatus(*(void**)(&packageFullName), static_cast(status))); } } template auto consume_Windows_Management_Deployment_IPackageManager3::RegisterPackageAsync(winrt::Windows::Foundation::Uri const& manifestUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& appDataVolume) const { void* deploymentOperation{}; 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->RegisterPackageWithAppDataVolumeAsync(*(void**)(&manifestUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&appDataVolume), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RegisterPackageWithAppDataVolumeAsync(*(void**)(&manifestUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&appDataVolume), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::FindPackageVolume(param::hstring const& volumeName) const { void* volume{}; 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->FindPackageVolumeByName(*(void**)(&volumeName), &volume)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackageVolumeByName(*(void**)(&volumeName), &volume)); } return winrt::Windows::Management::Deployment::PackageVolume{ volume, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::FindPackageVolumes() const { void* volumeCollection{}; 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->FindPackageVolumes(&volumeCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackageVolumes(&volumeCollection)); } return winrt::Windows::Foundation::Collections::IIterable{ volumeCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::GetDefaultPackageVolume() const { void* volume{}; 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->GetDefaultPackageVolume(&volume)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetDefaultPackageVolume(&volume)); } return winrt::Windows::Management::Deployment::PackageVolume{ volume, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::MovePackageToVolumeAsync(param::hstring const& packageFullName, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume) const { void* deploymentOperation{}; 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->MovePackageToVolumeAsync(*(void**)(&packageFullName), static_cast(deploymentOptions), *(void**)(&targetVolume), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MovePackageToVolumeAsync(*(void**)(&packageFullName), static_cast(deploymentOptions), *(void**)(&targetVolume), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::RemovePackageVolumeAsync(winrt::Windows::Management::Deployment::PackageVolume const& volume) const { void* deploymentOperation{}; 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->RemovePackageVolumeAsync(*(void**)(&volume), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemovePackageVolumeAsync(*(void**)(&volume), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::SetDefaultPackageVolume(winrt::Windows::Management::Deployment::PackageVolume const& volume) 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->SetDefaultPackageVolume(*(void**)(&volume))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetDefaultPackageVolume(*(void**)(&volume))); } } template auto consume_Windows_Management_Deployment_IPackageManager3::SetPackageStatus(param::hstring const& packageFullName, winrt::Windows::Management::Deployment::PackageStatus const& status) 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->SetPackageStatus(*(void**)(&packageFullName), static_cast(status))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetPackageStatus(*(void**)(&packageFullName), static_cast(status))); } } template auto consume_Windows_Management_Deployment_IPackageManager3::SetPackageVolumeOfflineAsync(winrt::Windows::Management::Deployment::PackageVolume const& packageVolume) const { void* deploymentOperation{}; 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->SetPackageVolumeOfflineAsync(*(void**)(&packageVolume), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetPackageVolumeOfflineAsync(*(void**)(&packageVolume), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::SetPackageVolumeOnlineAsync(winrt::Windows::Management::Deployment::PackageVolume const& packageVolume) const { void* deploymentOperation{}; 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->SetPackageVolumeOnlineAsync(*(void**)(&packageVolume), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetPackageVolumeOnlineAsync(*(void**)(&packageVolume), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::StagePackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume) const { void* deploymentOperation{}; 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->StagePackageToVolumeAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StagePackageToVolumeAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager3::StageUserDataAsync(param::hstring const& packageFullName, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions) const { void* deploymentOperation{}; 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->StageUserDataWithOptionsAsync(*(void**)(&packageFullName), static_cast(deploymentOptions), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StageUserDataWithOptionsAsync(*(void**)(&packageFullName), static_cast(deploymentOptions), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager4::GetPackageVolumesAsync() 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->GetPackageVolumesAsync(&operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetPackageVolumesAsync(&operation)); } return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager5::AddPackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume, param::async_iterable const& optionalPackageFamilyNames, param::async_iterable const& externalPackageUris) const { void* deploymentOperation{}; 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->AddPackageToVolumeAndOptionalPackagesAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&externalPackageUris), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPackageToVolumeAndOptionalPackagesAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&externalPackageUris), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager5::StagePackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume, param::async_iterable const& optionalPackageFamilyNames, param::async_iterable const& externalPackageUris) const { void* deploymentOperation{}; 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->StagePackageToVolumeAndOptionalPackagesAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&externalPackageUris), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StagePackageToVolumeAndOptionalPackagesAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&externalPackageUris), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager5::RegisterPackageByFamilyNameAsync(param::hstring const& mainPackageFamilyName, param::async_iterable const& dependencyPackageFamilyNames, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& appDataVolume, param::async_iterable const& optionalPackageFamilyNames) const { void* deploymentOperation{}; 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->RegisterPackageByFamilyNameAndOptionalPackagesAsync(*(void**)(&mainPackageFamilyName), *(void**)(&dependencyPackageFamilyNames), static_cast(deploymentOptions), *(void**)(&appDataVolume), *(void**)(&optionalPackageFamilyNames), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RegisterPackageByFamilyNameAndOptionalPackagesAsync(*(void**)(&mainPackageFamilyName), *(void**)(&dependencyPackageFamilyNames), static_cast(deploymentOptions), *(void**)(&appDataVolume), *(void**)(&optionalPackageFamilyNames), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager5::DebugSettings() 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_DebugSettings(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DebugSettings(&value)); } return winrt::Windows::Management::Deployment::PackageManagerDebugSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager6::ProvisionPackageForAllUsersAsync(param::hstring const& packageFamilyName) 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->ProvisionPackageForAllUsersAsync(*(void**)(&packageFamilyName), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ProvisionPackageForAllUsersAsync(*(void**)(&packageFamilyName), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager6::AddPackageByAppInstallerFileAsync(winrt::Windows::Foundation::Uri const& appInstallerFileUri, winrt::Windows::Management::Deployment::AddPackageByAppInstallerOptions const& options, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume) 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->AddPackageByAppInstallerFileAsync(*(void**)(&appInstallerFileUri), static_cast(options), *(void**)(&targetVolume), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPackageByAppInstallerFileAsync(*(void**)(&appInstallerFileUri), static_cast(options), *(void**)(&targetVolume), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager6::RequestAddPackageByAppInstallerFileAsync(winrt::Windows::Foundation::Uri const& appInstallerFileUri, winrt::Windows::Management::Deployment::AddPackageByAppInstallerOptions const& options, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume) 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->RequestAddPackageByAppInstallerFileAsync(*(void**)(&appInstallerFileUri), static_cast(options), *(void**)(&targetVolume), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RequestAddPackageByAppInstallerFileAsync(*(void**)(&appInstallerFileUri), static_cast(options), *(void**)(&targetVolume), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager6::AddPackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& options, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume, param::async_iterable const& optionalPackageFamilyNames, param::async_iterable const& packageUrisToInstall, param::async_iterable const& relatedPackageUris) 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->AddPackageToVolumeAndRelatedSetAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(options), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&packageUrisToInstall), *(void**)(&relatedPackageUris), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPackageToVolumeAndRelatedSetAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(options), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&packageUrisToInstall), *(void**)(&relatedPackageUris), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager6::StagePackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& options, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume, param::async_iterable const& optionalPackageFamilyNames, param::async_iterable const& packageUrisToInstall, param::async_iterable const& relatedPackageUris) 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->StagePackageToVolumeAndRelatedSetAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(options), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&packageUrisToInstall), *(void**)(&relatedPackageUris), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StagePackageToVolumeAndRelatedSetAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(options), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&packageUrisToInstall), *(void**)(&relatedPackageUris), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager6::RequestAddPackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume, param::async_iterable const& optionalPackageFamilyNames, param::async_iterable const& relatedPackageUris) 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->RequestAddPackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&relatedPackageUris), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RequestAddPackageAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&relatedPackageUris), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager7::RequestAddPackageAsync(winrt::Windows::Foundation::Uri const& packageUri, param::async_iterable const& dependencyPackageUris, winrt::Windows::Management::Deployment::DeploymentOptions const& deploymentOptions, winrt::Windows::Management::Deployment::PackageVolume const& targetVolume, param::async_iterable const& optionalPackageFamilyNames, param::async_iterable const& relatedPackageUris, param::async_iterable const& packageUrisToInstall) 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->RequestAddPackageAndRelatedSetAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&relatedPackageUris), *(void**)(&packageUrisToInstall), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RequestAddPackageAndRelatedSetAsync(*(void**)(&packageUri), *(void**)(&dependencyPackageUris), static_cast(deploymentOptions), *(void**)(&targetVolume), *(void**)(&optionalPackageFamilyNames), *(void**)(&relatedPackageUris), *(void**)(&packageUrisToInstall), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager8::DeprovisionPackageForAllUsersAsync(param::hstring const& packageFamilyName) 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->DeprovisionPackageForAllUsersAsync(*(void**)(&packageFamilyName), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->DeprovisionPackageForAllUsersAsync(*(void**)(&packageFamilyName), &operation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager9::FindProvisionedPackages() const { void* packageCollection{}; 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->FindProvisionedPackages(&packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindProvisionedPackages(&packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager9::AddPackageByUriAsync(winrt::Windows::Foundation::Uri const& packageUri, winrt::Windows::Management::Deployment::AddPackageOptions const& options) const { void* deploymentOperation{}; 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->AddPackageByUriAsync(*(void**)(&packageUri), *(void**)(&options), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPackageByUriAsync(*(void**)(&packageUri), *(void**)(&options), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager9::StagePackageByUriAsync(winrt::Windows::Foundation::Uri const& packageUri, winrt::Windows::Management::Deployment::StagePackageOptions const& options) const { void* deploymentOperation{}; 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->StagePackageByUriAsync(*(void**)(&packageUri), *(void**)(&options), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StagePackageByUriAsync(*(void**)(&packageUri), *(void**)(&options), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager9::RegisterPackageByUriAsync(winrt::Windows::Foundation::Uri const& manifestUri, winrt::Windows::Management::Deployment::RegisterPackageOptions const& options) const { void* deploymentOperation{}; 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->RegisterPackageByUriAsync(*(void**)(&manifestUri), *(void**)(&options), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RegisterPackageByUriAsync(*(void**)(&manifestUri), *(void**)(&options), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager9::RegisterPackagesByFullNameAsync(param::async_iterable const& packageFullNames, winrt::Windows::Management::Deployment::RegisterPackageOptions const& options) const { void* deploymentOperation{}; 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->RegisterPackagesByFullNameAsync(*(void**)(&packageFullNames), *(void**)(&options), &deploymentOperation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RegisterPackagesByFullNameAsync(*(void**)(&packageFullNames), *(void**)(&options), &deploymentOperation)); } return winrt::Windows::Foundation::IAsyncOperationWithProgress{ deploymentOperation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManager9::SetPackageStubPreference(param::hstring const& packageFamilyName, winrt::Windows::Management::Deployment::PackageStubPreference const& useStub) 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->SetPackageStubPreference(*(void**)(&packageFamilyName), static_cast(useStub))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetPackageStubPreference(*(void**)(&packageFamilyName), static_cast(useStub))); } } template auto consume_Windows_Management_Deployment_IPackageManager9::GetPackageStubPreference(param::hstring const& packageFamilyName) const { winrt::Windows::Management::Deployment::PackageStubPreference 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->GetPackageStubPreference(*(void**)(&packageFamilyName), reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetPackageStubPreference(*(void**)(&packageFamilyName), reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IPackageManagerDebugSettings::SetContentGroupStateAsync(winrt::Windows::ApplicationModel::Package const& package, param::hstring const& contentGroupName, winrt::Windows::ApplicationModel::PackageContentGroupState const& state) const { void* action{}; 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->SetContentGroupStateAsync(*(void**)(&package), *(void**)(&contentGroupName), static_cast(state), &action)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetContentGroupStateAsync(*(void**)(&package), *(void**)(&contentGroupName), static_cast(state), &action)); } return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageManagerDebugSettings::SetContentGroupStateAsync(winrt::Windows::ApplicationModel::Package const& package, param::hstring const& contentGroupName, winrt::Windows::ApplicationModel::PackageContentGroupState const& state, double completionPercentage) const { void* action{}; 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->SetContentGroupStateWithPercentageAsync(*(void**)(&package), *(void**)(&contentGroupName), static_cast(state), completionPercentage, &action)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetContentGroupStateWithPercentageAsync(*(void**)(&package), *(void**)(&contentGroupName), static_cast(state), completionPercentage, &action)); } return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageUserInformation::UserSecurityId() 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_UserSecurityId(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_UserSecurityId(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageUserInformation::InstallState() const { winrt::Windows::Management::Deployment::PackageInstallState 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_InstallState(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InstallState(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IPackageVolume::IsOffline() 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_IsOffline(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsOffline(&value)); } return value; } template auto consume_Windows_Management_Deployment_IPackageVolume::IsSystemVolume() 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_IsSystemVolume(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsSystemVolume(&value)); } return value; } template auto consume_Windows_Management_Deployment_IPackageVolume::MountPoint() 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_MountPoint(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MountPoint(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::Name() 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_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::PackageStorePath() 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_PackageStorePath(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PackageStorePath(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::SupportsHardLinks() 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_SupportsHardLinks(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SupportsHardLinks(&value)); } return value; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackages() const { void* packageCollection{}; 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->FindPackages(&packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackages(&packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackages(param::hstring const& packageName, param::hstring const& packagePublisher) const { void* packageCollection{}; 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->FindPackagesByNamePublisher(*(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByNamePublisher(*(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackages(param::hstring const& packageFamilyName) const { void* packageCollection{}; 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->FindPackagesByPackageFamilyName(*(void**)(&packageFamilyName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByPackageFamilyName(*(void**)(&packageFamilyName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesWithPackageTypes(winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesWithPackageTypes(static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesWithPackageTypes(static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesWithPackageTypes(winrt::Windows::Management::Deployment::PackageTypes const& packageTypes, param::hstring const& packageName, param::hstring const& packagePublisher) const { void* packageCollection{}; 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->FindPackagesByNamePublisherWithPackagesTypes(static_cast(packageTypes), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByNamePublisherWithPackagesTypes(static_cast(packageTypes), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesWithPackageTypes(winrt::Windows::Management::Deployment::PackageTypes const& packageTypes, param::hstring const& packageFamilyName) const { void* packageCollection{}; 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->FindPackagesByPackageFamilyNameWithPackageTypes(static_cast(packageTypes), *(void**)(&packageFamilyName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByPackageFamilyNameWithPackageTypes(static_cast(packageTypes), *(void**)(&packageFamilyName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackage(param::hstring const& packageFullName) const { void* packageCollection{}; 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->FindPackageByPackageFullName(*(void**)(&packageFullName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackageByPackageFullName(*(void**)(&packageFullName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesForUser(param::hstring const& userSecurityId) const { void* packageCollection{}; 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->FindPackagesByUserSecurityId(*(void**)(&userSecurityId), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityId(*(void**)(&userSecurityId), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesForUser(param::hstring const& userSecurityId, param::hstring const& packageName, param::hstring const& packagePublisher) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdNamePublisher(*(void**)(&userSecurityId), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdNamePublisher(*(void**)(&userSecurityId), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesForUser(param::hstring const& userSecurityId, param::hstring const& packageFamilyName) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdPackageFamilyName(*(void**)(&userSecurityId), *(void**)(&packageFamilyName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdPackageFamilyName(*(void**)(&userSecurityId), *(void**)(&packageFamilyName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesForUserWithPackageTypes(param::hstring const& userSecurityId, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdWithPackageTypes(*(void**)(&userSecurityId), static_cast(packageTypes), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdWithPackageTypes(*(void**)(&userSecurityId), static_cast(packageTypes), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesForUserWithPackageTypes(param::hstring const& userSecurityId, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes, param::hstring const& packageName, param::hstring const& packagePublisher) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(*(void**)(&userSecurityId), static_cast(packageTypes), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(*(void**)(&userSecurityId), static_cast(packageTypes), *(void**)(&packageName), *(void**)(&packagePublisher), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackagesForUserWithPackageTypes(param::hstring const& userSecurityId, winrt::Windows::Management::Deployment::PackageTypes const& packageTypes, param::hstring const& packageFamilyName) const { void* packageCollection{}; 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->FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes(*(void**)(&userSecurityId), static_cast(packageTypes), *(void**)(&packageFamilyName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes(*(void**)(&userSecurityId), static_cast(packageTypes), *(void**)(&packageFamilyName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume::FindPackageForUser(param::hstring const& userSecurityId, param::hstring const& packageFullName) const { void* packageCollection{}; 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->FindPackageByUserSecurityIdPackageFullName(*(void**)(&userSecurityId), *(void**)(&packageFullName), &packageCollection)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindPackageByUserSecurityIdPackageFullName(*(void**)(&userSecurityId), *(void**)(&packageFullName), &packageCollection)); } return winrt::Windows::Foundation::Collections::IVector{ packageCollection, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IPackageVolume2::IsFullTrustPackageSupported() 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_IsFullTrustPackageSupported(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsFullTrustPackageSupported(&value)); } return value; } template auto consume_Windows_Management_Deployment_IPackageVolume2::IsAppxInstallSupported() 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_IsAppxInstallSupported(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsAppxInstallSupported(&value)); } return value; } template auto consume_Windows_Management_Deployment_IPackageVolume2::GetAvailableSpaceAsync() 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->GetAvailableSpaceAsync(&operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetAvailableSpaceAsync(&operation)); } return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::DependencyPackageUris() 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_DependencyPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DependencyPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::AppDataVolume() 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_AppDataVolume(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AppDataVolume(&value)); } return winrt::Windows::Management::Deployment::PackageVolume{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::AppDataVolume(winrt::Windows::Management::Deployment::PackageVolume 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->put_AppDataVolume(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AppDataVolume(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::OptionalPackageFamilyNames() 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_OptionalPackageFamilyNames(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OptionalPackageFamilyNames(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ExternalLocationUri() 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_ExternalLocationUri(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExternalLocationUri(&value)); } return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ExternalLocationUri(winrt::Windows::Foundation::Uri 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->put_ExternalLocationUri(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ExternalLocationUri(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::DeveloperMode() 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_DeveloperMode(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeveloperMode(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::DeveloperMode(bool 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->put_DeveloperMode(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeveloperMode(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ForceAppShutdown() 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_ForceAppShutdown(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceAppShutdown(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ForceAppShutdown(bool 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->put_ForceAppShutdown(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceAppShutdown(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ForceTargetAppShutdown() 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_ForceTargetAppShutdown(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceTargetAppShutdown(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ForceTargetAppShutdown(bool 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->put_ForceTargetAppShutdown(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceTargetAppShutdown(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ForceUpdateFromAnyVersion() 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_ForceUpdateFromAnyVersion(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceUpdateFromAnyVersion(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::ForceUpdateFromAnyVersion(bool 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->put_ForceUpdateFromAnyVersion(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceUpdateFromAnyVersion(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::InstallAllResources() 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_InstallAllResources(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InstallAllResources(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::InstallAllResources(bool 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->put_InstallAllResources(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InstallAllResources(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::StageInPlace() 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_StageInPlace(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StageInPlace(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::StageInPlace(bool 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->put_StageInPlace(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_StageInPlace(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::AllowUnsigned() 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_AllowUnsigned(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllowUnsigned(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::AllowUnsigned(bool 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->put_AllowUnsigned(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AllowUnsigned(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::DeferRegistrationWhenPackagesAreInUse() 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_DeferRegistrationWhenPackagesAreInUse(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeferRegistrationWhenPackagesAreInUse(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions::DeferRegistrationWhenPackagesAreInUse(bool 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->put_DeferRegistrationWhenPackagesAreInUse(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeferRegistrationWhenPackagesAreInUse(value)); } } template auto consume_Windows_Management_Deployment_IRegisterPackageOptions2::ExpectedDigests() 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_ExpectedDigests(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpectedDigests(&value)); } return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IRemovePackageOptions::PreserveApplicationData() 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_PreserveApplicationData(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PreserveApplicationData(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRemovePackageOptions::PreserveApplicationData(bool 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->put_PreserveApplicationData(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PreserveApplicationData(value)); } } template auto consume_Windows_Management_Deployment_IRemovePackageOptions::PreserveRoamableApplicationData() 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_PreserveRoamableApplicationData(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PreserveRoamableApplicationData(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRemovePackageOptions::PreserveRoamableApplicationData(bool 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->put_PreserveRoamableApplicationData(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PreserveRoamableApplicationData(value)); } } template auto consume_Windows_Management_Deployment_IRemovePackageOptions::RemoveForAllUsers() 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_RemoveForAllUsers(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RemoveForAllUsers(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRemovePackageOptions::RemoveForAllUsers(bool 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->put_RemoveForAllUsers(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RemoveForAllUsers(value)); } } template auto consume_Windows_Management_Deployment_IRemovePackageOptions2::DeferRemovalWhenPackagesAreInUse() 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_DeferRemovalWhenPackagesAreInUse(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeferRemovalWhenPackagesAreInUse(&value)); } return value; } template auto consume_Windows_Management_Deployment_IRemovePackageOptions2::DeferRemovalWhenPackagesAreInUse(bool 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->put_DeferRemovalWhenPackagesAreInUse(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeferRemovalWhenPackagesAreInUse(value)); } } template auto consume_Windows_Management_Deployment_ISharedPackageContainer::Name() 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_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainer::Id() 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_Id(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Id(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainer::GetMembers() 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->GetMembers(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetMembers(&result)); } return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainer::RemovePackageFamily(param::hstring const& packageFamilyName, winrt::Windows::Management::Deployment::UpdateSharedPackageContainerOptions const& options) 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->RemovePackageFamily(*(void**)(&packageFamilyName), *(void**)(&options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemovePackageFamily(*(void**)(&packageFamilyName), *(void**)(&options), &result)); } return winrt::Windows::Management::Deployment::UpdateSharedPackageContainerResult{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainer::ResetData() 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->ResetData(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ResetData(&result)); } return winrt::Windows::Management::Deployment::UpdateSharedPackageContainerResult{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManager::CreateContainer(param::hstring const& name, winrt::Windows::Management::Deployment::CreateSharedPackageContainerOptions const& options) 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->CreateContainer(*(void**)(&name), *(void**)(&options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateContainer(*(void**)(&name), *(void**)(&options), &result)); } return winrt::Windows::Management::Deployment::CreateSharedPackageContainerResult{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManager::DeleteContainer(param::hstring const& id, winrt::Windows::Management::Deployment::DeleteSharedPackageContainerOptions const& options) 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->DeleteContainer(*(void**)(&id), *(void**)(&options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->DeleteContainer(*(void**)(&id), *(void**)(&options), &result)); } return winrt::Windows::Management::Deployment::DeleteSharedPackageContainerResult{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManager::GetContainer(param::hstring const& id) 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->GetContainer(*(void**)(&id), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetContainer(*(void**)(&id), &result)); } return winrt::Windows::Management::Deployment::SharedPackageContainer{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManager::FindContainers() 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->FindContainers(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindContainers(&result)); } return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManager::FindContainers(winrt::Windows::Management::Deployment::FindSharedPackageContainerOptions const& options) 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->FindContainersWithOptions(*(void**)(&options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FindContainersWithOptions(*(void**)(&options), &result)); } return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManagerStatics::GetDefault() 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->GetDefault(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetDefault(&result)); } return winrt::Windows::Management::Deployment::SharedPackageContainerManager{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManagerStatics::GetForUser(param::hstring const& userSid) 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->GetForUser(*(void**)(&userSid), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForUser(*(void**)(&userSid), &result)); } return winrt::Windows::Management::Deployment::SharedPackageContainerManager{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerManagerStatics::GetForProvisioning() 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->GetForProvisioning(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetForProvisioning(&result)); } return winrt::Windows::Management::Deployment::SharedPackageContainerManager{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerMember::PackageFamilyName() 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_PackageFamilyName(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PackageFamilyName(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_ISharedPackageContainerMemberFactory::CreateInstance(param::hstring const& packageFamilyName) 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->CreateInstance(*(void**)(&packageFamilyName), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&packageFamilyName), &value)); } return winrt::Windows::Management::Deployment::SharedPackageContainerMember{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::DependencyPackageUris() 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_DependencyPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DependencyPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::TargetVolume() 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_TargetVolume(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TargetVolume(&value)); } return winrt::Windows::Management::Deployment::PackageVolume{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::TargetVolume(winrt::Windows::Management::Deployment::PackageVolume 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->put_TargetVolume(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_TargetVolume(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::OptionalPackageFamilyNames() 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_OptionalPackageFamilyNames(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OptionalPackageFamilyNames(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::OptionalPackageUris() 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_OptionalPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OptionalPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::RelatedPackageUris() 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_RelatedPackageUris(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RelatedPackageUris(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::ExternalLocationUri() 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_ExternalLocationUri(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExternalLocationUri(&value)); } return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::ExternalLocationUri(winrt::Windows::Foundation::Uri 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->put_ExternalLocationUri(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ExternalLocationUri(*(void**)(&value))); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::StubPackageOption() const { winrt::Windows::Management::Deployment::StubPackageOption 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_StubPackageOption(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StubPackageOption(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::StubPackageOption(winrt::Windows::Management::Deployment::StubPackageOption 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->put_StubPackageOption(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_StubPackageOption(static_cast(value))); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::DeveloperMode() 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_DeveloperMode(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DeveloperMode(&value)); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::DeveloperMode(bool 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->put_DeveloperMode(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DeveloperMode(value)); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::ForceUpdateFromAnyVersion() 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_ForceUpdateFromAnyVersion(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceUpdateFromAnyVersion(&value)); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::ForceUpdateFromAnyVersion(bool 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->put_ForceUpdateFromAnyVersion(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceUpdateFromAnyVersion(value)); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::InstallAllResources() 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_InstallAllResources(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InstallAllResources(&value)); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::InstallAllResources(bool 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->put_InstallAllResources(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_InstallAllResources(value)); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::RequiredContentGroupOnly() 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_RequiredContentGroupOnly(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RequiredContentGroupOnly(&value)); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::RequiredContentGroupOnly(bool 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->put_RequiredContentGroupOnly(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RequiredContentGroupOnly(value)); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::StageInPlace() 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_StageInPlace(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_StageInPlace(&value)); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::StageInPlace(bool 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->put_StageInPlace(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_StageInPlace(value)); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions::AllowUnsigned() 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_AllowUnsigned(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllowUnsigned(&value)); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions::AllowUnsigned(bool 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->put_AllowUnsigned(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AllowUnsigned(value)); } } template auto consume_Windows_Management_Deployment_IStagePackageOptions2::ExpectedDigests() 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_ExpectedDigests(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpectedDigests(&value)); } return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Deployment_IStagePackageOptions3::PackageOperationPriority() const { winrt::Windows::Management::Deployment::PackageOperationPriority 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_PackageOperationPriority(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PackageOperationPriority(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IStagePackageOptions3::PackageOperationPriority(winrt::Windows::Management::Deployment::PackageOperationPriority 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->put_PackageOperationPriority(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PackageOperationPriority(static_cast(value))); } } template auto consume_Windows_Management_Deployment_IUpdateSharedPackageContainerOptions::ForceAppShutdown() 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_ForceAppShutdown(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ForceAppShutdown(&value)); } return value; } template auto consume_Windows_Management_Deployment_IUpdateSharedPackageContainerOptions::ForceAppShutdown(bool 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->put_ForceAppShutdown(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ForceAppShutdown(value)); } } template auto consume_Windows_Management_Deployment_IUpdateSharedPackageContainerOptions::RequirePackagesPresent() 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_RequirePackagesPresent(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RequirePackagesPresent(&value)); } return value; } template auto consume_Windows_Management_Deployment_IUpdateSharedPackageContainerOptions::RequirePackagesPresent(bool 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->put_RequirePackagesPresent(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RequirePackagesPresent(value)); } } template auto consume_Windows_Management_Deployment_IUpdateSharedPackageContainerResult::Status() const { winrt::Windows::Management::Deployment::SharedPackageContainerOperationStatus 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_Status(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Status(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Management_Deployment_IUpdateSharedPackageContainerResult::ExtendedError() const { winrt::hresult 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_ExtendedError(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtendedError(put_abi(value))); } return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DependencyPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DependencyPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetVolume(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetVolume()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetVolume(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetVolume(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptionalPackageFamilyNames(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptionalPackageFamilyNames()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptionalPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptionalPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RelatedPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RelatedPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExternalLocationUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExternalLocationUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExternalLocationUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExternalLocationUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StubPackageOption(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StubPackageOption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StubPackageOption(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StubPackageOption(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeveloperMode(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeveloperMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeveloperMode(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeveloperMode(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceAppShutdown(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceAppShutdown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceAppShutdown(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceAppShutdown(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceTargetAppShutdown(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceTargetAppShutdown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceTargetAppShutdown(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceTargetAppShutdown(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceUpdateFromAnyVersion(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceUpdateFromAnyVersion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceUpdateFromAnyVersion(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceUpdateFromAnyVersion(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstallAllResources(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstallAllResources()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InstallAllResources(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InstallAllResources(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequiredContentGroupOnly(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequiredContentGroupOnly()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequiredContentGroupOnly(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequiredContentGroupOnly(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RetainFilesOnFailure(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RetainFilesOnFailure()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RetainFilesOnFailure(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RetainFilesOnFailure(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StageInPlace(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StageInPlace()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StageInPlace(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StageInPlace(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowUnsigned(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowUnsigned()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowUnsigned(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowUnsigned(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeferRegistrationWhenPackagesAreInUse(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeferRegistrationWhenPackagesAreInUse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeferRegistrationWhenPackagesAreInUse(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeferRegistrationWhenPackagesAreInUse(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExpectedDigests(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpectedDigests()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LimitToExistingPackages(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LimitToExistingPackages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LimitToExistingPackages(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LimitToExistingPackages(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PackageOperationPriority(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageOperationPriority()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PackageOperationPriority(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PackageOperationPriority(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetAutoUpdateSettings(void* packageFamilyName, void* appInstallerInfo) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAutoUpdateSettings(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&appInstallerInfo)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearAutoUpdateSettings(void* packageFamilyName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearAutoUpdateSettings(*reinterpret_cast(&packageFamilyName)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PauseAutoUpdatesUntil(void* packageFamilyName, int64_t dateTime) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PauseAutoUpdatesUntil(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&dateTime)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetForSystem(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForSystem()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Version(struct struct_Windows_ApplicationModel_PackageVersion* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Version()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Version(struct struct_Windows_ApplicationModel_PackageVersion value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Version(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppInstallerUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppInstallerUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppInstallerUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppInstallerUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OnLaunch(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OnLaunch()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OnLaunch(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnLaunch(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoursBetweenUpdateChecks(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoursBetweenUpdateChecks()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HoursBetweenUpdateChecks(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HoursBetweenUpdateChecks(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShowPrompt(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowPrompt()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShowPrompt(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowPrompt(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UpdateBlocksActivation(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UpdateBlocksActivation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UpdateBlocksActivation(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateBlocksActivation(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AutomaticBackgroundTask(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutomaticBackgroundTask()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AutomaticBackgroundTask(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AutomaticBackgroundTask(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceUpdateFromAnyVersion(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceUpdateFromAnyVersion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceUpdateFromAnyVersion(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceUpdateFromAnyVersion(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAutoRepairEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAutoRepairEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAutoRepairEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAutoRepairEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UpdateUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().UpdateUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RepairUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RepairUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DependencyPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DependencyPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptionalPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptionalPackageUris()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromAppInstallerInfo(void* appInstallerInfo, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromAppInstallerInfo(*reinterpret_cast(&appInstallerInfo))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Members(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Members()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceAppShutdown(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceAppShutdown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceAppShutdown(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceAppShutdown(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CreateCollisionOption(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateCollisionOption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CreateCollisionOption(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CreateCollisionOption(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Container(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Container()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedError(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedError()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ForceAppShutdown(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceAppShutdown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceAppShutdown(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceAppShutdown(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllUsers(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllUsers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllUsers(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllUsers(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedError(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedError()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ErrorText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActivityId(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActivityId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedErrorCode(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsRegistered(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsRegistered()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PackageFamilyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageFamilyName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PackageFamilyName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PackageFamilyName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OptionalPackageFamilyNames(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptionalPackageFamilyNames()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProjectionOrderPackageFamilyNames(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ProjectionOrderPackageFamilyNames()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DeferAutomaticRegistration(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeferAutomaticRegistration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeferAutomaticRegistration(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeferAutomaticRegistration(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddPackageAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().AddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdatePackageAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().UpdatePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemovePackageAsync(void* packageFullName, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RemovePackageAsync(*reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StagePackageAsync(void* packageUri, void* dependencyPackageUris, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterPackageAsync(void* manifestUri, void* dependencyPackageUris, uint32_t deploymentOptions, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RegisterPackageAsync(*reinterpret_cast(&manifestUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackages(void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityId(void* userSecurityId, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByNamePublisher(void* packageName, void* packagePublisher, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackages(*reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdNamePublisher(void* userSecurityId, void* packageName, void* packagePublisher, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindUsers(void* packageFullName, void** users) noexcept final try { clear_abi(users); typename D::abi_guard guard(this->shim()); *users = detach_from>(this->shim().FindUsers(*reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPackageState(void* packageFullName, int32_t packageState) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPackageState(*reinterpret_cast(&packageFullName), *reinterpret_cast(&packageState)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackageByPackageFullName(void* packageFullName, void** packageInformation) noexcept final try { clear_abi(packageInformation); typename D::abi_guard guard(this->shim()); *packageInformation = detach_from(this->shim().FindPackage(*reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CleanupPackageForUserAsync(void* packageName, void* userSecurityId, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().CleanupPackageForUserAsync(*reinterpret_cast(&packageName), *reinterpret_cast(&userSecurityId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByPackageFamilyName(void* packageFamilyName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackages(*reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdPackageFamilyName(void* userSecurityId, void* packageFamilyName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackageByUserSecurityIdPackageFullName(void* userSecurityId, void* packageFullName, void** packageInformation) noexcept final try { clear_abi(packageInformation); typename D::abi_guard guard(this->shim()); *packageInformation = detach_from(this->shim().FindPackageForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ProvisionPackageForAllUsersWithOptionsAsync(void* mainPackageFamilyName, void* options, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ProvisionPackageForAllUsersAsync(*reinterpret_cast(&mainPackageFamilyName), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RemovePackageByUriAsync(void* packageUri, void* options, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RemovePackageByUriAsync(*reinterpret_cast(&packageUri), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsPackageRemovalPending(void* packageFullName, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsPackageRemovalPending(*reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsPackageRemovalPendingForUser(void* packageFullName, void* userSecurityId, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsPackageRemovalPendingForUser(*reinterpret_cast(&packageFullName), *reinterpret_cast(&userSecurityId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsPackageRemovalPendingByUri(void* packageUri, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsPackageRemovalPendingByUri(*reinterpret_cast(&packageUri))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsPackageRemovalPendingByUriForUser(void* packageUri, void* userSecurityId, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsPackageRemovalPendingByUriForUser(*reinterpret_cast(&packageUri), *reinterpret_cast(&userSecurityId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RemovePackageWithOptionsAsync(void* packageFullName, uint32_t removalOptions, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RemovePackageAsync(*reinterpret_cast(&packageFullName), *reinterpret_cast(&removalOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StagePackageWithOptionsAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterPackageByFullNameAsync(void* mainPackageFullName, void* dependencyPackageFullNames, uint32_t deploymentOptions, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RegisterPackageByFullNameAsync(*reinterpret_cast(&mainPackageFullName), *reinterpret_cast const*>(&dependencyPackageFullNames), *reinterpret_cast(&deploymentOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesWithPackageTypes(uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdWithPackageTypes(void* userSecurityId, uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByNamePublisherWithPackageTypes(void* packageName, void* packagePublisher, uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher), *reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(void* userSecurityId, void* packageName, void* packagePublisher, uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher), *reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByPackageFamilyNameWithPackageTypes(void* packageFamilyName, uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(void* userSecurityId, void* packageFamilyName, uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFamilyName), *reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StageUserDataAsync(void* packageFullName, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().StageUserDataAsync(*reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddPackageVolumeAsync(void* packageStorePath, void** packageVolume) noexcept final try { clear_abi(packageVolume); typename D::abi_guard guard(this->shim()); *packageVolume = detach_from>(this->shim().AddPackageVolumeAsync(*reinterpret_cast(&packageStorePath))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPackageToVolumeAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void* targetVolume, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().AddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&targetVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearPackageStatus(void* packageFullName, uint32_t status) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearPackageStatus(*reinterpret_cast(&packageFullName), *reinterpret_cast(&status)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterPackageWithAppDataVolumeAsync(void* manifestUri, void* dependencyPackageUris, uint32_t deploymentOptions, void* appDataVolume, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RegisterPackageAsync(*reinterpret_cast(&manifestUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&appDataVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackageVolumeByName(void* volumeName, void** volume) noexcept final try { clear_abi(volume); typename D::abi_guard guard(this->shim()); *volume = detach_from(this->shim().FindPackageVolume(*reinterpret_cast(&volumeName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackageVolumes(void** volumeCollection) noexcept final try { clear_abi(volumeCollection); typename D::abi_guard guard(this->shim()); *volumeCollection = detach_from>(this->shim().FindPackageVolumes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDefaultPackageVolume(void** volume) noexcept final try { clear_abi(volume); typename D::abi_guard guard(this->shim()); *volume = detach_from(this->shim().GetDefaultPackageVolume()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MovePackageToVolumeAsync(void* packageFullName, uint32_t deploymentOptions, void* targetVolume, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().MovePackageToVolumeAsync(*reinterpret_cast(&packageFullName), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&targetVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemovePackageVolumeAsync(void* volume, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RemovePackageVolumeAsync(*reinterpret_cast(&volume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetDefaultPackageVolume(void* volume) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetDefaultPackageVolume(*reinterpret_cast(&volume)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPackageStatus(void* packageFullName, uint32_t status) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPackageStatus(*reinterpret_cast(&packageFullName), *reinterpret_cast(&status)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPackageVolumeOfflineAsync(void* packageVolume, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().SetPackageVolumeOfflineAsync(*reinterpret_cast(&packageVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPackageVolumeOnlineAsync(void* packageVolume, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().SetPackageVolumeOnlineAsync(*reinterpret_cast(&packageVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StagePackageToVolumeAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void* targetVolume, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&targetVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StageUserDataWithOptionsAsync(void* packageFullName, uint32_t deploymentOptions, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().StageUserDataAsync(*reinterpret_cast(&packageFullName), *reinterpret_cast(&deploymentOptions))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetPackageVolumesAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetPackageVolumesAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddPackageToVolumeAndOptionalPackagesAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void* targetVolume, void* optionalPackageFamilyNames, void* externalPackageUris, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().AddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&targetVolume), *reinterpret_cast const*>(&optionalPackageFamilyNames), *reinterpret_cast const*>(&externalPackageUris))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StagePackageToVolumeAndOptionalPackagesAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void* targetVolume, void* optionalPackageFamilyNames, void* externalPackageUris, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&targetVolume), *reinterpret_cast const*>(&optionalPackageFamilyNames), *reinterpret_cast const*>(&externalPackageUris))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterPackageByFamilyNameAndOptionalPackagesAsync(void* mainPackageFamilyName, void* dependencyPackageFamilyNames, uint32_t deploymentOptions, void* appDataVolume, void* optionalPackageFamilyNames, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RegisterPackageByFamilyNameAsync(*reinterpret_cast(&mainPackageFamilyName), *reinterpret_cast const*>(&dependencyPackageFamilyNames), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&appDataVolume), *reinterpret_cast const*>(&optionalPackageFamilyNames))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DebugSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DebugSettings()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ProvisionPackageForAllUsersAsync(void* packageFamilyName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ProvisionPackageForAllUsersAsync(*reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPackageByAppInstallerFileAsync(void* appInstallerFileUri, uint32_t options, void* targetVolume, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().AddPackageByAppInstallerFileAsync(*reinterpret_cast(&appInstallerFileUri), *reinterpret_cast(&options), *reinterpret_cast(&targetVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestAddPackageByAppInstallerFileAsync(void* appInstallerFileUri, uint32_t options, void* targetVolume, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestAddPackageByAppInstallerFileAsync(*reinterpret_cast(&appInstallerFileUri), *reinterpret_cast(&options), *reinterpret_cast(&targetVolume))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPackageToVolumeAndRelatedSetAsync(void* packageUri, void* dependencyPackageUris, uint32_t options, void* targetVolume, void* optionalPackageFamilyNames, void* packageUrisToInstall, void* relatedPackageUris, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().AddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&options), *reinterpret_cast(&targetVolume), *reinterpret_cast const*>(&optionalPackageFamilyNames), *reinterpret_cast const*>(&packageUrisToInstall), *reinterpret_cast const*>(&relatedPackageUris))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StagePackageToVolumeAndRelatedSetAsync(void* packageUri, void* dependencyPackageUris, uint32_t options, void* targetVolume, void* optionalPackageFamilyNames, void* packageUrisToInstall, void* relatedPackageUris, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().StagePackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&options), *reinterpret_cast(&targetVolume), *reinterpret_cast const*>(&optionalPackageFamilyNames), *reinterpret_cast const*>(&packageUrisToInstall), *reinterpret_cast const*>(&relatedPackageUris))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestAddPackageAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void* targetVolume, void* optionalPackageFamilyNames, void* relatedPackageUris, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestAddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&targetVolume), *reinterpret_cast const*>(&optionalPackageFamilyNames), *reinterpret_cast const*>(&relatedPackageUris))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestAddPackageAndRelatedSetAsync(void* packageUri, void* dependencyPackageUris, uint32_t deploymentOptions, void* targetVolume, void* optionalPackageFamilyNames, void* relatedPackageUris, void* packageUrisToInstall, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestAddPackageAsync(*reinterpret_cast(&packageUri), *reinterpret_cast const*>(&dependencyPackageUris), *reinterpret_cast(&deploymentOptions), *reinterpret_cast(&targetVolume), *reinterpret_cast const*>(&optionalPackageFamilyNames), *reinterpret_cast const*>(&relatedPackageUris), *reinterpret_cast const*>(&packageUrisToInstall))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall DeprovisionPackageForAllUsersAsync(void* packageFamilyName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().DeprovisionPackageForAllUsersAsync(*reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindProvisionedPackages(void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindProvisionedPackages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPackageByUriAsync(void* packageUri, void* options, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().AddPackageByUriAsync(*reinterpret_cast(&packageUri), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StagePackageByUriAsync(void* packageUri, void* options, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().StagePackageByUriAsync(*reinterpret_cast(&packageUri), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterPackageByUriAsync(void* manifestUri, void* options, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RegisterPackageByUriAsync(*reinterpret_cast(&manifestUri), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterPackagesByFullNameAsync(void* packageFullNames, void* options, void** deploymentOperation) noexcept final try { clear_abi(deploymentOperation); typename D::abi_guard guard(this->shim()); *deploymentOperation = detach_from>(this->shim().RegisterPackagesByFullNameAsync(*reinterpret_cast const*>(&packageFullNames), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPackageStubPreference(void* packageFamilyName, int32_t useStub) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetPackageStubPreference(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&useStub)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPackageStubPreference(void* packageFamilyName, int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetPackageStubPreference(*reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetContentGroupStateAsync(void* package, void* contentGroupName, int32_t state, void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().SetContentGroupStateAsync(*reinterpret_cast(&package), *reinterpret_cast(&contentGroupName), *reinterpret_cast(&state))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentGroupStateWithPercentageAsync(void* package, void* contentGroupName, int32_t state, double completionPercentage, void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().SetContentGroupStateAsync(*reinterpret_cast(&package), *reinterpret_cast(&contentGroupName), *reinterpret_cast(&state), completionPercentage)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UserSecurityId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserSecurityId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstallState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstallState()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsOffline(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOffline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSystemVolume(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSystemVolume()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MountPoint(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MountPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PackageStorePath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageStorePath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsHardLinks(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsHardLinks()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackages(void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackages()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByNamePublisher(void* packageName, void* packagePublisher, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackages(*reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByPackageFamilyName(void* packageFamilyName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackages(*reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesWithPackageTypes(uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByNamePublisherWithPackagesTypes(uint32_t packageTypes, void* packageName, void* packagePublisher, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageTypes), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByPackageFamilyNameWithPackageTypes(uint32_t packageTypes, void* packageFamilyName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesWithPackageTypes(*reinterpret_cast(&packageTypes), *reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackageByPackageFullName(void* packageFullName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackage(*reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityId(void* userSecurityId, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdNamePublisher(void* userSecurityId, void* packageName, void* packagePublisher, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdPackageFamilyName(void* userSecurityId, void* packageFamilyName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdWithPackageTypes(void* userSecurityId, uint32_t packageTypes, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageTypes))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(void* userSecurityId, uint32_t packageTypes, void* packageName, void* packagePublisher, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageTypes), *reinterpret_cast(&packageName), *reinterpret_cast(&packagePublisher))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes(void* userSecurityId, uint32_t packageTypes, void* packageFamilyName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackagesForUserWithPackageTypes(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageTypes), *reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindPackageByUserSecurityIdPackageFullName(void* userSecurityId, void* packageFullName, void** packageCollection) noexcept final try { clear_abi(packageCollection); typename D::abi_guard guard(this->shim()); *packageCollection = detach_from>(this->shim().FindPackageForUser(*reinterpret_cast(&userSecurityId), *reinterpret_cast(&packageFullName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsFullTrustPackageSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFullTrustPackageSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAppxInstallSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAppxInstallSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAvailableSpaceAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetAvailableSpaceAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DependencyPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DependencyPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppDataVolume(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppDataVolume()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppDataVolume(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppDataVolume(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptionalPackageFamilyNames(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptionalPackageFamilyNames()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExternalLocationUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExternalLocationUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExternalLocationUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExternalLocationUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeveloperMode(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeveloperMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeveloperMode(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeveloperMode(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceAppShutdown(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceAppShutdown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceAppShutdown(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceAppShutdown(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceTargetAppShutdown(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceTargetAppShutdown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceTargetAppShutdown(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceTargetAppShutdown(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceUpdateFromAnyVersion(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceUpdateFromAnyVersion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceUpdateFromAnyVersion(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceUpdateFromAnyVersion(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstallAllResources(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstallAllResources()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InstallAllResources(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InstallAllResources(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StageInPlace(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StageInPlace()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StageInPlace(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StageInPlace(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowUnsigned(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowUnsigned()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowUnsigned(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowUnsigned(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeferRegistrationWhenPackagesAreInUse(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeferRegistrationWhenPackagesAreInUse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeferRegistrationWhenPackagesAreInUse(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeferRegistrationWhenPackagesAreInUse(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExpectedDigests(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpectedDigests()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreserveApplicationData(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreserveApplicationData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreserveApplicationData(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreserveApplicationData(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PreserveRoamableApplicationData(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreserveRoamableApplicationData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreserveRoamableApplicationData(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreserveRoamableApplicationData(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoveForAllUsers(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoveForAllUsers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RemoveForAllUsers(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveForAllUsers(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DeferRemovalWhenPackagesAreInUse(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeferRemovalWhenPackagesAreInUse()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeferRemovalWhenPackagesAreInUse(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeferRemovalWhenPackagesAreInUse(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } 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 GetMembers(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMembers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemovePackageFamily(void* packageFamilyName, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RemovePackageFamily(*reinterpret_cast(&packageFamilyName), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResetData(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ResetData()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateContainer(void* name, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateContainer(*reinterpret_cast(&name), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteContainer(void* id, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DeleteContainer(*reinterpret_cast(&id), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetContainer(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetContainer(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindContainers(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindContainers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindContainersWithOptions(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindContainers(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetForUser(void* userSid, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUser(*reinterpret_cast(&userSid))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetForProvisioning(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForProvisioning()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PackageFamilyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageFamilyName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* packageFamilyName, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&packageFamilyName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DependencyPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DependencyPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetVolume(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetVolume()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetVolume(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetVolume(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptionalPackageFamilyNames(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptionalPackageFamilyNames()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptionalPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptionalPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RelatedPackageUris(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RelatedPackageUris()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExternalLocationUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExternalLocationUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExternalLocationUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExternalLocationUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StubPackageOption(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StubPackageOption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StubPackageOption(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StubPackageOption(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeveloperMode(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeveloperMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DeveloperMode(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeveloperMode(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ForceUpdateFromAnyVersion(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceUpdateFromAnyVersion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceUpdateFromAnyVersion(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceUpdateFromAnyVersion(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstallAllResources(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstallAllResources()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_InstallAllResources(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InstallAllResources(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequiredContentGroupOnly(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequiredContentGroupOnly()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequiredContentGroupOnly(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequiredContentGroupOnly(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StageInPlace(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StageInPlace()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StageInPlace(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StageInPlace(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowUnsigned(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowUnsigned()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowUnsigned(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowUnsigned(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExpectedDigests(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExpectedDigests()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PackageOperationPriority(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageOperationPriority()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PackageOperationPriority(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PackageOperationPriority(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ForceAppShutdown(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ForceAppShutdown()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ForceAppShutdown(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ForceAppShutdown(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequirePackagesPresent(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequirePackagesPresent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequirePackagesPresent(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequirePackagesPresent(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedError(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedError()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Management::Deployment { constexpr auto operator|(AddPackageByAppInstallerOptions const left, AddPackageByAppInstallerOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(AddPackageByAppInstallerOptions& left, AddPackageByAppInstallerOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(AddPackageByAppInstallerOptions const left, AddPackageByAppInstallerOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(AddPackageByAppInstallerOptions& left, AddPackageByAppInstallerOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(AddPackageByAppInstallerOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(AddPackageByAppInstallerOptions const left, AddPackageByAppInstallerOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(AddPackageByAppInstallerOptions& left, AddPackageByAppInstallerOptions const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(DeploymentOptions const left, DeploymentOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(DeploymentOptions& left, DeploymentOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(DeploymentOptions const left, DeploymentOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(DeploymentOptions& left, DeploymentOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(DeploymentOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(DeploymentOptions const left, DeploymentOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(DeploymentOptions& left, DeploymentOptions const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(PackageStatus const left, PackageStatus const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(PackageStatus& left, PackageStatus const right) noexcept { left = left | right; return left; } constexpr auto operator&(PackageStatus const left, PackageStatus const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(PackageStatus& left, PackageStatus const right) noexcept { left = left & right; return left; } constexpr auto operator~(PackageStatus const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(PackageStatus const left, PackageStatus const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(PackageStatus& left, PackageStatus const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(PackageTypes const left, PackageTypes const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(PackageTypes& left, PackageTypes const right) noexcept { left = left | right; return left; } constexpr auto operator&(PackageTypes const left, PackageTypes const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(PackageTypes& left, PackageTypes const right) noexcept { left = left & right; return left; } constexpr auto operator~(PackageTypes const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(PackageTypes const left, PackageTypes const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(PackageTypes& left, PackageTypes const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(RemovalOptions const left, RemovalOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(RemovalOptions& left, RemovalOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(RemovalOptions const left, RemovalOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(RemovalOptions& left, RemovalOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(RemovalOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(RemovalOptions const left, RemovalOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(RemovalOptions& left, RemovalOptions const right) noexcept { left = left ^ right; return left; } inline AddPackageOptions::AddPackageOptions() : AddPackageOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto AppInstallerManager::GetDefault() { return impl::call_factory_cast([](IAppInstallerManagerStatics const& f) { return f.GetDefault(); }); } inline auto AppInstallerManager::GetForSystem() { return impl::call_factory_cast([](IAppInstallerManagerStatics const& f) { return f.GetForSystem(); }); } inline AutoUpdateSettingsOptions::AutoUpdateSettingsOptions() : AutoUpdateSettingsOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto AutoUpdateSettingsOptions::CreateFromAppInstallerInfo(winrt::Windows::ApplicationModel::AppInstallerInfo const& appInstallerInfo) { return impl::call_factory([&](IAutoUpdateSettingsOptionsStatics const& f) { return f.CreateFromAppInstallerInfo(appInstallerInfo); }); } inline CreateSharedPackageContainerOptions::CreateSharedPackageContainerOptions() : CreateSharedPackageContainerOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline DeleteSharedPackageContainerOptions::DeleteSharedPackageContainerOptions() : DeleteSharedPackageContainerOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline FindSharedPackageContainerOptions::FindSharedPackageContainerOptions() : FindSharedPackageContainerOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline PackageAllUserProvisioningOptions::PackageAllUserProvisioningOptions() : PackageAllUserProvisioningOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline PackageManager::PackageManager() : PackageManager(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline RegisterPackageOptions::RegisterPackageOptions() : RegisterPackageOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline RemovePackageOptions::RemovePackageOptions() : RemovePackageOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto SharedPackageContainerManager::GetDefault() { return impl::call_factory_cast([](ISharedPackageContainerManagerStatics const& f) { return f.GetDefault(); }); } inline auto SharedPackageContainerManager::GetForUser(param::hstring const& userSid) { return impl::call_factory([&](ISharedPackageContainerManagerStatics const& f) { return f.GetForUser(userSid); }); } inline auto SharedPackageContainerManager::GetForProvisioning() { return impl::call_factory_cast([](ISharedPackageContainerManagerStatics const& f) { return f.GetForProvisioning(); }); } inline SharedPackageContainerMember::SharedPackageContainerMember(param::hstring const& packageFamilyName) : SharedPackageContainerMember(impl::call_factory([&](ISharedPackageContainerMemberFactory const& f) { return f.CreateInstance(packageFamilyName); })) { } inline StagePackageOptions::StagePackageOptions() : StagePackageOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline UpdateSharedPackageContainerOptions::UpdateSharedPackageContainerOptions() : UpdateSharedPackageContainerOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } 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 {}; 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 {}; 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