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_AppService_H
#define WINRT_Windows_ApplicationModel_AppService_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.ApplicationModel.2.h"
#include "winrt/impl/Windows.Foundation.2.h"
@@ -18,51 +18,159 @@ namespace winrt::impl
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceCatalogStatics<D>::FindAppServiceProvidersAsync(param::hstring const& appServiceName) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceCatalogStatics)->FindAppServiceProvidersAsync(*(void**)(&appServiceName), &operation));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceCatalogStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceCatalogStatics, 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::AppService::IAppServiceCatalogStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->FindAppServiceProvidersAsync(*(void**)(&appServiceName), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceCatalogStatics>**)this;
check_hresult(_winrt_abi_type->FindAppServiceProvidersAsync(*(void**)(&appServiceName), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::ApplicationModel::AppInfo>>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceClosedEventArgs<D>::Status() const
{
winrt::Windows::ApplicationModel::AppService::AppServiceClosedStatus value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceClosedEventArgs)->get_Status(reinterpret_cast<int32_t*>(&value)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceClosedEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceClosedEventArgs, 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::AppService::IAppServiceClosedEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceClosedEventArgs>**)this;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::AppServiceName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->get_AppServiceName(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AppServiceName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->get_AppServiceName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::AppServiceName(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->put_AppServiceName(*(void**)(&value)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_AppServiceName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->put_AppServiceName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::PackageFamilyName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->get_PackageFamilyName(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_PackageFamilyName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->get_PackageFamilyName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::PackageFamilyName(param::hstring const& value) const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->put_PackageFamilyName(*(void**)(&value)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_PackageFamilyName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->put_PackageFamilyName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::OpenAsync() const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->OpenAsync(&operation));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->OpenAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->OpenAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::AppService::AppServiceConnectionStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::SendMessageAsync(winrt::Windows::Foundation::Collections::ValueSet const& message) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->SendMessageAsync(*(void**)(&message), &operation));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SendMessageAsync(*(void**)(&message), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->SendMessageAsync(*(void**)(&message), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::AppService::AppServiceResponse>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::RequestReceived(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::AppService::AppServiceConnection, winrt::Windows::ApplicationModel::AppService::AppServiceRequestReceivedEventArgs> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->add_RequestReceived(*(void**)(&handler), put_abi(token)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_RequestReceived(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->add_RequestReceived(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::RequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::AppService::AppServiceConnection, winrt::Windows::ApplicationModel::AppService::AppServiceRequestReceivedEventArgs> const& handler) const
@@ -71,12 +179,36 @@ namespace winrt::impl
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::RequestReceived(winrt::event_token const& token) const noexcept
{
WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->remove_RequestReceived(impl::bind_in(token));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
_winrt_abi_type->remove_RequestReceived(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
_winrt_abi_type->remove_RequestReceived(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::ServiceClosed(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::AppService::AppServiceConnection, winrt::Windows::ApplicationModel::AppService::AppServiceClosedEventArgs> const& handler) const
{
winrt::event_token token{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->add_ServiceClosed(*(void**)(&handler), put_abi(token)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_ServiceClosed(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
check_hresult(_winrt_abi_type->add_ServiceClosed(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::ServiceClosed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::AppService::AppServiceConnection, winrt::Windows::ApplicationModel::AppService::AppServiceClosedEventArgs> const& handler) const
@@ -85,116 +217,356 @@ namespace winrt::impl
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection<D>::ServiceClosed(winrt::event_token const& token) const noexcept
{
WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection)->remove_ServiceClosed(impl::bind_in(token));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection, 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::AppService::IAppServiceConnection>**)&_winrt_casted_result;
_winrt_abi_type->remove_ServiceClosed(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection>**)this;
_winrt_abi_type->remove_ServiceClosed(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection2<D>::OpenRemoteAsync(winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest const& remoteSystemConnectionRequest) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2)->OpenRemoteAsync(*(void**)(&remoteSystemConnectionRequest), &operation));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2, 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::AppService::IAppServiceConnection2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->OpenRemoteAsync(*(void**)(&remoteSystemConnectionRequest), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2>**)this;
check_hresult(_winrt_abi_type->OpenRemoteAsync(*(void**)(&remoteSystemConnectionRequest), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::AppService::AppServiceConnectionStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection2<D>::User() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2)->get_User(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2, 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::AppService::IAppServiceConnection2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_User(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2>**)this;
check_hresult(_winrt_abi_type->get_User(&value));
}
return winrt::Windows::System::User{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnection2<D>::User(winrt::Windows::System::User const& value) const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2)->put_User(*(void**)(&value)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2, 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::AppService::IAppServiceConnection2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_User(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnection2>**)this;
check_hresult(_winrt_abi_type->put_User(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceConnectionStatics<D>::SendStatelessMessageAsync(winrt::Windows::ApplicationModel::AppService::AppServiceConnection const& connection, winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest const& connectionRequest, winrt::Windows::Foundation::Collections::ValueSet const& message) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceConnectionStatics)->SendStatelessMessageAsync(*(void**)(&connection), *(void**)(&connectionRequest), *(void**)(&message), &operation));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceConnectionStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceConnectionStatics, 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::AppService::IAppServiceConnectionStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SendStatelessMessageAsync(*(void**)(&connection), *(void**)(&connectionRequest), *(void**)(&message), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceConnectionStatics>**)this;
check_hresult(_winrt_abi_type->SendStatelessMessageAsync(*(void**)(&connection), *(void**)(&connectionRequest), *(void**)(&message), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::AppService::StatelessAppServiceResponse>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceDeferral<D>::Complete() const
{
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceDeferral)->Complete());
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceDeferral>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceDeferral, 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::AppService::IAppServiceDeferral>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Complete());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceDeferral>**)this;
check_hresult(_winrt_abi_type->Complete());
}
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceRequest<D>::Message() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceRequest)->get_Message(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceRequest>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceRequest, 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::AppService::IAppServiceRequest>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Message(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceRequest>**)this;
check_hresult(_winrt_abi_type->get_Message(&value));
}
return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceRequest<D>::SendResponseAsync(winrt::Windows::Foundation::Collections::ValueSet const& message) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceRequest)->SendResponseAsync(*(void**)(&message), &operation));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceRequest>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceRequest, 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::AppService::IAppServiceRequest>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SendResponseAsync(*(void**)(&message), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceRequest>**)this;
check_hresult(_winrt_abi_type->SendResponseAsync(*(void**)(&message), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::AppService::AppServiceResponseStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceRequestReceivedEventArgs<D>::Request() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs)->get_Request(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs, 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::AppService::IAppServiceRequestReceivedEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Request(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs>**)this;
check_hresult(_winrt_abi_type->get_Request(&value));
}
return winrt::Windows::ApplicationModel::AppService::AppServiceRequest{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceRequestReceivedEventArgs<D>::GetDeferral() const
{
void* result{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs)->GetDeferral(&result));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs, 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::AppService::IAppServiceRequestReceivedEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDeferral(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs>**)this;
check_hresult(_winrt_abi_type->GetDeferral(&result));
}
return winrt::Windows::ApplicationModel::AppService::AppServiceDeferral{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceResponse<D>::Message() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceResponse)->get_Message(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceResponse>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceResponse, 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::AppService::IAppServiceResponse>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Message(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceResponse>**)this;
check_hresult(_winrt_abi_type->get_Message(&value));
}
return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceResponse<D>::Status() const
{
winrt::Windows::ApplicationModel::AppService::AppServiceResponseStatus value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceResponse)->get_Status(reinterpret_cast<int32_t*>(&value)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceResponse>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceResponse, 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::AppService::IAppServiceResponse>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceResponse>**)this;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceTriggerDetails<D>::Name() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails)->get_Name(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails, 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::AppService::IAppServiceTriggerDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Name(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails>**)this;
check_hresult(_winrt_abi_type->get_Name(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceTriggerDetails<D>::CallerPackageFamilyName() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails)->get_CallerPackageFamilyName(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails, 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::AppService::IAppServiceTriggerDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CallerPackageFamilyName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails>**)this;
check_hresult(_winrt_abi_type->get_CallerPackageFamilyName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceTriggerDetails<D>::AppServiceConnection() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails)->get_AppServiceConnection(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails, 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::AppService::IAppServiceTriggerDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AppServiceConnection(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails>**)this;
check_hresult(_winrt_abi_type->get_AppServiceConnection(&value));
}
return winrt::Windows::ApplicationModel::AppService::AppServiceConnection{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceTriggerDetails2<D>::IsRemoteSystemConnection() const
{
bool value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails2)->get_IsRemoteSystemConnection(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails2, 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::AppService::IAppServiceTriggerDetails2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsRemoteSystemConnection(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails2>**)this;
check_hresult(_winrt_abi_type->get_IsRemoteSystemConnection(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceTriggerDetails3<D>::CheckCallerForCapabilityAsync(param::hstring const& capabilityName) const
{
void* operation{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails3)->CheckCallerForCapabilityAsync(*(void**)(&capabilityName), &operation));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails3, 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::AppService::IAppServiceTriggerDetails3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->CheckCallerForCapabilityAsync(*(void**)(&capabilityName), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails3>**)this;
check_hresult(_winrt_abi_type->CheckCallerForCapabilityAsync(*(void**)(&capabilityName), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IAppServiceTriggerDetails4<D>::CallerRemoteConnectionToken() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails4)->get_CallerRemoteConnectionToken(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails4, 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::AppService::IAppServiceTriggerDetails4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CallerRemoteConnectionToken(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IAppServiceTriggerDetails4>**)this;
check_hresult(_winrt_abi_type->get_CallerRemoteConnectionToken(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IStatelessAppServiceResponse<D>::Message() const
{
void* value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse)->get_Message(&value));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse, 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::AppService::IStatelessAppServiceResponse>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Message(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse>**)this;
check_hresult(_winrt_abi_type->get_Message(&value));
}
return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_AppService_IStatelessAppServiceResponse<D>::Status() const
{
winrt::Windows::ApplicationModel::AppService::StatelessAppServiceResponseStatus value{};
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse)->get_Status(reinterpret_cast<int32_t*>(&value)));
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse, 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::AppService::IStatelessAppServiceResponse>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::AppService::IStatelessAppServiceResponse>**)this;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
#ifndef WINRT_LEAN_AND_MEAN