// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_Calls_H #define WINRT_Windows_ApplicationModel_Calls_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.ApplicationModel.h" #include "winrt/impl/Windows.ApplicationModel.Contacts.2.h" #include "winrt/impl/Windows.Devices.Enumeration.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.ApplicationModel.Calls.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::Context() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->get_Context(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::Context(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->put_Context(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::ContactName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->get_ContactName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::ContactName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->put_ContactName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::ContactNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->get_ContactNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::ContactNumber(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->put_ContactNumber(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::ServiceName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->get_ServiceName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::ServiceName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->put_ServiceName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::Media() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->get_Media(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->put_Media(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions::AssociatedDeviceIds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions)->get_AssociatedDeviceIds(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptionsFactory::CreateInstance(param::iterable const& associatedDeviceIds) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory)->CreateInstance(*(void**)(&associatedDeviceIds), &value)); return winrt::Windows::ApplicationModel::Calls::AcceptedVoipPhoneCallOptions{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::Context() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->get_Context(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::Context(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->put_Context(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::ContactName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->get_ContactName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::ContactName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->put_ContactName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::ContactNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->get_ContactNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::ContactNumber(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->put_ContactNumber(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::ServiceName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->get_ServiceName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::ServiceName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->put_ServiceName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::Media() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->get_Media(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->put_Media(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions::AssociatedDeviceIds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions)->get_AssociatedDeviceIds(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptionsFactory::CreateInstance(param::iterable const& associatedDeviceIds) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory)->CreateInstance(*(void**)(&associatedDeviceIds), &value)); return winrt::Windows::ApplicationModel::Calls::AppInitiatedVoipPhoneCallOptions{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_ICallAnswerEventArgs::AcceptedMedia() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs)->get_AcceptedMedia(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_ICallAnswerEventArgs2::SourceDeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2)->get_SourceDeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_ICallRejectEventArgs::RejectReason() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallRejectReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ICallRejectEventArgs)->get_RejectReason(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_ICallStateChangeEventArgs::State() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::Context() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_Context(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::Context(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_Context(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_ContactName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_ContactName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_ContactNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactNumber(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_ContactNumber(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactImage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_ContactImage(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactImage(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_ContactImage(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ServiceName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_ServiceName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ServiceName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_ServiceName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::BrandingImage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_BrandingImage(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::BrandingImage(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_BrandingImage(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::CallDetails() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_CallDetails(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::CallDetails(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_CallDetails(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::Ringtone() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_Ringtone(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::Ringtone(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_Ringtone(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::Media() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_Media(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_Media(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::RingTimeout() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_RingTimeout(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::RingTimeout(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_RingTimeout(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactRemoteId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_ContactRemoteId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::ContactRemoteId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->put_ContactRemoteId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions::AssociatedDeviceIds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions)->get_AssociatedDeviceIds(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptionsFactory::CreateInstance(param::iterable const& associatedDeviceIds) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory)->CreateInstance(*(void**)(&associatedDeviceIds), &value)); return winrt::Windows::ApplicationModel::Calls::IncomingVoipPhoneCallOptions{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallEndCallDeferral::Complete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral)->Complete()); } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallEndRequestedEventArgs::GetDeferral() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs)->GetDeferral(&value)); return winrt::Windows::ApplicationModel::Calls::LockScreenCallEndCallDeferral{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallEndRequestedEventArgs::Deadline() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs)->get_Deadline(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::Dismiss() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI)->Dismiss()); } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::EndRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI)->add_EndRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::EndRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EndRequested(handler)); } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::EndRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI)->remove_EndRequested(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::Closed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI)->add_Closed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::Closed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Closed(handler)); } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::Closed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI)->remove_Closed(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::CallTitle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI)->get_CallTitle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI::CallTitle(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI)->put_CallTitle(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IMuteChangeEventArgs::Muted() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IMuteChangeEventArgs)->get_Muted(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::Context() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->get_Context(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::Context(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->put_Context(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::ContactName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->get_ContactName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::ContactName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->put_ContactName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::ServiceName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->get_ServiceName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::ServiceName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->put_ServiceName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::Media() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->get_Media(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->put_Media(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions::AssociatedDeviceIds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions)->get_AssociatedDeviceIds(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptionsFactory::CreateInstance(param::iterable const& associatedDeviceIds) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory)->CreateInstance(*(void**)(&associatedDeviceIds), &value)); return winrt::Windows::ApplicationModel::Calls::OutgoingVoipPhoneCallOptions{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::StatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->add_StatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::StatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StatusChanged(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::StatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->remove_StatusChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::AudioDeviceChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->add_AudioDeviceChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::AudioDeviceChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AudioDeviceChanged(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::AudioDeviceChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->remove_AudioDeviceChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::IsMutedChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->add_IsMutedChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::IsMutedChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, IsMutedChanged(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::IsMutedChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->remove_IsMutedChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::CallId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->get_CallId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::IsMuted() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->get_IsMuted(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::Status() const { winrt::Windows::ApplicationModel::Calls::PhoneCallStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::AudioDevice() const { winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->get_AudioDevice(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::GetPhoneCallInfo() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->GetPhoneCallInfo(&result)); return winrt::Windows::ApplicationModel::Calls::PhoneCallInfo{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::GetPhoneCallInfoAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->GetPhoneCallInfoAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::End() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->End(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::EndAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->EndAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::SendDtmfKey(winrt::Windows::ApplicationModel::Calls::DtmfKey const& key, winrt::Windows::ApplicationModel::Calls::DtmfToneAudioPlayback const& dtmfToneAudioPlayback) const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->SendDtmfKey(static_cast(key), static_cast(dtmfToneAudioPlayback), reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::SendDtmfKeyAsync(winrt::Windows::ApplicationModel::Calls::DtmfKey const& key, winrt::Windows::ApplicationModel::Calls::DtmfToneAudioPlayback const& dtmfToneAudioPlayback) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->SendDtmfKeyAsync(static_cast(key), static_cast(dtmfToneAudioPlayback), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::AcceptIncoming() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->AcceptIncoming(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::AcceptIncomingAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->AcceptIncomingAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::Hold() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->Hold(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::HoldAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->HoldAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::ResumeFromHold() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->ResumeFromHold(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::ResumeFromHoldAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->ResumeFromHoldAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::Mute() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->Mute(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::MuteAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->MuteAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::Unmute() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->Unmute(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::UnmuteAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->UnmuteAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::RejectIncoming() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->RejectIncoming(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::RejectIncomingAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->RejectIncomingAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::ChangeAudioDevice(winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice const& endpoint) const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->ChangeAudioDevice(static_cast(endpoint), reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCall::ChangeAudioDeviceAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice const& endpoint) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCall)->ChangeAudioDeviceAsync(static_cast(endpoint), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics::BlockUnknownNumbers() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics)->get_BlockUnknownNumbers(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics::BlockUnknownNumbers(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics)->put_BlockUnknownNumbers(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics::BlockPrivateNumbers() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics)->get_BlockPrivateNumbers(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics::BlockPrivateNumbers(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics)->put_BlockPrivateNumbers(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics::SetCallBlockingListAsync(param::async_iterable const& phoneNumberList) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics)->SetCallBlockingListAsync(*(void**)(&phoneNumberList), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::Address() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_Address(&value)); return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::Address(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_Address(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::Duration() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_Duration(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::Duration(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_Duration(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsCallerIdBlocked() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsCallerIdBlocked(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsCallerIdBlocked(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsCallerIdBlocked(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsEmergency() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsEmergency(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsEmergency(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsEmergency(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsIncoming() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsIncoming(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsIncoming(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsIncoming(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsMissed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsMissed(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsMissed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsMissed(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsRinging() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsRinging(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsRinging(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsRinging(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsSeen() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsSeen(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsSeen(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsSeen(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsSuppressed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsSuppressed(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsSuppressed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsSuppressed(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsVoicemail() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_IsVoicemail(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::IsVoicemail(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_IsVoicemail(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::Media() const { winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_Media(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::Media(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_Media(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::OtherAppReadAccess() const { winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_OtherAppReadAccess(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::OtherAppReadAccess(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_OtherAppReadAccess(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::RemoteId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_RemoteId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::RemoteId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_RemoteId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::SourceDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_SourceDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::SourceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_SourceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::SourceId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_SourceId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::SourceIdKind() const { winrt::Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_SourceIdKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::SourceIdKind(winrt::Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_SourceIdKind(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::StartTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->get_StartTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry::StartTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry)->put_StartTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::ContactId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->get_ContactId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::ContactId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->put_ContactId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::RawAddress() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->get_RawAddress(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::RawAddress(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->put_RawAddress(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::RawAddressKind() const { winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->get_RawAddressKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress::RawAddressKind(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress)->put_RawAddressKind(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddressFactory::Create(param::hstring const& rawAddress, winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const& rawAddressKind) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory)->Create(*(void**)(&rawAddress), static_cast(rawAddressKind), &result)); return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryQueryOptions::DesiredMedia() const { winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions)->get_DesiredMedia(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryQueryOptions::DesiredMedia(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions)->put_DesiredMedia(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryQueryOptions::SourceIds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions)->get_SourceIds(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryReader::ReadBatchAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader)->ReadBatchAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation>{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerForUser::RequestStoreAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const& accessType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser)->RequestStoreAsync(static_cast(accessType), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerForUser::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerStatics::RequestStoreAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const& accessType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics)->RequestStoreAsync(static_cast(accessType), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerStatics2::GetForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2)->GetForUser(*(void**)(&user), &result)); return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryManagerForUser{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::GetEntryAsync(param::hstring const& callHistoryEntryId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->GetEntryAsync(*(void**)(&callHistoryEntryId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::GetEntryReader() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->GetEntryReader(&result)); return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::GetEntryReader(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryOptions const& queryOptions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->GetEntryReaderWithOptions(*(void**)(&queryOptions), &result)); return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::SaveEntryAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const& callHistoryEntry) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->SaveEntryAsync(*(void**)(&callHistoryEntry), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::DeleteEntryAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const& callHistoryEntry) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->DeleteEntryAsync(*(void**)(&callHistoryEntry), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::DeleteEntriesAsync(param::async_iterable const& callHistoryEntries) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->DeleteEntriesAsync(*(void**)(&callHistoryEntries), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::MarkEntryAsSeenAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const& callHistoryEntry) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->MarkEntryAsSeenAsync(*(void**)(&callHistoryEntry), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::MarkEntriesAsSeenAsync(param::async_iterable const& callHistoryEntries) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->MarkEntriesAsSeenAsync(*(void**)(&callHistoryEntries), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::GetUnseenCountAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->GetUnseenCountAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::MarkAllAsSeenAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->MarkAllAsSeenAsync(&result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::GetSourcesUnseenCountAsync(param::async_iterable const& sourceIds) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->GetSourcesUnseenCountAsync(*(void**)(&sourceIds), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore::MarkSourcesAsSeenAsync(param::async_iterable const& sourceIds) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore)->MarkSourcesAsSeenAsync(*(void**)(&sourceIds), &result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo::LineId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo)->get_LineId(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo::IsHoldSupported() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo)->get_IsHoldSupported(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo::StartTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo)->get_StartTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo::PhoneNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo)->get_PhoneNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo::CallDirection() const { winrt::Windows::ApplicationModel::Calls::PhoneCallDirection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo)->get_CallDirection(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics::ShowPhoneCallUI(param::hstring const& phoneNumber, param::hstring const& displayName) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics)->ShowPhoneCallUI(*(void**)(&phoneNumber), *(void**)(&displayName))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2::CallStateChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2)->add_CallStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2::CallStateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, CallStateChanged(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2::CallStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2)->remove_CallStateChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2::IsCallActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2)->get_IsCallActive(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2::IsCallIncoming() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2)->get_IsCallIncoming(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2::ShowPhoneCallSettingsUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2)->ShowPhoneCallSettingsUI()); } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2::RequestStoreAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2)->RequestStoreAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallStatics::GetFromId(param::hstring const& callId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallStatics)->GetFromId(*(void**)(&callId), &result)); return winrt::Windows::ApplicationModel::Calls::PhoneCall{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallStore::IsEmergencyPhoneNumberAsync(param::hstring const& number) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallStore)->IsEmergencyPhoneNumberAsync(*(void**)(&number), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallStore::GetDefaultLineAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallStore)->GetDefaultLineAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallStore::RequestLineWatcher() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallStore)->RequestLineWatcher(&result)); return winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallVideoCapabilities::IsVideoCallingCapable() const { bool pValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities)->get_IsVideoCallingCapable(&pValue)); return pValue; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallVideoCapabilitiesManagerStatics::GetCapabilitiesAsync(param::hstring const& phoneNumber) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics)->GetCapabilitiesAsync(*(void**)(&phoneNumber), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallsResult::OperationStatus() const { winrt::Windows::ApplicationModel::Calls::PhoneLineOperationStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult)->get_OperationStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneCallsResult::AllActivePhoneCalls() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult)->get_AllActivePhoneCalls(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::Number() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->get_Number(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::Number(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->put_Number(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::DisplayName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->put_DisplayName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::Contact() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->get_Contact(&value)); return winrt::Windows::ApplicationModel::Contacts::Contact{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::Contact(winrt::Windows::ApplicationModel::Contacts::Contact const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->put_Contact(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::ContactPhone() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->get_ContactPhone(&value)); return winrt::Windows::ApplicationModel::Contacts::ContactPhone{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::ContactPhone(winrt::Windows::ApplicationModel::Contacts::ContactPhone const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->put_ContactPhone(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::Media() const { winrt::Windows::ApplicationModel::Calls::PhoneCallMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->get_Media(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::Media(winrt::Windows::ApplicationModel::Calls::PhoneCallMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->put_Media(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::AudioEndpoint() const { winrt::Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->get_AudioEndpoint(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions::AudioEndpoint(winrt::Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions)->put_AudioEndpoint(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::LineChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->add_LineChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::LineChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LineChanged(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::LineChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->remove_LineChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::Id() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_Id(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::DisplayColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_DisplayColor(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::NetworkState() const { winrt::Windows::ApplicationModel::Calls::PhoneNetworkState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_NetworkState(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::Voicemail() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_Voicemail(&value)); return winrt::Windows::ApplicationModel::Calls::PhoneVoicemail{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::NetworkName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_NetworkName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::CellularDetails() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_CellularDetails(&value)); return winrt::Windows::ApplicationModel::Calls::PhoneLineCellularDetails{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::Transport() const { winrt::Windows::ApplicationModel::Calls::PhoneLineTransport value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_Transport(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::CanDial() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_CanDial(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::SupportsTile() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_SupportsTile(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::VideoCallingCapabilities() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_VideoCallingCapabilities(&value)); return winrt::Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::LineConfiguration() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->get_LineConfiguration(&value)); return winrt::Windows::ApplicationModel::Calls::PhoneLineConfiguration{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::IsImmediateDialNumberAsync(param::hstring const& number) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->IsImmediateDialNumberAsync(*(void**)(&number), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::Dial(param::hstring const& number, param::hstring const& displayName) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->Dial(*(void**)(&number), *(void**)(&displayName))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine::DialWithOptions(winrt::Windows::ApplicationModel::Calls::PhoneDialOptions const& options) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine)->DialWithOptions(*(void**)(&options))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine2::EnableTextReply(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine2)->EnableTextReply(value)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine2::TransportDeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine2)->get_TransportDeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine3::DialWithResult(param::hstring const& number, param::hstring const& displayName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine3)->DialWithResult(*(void**)(&number), *(void**)(&displayName), &result)); return winrt::Windows::ApplicationModel::Calls::PhoneLineDialResult{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine3::DialWithResultAsync(param::hstring const& number, param::hstring const& displayName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine3)->DialWithResultAsync(*(void**)(&number), *(void**)(&displayName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine3::GetAllActivePhoneCalls() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine3)->GetAllActivePhoneCalls(&result)); return winrt::Windows::ApplicationModel::Calls::PhoneCallsResult{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLine3::GetAllActivePhoneCallsAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLine3)->GetAllActivePhoneCallsAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails::SimState() const { winrt::Windows::ApplicationModel::Calls::PhoneSimState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails)->get_SimState(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails::SimSlotIndex() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails)->get_SimSlotIndex(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails::IsModemOn() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails)->get_IsModemOn(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails::RegistrationRejectCode() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails)->get_RegistrationRejectCode(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails::GetNetworkOperatorDisplayText(winrt::Windows::ApplicationModel::Calls::PhoneLineNetworkOperatorDisplayTextLocation const& location) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails)->GetNetworkOperatorDisplayText(static_cast(location), &value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineConfiguration::IsVideoCallingEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration)->get_IsVideoCallingEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineConfiguration::ExtendedProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration)->get_ExtendedProperties(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineDialResult::DialCallStatus() const { winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult)->get_DialCallStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineDialResult::DialedCall() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult)->get_DialedCall(&value)); return winrt::Windows::ApplicationModel::Calls::PhoneCall{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineStatics::FromIdAsync(winrt::guid const& lineId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineStatics)->FromIdAsync(impl::bind_in(lineId), &result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::DeviceId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->get_DeviceId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::Transport() const { winrt::Windows::ApplicationModel::Calls::PhoneLineTransport value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->get_Transport(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::RequestAccessAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->RequestAccessAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::RegisterApp() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->RegisterApp()); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::RegisterAppForUser(winrt::Windows::System::User const& user) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->RegisterAppForUser(*(void**)(&user))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::UnregisterApp() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->UnregisterApp()); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::UnregisterAppForUser(winrt::Windows::System::User const& user) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->UnregisterAppForUser(*(void**)(&user))); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::IsRegistered() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->IsRegistered(&result)); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::Connect() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->Connect(&result)); return result; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice::ConnectAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice)->ConnectAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::AudioRoutingStatus() const { winrt::Windows::ApplicationModel::Calls::TransportDeviceAudioRoutingStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2)->get_AudioRoutingStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::AudioRoutingStatusChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2)->add_AudioRoutingStatusChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::AudioRoutingStatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AudioRoutingStatusChanged(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::AudioRoutingStatusChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2)->remove_AudioRoutingStatusChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::InBandRingingEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2)->get_InBandRingingEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::InBandRingingEnabledChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2)->add_InBandRingingEnabledChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::InBandRingingEnabledChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, InBandRingingEnabledChanged(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2::InBandRingingEnabledChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2)->remove_InBandRingingEnabledChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDeviceStatics::FromId(param::hstring const& id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics)->FromId(*(void**)(&id), &result)); return winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDeviceStatics::GetDeviceSelector() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics)->GetDeviceSelector(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDeviceStatics::GetDeviceSelector(winrt::Windows::ApplicationModel::Calls::PhoneLineTransport const& transport) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics)->GetDeviceSelectorForPhoneLineTransport(static_cast(transport), &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->Start()); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->Stop()); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineAdded(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->add_LineAdded(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineAdded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LineAdded(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineAdded(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->remove_LineAdded(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineRemoved(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->add_LineRemoved(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineRemoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LineRemoved(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineRemoved(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->remove_LineRemoved(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineUpdated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->add_LineUpdated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineUpdated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LineUpdated(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::LineUpdated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->remove_LineUpdated(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EnumerationCompleted(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Stopped(handler)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::Stopped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->remove_Stopped(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher::Status() const { winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherStatus status{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher)->get_Status(reinterpret_cast(&status))); return status; } template auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcherEventArgs::LineId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs)->get_LineId(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail::Number() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail)->get_Number(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail::MessageCount() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail)->get_MessageCount(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail::Type() const { winrt::Windows::ApplicationModel::Calls::PhoneVoicemailType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail)->get_Type(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail::DialVoicemailAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail)->DialVoicemailAsync(&result)); return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::ReserveCallResourcesAsync(param::hstring const& taskEntryPoint) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->ReserveCallResourcesAsync(*(void**)(&taskEntryPoint), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::MuteStateChanged(winrt::Windows::Foundation::TypedEventHandler const& muteChangeHandler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->add_MuteStateChanged(*(void**)(&muteChangeHandler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::MuteStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& muteChangeHandler) const { return impl::make_event_revoker(this, MuteStateChanged(muteChangeHandler)); } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::MuteStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->remove_MuteStateChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::RequestNewIncomingCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, winrt::Windows::Foundation::Uri const& contactImage, param::hstring const& serviceName, winrt::Windows::Foundation::Uri const& brandingImage, param::hstring const& callDetails, winrt::Windows::Foundation::Uri const& ringtone, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media, winrt::Windows::Foundation::TimeSpan const& ringTimeout) const { void* call{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->RequestNewIncomingCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), static_cast(media), impl::bind_in(ringTimeout), &call)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::RequestNewOutgoingCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& serviceName, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const { void* call{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->RequestNewOutgoingCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&serviceName), static_cast(media), &call)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::NotifyMuted() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->NotifyMuted()); } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::NotifyUnmuted() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->NotifyUnmuted()); } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::RequestOutgoingUpgradeToVideoCall(winrt::guid const& callUpgradeGuid, param::hstring const& context, param::hstring const& contactName, param::hstring const& serviceName) const { void* call{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->RequestOutgoingUpgradeToVideoCall(impl::bind_in(callUpgradeGuid), *(void**)(&context), *(void**)(&contactName), *(void**)(&serviceName), &call)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::RequestIncomingUpgradeToVideoCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, winrt::Windows::Foundation::Uri const& contactImage, param::hstring const& serviceName, winrt::Windows::Foundation::Uri const& brandingImage, param::hstring const& callDetails, winrt::Windows::Foundation::Uri const& ringtone, winrt::Windows::Foundation::TimeSpan const& ringTimeout) const { void* call{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->RequestIncomingUpgradeToVideoCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), impl::bind_in(ringTimeout), &call)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::TerminateCellularCall(winrt::guid const& callUpgradeGuid) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->TerminateCellularCall(impl::bind_in(callUpgradeGuid))); } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator::CancelUpgrade(winrt::guid const& callUpgradeGuid) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator)->CancelUpgrade(impl::bind_in(callUpgradeGuid))); } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator2::SetupNewAcceptedCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, param::hstring const& serviceName, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const { void* call{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator2)->SetupNewAcceptedCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&serviceName), static_cast(media), &call)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator3::RequestNewAppInitiatedCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, param::hstring const& serviceName, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const { void* call{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3)->RequestNewAppInitiatedCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&serviceName), static_cast(media), &call)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator3::RequestNewIncomingCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, winrt::Windows::Foundation::Uri const& contactImage, param::hstring const& serviceName, winrt::Windows::Foundation::Uri const& brandingImage, param::hstring const& callDetails, winrt::Windows::Foundation::Uri const& ringtone, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media, winrt::Windows::Foundation::TimeSpan const& ringTimeout, param::hstring const& contactRemoteId) const { void* call{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3)->RequestNewIncomingCallWithContactRemoteId(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), static_cast(media), impl::bind_in(ringTimeout), *(void**)(&contactRemoteId), &call)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator4::ReserveCallResourcesAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator4)->ReserveOneProcessCallResourcesAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5::RequestNewIncomingCallWithOptions(winrt::Windows::ApplicationModel::Calls::IncomingVoipPhoneCallOptions const& callOptions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5)->RequestNewIncomingCallWithOptions(*(void**)(&callOptions), &result)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5::RequestNewOutgoingCallWithOptions(winrt::Windows::ApplicationModel::Calls::OutgoingVoipPhoneCallOptions const& callOptions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5)->RequestNewOutgoingCallWithOptions(*(void**)(&callOptions), &result)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5::SetupNewAcceptedCallWithOptions(winrt::Windows::ApplicationModel::Calls::AcceptedVoipPhoneCallOptions const& callOptions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5)->SetupNewAcceptedCallWithOptions(*(void**)(&callOptions), &result)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5::RequestNewAppInitiatedCallWithOptions(winrt::Windows::ApplicationModel::Calls::AppInitiatedVoipPhoneCallOptions const& callOptions) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5)->RequestNewAppInitiatedCallWithOptions(*(void**)(&callOptions), &result)); return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinatorStatics::GetDefault() const { void* coordinator{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics)->GetDefault(&coordinator)); return winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator{ coordinator, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinatorStatics2::IsCallControlDeviceKindSupportedForAssociation(winrt::Windows::ApplicationModel::Calls::VoipCallControlDeviceKind const& kind) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2)->IsCallControlDeviceKindSupportedForAssociation(static_cast(kind), &result)); return result; } template auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinatorStatics2::GetDeviceSelectorForCallControl() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2)->GetDeviceSelectorForCallControl(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::EndRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->add_EndRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::EndRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EndRequested(handler)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::EndRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->remove_EndRequested(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::HoldRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->add_HoldRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::HoldRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, HoldRequested(handler)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::HoldRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->remove_HoldRequested(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::ResumeRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->add_ResumeRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::ResumeRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ResumeRequested(handler)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::ResumeRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->remove_ResumeRequested(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::AnswerRequested(winrt::Windows::Foundation::TypedEventHandler const& acceptHandler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->add_AnswerRequested(*(void**)(&acceptHandler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::AnswerRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& acceptHandler) const { return impl::make_event_revoker(this, AnswerRequested(acceptHandler)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::AnswerRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->remove_AnswerRequested(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::RejectRequested(winrt::Windows::Foundation::TypedEventHandler const& rejectHandler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->add_RejectRequested(*(void**)(&rejectHandler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::RejectRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& rejectHandler) const { return impl::make_event_revoker(this, RejectRequested(rejectHandler)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::RejectRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->remove_RejectRequested(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::NotifyCallHeld() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->NotifyCallHeld()); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::NotifyCallActive() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->NotifyCallActive()); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::NotifyCallEnded() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->NotifyCallEnded()); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::ContactName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->get_ContactName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::ContactName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->put_ContactName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::StartTime() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->get_StartTime(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::StartTime(winrt::Windows::Foundation::DateTime const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->put_StartTime(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::CallMedia() const { winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->get_CallMedia(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::CallMedia(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->put_CallMedia(static_cast(value))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall::NotifyCallReady() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall)->NotifyCallReady()); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall2::TryShowAppUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall2)->TryShowAppUI()); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall3::NotifyCallAccepted(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall3)->NotifyCallAccepted(static_cast(media))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4::IsUsingAssociatedDevicesList() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4)->get_IsUsingAssociatedDevicesList(&value)); return value; } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4::NotifyCallActive(param::iterable const& associatedDeviceIds) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4)->NotifyCallActiveOnDevices(*(void**)(&associatedDeviceIds))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4::AddAssociatedCallControlDevice(param::hstring const& deviceId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4)->AddAssociatedCallControlDevice(*(void**)(&deviceId))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4::RemoveAssociatedCallControlDevice(param::hstring const& deviceId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4)->RemoveAssociatedCallControlDevice(*(void**)(&deviceId))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4::SetAssociatedCallControlDevices(param::iterable const& associatedDeviceIds) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4)->SetAssociatedCallControlDevices(*(void**)(&associatedDeviceIds))); } template auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4::GetAssociatedCallControlDevices() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4)->GetAssociatedCallControlDevices(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Context(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Context()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Context(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Context(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactNumber(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactNumber(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ServiceName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ServiceName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Media(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Media()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Media(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Media(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AssociatedDeviceIds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast const*>(&associatedDeviceIds))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Context(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Context()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Context(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Context(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactNumber(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactNumber(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ServiceName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ServiceName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Media(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Media()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Media(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Media(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AssociatedDeviceIds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast const*>(&associatedDeviceIds))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AcceptedMedia(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AcceptedMedia()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SourceDeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceDeviceId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RejectReason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RejectReason()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Context(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Context()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Context(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Context(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactNumber(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactNumber(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactImage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactImage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactImage(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactImage(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ServiceName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ServiceName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BrandingImage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BrandingImage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BrandingImage(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BrandingImage(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CallDetails(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CallDetails()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CallDetails(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CallDetails(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Ringtone(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Ringtone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Ringtone(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Ringtone(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Media(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Media()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Media(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Media(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RingTimeout(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RingTimeout()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RingTimeout(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RingTimeout(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactRemoteId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactRemoteId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactRemoteId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactRemoteId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AssociatedDeviceIds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast const*>(&associatedDeviceIds))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 struct produce : produce_base { int32_t __stdcall GetDeferral(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Deadline(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Deadline()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Dismiss() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Dismiss(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_EndRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EndRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EndRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EndRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Closed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Closed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_CallTitle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CallTitle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CallTitle(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CallTitle(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Muted(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Muted()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Context(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Context()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Context(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Context(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ServiceName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ServiceName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ServiceName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ServiceName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Media(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Media()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Media(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Media(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AssociatedDeviceIds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast const*>(&associatedDeviceIds))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_StatusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StatusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StatusChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_AudioDeviceChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AudioDeviceChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AudioDeviceChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AudioDeviceChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_IsMutedChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().IsMutedChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_IsMutedChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().IsMutedChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_CallId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CallId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMuted(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMuted()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioDevice(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioDevice()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPhoneCallInfo(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetPhoneCallInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPhoneCallInfoAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetPhoneCallInfoAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall End(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().End()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EndAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().EndAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendDtmfKey(int32_t key, int32_t dtmfToneAudioPlayback, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SendDtmfKey(*reinterpret_cast(&key), *reinterpret_cast(&dtmfToneAudioPlayback))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendDtmfKeyAsync(int32_t key, int32_t dtmfToneAudioPlayback, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SendDtmfKeyAsync(*reinterpret_cast(&key), *reinterpret_cast(&dtmfToneAudioPlayback))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AcceptIncoming(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().AcceptIncoming()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AcceptIncomingAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().AcceptIncomingAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Hold(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Hold()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall HoldAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().HoldAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResumeFromHold(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ResumeFromHold()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ResumeFromHoldAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ResumeFromHoldAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Mute(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Mute()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MuteAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().MuteAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Unmute(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Unmute()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnmuteAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().UnmuteAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RejectIncoming(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RejectIncoming()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RejectIncomingAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RejectIncomingAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ChangeAudioDevice(int32_t endpoint, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ChangeAudioDevice(*reinterpret_cast(&endpoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ChangeAudioDeviceAsync(int32_t endpoint, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ChangeAudioDeviceAsync(*reinterpret_cast(&endpoint))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BlockUnknownNumbers(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BlockUnknownNumbers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BlockUnknownNumbers(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BlockUnknownNumbers(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BlockPrivateNumbers(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BlockPrivateNumbers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BlockPrivateNumbers(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BlockPrivateNumbers(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetCallBlockingListAsync(void* phoneNumberList, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().SetCallBlockingListAsync(*reinterpret_cast const*>(&phoneNumberList))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Address(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Address()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Address(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Address(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Duration(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Duration(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Duration(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCallerIdBlocked(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCallerIdBlocked()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsCallerIdBlocked(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsCallerIdBlocked(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEmergency(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEmergency()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsEmergency(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsEmergency(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsIncoming(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIncoming()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsIncoming(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsIncoming(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsMissed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsMissed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsMissed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsMissed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsRinging(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsRinging()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsRinging(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsRinging(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSeen(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSeen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSeen(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSeen(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSuppressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSuppressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSuppressed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSuppressed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsVoicemail(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsVoicemail()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsVoicemail(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsVoicemail(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Media(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Media()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Media(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Media(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OtherAppReadAccess(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OtherAppReadAccess()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OtherAppReadAccess(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OtherAppReadAccess(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RemoteId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoteId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceDisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceDisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SourceId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SourceId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceIdKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceIdKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SourceIdKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SourceIdKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StartTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StartTime(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartTime(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContactId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RawAddress(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RawAddress()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RawAddress(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RawAddress(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RawAddressKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RawAddressKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RawAddressKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RawAddressKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* rawAddress, int32_t rawAddressKind, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&rawAddress), *reinterpret_cast(&rawAddressKind))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DesiredMedia(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesiredMedia()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DesiredMedia(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DesiredMedia(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceIds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SourceIds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReadBatchAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().ReadBatchAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestStoreAsync(int32_t accessType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().RequestStoreAsync(*reinterpret_cast(&accessType))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestStoreAsync(int32_t accessType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().RequestStoreAsync(*reinterpret_cast(&accessType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetEntryAsync(void* callHistoryEntryId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetEntryAsync(*reinterpret_cast(&callHistoryEntryId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetEntryReader(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetEntryReader()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetEntryReaderWithOptions(void* queryOptions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetEntryReader(*reinterpret_cast(&queryOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveEntryAsync(void* callHistoryEntry, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SaveEntryAsync(*reinterpret_cast(&callHistoryEntry))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteEntryAsync(void* callHistoryEntry, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DeleteEntryAsync(*reinterpret_cast(&callHistoryEntry))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DeleteEntriesAsync(void* callHistoryEntries, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DeleteEntriesAsync(*reinterpret_cast const*>(&callHistoryEntries))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkEntryAsSeenAsync(void* callHistoryEntry, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkEntryAsSeenAsync(*reinterpret_cast(&callHistoryEntry))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkEntriesAsSeenAsync(void* callHistoryEntries, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkEntriesAsSeenAsync(*reinterpret_cast const*>(&callHistoryEntries))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetUnseenCountAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetUnseenCountAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkAllAsSeenAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkAllAsSeenAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSourcesUnseenCountAsync(void* sourceIds, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetSourcesUnseenCountAsync(*reinterpret_cast const*>(&sourceIds))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MarkSourcesAsSeenAsync(void* sourceIds, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MarkSourcesAsSeenAsync(*reinterpret_cast const*>(&sourceIds))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LineId(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LineId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHoldSupported(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHoldSupported()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StartTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PhoneNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PhoneNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CallDirection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CallDirection()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ShowPhoneCallUI(void* phoneNumber, void* displayName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowPhoneCallUI(*reinterpret_cast(&phoneNumber), *reinterpret_cast(&displayName)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_CallStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CallStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CallStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CallStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_IsCallActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCallActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCallIncoming(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCallIncoming()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowPhoneCallSettingsUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowPhoneCallSettingsUI(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestStoreAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().RequestStoreAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetFromId(void* callId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetFromId(*reinterpret_cast(&callId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsEmergencyPhoneNumberAsync(void* number, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().IsEmergencyPhoneNumberAsync(*reinterpret_cast(&number))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDefaultLineAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetDefaultLineAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestLineWatcher(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestLineWatcher()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsVideoCallingCapable(bool* pValue) noexcept final try { typename D::abi_guard guard(this->shim()); *pValue = detach_from(this->shim().IsVideoCallingCapable()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetCapabilitiesAsync(void* phoneNumber, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetCapabilitiesAsync(*reinterpret_cast(&phoneNumber))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OperationStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OperationStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllActivePhoneCalls(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AllActivePhoneCalls()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Number(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Number()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Number(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Number(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Contact(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Contact()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Contact(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Contact(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactPhone(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactPhone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactPhone(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactPhone(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Media(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Media()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Media(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Media(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AudioEndpoint(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioEndpoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AudioEndpoint(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AudioEndpoint(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_LineChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LineChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LineChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LineChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_Id(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NetworkState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NetworkState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Voicemail(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Voicemail()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NetworkName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NetworkName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CellularDetails(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CellularDetails()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Transport(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Transport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanDial(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanDial()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsTile(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsTile()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VideoCallingCapabilities(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VideoCallingCapabilities()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LineConfiguration(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LineConfiguration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsImmediateDialNumberAsync(void* number, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().IsImmediateDialNumberAsync(*reinterpret_cast(&number))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Dial(void* number, void* displayName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Dial(*reinterpret_cast(&number), *reinterpret_cast(&displayName)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DialWithOptions(void* options) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DialWithOptions(*reinterpret_cast(&options)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall EnableTextReply(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableTextReply(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TransportDeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TransportDeviceId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall DialWithResult(void* number, void* displayName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DialWithResult(*reinterpret_cast(&number), *reinterpret_cast(&displayName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DialWithResultAsync(void* number, void* displayName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().DialWithResultAsync(*reinterpret_cast(&number), *reinterpret_cast(&displayName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAllActivePhoneCalls(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAllActivePhoneCalls()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAllActivePhoneCallsAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetAllActivePhoneCallsAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SimState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SimSlotIndex(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SimSlotIndex()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsModemOn(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsModemOn()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RegistrationRejectCode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RegistrationRejectCode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetNetworkOperatorDisplayText(int32_t location, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetNetworkOperatorDisplayText(*reinterpret_cast(&location))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsVideoCallingEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsVideoCallingEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExtendedProperties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DialCallStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DialCallStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DialedCall(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DialedCall()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromIdAsync(winrt::guid lineId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().FromIdAsync(*reinterpret_cast(&lineId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DeviceId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Transport(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Transport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestAccessAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestAccessAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterApp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RegisterApp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterAppForUser(void* user) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RegisterAppForUser(*reinterpret_cast(&user)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnregisterApp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UnregisterApp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnregisterAppForUser(void* user) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UnregisterAppForUser(*reinterpret_cast(&user)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsRegistered(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsRegistered()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Connect(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Connect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConnectAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ConnectAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AudioRoutingStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AudioRoutingStatus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_AudioRoutingStatusChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AudioRoutingStatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AudioRoutingStatusChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AudioRoutingStatusChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_InBandRingingEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InBandRingingEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_InBandRingingEnabledChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().InBandRingingEnabledChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_InBandRingingEnabledChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().InBandRingingEnabledChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromId(void* id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromId(*reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeviceSelector(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeviceSelector()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeviceSelectorForPhoneLineTransport(int32_t transport, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeviceSelector(*reinterpret_cast(&transport))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Start() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_LineAdded(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LineAdded(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LineAdded(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LineAdded(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_LineRemoved(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LineRemoved(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LineRemoved(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LineRemoved(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_LineUpdated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LineUpdated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LineUpdated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LineUpdated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EnumerationCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EnumerationCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Stopped(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_Status(int32_t* status) noexcept final try { typename D::abi_guard guard(this->shim()); *status = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LineId(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LineId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Number(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Number()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MessageCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MessageCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Type(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Type()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall DialVoicemailAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().DialVoicemailAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReserveCallResourcesAsync(void* taskEntryPoint, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ReserveCallResourcesAsync(*reinterpret_cast(&taskEntryPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_MuteStateChanged(void* muteChangeHandler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().MuteStateChanged(*reinterpret_cast const*>(&muteChangeHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_MuteStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().MuteStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall RequestNewIncomingCall(void* context, void* contactName, void* contactNumber, void* contactImage, void* serviceName, void* brandingImage, void* callDetails, void* ringtone, uint32_t media, int64_t ringTimeout, void** call) noexcept final try { clear_abi(call); typename D::abi_guard guard(this->shim()); *call = detach_from(this->shim().RequestNewIncomingCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&contactNumber), *reinterpret_cast(&contactImage), *reinterpret_cast(&serviceName), *reinterpret_cast(&brandingImage), *reinterpret_cast(&callDetails), *reinterpret_cast(&ringtone), *reinterpret_cast(&media), *reinterpret_cast(&ringTimeout))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestNewOutgoingCall(void* context, void* contactName, void* serviceName, uint32_t media, void** call) noexcept final try { clear_abi(call); typename D::abi_guard guard(this->shim()); *call = detach_from(this->shim().RequestNewOutgoingCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&serviceName), *reinterpret_cast(&media))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyMuted() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyMuted(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyUnmuted() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyUnmuted(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestOutgoingUpgradeToVideoCall(winrt::guid callUpgradeGuid, void* context, void* contactName, void* serviceName, void** call) noexcept final try { clear_abi(call); typename D::abi_guard guard(this->shim()); *call = detach_from(this->shim().RequestOutgoingUpgradeToVideoCall(*reinterpret_cast(&callUpgradeGuid), *reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&serviceName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestIncomingUpgradeToVideoCall(void* context, void* contactName, void* contactNumber, void* contactImage, void* serviceName, void* brandingImage, void* callDetails, void* ringtone, int64_t ringTimeout, void** call) noexcept final try { clear_abi(call); typename D::abi_guard guard(this->shim()); *call = detach_from(this->shim().RequestIncomingUpgradeToVideoCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&contactNumber), *reinterpret_cast(&contactImage), *reinterpret_cast(&serviceName), *reinterpret_cast(&brandingImage), *reinterpret_cast(&callDetails), *reinterpret_cast(&ringtone), *reinterpret_cast(&ringTimeout))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TerminateCellularCall(winrt::guid callUpgradeGuid) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TerminateCellularCall(*reinterpret_cast(&callUpgradeGuid)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CancelUpgrade(winrt::guid callUpgradeGuid) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CancelUpgrade(*reinterpret_cast(&callUpgradeGuid)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetupNewAcceptedCall(void* context, void* contactName, void* contactNumber, void* serviceName, uint32_t media, void** call) noexcept final try { clear_abi(call); typename D::abi_guard guard(this->shim()); *call = detach_from(this->shim().SetupNewAcceptedCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&contactNumber), *reinterpret_cast(&serviceName), *reinterpret_cast(&media))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestNewAppInitiatedCall(void* context, void* contactName, void* contactNumber, void* serviceName, uint32_t media, void** call) noexcept final try { clear_abi(call); typename D::abi_guard guard(this->shim()); *call = detach_from(this->shim().RequestNewAppInitiatedCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&contactNumber), *reinterpret_cast(&serviceName), *reinterpret_cast(&media))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestNewIncomingCallWithContactRemoteId(void* context, void* contactName, void* contactNumber, void* contactImage, void* serviceName, void* brandingImage, void* callDetails, void* ringtone, uint32_t media, int64_t ringTimeout, void* contactRemoteId, void** call) noexcept final try { clear_abi(call); typename D::abi_guard guard(this->shim()); *call = detach_from(this->shim().RequestNewIncomingCall(*reinterpret_cast(&context), *reinterpret_cast(&contactName), *reinterpret_cast(&contactNumber), *reinterpret_cast(&contactImage), *reinterpret_cast(&serviceName), *reinterpret_cast(&brandingImage), *reinterpret_cast(&callDetails), *reinterpret_cast(&ringtone), *reinterpret_cast(&media), *reinterpret_cast(&ringTimeout), *reinterpret_cast(&contactRemoteId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ReserveOneProcessCallResourcesAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ReserveCallResourcesAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestNewIncomingCallWithOptions(void* callOptions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestNewIncomingCallWithOptions(*reinterpret_cast(&callOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestNewOutgoingCallWithOptions(void* callOptions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestNewOutgoingCallWithOptions(*reinterpret_cast(&callOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetupNewAcceptedCallWithOptions(void* callOptions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetupNewAcceptedCallWithOptions(*reinterpret_cast(&callOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestNewAppInitiatedCallWithOptions(void* callOptions, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestNewAppInitiatedCallWithOptions(*reinterpret_cast(&callOptions))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** coordinator) noexcept final try { clear_abi(coordinator); typename D::abi_guard guard(this->shim()); *coordinator = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsCallControlDeviceKindSupportedForAssociation(int32_t kind, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsCallControlDeviceKindSupportedForAssociation(*reinterpret_cast(&kind))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeviceSelectorForCallControl(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeviceSelectorForCallControl()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_EndRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EndRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EndRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EndRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_HoldRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().HoldRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_HoldRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().HoldRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ResumeRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ResumeRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ResumeRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ResumeRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_AnswerRequested(void* acceptHandler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AnswerRequested(*reinterpret_cast const*>(&acceptHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AnswerRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AnswerRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_RejectRequested(void* rejectHandler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RejectRequested(*reinterpret_cast const*>(&rejectHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RejectRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RejectRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall NotifyCallHeld() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyCallHeld(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyCallActive() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyCallActive(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyCallEnded() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyCallEnded(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContactName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContactName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContactName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContactName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StartTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StartTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StartTime(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartTime(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CallMedia(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CallMedia()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CallMedia(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CallMedia(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyCallReady() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyCallReady(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryShowAppUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TryShowAppUI(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall NotifyCallAccepted(uint32_t media) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyCallAccepted(*reinterpret_cast(&media)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsUsingAssociatedDevicesList(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsUsingAssociatedDevicesList()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyCallActiveOnDevices(void* associatedDeviceIds) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyCallActive(*reinterpret_cast const*>(&associatedDeviceIds)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddAssociatedCallControlDevice(void* deviceId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddAssociatedCallControlDevice(*reinterpret_cast(&deviceId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveAssociatedCallControlDevice(void* deviceId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveAssociatedCallControlDevice(*reinterpret_cast(&deviceId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAssociatedCallControlDevices(void* associatedDeviceIds) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAssociatedCallControlDevices(*reinterpret_cast const*>(&associatedDeviceIds)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAssociatedCallControlDevices(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAssociatedCallControlDevices()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Calls { constexpr auto operator|(PhoneCallHistoryEntryQueryDesiredMedia const left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(PhoneCallHistoryEntryQueryDesiredMedia& left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept { left = left | right; return left; } constexpr auto operator&(PhoneCallHistoryEntryQueryDesiredMedia const left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(PhoneCallHistoryEntryQueryDesiredMedia& left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept { left = left & right; return left; } constexpr auto operator~(PhoneCallHistoryEntryQueryDesiredMedia const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(PhoneCallHistoryEntryQueryDesiredMedia const left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(PhoneCallHistoryEntryQueryDesiredMedia& left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(VoipPhoneCallMedia const left, VoipPhoneCallMedia const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(VoipPhoneCallMedia& left, VoipPhoneCallMedia const right) noexcept { left = left | right; return left; } constexpr auto operator&(VoipPhoneCallMedia const left, VoipPhoneCallMedia const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(VoipPhoneCallMedia& left, VoipPhoneCallMedia const right) noexcept { left = left & right; return left; } constexpr auto operator~(VoipPhoneCallMedia const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(VoipPhoneCallMedia const left, VoipPhoneCallMedia const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(VoipPhoneCallMedia& left, VoipPhoneCallMedia const right) noexcept { left = left ^ right; return left; } inline AcceptedVoipPhoneCallOptions::AcceptedVoipPhoneCallOptions() : AcceptedVoipPhoneCallOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline AcceptedVoipPhoneCallOptions::AcceptedVoipPhoneCallOptions(param::iterable const& associatedDeviceIds) : AcceptedVoipPhoneCallOptions(impl::call_factory([&](IAcceptedVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); })) { } inline AppInitiatedVoipPhoneCallOptions::AppInitiatedVoipPhoneCallOptions() : AppInitiatedVoipPhoneCallOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline AppInitiatedVoipPhoneCallOptions::AppInitiatedVoipPhoneCallOptions(param::iterable const& associatedDeviceIds) : AppInitiatedVoipPhoneCallOptions(impl::call_factory([&](IAppInitiatedVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); })) { } inline IncomingVoipPhoneCallOptions::IncomingVoipPhoneCallOptions() : IncomingVoipPhoneCallOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline IncomingVoipPhoneCallOptions::IncomingVoipPhoneCallOptions(param::iterable const& associatedDeviceIds) : IncomingVoipPhoneCallOptions(impl::call_factory([&](IIncomingVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); })) { } inline OutgoingVoipPhoneCallOptions::OutgoingVoipPhoneCallOptions() : OutgoingVoipPhoneCallOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline OutgoingVoipPhoneCallOptions::OutgoingVoipPhoneCallOptions(param::iterable const& associatedDeviceIds) : OutgoingVoipPhoneCallOptions(impl::call_factory([&](IOutgoingVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); })) { } inline auto PhoneCall::GetFromId(param::hstring const& callId) { return impl::call_factory([&](IPhoneCallStatics const& f) { return f.GetFromId(callId); }); } inline auto PhoneCallBlocking::BlockUnknownNumbers() { return impl::call_factory_cast([](IPhoneCallBlockingStatics const& f) { return f.BlockUnknownNumbers(); }); } inline auto PhoneCallBlocking::BlockUnknownNumbers(bool value) { impl::call_factory([&](IPhoneCallBlockingStatics const& f) { return f.BlockUnknownNumbers(value); }); } inline auto PhoneCallBlocking::BlockPrivateNumbers() { return impl::call_factory_cast([](IPhoneCallBlockingStatics const& f) { return f.BlockPrivateNumbers(); }); } inline auto PhoneCallBlocking::BlockPrivateNumbers(bool value) { impl::call_factory([&](IPhoneCallBlockingStatics const& f) { return f.BlockPrivateNumbers(value); }); } inline auto PhoneCallBlocking::SetCallBlockingListAsync(param::async_iterable const& phoneNumberList) { return impl::call_factory([&](IPhoneCallBlockingStatics const& f) { return f.SetCallBlockingListAsync(phoneNumberList); }); } inline PhoneCallHistoryEntry::PhoneCallHistoryEntry() : PhoneCallHistoryEntry(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline PhoneCallHistoryEntryAddress::PhoneCallHistoryEntryAddress() : PhoneCallHistoryEntryAddress(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline PhoneCallHistoryEntryAddress::PhoneCallHistoryEntryAddress(param::hstring const& rawAddress, winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const& rawAddressKind) : PhoneCallHistoryEntryAddress(impl::call_factory([&](IPhoneCallHistoryEntryAddressFactory const& f) { return f.Create(rawAddress, rawAddressKind); })) { } inline PhoneCallHistoryEntryQueryOptions::PhoneCallHistoryEntryQueryOptions() : PhoneCallHistoryEntryQueryOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto PhoneCallHistoryManager::RequestStoreAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const& accessType) { return impl::call_factory([&](IPhoneCallHistoryManagerStatics const& f) { return f.RequestStoreAsync(accessType); }); } inline auto PhoneCallHistoryManager::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IPhoneCallHistoryManagerStatics2 const& f) { return f.GetForUser(user); }); } inline auto PhoneCallManager::ShowPhoneCallUI(param::hstring const& phoneNumber, param::hstring const& displayName) { impl::call_factory([&](IPhoneCallManagerStatics const& f) { return f.ShowPhoneCallUI(phoneNumber, displayName); }); } inline auto PhoneCallManager::CallStateChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](IPhoneCallManagerStatics2 const& f) { return f.CallStateChanged(handler); }); } inline auto PhoneCallManager::CallStateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return PhoneCallManager::CallStateChanged_revoker{ f, f.CallStateChanged(handler) }; } inline auto PhoneCallManager::CallStateChanged(winrt::event_token const& token) { impl::call_factory([&](IPhoneCallManagerStatics2 const& f) { return f.CallStateChanged(token); }); } inline auto PhoneCallManager::IsCallActive() { return impl::call_factory_cast([](IPhoneCallManagerStatics2 const& f) { return f.IsCallActive(); }); } inline auto PhoneCallManager::IsCallIncoming() { return impl::call_factory_cast([](IPhoneCallManagerStatics2 const& f) { return f.IsCallIncoming(); }); } inline auto PhoneCallManager::ShowPhoneCallSettingsUI() { impl::call_factory_cast([](IPhoneCallManagerStatics2 const& f) { return f.ShowPhoneCallSettingsUI(); }); } inline auto PhoneCallManager::RequestStoreAsync() { return impl::call_factory_cast(*)(IPhoneCallManagerStatics2 const&), PhoneCallManager, IPhoneCallManagerStatics2>([](IPhoneCallManagerStatics2 const& f) { return f.RequestStoreAsync(); }); } inline auto PhoneCallVideoCapabilitiesManager::GetCapabilitiesAsync(param::hstring const& phoneNumber) { return impl::call_factory([&](IPhoneCallVideoCapabilitiesManagerStatics const& f) { return f.GetCapabilitiesAsync(phoneNumber); }); } inline PhoneDialOptions::PhoneDialOptions() : PhoneDialOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto PhoneLine::FromIdAsync(winrt::guid const& lineId) { return impl::call_factory([&](IPhoneLineStatics const& f) { return f.FromIdAsync(lineId); }); } inline auto PhoneLineTransportDevice::FromId(param::hstring const& id) { return impl::call_factory([&](IPhoneLineTransportDeviceStatics const& f) { return f.FromId(id); }); } inline auto PhoneLineTransportDevice::GetDeviceSelector() { return impl::call_factory_cast([](IPhoneLineTransportDeviceStatics const& f) { return f.GetDeviceSelector(); }); } inline auto PhoneLineTransportDevice::GetDeviceSelector(winrt::Windows::ApplicationModel::Calls::PhoneLineTransport const& transport) { return impl::call_factory([&](IPhoneLineTransportDeviceStatics const& f) { return f.GetDeviceSelector(transport); }); } inline auto VoipCallCoordinator::GetDefault() { return impl::call_factory_cast([](IVoipCallCoordinatorStatics const& f) { return f.GetDefault(); }); } inline auto VoipCallCoordinator::IsCallControlDeviceKindSupportedForAssociation(winrt::Windows::ApplicationModel::Calls::VoipCallControlDeviceKind const& kind) { return impl::call_factory([&](IVoipCallCoordinatorStatics2 const& f) { return f.IsCallControlDeviceKindSupportedForAssociation(kind); }); } inline auto VoipCallCoordinator::GetDeviceSelectorForCallControl() { return impl::call_factory_cast([](IVoipCallCoordinatorStatics2 const& f) { return f.GetDeviceSelectorForCallControl(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif