// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_H #define WINRT_Windows_ApplicationModel_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/impl/Windows.ApplicationModel.Activation.2.h" #include "winrt/impl/Windows.ApplicationModel.Core.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.ApplicationModel.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_IAppDisplayInfo::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppDisplayInfo)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppDisplayInfo::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppDisplayInfo)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppDisplayInfo::GetLogo(winrt::Windows::Foundation::Size const& size) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppDisplayInfo)->GetLogo(impl::bind_in(size), &value)); return winrt::Windows::Storage::Streams::RandomAccessStreamReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfo::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfo)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfo::AppUserModelId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfo)->get_AppUserModelId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfo::DisplayInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfo)->get_DisplayInfo(&value)); return winrt::Windows::ApplicationModel::AppDisplayInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfo::PackageFamilyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfo)->get_PackageFamilyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfo2::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfo2)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfo3::ExecutionContext() const { winrt::Windows::ApplicationModel::AppExecutionContext value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfo3)->get_ExecutionContext(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IAppInfo4::SupportedFileExtensions() const { uint32_t value_impl_size{}; void** value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfo4)->get_SupportedFileExtensions(&value_impl_size, &value)); return com_array{ value, value_impl_size, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfoStatics::Current() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfoStatics)->get_Current(&value)); return winrt::Windows::ApplicationModel::AppInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfoStatics::GetFromAppUserModelId(param::hstring const& appUserModelId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfoStatics)->GetFromAppUserModelId(*(void**)(&appUserModelId), &result)); return winrt::Windows::ApplicationModel::AppInfo{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInfoStatics::GetFromAppUserModelIdForUser(winrt::Windows::System::User const& user, param::hstring const& appUserModelId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInfoStatics)->GetFromAppUserModelIdForUser(*(void**)(&user), *(void**)(&appUserModelId), &result)); return winrt::Windows::ApplicationModel::AppInfo{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::OnLaunch() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_OnLaunch(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::HoursBetweenUpdateChecks() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_HoursBetweenUpdateChecks(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::ShowPrompt() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_ShowPrompt(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::UpdateBlocksActivation() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_UpdateBlocksActivation(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::AutomaticBackgroundTask() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_AutomaticBackgroundTask(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::ForceUpdateFromAnyVersion() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_ForceUpdateFromAnyVersion(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::IsAutoRepairEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_IsAutoRepairEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::Version() const { winrt::Windows::ApplicationModel::PackageVersion value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_Version(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::LastChecked() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_LastChecked(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::PausedUntil() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_PausedUntil(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::UpdateUris() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_UpdateUris(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::RepairUris() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_RepairUris(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::DependencyPackageUris() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_DependencyPackageUris(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::OptionalPackageUris() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_OptionalPackageUris(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstallerInfo2::PolicySource() const { winrt::Windows::ApplicationModel::AppInstallerPolicySource value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstallerInfo2)->get_PolicySource(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IAppInstance::Key() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstance)->get_Key(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstance::IsCurrentInstance() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstance)->get_IsCurrentInstance(&value)); return value; } template auto consume_Windows_ApplicationModel_IAppInstance::RedirectActivationTo() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstance)->RedirectActivationTo()); } template auto consume_Windows_ApplicationModel_IAppInstanceStatics::RecommendedInstance() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstanceStatics)->get_RecommendedInstance(&value)); return winrt::Windows::ApplicationModel::AppInstance{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstanceStatics::GetActivatedEventArgs() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstanceStatics)->GetActivatedEventArgs(&result)); return winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstanceStatics::FindOrRegisterInstanceForKey(param::hstring const& key) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstanceStatics)->FindOrRegisterInstanceForKey(*(void**)(&key), &result)); return winrt::Windows::ApplicationModel::AppInstance{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IAppInstanceStatics::Unregister() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstanceStatics)->Unregister()); } template auto consume_Windows_ApplicationModel_IAppInstanceStatics::GetInstances() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IAppInstanceStatics)->GetInstances(&result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IDesignModeStatics::DesignModeEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IDesignModeStatics)->get_DesignModeEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_IDesignModeStatics2::DesignMode2Enabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IDesignModeStatics2)->get_DesignMode2Enabled(&value)); return value; } template auto consume_Windows_ApplicationModel_IEnteredBackgroundEventArgs::GetDeferral() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IEnteredBackgroundEventArgs)->GetDeferral(&value)); return winrt::Windows::Foundation::Deferral{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::Relationship() const { winrt::Windows::ApplicationModel::PackageRelationship value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->get_Relationship(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::Relationship(winrt::Windows::ApplicationModel::PackageRelationship const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->put_Relationship(static_cast(value))); } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeFrameworks() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->get_IncludeFrameworks(&value)); return value; } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeFrameworks(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->put_IncludeFrameworks(value)); } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeHostRuntimes() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->get_IncludeHostRuntimes(&value)); return value; } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeHostRuntimes(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->put_IncludeHostRuntimes(value)); } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeOptionals() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->get_IncludeOptionals(&value)); return value; } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeOptionals(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->put_IncludeOptionals(value)); } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeResources() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->get_IncludeResources(&value)); return value; } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptions::IncludeResources(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptions)->put_IncludeResources(value)); } template auto consume_Windows_ApplicationModel_IFindRelatedPackagesOptionsFactory::CreateInstance(winrt::Windows::ApplicationModel::PackageRelationship const& Relationship) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFindRelatedPackagesOptionsFactory)->CreateInstance(static_cast(Relationship), &value)); return winrt::Windows::ApplicationModel::FindRelatedPackagesOptions{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLaunchResult::LaunchResult() const { winrt::Windows::ApplicationModel::FullTrustLaunchResult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLaunchResult)->get_LaunchResult(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLaunchResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLaunchResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForCurrentAppAsync() const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLauncherStatics)->LaunchFullTrustProcessForCurrentAppAsync(&asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForCurrentAppAsync(param::hstring const& parameterGroupId) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLauncherStatics)->LaunchFullTrustProcessForCurrentAppWithParametersAsync(*(void**)(¶meterGroupId), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForAppAsync(param::hstring const& fullTrustPackageRelativeAppId) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLauncherStatics)->LaunchFullTrustProcessForAppAsync(*(void**)(&fullTrustPackageRelativeAppId), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLauncherStatics::LaunchFullTrustProcessForAppAsync(param::hstring const& fullTrustPackageRelativeAppId, param::hstring const& parameterGroupId) const { void* asyncAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLauncherStatics)->LaunchFullTrustProcessForAppWithParametersAsync(*(void**)(&fullTrustPackageRelativeAppId), *(void**)(¶meterGroupId), &asyncAction)); return winrt::Windows::Foundation::IAsyncAction{ asyncAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLauncherStatics2::LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(param::hstring const& commandLine) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLauncherStatics2)->LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(*(void**)(&commandLine), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IFullTrustProcessLauncherStatics2::LaunchFullTrustProcessForAppWithArgumentsAsync(param::hstring const& fullTrustPackageRelativeAppId, param::hstring const& commandLine) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IFullTrustProcessLauncherStatics2)->LaunchFullTrustProcessForAppWithArgumentsAsync(*(void**)(&fullTrustPackageRelativeAppId), *(void**)(&commandLine), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ILeavingBackgroundEventArgs::GetDeferral() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ILeavingBackgroundEventArgs)->GetDeferral(&value)); return winrt::Windows::Foundation::Deferral{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ILimitedAccessFeatureRequestResult::FeatureId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ILimitedAccessFeatureRequestResult)->get_FeatureId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ILimitedAccessFeatureRequestResult::Status() const { winrt::Windows::ApplicationModel::LimitedAccessFeatureStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ILimitedAccessFeatureRequestResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ILimitedAccessFeatureRequestResult::EstimatedRemovalDate() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ILimitedAccessFeatureRequestResult)->get_EstimatedRemovalDate(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ILimitedAccessFeaturesStatics::TryUnlockFeature(param::hstring const& featureId, param::hstring const& token, param::hstring const& attestation) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ILimitedAccessFeaturesStatics)->TryUnlockFeature(*(void**)(&featureId), *(void**)(&token), *(void**)(&attestation), &result)); return winrt::Windows::ApplicationModel::LimitedAccessFeatureRequestResult{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage)->get_Id(&value)); return winrt::Windows::ApplicationModel::PackageId{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage::InstalledLocation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage)->get_InstalledLocation(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage::IsFramework() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage)->get_IsFramework(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackage::Dependencies() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage)->get_Dependencies(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage2::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage2)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage2::PublisherDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage2)->get_PublisherDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage2::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage2)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage2::Logo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage2)->get_Logo(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage2::IsResourcePackage() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage2)->get_IsResourcePackage(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackage2::IsBundle() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage2)->get_IsBundle(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackage2::IsDevelopmentMode() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage2)->get_IsDevelopmentMode(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackage3::Status() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage3)->get_Status(&value)); return winrt::Windows::ApplicationModel::PackageStatus{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage3::InstalledDate() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage3)->get_InstalledDate(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackage3::GetAppListEntriesAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage3)->GetAppListEntriesAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage4::SignatureKind() const { winrt::Windows::ApplicationModel::PackageSignatureKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage4)->get_SignatureKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IPackage4::IsOptional() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage4)->get_IsOptional(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackage4::VerifyContentIntegrityAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage4)->VerifyContentIntegrityAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage5::GetContentGroupsAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage5)->GetContentGroupsAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage5::GetContentGroupAsync(param::hstring const& name) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage5)->GetContentGroupAsync(*(void**)(&name), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage5::StageContentGroupsAsync(param::async_iterable const& names) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage5)->StageContentGroupsAsync(*(void**)(&names), &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage5::StageContentGroupsAsync(param::async_iterable const& names, bool moveToHeadOfQueue) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage5)->StageContentGroupsWithPriorityAsync(*(void**)(&names), moveToHeadOfQueue, &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage5::SetInUseAsync(bool inUse) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage5)->SetInUseAsync(inUse, &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage6::GetAppInstallerInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage6)->GetAppInstallerInfo(&value)); return winrt::Windows::ApplicationModel::AppInstallerInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage6::CheckUpdateAvailabilityAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage6)->CheckUpdateAvailabilityAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage7::MutableLocation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage7)->get_MutableLocation(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage7::EffectiveLocation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage7)->get_EffectiveLocation(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::EffectiveExternalLocation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_EffectiveExternalLocation(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::MachineExternalLocation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_MachineExternalLocation(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::UserExternalLocation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_UserExternalLocation(&value)); return winrt::Windows::Storage::StorageFolder{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::InstalledPath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_InstalledPath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::MutablePath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_MutablePath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::EffectivePath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_EffectivePath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::EffectiveExternalPath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_EffectiveExternalPath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::MachineExternalPath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_MachineExternalPath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::UserExternalPath() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_UserExternalPath(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::GetLogoAsRandomAccessStreamReference(winrt::Windows::Foundation::Size const& size) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->GetLogoAsRandomAccessStreamReference(impl::bind_in(size), &result)); return winrt::Windows::Storage::Streams::RandomAccessStreamReference{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::GetAppListEntries() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->GetAppListEntries(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage8::IsStub() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage8)->get_IsStub(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackage9::FindRelatedPackages(winrt::Windows::ApplicationModel::FindRelatedPackagesOptions const& options) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage9)->FindRelatedPackages(*(void**)(&options), &result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackage9::SourceUriSchemeName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackage9)->get_SourceUriSchemeName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageStaging(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->add_PackageStaging(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageStaging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PackageStaging(handler)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageStaging(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->remove_PackageStaging(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageInstalling(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->add_PackageInstalling(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageInstalling(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PackageInstalling(handler)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageInstalling(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->remove_PackageInstalling(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageUpdating(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->add_PackageUpdating(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageUpdating(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PackageUpdating(handler)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageUpdating(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->remove_PackageUpdating(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageUninstalling(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->add_PackageUninstalling(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageUninstalling(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PackageUninstalling(handler)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageUninstalling(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->remove_PackageUninstalling(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageStatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->add_PackageStatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageStatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PackageStatusChanged(handler)); } template auto consume_Windows_ApplicationModel_IPackageCatalog::PackageStatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog)->remove_PackageStatusChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_IPackageCatalog2::PackageContentGroupStaging(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog2)->add_PackageContentGroupStaging(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_IPackageCatalog2::PackageContentGroupStaging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PackageContentGroupStaging(handler)); } template auto consume_Windows_ApplicationModel_IPackageCatalog2::PackageContentGroupStaging(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog2)->remove_PackageContentGroupStaging(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_IPackageCatalog2::AddOptionalPackageAsync(param::hstring const& optionalPackageFamilyName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog2)->AddOptionalPackageAsync(*(void**)(&optionalPackageFamilyName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalog3::RemoveOptionalPackagesAsync(param::async_iterable const& optionalPackageFamilyNames) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog3)->RemoveOptionalPackagesAsync(*(void**)(&optionalPackageFamilyNames), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalog4::AddResourcePackageAsync(param::hstring const& resourcePackageFamilyName, param::hstring const& resourceID, winrt::Windows::ApplicationModel::AddResourcePackageOptions const& options) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog4)->AddResourcePackageAsync(*(void**)(&resourcePackageFamilyName), *(void**)(&resourceID), static_cast(options), &operation)); return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalog4::RemoveResourcePackagesAsync(param::async_iterable const& resourcePackages) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalog4)->RemoveResourcePackagesAsync(*(void**)(&resourcePackages), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalogAddOptionalPackageResult::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogAddOptionalPackageResult)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalogAddOptionalPackageResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogAddOptionalPackageResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageCatalogAddResourcePackageResult::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogAddResourcePackageResult)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalogAddResourcePackageResult::IsComplete() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogAddResourcePackageResult)->get_IsComplete(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageCatalogAddResourcePackageResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogAddResourcePackageResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageCatalogRemoveOptionalPackagesResult::PackagesRemoved() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogRemoveOptionalPackagesResult)->get_PackagesRemoved(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalogRemoveOptionalPackagesResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogRemoveOptionalPackagesResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageCatalogRemoveResourcePackagesResult::PackagesRemoved() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogRemoveResourcePackagesResult)->get_PackagesRemoved(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalogRemoveResourcePackagesResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogRemoveResourcePackagesResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageCatalogStatics::OpenForCurrentPackage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogStatics)->OpenForCurrentPackage(&value)); return winrt::Windows::ApplicationModel::PackageCatalog{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalogStatics::OpenForCurrentUser() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogStatics)->OpenForCurrentUser(&value)); return winrt::Windows::ApplicationModel::PackageCatalog{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageCatalogStatics2::OpenForPackage(winrt::Windows::ApplicationModel::Package const& package) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageCatalogStatics2)->OpenForPackage(*(void**)(&package), &result)); return winrt::Windows::ApplicationModel::PackageCatalog{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageContentGroup::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroup)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageContentGroup::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroup)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageContentGroup::State() const { winrt::Windows::ApplicationModel::PackageContentGroupState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroup)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IPackageContentGroup::IsRequired() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroup)->get_IsRequired(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStagingEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStagingEventArgs)->get_ActivityId(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStagingEventArgs::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStagingEventArgs)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStagingEventArgs::Progress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStagingEventArgs)->get_Progress(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStagingEventArgs::IsComplete() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStagingEventArgs)->get_IsComplete(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStagingEventArgs::ErrorCode() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStagingEventArgs)->get_ErrorCode(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStagingEventArgs::ContentGroupName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStagingEventArgs)->get_ContentGroupName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStagingEventArgs::IsContentGroupRequired() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStagingEventArgs)->get_IsContentGroupRequired(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageContentGroupStatics::RequiredGroupName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageContentGroupStatics)->get_RequiredGroupName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageId::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageId::Version() const { winrt::Windows::ApplicationModel::PackageVersion value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_Version(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageId::Architecture() const { winrt::Windows::System::ProcessorArchitecture value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_Architecture(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IPackageId::ResourceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_ResourceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageId::Publisher() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_Publisher(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageId::PublisherId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_PublisherId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageId::FullName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_FullName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageId::FamilyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageId)->get_FamilyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageIdWithMetadata::ProductId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageIdWithMetadata)->get_ProductId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageIdWithMetadata::Author() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageIdWithMetadata)->get_Author(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageInstallingEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageInstallingEventArgs)->get_ActivityId(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageInstallingEventArgs::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageInstallingEventArgs)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageInstallingEventArgs::Progress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageInstallingEventArgs)->get_Progress(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageInstallingEventArgs::IsComplete() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageInstallingEventArgs)->get_IsComplete(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageInstallingEventArgs::ErrorCode() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageInstallingEventArgs)->get_ErrorCode(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageStagingEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStagingEventArgs)->get_ActivityId(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageStagingEventArgs::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStagingEventArgs)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageStagingEventArgs::Progress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStagingEventArgs)->get_Progress(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStagingEventArgs::IsComplete() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStagingEventArgs)->get_IsComplete(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStagingEventArgs::ErrorCode() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStagingEventArgs)->get_ErrorCode(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageStatics::Current() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatics)->get_Current(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageStatus::VerifyIsOK() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->VerifyIsOK(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::NotAvailable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_NotAvailable(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::PackageOffline() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_PackageOffline(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::DataOffline() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_DataOffline(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::Disabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_Disabled(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::NeedsRemediation() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_NeedsRemediation(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::LicenseIssue() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_LicenseIssue(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::Modified() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_Modified(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::Tampered() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_Tampered(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::DependencyIssue() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_DependencyIssue(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::Servicing() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_Servicing(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus::DeploymentInProgress() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus)->get_DeploymentInProgress(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatus2::IsPartiallyStaged() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatus2)->get_IsPartiallyStaged(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageStatusChangedEventArgs::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageStatusChangedEventArgs)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageUninstallingEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUninstallingEventArgs)->get_ActivityId(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageUninstallingEventArgs::Package() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUninstallingEventArgs)->get_Package(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageUninstallingEventArgs::Progress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUninstallingEventArgs)->get_Progress(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageUninstallingEventArgs::IsComplete() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUninstallingEventArgs)->get_IsComplete(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageUninstallingEventArgs::ErrorCode() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUninstallingEventArgs)->get_ErrorCode(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageUpdateAvailabilityResult::Availability() const { winrt::Windows::ApplicationModel::PackageUpdateAvailability value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdateAvailabilityResult)->get_Availability(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IPackageUpdateAvailabilityResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdateAvailabilityResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageUpdatingEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdatingEventArgs)->get_ActivityId(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageUpdatingEventArgs::SourcePackage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdatingEventArgs)->get_SourcePackage(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageUpdatingEventArgs::TargetPackage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdatingEventArgs)->get_TargetPackage(&value)); return winrt::Windows::ApplicationModel::Package{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageUpdatingEventArgs::Progress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdatingEventArgs)->get_Progress(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageUpdatingEventArgs::IsComplete() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdatingEventArgs)->get_IsComplete(&value)); return value; } template auto consume_Windows_ApplicationModel_IPackageUpdatingEventArgs::ErrorCode() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageUpdatingEventArgs)->get_ErrorCode(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageWithMetadata::InstallDate() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageWithMetadata)->get_InstallDate(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_IPackageWithMetadata::GetThumbnailToken() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageWithMetadata)->GetThumbnailToken(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IPackageWithMetadata::Launch(param::hstring const& parameters) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IPackageWithMetadata)->Launch(*(void**)(¶meters))); } template auto consume_Windows_ApplicationModel_IStartupTask::RequestEnableAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IStartupTask)->RequestEnableAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IStartupTask::Disable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IStartupTask)->Disable()); } template auto consume_Windows_ApplicationModel_IStartupTask::State() const { winrt::Windows::ApplicationModel::StartupTaskState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IStartupTask)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_IStartupTask::TaskId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IStartupTask)->get_TaskId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IStartupTaskStatics::GetForCurrentPackageAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IStartupTaskStatics)->GetForCurrentPackageAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_IStartupTaskStatics::GetAsync(param::hstring const& taskId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::IStartupTaskStatics)->GetAsync(*(void**)(&taskId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ISuspendingDeferral::Complete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ISuspendingDeferral)->Complete()); } template auto consume_Windows_ApplicationModel_ISuspendingEventArgs::SuspendingOperation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ISuspendingEventArgs)->get_SuspendingOperation(&value)); return winrt::Windows::ApplicationModel::SuspendingOperation{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ISuspendingOperation::GetDeferral() const { void* deferral{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ISuspendingOperation)->GetDeferral(&deferral)); return winrt::Windows::ApplicationModel::SuspendingDeferral{ deferral, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ISuspendingOperation::Deadline() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ISuspendingOperation)->get_Deadline(put_abi(value))); return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Description(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetLogo(winrt::Windows::Foundation::Size size, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetLogo(*reinterpret_cast(&size))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppUserModelId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppUserModelId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayInfo()); 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExecutionContext(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExecutionContext()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SupportedFileExtensions(uint32_t* __valueSize, void*** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); std::tie(*__valueSize, *value) = detach_abi(this->shim().SupportedFileExtensions()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Current(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Current()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFromAppUserModelId(void* appUserModelId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetFromAppUserModelId(*reinterpret_cast(&appUserModelId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFromAppUserModelIdForUser(void* user, void* appUserModelId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetFromAppUserModelIdForUser(*reinterpret_cast(&user), *reinterpret_cast(&appUserModelId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 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 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 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 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 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 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 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 get_LastChecked(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastChecked()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PausedUntil(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PausedUntil()); 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(); } int32_t __stdcall get_PolicySource(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PolicySource()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Key(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Key()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCurrentInstance(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCurrentInstance()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RedirectActivationTo() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RedirectActivationTo(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RecommendedInstance(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RecommendedInstance()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetActivatedEventArgs(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetActivatedEventArgs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindOrRegisterInstanceForKey(void* key, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FindOrRegisterInstanceForKey(*reinterpret_cast(&key))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Unregister() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Unregister(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetInstances(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetInstances()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DesignModeEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesignModeEnabled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DesignMode2Enabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesignMode2Enabled()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall GetDeferral(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Relationship(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Relationship()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Relationship(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Relationship(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncludeFrameworks(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncludeFrameworks()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncludeFrameworks(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncludeFrameworks(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncludeHostRuntimes(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncludeHostRuntimes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncludeHostRuntimes(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncludeHostRuntimes(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncludeOptionals(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncludeOptionals()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncludeOptionals(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncludeOptionals(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IncludeResources(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IncludeResources()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IncludeResources(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IncludeResources(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(int32_t Relationship, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&Relationship))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LaunchResult(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LaunchResult()); 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 LaunchFullTrustProcessForCurrentAppAsync(void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().LaunchFullTrustProcessForCurrentAppAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LaunchFullTrustProcessForCurrentAppWithParametersAsync(void* parameterGroupId, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().LaunchFullTrustProcessForCurrentAppAsync(*reinterpret_cast(¶meterGroupId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LaunchFullTrustProcessForAppAsync(void* fullTrustPackageRelativeAppId, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().LaunchFullTrustProcessForAppAsync(*reinterpret_cast(&fullTrustPackageRelativeAppId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LaunchFullTrustProcessForAppWithParametersAsync(void* fullTrustPackageRelativeAppId, void* parameterGroupId, void** asyncAction) noexcept final try { clear_abi(asyncAction); typename D::abi_guard guard(this->shim()); *asyncAction = detach_from(this->shim().LaunchFullTrustProcessForAppAsync(*reinterpret_cast(&fullTrustPackageRelativeAppId), *reinterpret_cast(¶meterGroupId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(void* commandLine, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(*reinterpret_cast(&commandLine))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LaunchFullTrustProcessForAppWithArgumentsAsync(void* fullTrustPackageRelativeAppId, void* commandLine, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().LaunchFullTrustProcessForAppWithArgumentsAsync(*reinterpret_cast(&fullTrustPackageRelativeAppId), *reinterpret_cast(&commandLine))); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall GetDeferral(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FeatureId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FeatureId()); 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_EstimatedRemovalDate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().EstimatedRemovalDate()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryUnlockFeature(void* featureId, void* token, void* attestation, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryUnlockFeature(*reinterpret_cast(&featureId), *reinterpret_cast(&token), *reinterpret_cast(&attestation))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstalledLocation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstalledLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsFramework(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFramework()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Dependencies(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Dependencies()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PublisherDisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PublisherDisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Description(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Logo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Logo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsResourcePackage(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsResourcePackage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsBundle(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsBundle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDevelopmentMode(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDevelopmentMode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstalledDate(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstalledDate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppListEntriesAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetAppListEntriesAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SignatureKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignatureKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOptional(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOptional()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall VerifyContentIntegrityAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().VerifyContentIntegrityAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetContentGroupsAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetContentGroupsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetContentGroupAsync(void* name, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetContentGroupAsync(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StageContentGroupsAsync(void* names, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().StageContentGroupsAsync(*reinterpret_cast const*>(&names))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StageContentGroupsWithPriorityAsync(void* names, bool moveToHeadOfQueue, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().StageContentGroupsAsync(*reinterpret_cast const*>(&names), moveToHeadOfQueue)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetInUseAsync(bool inUse, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SetInUseAsync(inUse)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetAppInstallerInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetAppInstallerInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CheckUpdateAvailabilityAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CheckUpdateAvailabilityAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MutableLocation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MutableLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EffectiveLocation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectiveLocation()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EffectiveExternalLocation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectiveExternalLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MachineExternalLocation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MachineExternalLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserExternalLocation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserExternalLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstalledPath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstalledPath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MutablePath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MutablePath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EffectivePath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectivePath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EffectiveExternalPath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectiveExternalPath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MachineExternalPath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MachineExternalPath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserExternalPath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserExternalPath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetLogoAsRandomAccessStreamReference(winrt::Windows::Foundation::Size size, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetLogoAsRandomAccessStreamReference(*reinterpret_cast(&size))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppListEntries(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAppListEntries()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsStub(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsStub()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindRelatedPackages(void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FindRelatedPackages(*reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceUriSchemeName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceUriSchemeName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_PackageStaging(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PackageStaging(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PackageStaging(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PackageStaging(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PackageInstalling(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PackageInstalling(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PackageInstalling(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PackageInstalling(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PackageUpdating(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PackageUpdating(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PackageUpdating(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PackageUpdating(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PackageUninstalling(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PackageUninstalling(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PackageUninstalling(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PackageUninstalling(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PackageStatusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PackageStatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PackageStatusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PackageStatusChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_PackageContentGroupStaging(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PackageContentGroupStaging(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PackageContentGroupStaging(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PackageContentGroupStaging(*reinterpret_cast(&token)); return 0; } int32_t __stdcall AddOptionalPackageAsync(void* optionalPackageFamilyName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().AddOptionalPackageAsync(*reinterpret_cast(&optionalPackageFamilyName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RemoveOptionalPackagesAsync(void* optionalPackageFamilyNames, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RemoveOptionalPackagesAsync(*reinterpret_cast const*>(&optionalPackageFamilyNames))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall AddResourcePackageAsync(void* resourcePackageFamilyName, void* resourceID, uint32_t options, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().AddResourcePackageAsync(*reinterpret_cast(&resourcePackageFamilyName), *reinterpret_cast(&resourceID), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveResourcePackagesAsync(void* resourcePackages, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RemoveResourcePackagesAsync(*reinterpret_cast const*>(&resourcePackages))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); 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_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsComplete(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsComplete()); 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_PackagesRemoved(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PackagesRemoved()); 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_PackagesRemoved(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PackagesRemoved()); 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 OpenForCurrentPackage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpenForCurrentPackage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OpenForCurrentUser(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpenForCurrentUser()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall OpenForPackage(void* package, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().OpenForPackage(*reinterpret_cast(&package))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); 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_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsRequired(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsRequired()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Progress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Progress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsComplete(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsComplete()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentGroupName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentGroupName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsContentGroupRequired(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsContentGroupRequired()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RequiredGroupName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequiredGroupName()); 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_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 get_Architecture(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Architecture()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResourceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResourceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Publisher(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Publisher()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PublisherId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PublisherId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FullName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FullName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FamilyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FamilyName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProductId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProductId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Author(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Author()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Progress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Progress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsComplete(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsComplete()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Progress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Progress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsComplete(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsComplete()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Current(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Current()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall VerifyIsOK(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerifyIsOK()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NotAvailable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NotAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PackageOffline(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PackageOffline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DataOffline(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataOffline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Disabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Disabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NeedsRemediation(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NeedsRemediation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LicenseIssue(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LicenseIssue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Modified(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Modified()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tampered(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tampered()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DependencyIssue(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DependencyIssue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Servicing(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Servicing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeploymentInProgress(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeploymentInProgress()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsPartiallyStaged(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPartiallyStaged()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_Package(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Package()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Progress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Progress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsComplete(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsComplete()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Availability(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Availability()); 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_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_SourcePackage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourcePackage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetPackage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetPackage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Progress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Progress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsComplete(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsComplete()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorCode(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_InstallDate(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstallDate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetThumbnailToken(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetThumbnailToken()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Launch(void* parameters) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Launch(*reinterpret_cast(¶meters)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestEnableAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestEnableAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Disable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Disable(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TaskId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TaskId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentPackageAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetForCurrentPackageAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAsync(void* taskId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetAsync(*reinterpret_cast(&taskId))); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall Complete() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Complete(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_SuspendingOperation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuspendingOperation()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GetDeferral(void** deferral) noexcept final try { clear_abi(deferral); typename D::abi_guard guard(this->shim()); *deferral = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Deadline(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Deadline()); return 0; } catch (...) { return to_hresult(); } }; } WINRT_EXPORT namespace winrt::Windows::ApplicationModel { constexpr auto operator|(AddResourcePackageOptions const left, AddResourcePackageOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(AddResourcePackageOptions& left, AddResourcePackageOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(AddResourcePackageOptions const left, AddResourcePackageOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(AddResourcePackageOptions& left, AddResourcePackageOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(AddResourcePackageOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(AddResourcePackageOptions const left, AddResourcePackageOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(AddResourcePackageOptions& left, AddResourcePackageOptions const right) noexcept { left = left ^ right; return left; } inline auto AppInfo::Current() { return impl::call_factory_cast([](IAppInfoStatics const& f) { return f.Current(); }); } inline auto AppInfo::GetFromAppUserModelId(param::hstring const& appUserModelId) { return impl::call_factory([&](IAppInfoStatics const& f) { return f.GetFromAppUserModelId(appUserModelId); }); } inline auto AppInfo::GetFromAppUserModelIdForUser(winrt::Windows::System::User const& user, param::hstring const& appUserModelId) { return impl::call_factory([&](IAppInfoStatics const& f) { return f.GetFromAppUserModelIdForUser(user, appUserModelId); }); } inline auto AppInstance::RecommendedInstance() { return impl::call_factory_cast([](IAppInstanceStatics const& f) { return f.RecommendedInstance(); }); } inline auto AppInstance::GetActivatedEventArgs() { return impl::call_factory_cast([](IAppInstanceStatics const& f) { return f.GetActivatedEventArgs(); }); } inline auto AppInstance::FindOrRegisterInstanceForKey(param::hstring const& key) { return impl::call_factory([&](IAppInstanceStatics const& f) { return f.FindOrRegisterInstanceForKey(key); }); } inline auto AppInstance::Unregister() { impl::call_factory_cast([](IAppInstanceStatics const& f) { return f.Unregister(); }); } inline auto AppInstance::GetInstances() { return impl::call_factory_cast(*)(IAppInstanceStatics const&), AppInstance, IAppInstanceStatics>([](IAppInstanceStatics const& f) { return f.GetInstances(); }); } inline auto DesignMode::DesignModeEnabled() { return impl::call_factory_cast([](IDesignModeStatics const& f) { return f.DesignModeEnabled(); }); } inline auto DesignMode::DesignMode2Enabled() { return impl::call_factory_cast([](IDesignModeStatics2 const& f) { return f.DesignMode2Enabled(); }); } inline FindRelatedPackagesOptions::FindRelatedPackagesOptions(winrt::Windows::ApplicationModel::PackageRelationship const& Relationship) : FindRelatedPackagesOptions(impl::call_factory([&](IFindRelatedPackagesOptionsFactory const& f) { return f.CreateInstance(Relationship); })) { } inline auto FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync() { return impl::call_factory_cast([](IFullTrustProcessLauncherStatics const& f) { return f.LaunchFullTrustProcessForCurrentAppAsync(); }); } inline auto FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppAsync(param::hstring const& parameterGroupId) { return impl::call_factory([&](IFullTrustProcessLauncherStatics const& f) { return f.LaunchFullTrustProcessForCurrentAppAsync(parameterGroupId); }); } inline auto FullTrustProcessLauncher::LaunchFullTrustProcessForAppAsync(param::hstring const& fullTrustPackageRelativeAppId) { return impl::call_factory([&](IFullTrustProcessLauncherStatics const& f) { return f.LaunchFullTrustProcessForAppAsync(fullTrustPackageRelativeAppId); }); } inline auto FullTrustProcessLauncher::LaunchFullTrustProcessForAppAsync(param::hstring const& fullTrustPackageRelativeAppId, param::hstring const& parameterGroupId) { return impl::call_factory([&](IFullTrustProcessLauncherStatics const& f) { return f.LaunchFullTrustProcessForAppAsync(fullTrustPackageRelativeAppId, parameterGroupId); }); } inline auto FullTrustProcessLauncher::LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(param::hstring const& commandLine) { return impl::call_factory([&](IFullTrustProcessLauncherStatics2 const& f) { return f.LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(commandLine); }); } inline auto FullTrustProcessLauncher::LaunchFullTrustProcessForAppWithArgumentsAsync(param::hstring const& fullTrustPackageRelativeAppId, param::hstring const& commandLine) { return impl::call_factory([&](IFullTrustProcessLauncherStatics2 const& f) { return f.LaunchFullTrustProcessForAppWithArgumentsAsync(fullTrustPackageRelativeAppId, commandLine); }); } inline auto LimitedAccessFeatures::TryUnlockFeature(param::hstring const& featureId, param::hstring const& token, param::hstring const& attestation) { return impl::call_factory([&](ILimitedAccessFeaturesStatics const& f) { return f.TryUnlockFeature(featureId, token, attestation); }); } inline auto Package::Current() { return impl::call_factory_cast([](IPackageStatics const& f) { return f.Current(); }); } inline auto PackageCatalog::OpenForCurrentPackage() { return impl::call_factory_cast([](IPackageCatalogStatics const& f) { return f.OpenForCurrentPackage(); }); } inline auto PackageCatalog::OpenForCurrentUser() { return impl::call_factory_cast([](IPackageCatalogStatics const& f) { return f.OpenForCurrentUser(); }); } inline auto PackageCatalog::OpenForPackage(winrt::Windows::ApplicationModel::Package const& package) { return impl::call_factory([&](IPackageCatalogStatics2 const& f) { return f.OpenForPackage(package); }); } inline auto PackageContentGroup::RequiredGroupName() { return impl::call_factory_cast([](IPackageContentGroupStatics const& f) { return f.RequiredGroupName(); }); } inline auto StartupTask::GetForCurrentPackageAsync() { return impl::call_factory_cast>(*)(IStartupTaskStatics const&), StartupTask, IStartupTaskStatics>([](IStartupTaskStatics const& f) { return f.GetForCurrentPackageAsync(); }); } inline auto StartupTask::GetAsync(param::hstring const& taskId) { return impl::call_factory([&](IStartupTaskStatics const& f) { return f.GetAsync(taskId); }); } } 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 {}; 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