// C++/WinRT v2.0.220110.5 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_UI_Core_Preview_Communications_H #define WINRT_Windows_UI_Core_Preview_Communications_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.220110.5"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.220110.5" #include "winrt/Windows.UI.Core.Preview.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.UI.Core.Preview.Communications.2.h" namespace winrt::impl { template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Deferral) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamCleanupRequestedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamCleanupRequestedEventArgs)->GetDeferral(&result)); return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::UI::Core::Preview::Communications::PreviewTeamViewCommand) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamCommandInvokedEventArgs::Command() const { winrt::Windows::UI::Core::Preview::Communications::PreviewTeamViewCommand value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamCommandInvokedEventArgs)->get_Command(reinterpret_cast(&value))); return value; } template WINRT_IMPL_AUTO(hstring) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamDeviceCredentials::UserPrincipalName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamDeviceCredentials)->get_UserPrincipalName(&value)); return hstring{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(hstring) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamDeviceCredentials::DomainUserName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamDeviceCredentials)->get_DomainUserName(&value)); return hstring{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(hstring) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamDeviceCredentials::Password() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamDeviceCredentials)->get_Password(&value)); return hstring{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Deferral) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamEndMeetingRequestedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamEndMeetingRequestedEventArgs)->GetDeferral(&result)); return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Deferral) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamJoinMeetingRequestedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamJoinMeetingRequestedEventArgs)->GetDeferral(&result)); return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Uri) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamJoinMeetingRequestedEventArgs::MeetingUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamJoinMeetingRequestedEventArgs)->get_MeetingUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SetTitle(param::hstring const& title) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->SetTitle(*(void**)(&title))); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::EnterFullScreen() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->EnterFullScreen()); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::LeaveFullScreen() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->LeaveFullScreen()); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::RequestForeground() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->RequestForeground()); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::StartSharingScreen() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->StartSharingScreen()); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::StopSharingScreen() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->StopSharingScreen()); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::NotifyMeetingEnded(winrt::Windows::UI::Core::Preview::Communications::PreviewTeamEndMeetingKind const& kind) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->NotifyMeetingEnded(static_cast(kind))); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::JoinMeetingWithUri(winrt::Windows::Foundation::Uri const& meetingUri) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->JoinMeetingWithUri(*(void**)(&meetingUri))); } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Uri) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::MeetingUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->get_MeetingUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Rect) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SharingScreenBounds() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->get_SharingScreenBounds(put_abi(value))); return value; } template WINRT_IMPL_AUTO(bool) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsScreenSharing() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->get_IsScreenSharing(&value)); return value; } template WINRT_IMPL_AUTO(bool) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsFullScreen() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->get_IsFullScreen(&value)); return value; } template WINRT_IMPL_AUTO(winrt::Windows::UI::Core::Preview::Communications::PreviewSystemState) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SystemState() const { winrt::Windows::UI::Core::Preview::Communications::PreviewSystemState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->get_SystemState(reinterpret_cast(&value))); return value; } template WINRT_IMPL_AUTO(winrt::Windows::UI::Core::Preview::Communications::PreviewMeetingInfoDisplayKind) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::MeetingInfoDisplayType() const { winrt::Windows::UI::Core::Preview::Communications::PreviewMeetingInfoDisplayKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->get_MeetingInfoDisplayType(reinterpret_cast(&value))); return value; } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::JoinMeetingRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_JoinMeetingRequested(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::JoinMeetingRequested_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::JoinMeetingRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, JoinMeetingRequested(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::JoinMeetingRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_JoinMeetingRequested(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::EndMeetingRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_EndMeetingRequested(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::EndMeetingRequested_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::EndMeetingRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EndMeetingRequested(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::EndMeetingRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_EndMeetingRequested(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CleanupRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_CleanupRequested(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CleanupRequested_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CleanupRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CleanupRequested(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CleanupRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_CleanupRequested(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SharingScreenBoundsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_SharingScreenBoundsChanged(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SharingScreenBoundsChanged_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SharingScreenBoundsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SharingScreenBoundsChanged(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SharingScreenBoundsChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_SharingScreenBoundsChanged(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsScreenSharingChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_IsScreenSharingChanged(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsScreenSharingChanged_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsScreenSharingChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, IsScreenSharingChanged(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsScreenSharingChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_IsScreenSharingChanged(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsFullScreenChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_IsFullScreenChanged(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsFullScreenChanged_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsFullScreenChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, IsFullScreenChanged(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::IsFullScreenChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_IsFullScreenChanged(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CommandInvoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_CommandInvoked(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CommandInvoked_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CommandInvoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CommandInvoked(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::CommandInvoked(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_CommandInvoked(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SystemStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->add_SystemStateChanged(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SystemStateChanged_revoker consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SystemStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SystemStateChanged(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView::SystemStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView)->remove_SystemStateChanged(impl::bind_in(token)); } template WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamView2::SetButtonLabel(param::hstring const& label) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamView2)->SetButtonLabel(*(void**)(&label))); } template WINRT_IMPL_AUTO(winrt::Windows::UI::Core::Preview::Communications::PreviewTeamView) consume_Windows_UI_Core_Preview_Communications_IPreviewTeamViewStatics::GetForCurrentView() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Core::Preview::Communications::IPreviewTeamViewStatics)->GetForCurrentView(&result)); return winrt::Windows::UI::Core::Preview::Communications::PreviewTeamView{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Command(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Command()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UserPrincipalName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UserPrincipalName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DomainUserName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DomainUserName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Password(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Password()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MeetingUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MeetingUri()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetTitle(void* title) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetTitle(*reinterpret_cast(&title)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EnterFullScreen() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnterFullScreen(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LeaveFullScreen() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LeaveFullScreen(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestForeground() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequestForeground(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartSharingScreen() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartSharingScreen(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopSharingScreen() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopSharingScreen(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyMeetingEnded(int32_t kind) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyMeetingEnded(*reinterpret_cast(&kind)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall JoinMeetingWithUri(void* meetingUri) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().JoinMeetingWithUri(*reinterpret_cast(&meetingUri)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MeetingUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MeetingUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SharingScreenBounds(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SharingScreenBounds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsScreenSharing(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScreenSharing()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsFullScreen(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsFullScreen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SystemState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MeetingInfoDisplayType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MeetingInfoDisplayType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_JoinMeetingRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().JoinMeetingRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_JoinMeetingRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().JoinMeetingRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_EndMeetingRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EndMeetingRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EndMeetingRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EndMeetingRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CleanupRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CleanupRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CleanupRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CleanupRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SharingScreenBoundsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SharingScreenBoundsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SharingScreenBoundsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SharingScreenBoundsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_IsScreenSharingChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().IsScreenSharingChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_IsScreenSharingChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().IsScreenSharingChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_IsFullScreenChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().IsFullScreenChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_IsFullScreenChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().IsFullScreenChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CommandInvoked(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CommandInvoked(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CommandInvoked(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CommandInvoked(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SystemStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemStateChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetButtonLabel(void* label) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetButtonLabel(*reinterpret_cast(&label)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Core::Preview::Communications { inline PreviewTeamDeviceCredentials::PreviewTeamDeviceCredentials() : PreviewTeamDeviceCredentials(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto PreviewTeamView::GetForCurrentView() { return impl::call_factory_cast([](IPreviewTeamViewStatics const& f) { return f.GetForCurrentView(); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif