Files
archived-WinDurango/vcpkg_installed/vcpkg/pkgs/cppwinrt_x64-windows/include/winrt/Windows.ApplicationModel.LockScreen.h
2026-01-27 19:20:15 -03:00

694 lines
41 KiB
C++

// 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.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"
#include "winrt/impl/Windows.Storage.Streams.2.h"
#include "winrt/impl/Windows.ApplicationModel.LockScreen.2.h"
namespace winrt::impl
{
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockApplicationHost<D>::RequestUnlock() const
{
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{};
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
{
return impl::make_event_revoker<D, Unlocking_revoker>(this, Unlocking(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockApplicationHost<D>::Unlocking(winrt::event_token const& token) const noexcept
{
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{};
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{};
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{};
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{};
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{};
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
{
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{};
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
{
return impl::make_event_revoker<D, LockScreenImageChanged_revoker>(this, LockScreenImageChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::LockScreenImageChanged(winrt::event_token const& token) const noexcept
{
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{};
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{};
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
{
return impl::make_event_revoker<D, BadgesChanged_revoker>(this, BadgesChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::BadgesChanged(winrt::event_token const& token) const noexcept
{
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{};
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{};
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
{
return impl::make_event_revoker<D, DetailTextChanged_revoker>(this, DetailTextChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::DetailTextChanged(winrt::event_token const& token) const noexcept
{
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{};
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{};
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
{
return impl::make_event_revoker<D, AlarmIconChanged_revoker>(this, AlarmIconChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_LockScreen_ILockScreenInfo<D>::AlarmIconChanged(winrt::event_token const& token) const noexcept
{
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{};
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
{
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{};
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{};
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
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost> : produce_base<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost>
{
int32_t __stdcall RequestUnlock() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RequestUnlock();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_Unlocking(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().Unlocking(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost, winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_Unlocking(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().Unlocking(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics> : produce_base<D, winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics>
{
int32_t __stdcall GetForCurrentView(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost>(this->shim().GetForCurrentView());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge> : produce_base<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge>
{
int32_t __stdcall get_Logo(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Storage::Streams::IRandomAccessStream>(this->shim().Logo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Glyph(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Storage::Streams::IRandomAccessStream>(this->shim().Glyph());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Number(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::IReference<uint32_t>>(this->shim().Number());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AutomationName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().AutomationName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall LaunchApp() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().LaunchApp();
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo> : produce_base<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo>
{
int32_t __stdcall add_LockScreenImageChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().LockScreenImageChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_LockScreenImageChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().LockScreenImageChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_LockScreenImage(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Storage::Streams::IRandomAccessStream>(this->shim().LockScreenImage());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_BadgesChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().BadgesChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_BadgesChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().BadgesChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_Badges(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::ApplicationModel::LockScreen::LockScreenBadge>>(this->shim().Badges());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_DetailTextChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().DetailTextChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_DetailTextChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().DetailTextChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_DetailText(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVectorView<hstring>>(this->shim().DetailText());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_AlarmIconChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().AlarmIconChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_AlarmIconChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().AlarmIconChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_AlarmIcon(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Storage::Streams::IRandomAccessStream>(this->shim().AlarmIcon());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral> : produce_base<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral>
{
int32_t __stdcall Complete() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Complete();
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs>
{
int32_t __stdcall GetDeferral(void** deferral) noexcept final try
{
clear_abi(deferral);
typename D::abi_guard guard(this->shim());
*deferral = detach_from<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral>(this->shim().GetDeferral());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Deadline(int64_t* value) noexcept final try
{
zero_abi<winrt::Windows::Foundation::DateTime>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::DateTime>(this->shim().Deadline());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
}
WINRT_EXPORT namespace winrt::Windows::ApplicationModel::LockScreen
{
inline auto LockApplicationHost::GetForCurrentView()
{
return impl::call_factory_cast<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost(*)(ILockApplicationHostStatics const&), LockApplicationHost, ILockApplicationHostStatics>([](ILockApplicationHostStatics const& f) { return f.GetForCurrentView(); });
}
}
namespace std
{
#ifndef WINRT_LEAN_AND_MEAN
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHost> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::ILockApplicationHostStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::ILockScreenBadge> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::ILockScreenInfo> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingDeferral> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::ILockScreenUnlockingEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::LockApplicationHost> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::LockScreenBadge> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::LockScreenInfo> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingDeferral> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::LockScreen::LockScreenUnlockingEventArgs> : winrt::impl::hash_base {};
#endif
#ifdef __cpp_lib_format
#endif
}
#endif