// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Media_PlayTo_H #define WINRT_Windows_Media_PlayTo_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.Media.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.Media.PlayTo.2.h" namespace winrt::impl { template auto consume_Windows_Media_PlayTo_ICurrentTimeChangeRequestedEventArgs::Time() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ICurrentTimeChangeRequestedEventArgs)->get_Time(put_abi(value))); return value; } template auto consume_Windows_Media_PlayTo_IMuteChangeRequestedEventArgs::Mute() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IMuteChangeRequestedEventArgs)->get_Mute(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToConnection::State() const { winrt::Windows::Media::PlayTo::PlayToConnectionState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnection)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_PlayTo_IPlayToConnection::StateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnection)->add_StateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToConnection::StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StateChanged(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToConnection::StateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnection)->remove_StateChanged(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToConnection::Transferred(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnection)->add_Transferred(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToConnection::Transferred(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Transferred(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToConnection::Transferred(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnection)->remove_Transferred(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToConnection::Error(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnection)->add_Error(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToConnection::Error(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Error(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToConnection::Error(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnection)->remove_Error(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToConnectionErrorEventArgs::Code() const { winrt::Windows::Media::PlayTo::PlayToConnectionError value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnectionErrorEventArgs)->get_Code(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_PlayTo_IPlayToConnectionErrorEventArgs::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnectionErrorEventArgs)->get_Message(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToConnectionStateChangedEventArgs::PreviousState() const { winrt::Windows::Media::PlayTo::PlayToConnectionState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnectionStateChangedEventArgs)->get_PreviousState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_PlayTo_IPlayToConnectionStateChangedEventArgs::CurrentState() const { winrt::Windows::Media::PlayTo::PlayToConnectionState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnectionStateChangedEventArgs)->get_CurrentState(reinterpret_cast(&value))); return value; } template auto consume_Windows_Media_PlayTo_IPlayToConnectionTransferredEventArgs::PreviousSource() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnectionTransferredEventArgs)->get_PreviousSource(&value)); return winrt::Windows::Media::PlayTo::PlayToSource{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToConnectionTransferredEventArgs::CurrentSource() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToConnectionTransferredEventArgs)->get_CurrentSource(&value)); return winrt::Windows::Media::PlayTo::PlayToSource{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToManager::SourceRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManager)->add_SourceRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToManager::SourceRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SourceRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToManager::SourceRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManager)->remove_SourceRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToManager::SourceSelected(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManager)->add_SourceSelected(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToManager::SourceSelected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SourceSelected(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToManager::SourceSelected(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManager)->remove_SourceSelected(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToManager::DefaultSourceSelection(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManager)->put_DefaultSourceSelection(value)); } template auto consume_Windows_Media_PlayTo_IPlayToManager::DefaultSourceSelection() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManager)->get_DefaultSourceSelection(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToManagerStatics::GetForCurrentView() const { void* playToManager{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManagerStatics)->GetForCurrentView(&playToManager)); return winrt::Windows::Media::PlayTo::PlayToManager{ playToManager, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToManagerStatics::ShowPlayToUI() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToManagerStatics)->ShowPlayToUI()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PlayRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_PlayRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PlayRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PlayRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PlayRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_PlayRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PauseRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_PauseRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PauseRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PauseRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PauseRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_PauseRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SourceChangeRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_SourceChangeRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SourceChangeRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SourceChangeRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SourceChangeRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_SourceChangeRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PlaybackRateChangeRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_PlaybackRateChangeRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PlaybackRateChangeRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PlaybackRateChangeRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::PlaybackRateChangeRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_PlaybackRateChangeRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::CurrentTimeChangeRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_CurrentTimeChangeRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::CurrentTimeChangeRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CurrentTimeChangeRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::CurrentTimeChangeRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_CurrentTimeChangeRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::MuteChangeRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_MuteChangeRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::MuteChangeRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, MuteChangeRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::MuteChangeRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_MuteChangeRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::VolumeChangeRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_VolumeChangeRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::VolumeChangeRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, VolumeChangeRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::VolumeChangeRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_VolumeChangeRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::TimeUpdateRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_TimeUpdateRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::TimeUpdateRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, TimeUpdateRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::TimeUpdateRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_TimeUpdateRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::StopRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->add_StopRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::StopRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StopRequested(handler)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::StopRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->remove_StopRequested(impl::bind_in(token)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyVolumeChange(double volume, bool mute) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyVolumeChange(volume, mute)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyRateChange(double rate) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyRateChange(rate)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyLoadedMetadata() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyLoadedMetadata()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyTimeUpdate(winrt::Windows::Foundation::TimeSpan const& currentTime) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyTimeUpdate(impl::bind_in(currentTime))); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyDurationChange(winrt::Windows::Foundation::TimeSpan const& duration) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyDurationChange(impl::bind_in(duration))); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifySeeking() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifySeeking()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifySeeked() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifySeeked()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyPaused() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyPaused()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyPlaying() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyPlaying()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyEnded() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyEnded()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyError() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyError()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::NotifyStopped() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->NotifyStopped()); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::FriendlyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->get_FriendlyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::FriendlyName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->put_FriendlyName(*(void**)(&value))); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SupportsImage(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->put_SupportsImage(value)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SupportsImage() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->get_SupportsImage(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SupportsAudio(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->put_SupportsAudio(value)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SupportsAudio() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->get_SupportsAudio(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SupportsVideo(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->put_SupportsVideo(value)); } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::SupportsVideo() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->get_SupportsVideo(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::StartAsync() const { void* action{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->StartAsync(&action)); return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToReceiver::StopAsync() const { void* action{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToReceiver)->StopAsync(&action)); return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSource::Connection() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSource)->get_Connection(&value)); return winrt::Windows::Media::PlayTo::PlayToConnection{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSource::Next() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSource)->get_Next(&value)); return winrt::Windows::Media::PlayTo::PlayToSource{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSource::Next(winrt::Windows::Media::PlayTo::PlayToSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSource)->put_Next(*(void**)(&value))); } template auto consume_Windows_Media_PlayTo_IPlayToSource::PlayNext() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSource)->PlayNext()); } template auto consume_Windows_Media_PlayTo_IPlayToSourceDeferral::Complete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceDeferral)->Complete()); } template auto consume_Windows_Media_PlayTo_IPlayToSourceRequest::Deadline() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceRequest)->get_Deadline(put_abi(value))); return value; } template auto consume_Windows_Media_PlayTo_IPlayToSourceRequest::DisplayErrorString(param::hstring const& errorString) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceRequest)->DisplayErrorString(*(void**)(&errorString))); } template auto consume_Windows_Media_PlayTo_IPlayToSourceRequest::GetDeferral() const { void* deferral{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceRequest)->GetDeferral(&deferral)); return winrt::Windows::Media::PlayTo::PlayToSourceDeferral{ deferral, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSourceRequest::SetSource(winrt::Windows::Media::PlayTo::PlayToSource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceRequest)->SetSource(*(void**)(&value))); } template auto consume_Windows_Media_PlayTo_IPlayToSourceRequestedEventArgs::SourceRequest() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceRequestedEventArgs)->get_SourceRequest(&value)); return winrt::Windows::Media::PlayTo::PlayToSourceRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSourceSelectedEventArgs::FriendlyName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceSelectedEventArgs)->get_FriendlyName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSourceSelectedEventArgs::Icon() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceSelectedEventArgs)->get_Icon(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSourceSelectedEventArgs::SupportsImage() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceSelectedEventArgs)->get_SupportsImage(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToSourceSelectedEventArgs::SupportsAudio() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceSelectedEventArgs)->get_SupportsAudio(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToSourceSelectedEventArgs::SupportsVideo() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceSelectedEventArgs)->get_SupportsVideo(&value)); return value; } template auto consume_Windows_Media_PlayTo_IPlayToSourceWithPreferredSourceUri::PreferredSourceUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceWithPreferredSourceUri)->get_PreferredSourceUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IPlayToSourceWithPreferredSourceUri::PreferredSourceUri(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlayToSourceWithPreferredSourceUri)->put_PreferredSourceUri(*(void**)(&value))); } template auto consume_Windows_Media_PlayTo_IPlaybackRateChangeRequestedEventArgs::Rate() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IPlaybackRateChangeRequestedEventArgs)->get_Rate(&value)); return value; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Stream() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Stream(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Author() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Author(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Album() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Album(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Genre() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Genre(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Date() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Date(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Thumbnail() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Thumbnail(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Rating() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Rating(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_ISourceChangeRequestedEventArgs::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::ISourceChangeRequestedEventArgs)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_Media_PlayTo_IVolumeChangeRequestedEventArgs::Volume() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Media::PlayTo::IVolumeChangeRequestedEventArgs)->get_Volume(&value)); return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Time(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Time()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Mute(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mute()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_StateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Transferred(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Transferred(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Transferred(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Transferred(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Error(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Error(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Error(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Error(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Code(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Code()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreviousState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviousState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentState()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreviousSource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviousSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentSource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentSource()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_SourceRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SourceRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SourceRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SourceRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SourceSelected(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SourceSelected(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SourceSelected(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SourceSelected(*reinterpret_cast(&token)); return 0; } int32_t __stdcall put_DefaultSourceSelection(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DefaultSourceSelection(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultSourceSelection(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultSourceSelection()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** playToManager) noexcept final try { clear_abi(playToManager); typename D::abi_guard guard(this->shim()); *playToManager = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowPlayToUI() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowPlayToUI(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_PlayRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PlayRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PlayRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PlayRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PauseRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PauseRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PauseRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PauseRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SourceChangeRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SourceChangeRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SourceChangeRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SourceChangeRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PlaybackRateChangeRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PlaybackRateChangeRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PlaybackRateChangeRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PlaybackRateChangeRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CurrentTimeChangeRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CurrentTimeChangeRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CurrentTimeChangeRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CurrentTimeChangeRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_MuteChangeRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().MuteChangeRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_MuteChangeRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().MuteChangeRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_VolumeChangeRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VolumeChangeRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VolumeChangeRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VolumeChangeRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_TimeUpdateRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().TimeUpdateRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TimeUpdateRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TimeUpdateRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_StopRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StopRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StopRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StopRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall NotifyVolumeChange(double volume, bool mute) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyVolumeChange(volume, mute); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyRateChange(double rate) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyRateChange(rate); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyLoadedMetadata() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyLoadedMetadata(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyTimeUpdate(int64_t currentTime) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyTimeUpdate(*reinterpret_cast(¤tTime)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyDurationChange(int64_t duration) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyDurationChange(*reinterpret_cast(&duration)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifySeeking() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifySeeking(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifySeeked() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifySeeked(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyPaused() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyPaused(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyPlaying() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyPlaying(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyEnded() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyEnded(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyError() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyError(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyStopped() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyStopped(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FriendlyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FriendlyName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FriendlyName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FriendlyName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SupportsImage(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SupportsImage(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsImage(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsImage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SupportsAudio(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SupportsAudio(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsAudio(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsAudio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SupportsVideo(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SupportsVideo(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsVideo(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsVideo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartAsync(void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().StartAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopAsync(void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().StopAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Connection(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Connection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Next(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Next()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Next(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Next(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PlayNext() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PlayNext(); 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 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(); } int32_t __stdcall DisplayErrorString(void* errorString) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayErrorString(*reinterpret_cast(&errorString)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** deferral) noexcept final try { clear_abi(deferral); typename D::abi_guard guard(this->shim()); *deferral = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSource(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetSource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SourceRequest(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceRequest()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FriendlyName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FriendlyName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Icon(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Icon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsImage(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsImage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsAudio(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsAudio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportsVideo(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SupportsVideo()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreferredSourceUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreferredSourceUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PreferredSourceUri(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PreferredSourceUri(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Rate(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Rate()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Stream(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Stream()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Author(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Author()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Album(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Album()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Genre(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Genre()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Description(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Date(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Date()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Thumbnail(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Thumbnail()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Rating(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Rating()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Volume(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Volume()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Media::PlayTo { inline auto PlayToManager::GetForCurrentView() { return impl::call_factory_cast([](IPlayToManagerStatics const& f) { return f.GetForCurrentView(); }); } inline auto PlayToManager::ShowPlayToUI() { impl::call_factory_cast([](IPlayToManagerStatics const& f) { return f.ShowPlayToUI(); }); } inline PlayToReceiver::PlayToReceiver() : PlayToReceiver(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif