// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Management_Update_H #define WINRT_Windows_Management_Update_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Management.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Management.Update.2.h" namespace winrt::impl { template auto consume_Windows_Management_Update_IPreviewBuildsManager::ArePreviewBuildsAllowed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IPreviewBuildsManager)->get_ArePreviewBuildsAllowed(&value)); return value; } template auto consume_Windows_Management_Update_IPreviewBuildsManager::ArePreviewBuildsAllowed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IPreviewBuildsManager)->put_ArePreviewBuildsAllowed(value)); } template auto consume_Windows_Management_Update_IPreviewBuildsManager::GetCurrentState() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IPreviewBuildsManager)->GetCurrentState(&result)); return winrt::Windows::Management::Update::PreviewBuildsState{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IPreviewBuildsManager::SyncAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IPreviewBuildsManager)->SyncAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IPreviewBuildsManagerStatics::GetDefault() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IPreviewBuildsManagerStatics)->GetDefault(&value)); return winrt::Windows::Management::Update::PreviewBuildsManager{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IPreviewBuildsManagerStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IPreviewBuildsManagerStatics)->IsSupported(&result)); return result; } template auto consume_Windows_Management_Update_IPreviewBuildsState::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IPreviewBuildsState)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::ProviderId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_ProviderId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::UpdateId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_UpdateId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsFeatureUpdate() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsFeatureUpdate(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsMinorImpact() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsMinorImpact(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsSecurity() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsSecurity(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsCritical() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsCritical(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsForOS() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsForOS(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsDriver() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsDriver(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsMandatory() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsMandatory(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsUrgent() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsUrgent(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsSeeker() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsSeeker(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::MoreInfoUrl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_MoreInfoUrl(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::SupportUrl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_SupportUrl(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::IsEulaAccepted() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_IsEulaAccepted(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdate::EulaText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_EulaText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::Deadline() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_Deadline(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::AttentionRequiredInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_AttentionRequiredInfo(&value)); return winrt::Windows::Management::Update::WindowsUpdateAttentionRequiredInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::ActionResult() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_ActionResult(&value)); return winrt::Windows::Management::Update::WindowsUpdateActionResult{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::CurrentAction() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_CurrentAction(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::ActionProgress() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->get_ActionProgress(&value)); return winrt::Windows::Management::Update::WindowsUpdateActionProgress{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::GetPropertyValue(param::hstring const& propertyName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->GetPropertyValue(*(void**)(&propertyName), &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdate::AcceptEula() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdate)->AcceptEula()); } template auto consume_Windows_Management_Update_IWindowsUpdateActionCompletedEventArgs::Update() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionCompletedEventArgs)->get_Update(&value)); return winrt::Windows::Management::Update::WindowsUpdate{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateActionCompletedEventArgs::Action() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionCompletedEventArgs)->get_Action(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateActionCompletedEventArgs::Succeeded() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionCompletedEventArgs)->get_Succeeded(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateActionCompletedEventArgs::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionCompletedEventArgs)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateActionProgress::Action() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionProgress)->get_Action(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateActionProgress::Progress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionProgress)->get_Progress(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateActionResult::Timestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionResult)->get_Timestamp(put_abi(value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateActionResult::Succeeded() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionResult)->get_Succeeded(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateActionResult::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionResult)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateActionResult::Action() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateActionResult)->get_Action(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateAdministrator::StartAdministratorScan() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministrator)->StartAdministratorScan()); } template auto consume_Windows_Management_Update_IWindowsUpdateAdministrator::ApproveWindowsUpdateAction(param::hstring const& updateId, param::hstring const& action) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministrator)->ApproveWindowsUpdateAction(*(void**)(&updateId), *(void**)(&action))); } template auto consume_Windows_Management_Update_IWindowsUpdateAdministrator::RevokeWindowsUpdateActionApproval(param::hstring const& updateId, param::hstring const& action) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministrator)->RevokeWindowsUpdateActionApproval(*(void**)(&updateId), *(void**)(&action))); } template auto consume_Windows_Management_Update_IWindowsUpdateAdministrator::ApproveWindowsUpdate(param::hstring const& updateId, winrt::Windows::Management::Update::WindowsUpdateApprovalData const& approvalData) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministrator)->ApproveWindowsUpdate(*(void**)(&updateId), *(void**)(&approvalData))); } template auto consume_Windows_Management_Update_IWindowsUpdateAdministrator::RevokeWindowsUpdateApproval(param::hstring const& updateId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministrator)->RevokeWindowsUpdateApproval(*(void**)(&updateId))); } template auto consume_Windows_Management_Update_IWindowsUpdateAdministrator::GetUpdates() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministrator)->GetUpdates(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateAdministratorStatics::GetRegisteredAdministrator(param::hstring const& organizationName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministratorStatics)->GetRegisteredAdministrator(*(void**)(&organizationName), &result)); return winrt::Windows::Management::Update::WindowsUpdateGetAdministratorResult{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateAdministratorStatics::RegisterForAdministration(param::hstring const& organizationName, winrt::Windows::Management::Update::WindowsUpdateAdministratorOptions const& options) const { winrt::Windows::Management::Update::WindowsUpdateAdministratorStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministratorStatics)->RegisterForAdministration(*(void**)(&organizationName), static_cast(options), reinterpret_cast(&result))); return result; } template auto consume_Windows_Management_Update_IWindowsUpdateAdministratorStatics::UnregisterForAdministration(param::hstring const& organizationName) const { winrt::Windows::Management::Update::WindowsUpdateAdministratorStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministratorStatics)->UnregisterForAdministration(*(void**)(&organizationName), reinterpret_cast(&result))); return result; } template auto consume_Windows_Management_Update_IWindowsUpdateAdministratorStatics::GetRegisteredAdministratorName() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministratorStatics)->GetRegisteredAdministratorName(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateAdministratorStatics::RequestRestart(winrt::Windows::Management::Update::WindowsUpdateRestartRequestOptions const& restartOptions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministratorStatics)->RequestRestart(*(void**)(&restartOptions), &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateAdministratorStatics::CancelRestartRequest(param::hstring const& requestRestartToken) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAdministratorStatics)->CancelRestartRequest(*(void**)(&requestRestartToken))); } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::Seeker() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->get_Seeker(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::Seeker(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->put_Seeker(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::AllowDownloadOnMetered() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->get_AllowDownloadOnMetered(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::AllowDownloadOnMetered(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->put_AllowDownloadOnMetered(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::ComplianceDeadlineInDays() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->get_ComplianceDeadlineInDays(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::ComplianceDeadlineInDays(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->put_ComplianceDeadlineInDays(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::ComplianceGracePeriodInDays() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->get_ComplianceGracePeriodInDays(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::ComplianceGracePeriodInDays(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->put_ComplianceGracePeriodInDays(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::OptOutOfAutoReboot() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->get_OptOutOfAutoReboot(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateApprovalData::OptOutOfAutoReboot(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateApprovalData)->put_OptOutOfAutoReboot(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateAttentionRequiredInfo::Reason() const { winrt::Windows::Management::Update::WindowsUpdateAttentionRequiredReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAttentionRequiredInfo)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateAttentionRequiredInfo::Timestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAttentionRequiredInfo)->get_Timestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateAttentionRequiredReasonChangedEventArgs::Update() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAttentionRequiredReasonChangedEventArgs)->get_Update(&value)); return winrt::Windows::Management::Update::WindowsUpdate{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateAttentionRequiredReasonChangedEventArgs::Reason() const { winrt::Windows::Management::Update::WindowsUpdateAttentionRequiredReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateAttentionRequiredReasonChangedEventArgs)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateGetAdministratorResult::Administrator() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateGetAdministratorResult)->get_Administrator(&value)); return winrt::Windows::Management::Update::WindowsUpdateAdministrator{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateGetAdministratorResult::Status() const { winrt::Windows::Management::Update::WindowsUpdateAdministratorStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateGetAdministratorResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::ProviderId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_ProviderId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::UpdateId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_UpdateId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::Timestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_Timestamp(put_abi(value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::MoreInfoUrl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_MoreInfoUrl(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::Category() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_Category(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateItem::Operation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateItem)->get_Operation(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ScanningStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->add_ScanningStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ScanningStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ScanningStateChanged(handler)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ScanningStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->remove_ScanningStateChanged(impl::bind_in(token)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::WorkingStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->add_WorkingStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::WorkingStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WorkingStateChanged(handler)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::WorkingStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->remove_WorkingStateChanged(impl::bind_in(token)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ProgressChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->add_ProgressChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ProgressChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ProgressChanged(handler)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ProgressChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->remove_ProgressChanged(impl::bind_in(token)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::AttentionRequiredReasonChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->add_AttentionRequiredReasonChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::AttentionRequiredReasonChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AttentionRequiredReasonChanged(handler)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::AttentionRequiredReasonChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->remove_AttentionRequiredReasonChanged(impl::bind_in(token)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ActionCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->add_ActionCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ActionCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ActionCompleted(handler)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ActionCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->remove_ActionCompleted(impl::bind_in(token)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ScanCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->add_ScanCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ScanCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ScanCompleted(handler)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::ScanCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->remove_ScanCompleted(impl::bind_in(token)); } template auto consume_Windows_Management_Update_IWindowsUpdateManager::IsScanning() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->get_IsScanning(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::IsWorking() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->get_IsWorking(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::LastSuccessfulScanTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->get_LastSuccessfulScanTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::GetApplicableUpdates() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->GetApplicableUpdates(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::GetMostRecentCompletedUpdates(int32_t count) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->GetMostRecentCompletedUpdates(count, &result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::GetMostRecentCompletedUpdatesAsync(int32_t count) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->GetMostRecentCompletedUpdatesAsync(count, &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateManager::StartScan(bool userInitiated) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManager)->StartScan(userInitiated)); } template auto consume_Windows_Management_Update_IWindowsUpdateManagerFactory::CreateInstance(param::hstring const& clientId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateManagerFactory)->CreateInstance(*(void**)(&clientId), &value)); return winrt::Windows::Management::Update::WindowsUpdateManager{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateProgressChangedEventArgs::Update() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateProgressChangedEventArgs)->get_Update(&value)); return winrt::Windows::Management::Update::WindowsUpdate{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateProgressChangedEventArgs::ActionProgress() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateProgressChangedEventArgs)->get_ActionProgress(&value)); return winrt::Windows::Management::Update::WindowsUpdateActionProgress{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::Title(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->put_Title(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::Description(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->put_Description(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::MoreInfoUrl() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->get_MoreInfoUrl(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::MoreInfoUrl(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->put_MoreInfoUrl(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::ComplianceDeadlineInDays() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->get_ComplianceDeadlineInDays(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::ComplianceDeadlineInDays(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->put_ComplianceDeadlineInDays(value)); } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::ComplianceGracePeriodInDays() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->get_ComplianceGracePeriodInDays(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::ComplianceGracePeriodInDays(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->put_ComplianceGracePeriodInDays(value)); } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::OrganizationName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->get_OrganizationName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::OrganizationName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->put_OrganizationName(*(void**)(&value))); } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::OptOutOfAutoReboot() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->get_OptOutOfAutoReboot(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptions::OptOutOfAutoReboot(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptions)->put_OptOutOfAutoReboot(value)); } template auto consume_Windows_Management_Update_IWindowsUpdateRestartRequestOptionsFactory::CreateInstance(param::hstring const& title, param::hstring const& description, winrt::Windows::Foundation::Uri const& moreInfoUrl, int32_t complianceDeadlineInDays, int32_t complianceGracePeriodInDays) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateRestartRequestOptionsFactory)->CreateInstance(*(void**)(&title), *(void**)(&description), *(void**)(&moreInfoUrl), complianceDeadlineInDays, complianceGracePeriodInDays, &value)); return winrt::Windows::Management::Update::WindowsUpdateRestartRequestOptions{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateScanCompletedEventArgs::ProviderId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateScanCompletedEventArgs)->get_ProviderId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Management_Update_IWindowsUpdateScanCompletedEventArgs::Succeeded() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateScanCompletedEventArgs)->get_Succeeded(&value)); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateScanCompletedEventArgs::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateScanCompletedEventArgs)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_Management_Update_IWindowsUpdateScanCompletedEventArgs::Updates() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Management::Update::IWindowsUpdateScanCompletedEventArgs)->get_Updates(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ArePreviewBuildsAllowed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ArePreviewBuildsAllowed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ArePreviewBuildsAllowed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ArePreviewBuildsAllowed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCurrentState(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetCurrentState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SyncAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().SyncAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProviderId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProviderId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UpdateId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UpdateId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); 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_IsFeatureUpdate(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFeatureUpdate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMinorImpact(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMinorImpact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSecurity(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSecurity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCritical(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCritical()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsForOS(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsForOS()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDriver(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDriver()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMandatory(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMandatory()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsUrgent(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsUrgent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSeeker(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSeeker()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoreInfoUrl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MoreInfoUrl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportUrl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportUrl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEulaAccepted(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEulaAccepted()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EulaText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EulaText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Deadline(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Deadline()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AttentionRequiredInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AttentionRequiredInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActionResult(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActionResult()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentAction(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentAction()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActionProgress(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActionProgress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPropertyValue(void* propertyName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetPropertyValue(*reinterpret_cast(&propertyName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AcceptEula() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AcceptEula(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Update(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Update()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Action(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Action()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Succeeded(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Succeeded()); 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_Action(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Action()); 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Timestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Succeeded(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Succeeded()); 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(); } int32_t __stdcall get_Action(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Action()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall StartAdministratorScan() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartAdministratorScan(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApproveWindowsUpdateAction(void* updateId, void* action) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ApproveWindowsUpdateAction(*reinterpret_cast(&updateId), *reinterpret_cast(&action)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RevokeWindowsUpdateActionApproval(void* updateId, void* action) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RevokeWindowsUpdateActionApproval(*reinterpret_cast(&updateId), *reinterpret_cast(&action)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApproveWindowsUpdate(void* updateId, void* approvalData) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ApproveWindowsUpdate(*reinterpret_cast(&updateId), *reinterpret_cast(&approvalData)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RevokeWindowsUpdateApproval(void* updateId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RevokeWindowsUpdateApproval(*reinterpret_cast(&updateId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetUpdates(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetUpdates()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetRegisteredAdministrator(void* organizationName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetRegisteredAdministrator(*reinterpret_cast(&organizationName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterForAdministration(void* organizationName, uint32_t options, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RegisterForAdministration(*reinterpret_cast(&organizationName), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnregisterForAdministration(void* organizationName, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().UnregisterForAdministration(*reinterpret_cast(&organizationName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRegisteredAdministratorName(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetRegisteredAdministratorName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestRestart(void* restartOptions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestRestart(*reinterpret_cast(&restartOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CancelRestartRequest(void* requestRestartToken) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CancelRestartRequest(*reinterpret_cast(&requestRestartToken)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Seeker(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Seeker()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Seeker(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Seeker(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowDownloadOnMetered(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AllowDownloadOnMetered()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowDownloadOnMetered(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowDownloadOnMetered(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComplianceDeadlineInDays(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ComplianceDeadlineInDays()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ComplianceDeadlineInDays(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ComplianceDeadlineInDays(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComplianceGracePeriodInDays(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ComplianceGracePeriodInDays()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ComplianceGracePeriodInDays(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ComplianceGracePeriodInDays(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptOutOfAutoReboot(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().OptOutOfAutoReboot()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OptOutOfAutoReboot(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OptOutOfAutoReboot(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Timestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Timestamp()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Update(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Update()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Administrator(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Administrator()); 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProviderId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProviderId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UpdateId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UpdateId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Timestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); 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_MoreInfoUrl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MoreInfoUrl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Category(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Category()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Operation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Operation()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_ScanningStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ScanningStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ScanningStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ScanningStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_WorkingStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().WorkingStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WorkingStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WorkingStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ProgressChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ProgressChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ProgressChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ProgressChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_AttentionRequiredReasonChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AttentionRequiredReasonChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AttentionRequiredReasonChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AttentionRequiredReasonChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ActionCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ActionCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ActionCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ActionCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ScanCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ScanCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ScanCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ScanCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_IsScanning(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScanning()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsWorking(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsWorking()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastSuccessfulScanTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().LastSuccessfulScanTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetApplicableUpdates(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetApplicableUpdates()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMostRecentCompletedUpdates(int32_t count, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMostRecentCompletedUpdates(count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMostRecentCompletedUpdatesAsync(int32_t count, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetMostRecentCompletedUpdatesAsync(count)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartScan(bool userInitiated) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartScan(userInitiated); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* clientId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&clientId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Update(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Update()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActionProgress(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActionProgress()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Title(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Title(*reinterpret_cast(&value)); 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 put_Description(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Description(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MoreInfoUrl(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MoreInfoUrl()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MoreInfoUrl(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoreInfoUrl(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComplianceDeadlineInDays(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ComplianceDeadlineInDays()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ComplianceDeadlineInDays(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ComplianceDeadlineInDays(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComplianceGracePeriodInDays(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ComplianceGracePeriodInDays()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ComplianceGracePeriodInDays(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ComplianceGracePeriodInDays(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OrganizationName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OrganizationName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OrganizationName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OrganizationName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OptOutOfAutoReboot(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OptOutOfAutoReboot()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OptOutOfAutoReboot(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OptOutOfAutoReboot(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* title, void* description, void* moreInfoUrl, int32_t complianceDeadlineInDays, int32_t complianceGracePeriodInDays, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&title), *reinterpret_cast(&description), *reinterpret_cast(&moreInfoUrl), complianceDeadlineInDays, complianceGracePeriodInDays)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProviderId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProviderId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Succeeded(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Succeeded()); 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(); } int32_t __stdcall get_Updates(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Updates()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Management::Update { constexpr auto operator|(WindowsUpdateAdministratorOptions const left, WindowsUpdateAdministratorOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(WindowsUpdateAdministratorOptions& left, WindowsUpdateAdministratorOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(WindowsUpdateAdministratorOptions const left, WindowsUpdateAdministratorOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(WindowsUpdateAdministratorOptions& left, WindowsUpdateAdministratorOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(WindowsUpdateAdministratorOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(WindowsUpdateAdministratorOptions const left, WindowsUpdateAdministratorOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(WindowsUpdateAdministratorOptions& left, WindowsUpdateAdministratorOptions const right) noexcept { left = left ^ right; return left; } inline auto PreviewBuildsManager::GetDefault() { return impl::call_factory_cast([](IPreviewBuildsManagerStatics const& f) { return f.GetDefault(); }); } inline auto PreviewBuildsManager::IsSupported() { return impl::call_factory_cast([](IPreviewBuildsManagerStatics const& f) { return f.IsSupported(); }); } inline auto WindowsUpdateAdministrator::GetRegisteredAdministrator(param::hstring const& organizationName) { return impl::call_factory([&](IWindowsUpdateAdministratorStatics const& f) { return f.GetRegisteredAdministrator(organizationName); }); } inline auto WindowsUpdateAdministrator::RegisterForAdministration(param::hstring const& organizationName, winrt::Windows::Management::Update::WindowsUpdateAdministratorOptions const& options) { return impl::call_factory([&](IWindowsUpdateAdministratorStatics const& f) { return f.RegisterForAdministration(organizationName, options); }); } inline auto WindowsUpdateAdministrator::UnregisterForAdministration(param::hstring const& organizationName) { return impl::call_factory([&](IWindowsUpdateAdministratorStatics const& f) { return f.UnregisterForAdministration(organizationName); }); } inline auto WindowsUpdateAdministrator::GetRegisteredAdministratorName() { return impl::call_factory_cast([](IWindowsUpdateAdministratorStatics const& f) { return f.GetRegisteredAdministratorName(); }); } inline auto WindowsUpdateAdministrator::RequestRestart(winrt::Windows::Management::Update::WindowsUpdateRestartRequestOptions const& restartOptions) { return impl::call_factory([&](IWindowsUpdateAdministratorStatics const& f) { return f.RequestRestart(restartOptions); }); } inline auto WindowsUpdateAdministrator::CancelRestartRequest(param::hstring const& requestRestartToken) { impl::call_factory([&](IWindowsUpdateAdministratorStatics const& f) { return f.CancelRestartRequest(requestRestartToken); }); } inline WindowsUpdateApprovalData::WindowsUpdateApprovalData() : WindowsUpdateApprovalData(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline WindowsUpdateManager::WindowsUpdateManager(param::hstring const& clientId) : WindowsUpdateManager(impl::call_factory([&](IWindowsUpdateManagerFactory const& f) { return f.CreateInstance(clientId); })) { } inline WindowsUpdateRestartRequestOptions::WindowsUpdateRestartRequestOptions() : WindowsUpdateRestartRequestOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline WindowsUpdateRestartRequestOptions::WindowsUpdateRestartRequestOptions(param::hstring const& title, param::hstring const& description, winrt::Windows::Foundation::Uri const& moreInfoUrl, int32_t complianceDeadlineInDays, int32_t complianceGracePeriodInDays) : WindowsUpdateRestartRequestOptions(impl::call_factory([&](IWindowsUpdateRestartRequestOptionsFactory const& f) { return f.CreateInstance(title, description, moreInfoUrl, complianceDeadlineInDays, complianceGracePeriodInDays); })) { } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif