Update WinRT to new version 2.0.250303.1

PiperOrigin-RevId: 781075193
This commit is contained in:
Guogang Li
2025-07-09 08:58:00 -07:00
committed by Copybara-Service
parent 5e558cffc4
commit 8f14bd10fc
1395 changed files with 498490 additions and 61973 deletions
@@ -1,11 +1,11 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
#pragma once
#ifndef WINRT_Windows_ApplicationModel_LockScreen_H
#define WINRT_Windows_ApplicationModel_LockScreen_H
#include "winrt/base.h"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.220531.1"), "Mismatched C++/WinRT headers.");
#define CPPWINRT_VERSION "2.0.220531.1"
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers.");
#define CPPWINRT_VERSION "2.0.250303.1"
#include "winrt/Windows.ApplicationModel.h"
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Foundation.Collections.2.h"
@@ -15,12 +15,36 @@ namespace winrt::impl
{
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockApplicationHost<D>::RequestUnlock() const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost)->RequestUnlock());
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestUnlock());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>**)this;
check_hresult(_winrt_abi_type->RequestUnlock());
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockApplicationHost<D>::Unlocking(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost, winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost)->add_Unlocking(*(void**)(&handler), put_abi(token)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_Unlocking(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>**)this;
check_hresult(_winrt_abi_type->add_Unlocking(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockApplicationHost<D>::Unlocking(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost, winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs> const& handler) const
@@ -29,46 +53,142 @@ namespace winrt::impl
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockApplicationHost<D>::Unlocking(winrt::event_token const& token) const noexcept
{
WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost)->remove_Unlocking(impl::bind_in(token));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>**)&_winrt_casted_result;
_winrt_abi_type->remove_Unlocking(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>**)this;
_winrt_abi_type->remove_Unlocking(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockApplicationHostStatics<D>::GetForCurrentView() const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics)->GetForCurrentView(&result));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetForCurrentView(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics>**)this;
check_hresult(_winrt_abi_type->GetForCurrentView(&result));
}
return winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenBadge<D>::Logo() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge)->get_Logo(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Logo(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)this;
check_hresult(_winrt_abi_type->get_Logo(&value));
}
return winrt::Windows::Storage::Streams::IRandomAccessStream{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenBadge<D>::Glyph() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge)->get_Glyph(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Glyph(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)this;
check_hresult(_winrt_abi_type->get_Glyph(&value));
}
return winrt::Windows::Storage::Streams::IRandomAccessStream{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenBadge<D>::Number() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge)->get_Number(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Number(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)this;
check_hresult(_winrt_abi_type->get_Number(&value));
}
return winrt::Windows::Foundation::IReference<uint32_t>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenBadge<D>::AutomationName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge)->get_AutomationName(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AutomationName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)this;
check_hresult(_winrt_abi_type->get_AutomationName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenBadge<D>::LaunchApp() const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge)->LaunchApp());
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->LaunchApp());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>**)this;
check_hresult(_winrt_abi_type->LaunchApp());
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::LockScreenImageChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->add_LockScreenImageChanged(*(void**)(&handler), put_abi(token)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_LockScreenImageChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->add_LockScreenImageChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::LockScreenImageChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
@@ -77,18 +197,54 @@ namespace winrt::impl
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::LockScreenImageChanged(winrt::event_token const& token) const noexcept
{
WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->remove_LockScreenImageChanged(impl::bind_in(token));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
_winrt_abi_type->remove_LockScreenImageChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
_winrt_abi_type->remove_LockScreenImageChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::LockScreenImage() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->get_LockScreenImage(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_LockScreenImage(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->get_LockScreenImage(&value));
}
return winrt::Windows::Storage::Streams::IRandomAccessStream{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::BadgesChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->add_BadgesChanged(*(void**)(&handler), put_abi(token)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_BadgesChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->add_BadgesChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::BadgesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
@@ -97,18 +253,54 @@ namespace winrt::impl
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::BadgesChanged(winrt::event_token const& token) const noexcept
{
WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->remove_BadgesChanged(impl::bind_in(token));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
_winrt_abi_type->remove_BadgesChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
_winrt_abi_type->remove_BadgesChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::Badges() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->get_Badges(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Badges(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->get_Badges(&value));
}
return winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::ApplicationModel::LockScreen::LockScreenBadge>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::DetailTextChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->add_DetailTextChanged(*(void**)(&handler), put_abi(token)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_DetailTextChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->add_DetailTextChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::DetailTextChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
@@ -117,18 +309,54 @@ namespace winrt::impl
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::DetailTextChanged(winrt::event_token const& token) const noexcept
{
WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->remove_DetailTextChanged(impl::bind_in(token));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
_winrt_abi_type->remove_DetailTextChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
_winrt_abi_type->remove_DetailTextChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::DetailText() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->get_DetailText(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DetailText(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->get_DetailText(&value));
}
return winrt::Windows::Foundation::Collections::IVectorView<hstring>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::AlarmIconChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->add_AlarmIconChanged(*(void**)(&handler), put_abi(token)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_AlarmIconChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->add_AlarmIconChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::AlarmIconChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const& handler) const
@@ -137,28 +365,88 @@ namespace winrt::impl
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::AlarmIconChanged(winrt::event_token const& token) const noexcept
{
WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->remove_AlarmIconChanged(impl::bind_in(token));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
_winrt_abi_type->remove_AlarmIconChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
_winrt_abi_type->remove_AlarmIconChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::AlarmIcon() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo)->get_AlarmIcon(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AlarmIcon(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>**)this;
check_hresult(_winrt_abi_type->get_AlarmIcon(&value));
}
return winrt::Windows::Storage::Streams::IRandomAccessStream{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenUnlockingDeferral<D>::Complete() const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral)->Complete());
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Complete());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral>**)this;
check_hresult(_winrt_abi_type->Complete());
}
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenUnlockingEventArgs<D>::GetDeferral() const
{
void* deferral{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs)->GetDeferral(&deferral));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDeferral(&deferral));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs>**)this;
check_hresult(_winrt_abi_type->GetDeferral(&deferral));
}
return winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral{ deferral, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenUnlockingEventArgs<D>::Deadline() const
{
winrt::Windows::Foundation::DateTime value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs)->get_Deadline(put_abi(value)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
check_hresult(_winrt_cast_result_code);
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Deadline(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs>**)this;
check_hresult(_winrt_abi_type->get_Deadline(put_abi(value)));
}
return value;
}
#ifndef WINRT_LEAN_AND_MEAN