// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_System_Update_H #define WINRT_Windows_System_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.System.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.System.Update.2.h" namespace winrt::impl { template auto consume_Windows_System_Update_ISystemUpdateItem::State() const { winrt::Windows::System::Update::SystemUpdateItemState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateItem::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateItem::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateItem::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateItem::Revision() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_Revision(&value)); return value; } template auto consume_Windows_System_Update_ISystemUpdateItem::DownloadProgress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_DownloadProgress(&value)); return value; } template auto consume_Windows_System_Update_ISystemUpdateItem::InstallProgress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_InstallProgress(&value)); return value; } template auto consume_Windows_System_Update_ISystemUpdateItem::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateItem)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateLastErrorInfo::State() const { winrt::Windows::System::Update::SystemUpdateManagerState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateLastErrorInfo)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateLastErrorInfo::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateLastErrorInfo)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateLastErrorInfo::IsInteractive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateLastErrorInfo)->get_IsInteractive(&value)); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->IsSupported(&result)); return result; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::State() const { winrt::Windows::System::Update::SystemUpdateManagerState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::StateChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->add_StateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::StateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, StateChanged(handler)); } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::StateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->remove_StateChanged(impl::bind_in(token)); } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::DownloadProgress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_DownloadProgress(&value)); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::InstallProgress() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_InstallProgress(&value)); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::UserActiveHoursStart() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_UserActiveHoursStart(put_abi(value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::UserActiveHoursEnd() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_UserActiveHoursEnd(put_abi(value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::UserActiveHoursMax() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_UserActiveHoursMax(&value)); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::TrySetUserActiveHours(winrt::Windows::Foundation::TimeSpan const& start, winrt::Windows::Foundation::TimeSpan const& end) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->TrySetUserActiveHours(impl::bind_in(start), impl::bind_in(end), &result)); return result; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::LastUpdateCheckTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_LastUpdateCheckTime(put_abi(value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::LastUpdateInstallTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_LastUpdateInstallTime(put_abi(value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::LastErrorInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_LastErrorInfo(&value)); return winrt::Windows::System::Update::SystemUpdateLastErrorInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::GetAutomaticRebootBlockIds() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->GetAutomaticRebootBlockIds(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::BlockAutomaticRebootAsync(param::hstring const& lockId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->BlockAutomaticRebootAsync(*(void**)(&lockId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::UnblockAutomaticRebootAsync(param::hstring const& lockId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->UnblockAutomaticRebootAsync(*(void**)(&lockId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::ExtendedError() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_ExtendedError(put_abi(value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::GetUpdateItems() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->GetUpdateItems(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::AttentionRequiredReason() const { winrt::Windows::System::Update::SystemUpdateAttentionRequiredReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->get_AttentionRequiredReason(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::SetFlightRing(param::hstring const& flightRing) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->SetFlightRing(*(void**)(&flightRing), &result)); return result; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::GetFlightRing() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->GetFlightRing(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::StartInstall(winrt::Windows::System::Update::SystemUpdateStartInstallAction const& action) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->StartInstall(static_cast(action))); } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::RebootToCompleteInstall() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->RebootToCompleteInstall()); } template auto consume_Windows_System_Update_ISystemUpdateManagerStatics::StartCancelUpdates() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::Update::ISystemUpdateManagerStatics)->StartCancelUpdates()); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_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_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_Revision(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Revision()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DownloadProgress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DownloadProgress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstallProgress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstallProgress()); 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_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_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_IsInteractive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInteractive()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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(); } 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 add_StateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_DownloadProgress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DownloadProgress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstallProgress(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InstallProgress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserActiveHoursStart(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserActiveHoursStart()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserActiveHoursEnd(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserActiveHoursEnd()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UserActiveHoursMax(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserActiveHoursMax()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TrySetUserActiveHours(int64_t start, int64_t end, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TrySetUserActiveHours(*reinterpret_cast(&start), *reinterpret_cast(&end))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastUpdateCheckTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastUpdateCheckTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastUpdateInstallTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastUpdateInstallTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LastErrorInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LastErrorInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAutomaticRebootBlockIds(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAutomaticRebootBlockIds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BlockAutomaticRebootAsync(void* lockId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().BlockAutomaticRebootAsync(*reinterpret_cast(&lockId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnblockAutomaticRebootAsync(void* lockId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().UnblockAutomaticRebootAsync(*reinterpret_cast(&lockId))); 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 GetUpdateItems(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetUpdateItems()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AttentionRequiredReason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AttentionRequiredReason()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetFlightRing(void* flightRing, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetFlightRing(*reinterpret_cast(&flightRing))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFlightRing(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetFlightRing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartInstall(int32_t action) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartInstall(*reinterpret_cast(&action)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RebootToCompleteInstall() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RebootToCompleteInstall(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartCancelUpdates() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartCancelUpdates(); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::System::Update { inline auto SystemUpdateManager::IsSupported() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.IsSupported(); }); } inline auto SystemUpdateManager::State() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.State(); }); } inline auto SystemUpdateManager::StateChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](ISystemUpdateManagerStatics const& f) { return f.StateChanged(handler); }); } inline auto SystemUpdateManager::StateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return SystemUpdateManager::StateChanged_revoker{ f, f.StateChanged(handler) }; } inline auto SystemUpdateManager::StateChanged(winrt::event_token const& token) { impl::call_factory([&](ISystemUpdateManagerStatics const& f) { return f.StateChanged(token); }); } inline auto SystemUpdateManager::DownloadProgress() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.DownloadProgress(); }); } inline auto SystemUpdateManager::InstallProgress() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.InstallProgress(); }); } inline auto SystemUpdateManager::UserActiveHoursStart() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.UserActiveHoursStart(); }); } inline auto SystemUpdateManager::UserActiveHoursEnd() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.UserActiveHoursEnd(); }); } inline auto SystemUpdateManager::UserActiveHoursMax() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.UserActiveHoursMax(); }); } inline auto SystemUpdateManager::TrySetUserActiveHours(winrt::Windows::Foundation::TimeSpan const& start, winrt::Windows::Foundation::TimeSpan const& end) { return impl::call_factory([&](ISystemUpdateManagerStatics const& f) { return f.TrySetUserActiveHours(start, end); }); } inline auto SystemUpdateManager::LastUpdateCheckTime() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.LastUpdateCheckTime(); }); } inline auto SystemUpdateManager::LastUpdateInstallTime() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.LastUpdateInstallTime(); }); } inline auto SystemUpdateManager::LastErrorInfo() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.LastErrorInfo(); }); } inline auto SystemUpdateManager::GetAutomaticRebootBlockIds() { return impl::call_factory_cast(*)(ISystemUpdateManagerStatics const&), SystemUpdateManager, ISystemUpdateManagerStatics>([](ISystemUpdateManagerStatics const& f) { return f.GetAutomaticRebootBlockIds(); }); } inline auto SystemUpdateManager::BlockAutomaticRebootAsync(param::hstring const& lockId) { return impl::call_factory([&](ISystemUpdateManagerStatics const& f) { return f.BlockAutomaticRebootAsync(lockId); }); } inline auto SystemUpdateManager::UnblockAutomaticRebootAsync(param::hstring const& lockId) { return impl::call_factory([&](ISystemUpdateManagerStatics const& f) { return f.UnblockAutomaticRebootAsync(lockId); }); } inline auto SystemUpdateManager::ExtendedError() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.ExtendedError(); }); } inline auto SystemUpdateManager::GetUpdateItems() { return impl::call_factory_cast(*)(ISystemUpdateManagerStatics const&), SystemUpdateManager, ISystemUpdateManagerStatics>([](ISystemUpdateManagerStatics const& f) { return f.GetUpdateItems(); }); } inline auto SystemUpdateManager::AttentionRequiredReason() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.AttentionRequiredReason(); }); } inline auto SystemUpdateManager::SetFlightRing(param::hstring const& flightRing) { return impl::call_factory([&](ISystemUpdateManagerStatics const& f) { return f.SetFlightRing(flightRing); }); } inline auto SystemUpdateManager::GetFlightRing() { return impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.GetFlightRing(); }); } inline auto SystemUpdateManager::StartInstall(winrt::Windows::System::Update::SystemUpdateStartInstallAction const& action) { impl::call_factory([&](ISystemUpdateManagerStatics const& f) { return f.StartInstall(action); }); } inline auto SystemUpdateManager::RebootToCompleteInstall() { impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.RebootToCompleteInstall(); }); } inline auto SystemUpdateManager::StartCancelUpdates() { impl::call_factory_cast([](ISystemUpdateManagerStatics const& f) { return f.StartCancelUpdates(); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif