// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_System_RemoteSystems_H #define WINRT_Windows_System_RemoteSystems_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.System.h" #include "winrt/impl/Windows.ApplicationModel.AppService.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Networking.2.h" #include "winrt/impl/Windows.Security.Credentials.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.System.RemoteSystems.2.h" namespace winrt::impl { template auto consume_Windows_System_RemoteSystems_IKnownRemoteSystemCapabilitiesStatics::AppService() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IKnownRemoteSystemCapabilitiesStatics)->get_AppService(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IKnownRemoteSystemCapabilitiesStatics::LaunchUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IKnownRemoteSystemCapabilitiesStatics)->get_LaunchUri(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IKnownRemoteSystemCapabilitiesStatics::RemoteSession() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IKnownRemoteSystemCapabilitiesStatics)->get_RemoteSession(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IKnownRemoteSystemCapabilitiesStatics::SpatialEntity() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IKnownRemoteSystemCapabilitiesStatics)->get_SpatialEntity(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem::Kind() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem)->get_Kind(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem::Status() const { winrt::Windows::System::RemoteSystems::RemoteSystemStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem::IsAvailableByProximity() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem)->get_IsAvailableByProximity(&value)); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem2::IsAvailableBySpatialProximity() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem2)->get_IsAvailableBySpatialProximity(&value)); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem2::GetCapabilitySupportedAsync(param::hstring const& capabilityName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem2)->GetCapabilitySupportedAsync(*(void**)(&capabilityName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem3::ManufacturerDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem3)->get_ManufacturerDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem3::ModelDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem3)->get_ModelDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem4::Platform() const { winrt::Windows::System::RemoteSystems::RemoteSystemPlatform value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem4)->get_Platform(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem5::Apps() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem5)->get_Apps(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystem6::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystem6)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAddedEventArgs::RemoteSystem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAddedEventArgs)->get_RemoteSystem(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystem{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemApp::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemApp)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemApp::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemApp)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemApp::IsAvailableByProximity() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemApp)->get_IsAvailableByProximity(&value)); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemApp::IsAvailableBySpatialProximity() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemApp)->get_IsAvailableBySpatialProximity(&value)); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemApp::Attributes() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemApp)->get_Attributes(&value)); return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemApp2::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemApp2)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemApp2::ConnectionToken() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemApp2)->get_ConnectionToken(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAppRegistration::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAppRegistration)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAppRegistration::Attributes() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAppRegistration)->get_Attributes(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAppRegistration::SaveAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAppRegistration)->SaveAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAppRegistrationStatics::GetDefault() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAppRegistrationStatics)->GetDefault(&result)); return winrt::Windows::System::RemoteSystems::RemoteSystemAppRegistration{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAppRegistrationStatics::GetForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAppRegistrationStatics)->GetForUser(*(void**)(&user), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemAppRegistration{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAuthorizationKindFilter::RemoteSystemAuthorizationKind() const { winrt::Windows::System::RemoteSystems::RemoteSystemAuthorizationKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAuthorizationKindFilter)->get_RemoteSystemAuthorizationKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemAuthorizationKindFilterFactory::Create(winrt::Windows::System::RemoteSystems::RemoteSystemAuthorizationKind const& remoteSystemAuthorizationKind) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemAuthorizationKindFilterFactory)->Create(static_cast(remoteSystemAuthorizationKind), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemAuthorizationKindFilter{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionInfo::IsProximal() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionInfo)->get_IsProximal(&value)); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionInfoStatics::TryCreateFromAppServiceConnection(winrt::Windows::ApplicationModel::AppService::AppServiceConnection const& connection) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionInfoStatics)->TryCreateFromAppServiceConnection(*(void**)(&connection), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemConnectionInfo{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionRequest::RemoteSystem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionRequest)->get_RemoteSystem(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystem{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionRequest2::RemoteSystemApp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionRequest2)->get_RemoteSystemApp(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemApp{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionRequest3::ConnectionToken() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionRequest3)->get_ConnectionToken(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionRequestFactory::Create(winrt::Windows::System::RemoteSystems::RemoteSystem const& remoteSystem) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionRequestFactory)->Create(*(void**)(&remoteSystem), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionRequestStatics::CreateForApp(winrt::Windows::System::RemoteSystems::RemoteSystemApp const& remoteSystemApp) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionRequestStatics)->CreateForApp(*(void**)(&remoteSystemApp), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionRequestStatics2::CreateFromConnectionToken(param::hstring const& connectionToken) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionRequestStatics2)->CreateFromConnectionToken(*(void**)(&connectionToken), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemConnectionRequestStatics2::CreateFromConnectionTokenForUser(winrt::Windows::System::User const& user, param::hstring const& connectionToken) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemConnectionRequestStatics2)->CreateFromConnectionTokenForUser(*(void**)(&user), *(void**)(&connectionToken), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemDiscoveryTypeFilter::RemoteSystemDiscoveryType() const { winrt::Windows::System::RemoteSystems::RemoteSystemDiscoveryType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemDiscoveryTypeFilter)->get_RemoteSystemDiscoveryType(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemDiscoveryTypeFilterFactory::Create(winrt::Windows::System::RemoteSystems::RemoteSystemDiscoveryType const& discoveryType) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemDiscoveryTypeFilterFactory)->Create(static_cast(discoveryType), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemDiscoveryTypeFilter{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindFilter::RemoteSystemKinds() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindFilter)->get_RemoteSystemKinds(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindFilterFactory::Create(param::iterable const& remoteSystemKinds) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindFilterFactory)->Create(*(void**)(&remoteSystemKinds), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemKindFilter{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics::Phone() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics)->get_Phone(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics::Hub() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics)->get_Hub(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics::Holographic() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics)->get_Holographic(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics::Desktop() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics)->get_Desktop(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics::Xbox() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics)->get_Xbox(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics2::Iot() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics2)->get_Iot(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics2::Tablet() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics2)->get_Tablet(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemKindStatics2::Laptop() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemKindStatics2)->get_Laptop(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemRemovedEventArgs::RemoteSystemId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemRemovedEventArgs)->get_RemoteSystemId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::Id() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSession)->get_Id(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSession)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::ControllerDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSession)->get_ControllerDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::Disconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSession)->add_Disconnected(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::Disconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Disconnected(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::Disconnected(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSession)->remove_Disconnected(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::CreateParticipantWatcher() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSession)->CreateParticipantWatcher(&result)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipantWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSession::SendInvitationAsync(winrt::Windows::System::RemoteSystems::RemoteSystem const& invitee) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSession)->SendInvitationAsync(*(void**)(&invitee), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionAddedEventArgs::SessionInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionAddedEventArgs)->get_SessionInfo(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionController::JoinRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionController)->add_JoinRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionController::JoinRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, JoinRequested(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionController::JoinRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionController)->remove_JoinRequested(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionController::RemoveParticipantAsync(winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipant const& pParticipant) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionController)->RemoveParticipantAsync(*(void**)(&pParticipant), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionController::CreateSessionAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionController)->CreateSessionAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionControllerFactory::CreateController(param::hstring const& displayName) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionControllerFactory)->CreateController(*(void**)(&displayName), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionController{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionControllerFactory::CreateController(param::hstring const& displayName, winrt::Windows::System::RemoteSystems::RemoteSystemSessionOptions const& options) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionControllerFactory)->CreateControllerWithSessionOptions(*(void**)(&displayName), *(void**)(&options), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionController{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionCreationResult::Status() const { winrt::Windows::System::RemoteSystems::RemoteSystemSessionCreationStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionCreationResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionCreationResult::Session() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionCreationResult)->get_Session(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSession{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionDisconnectedEventArgs::Reason() const { winrt::Windows::System::RemoteSystems::RemoteSystemSessionDisconnectedReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionDisconnectedEventArgs)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInfo::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInfo)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInfo::ControllerDisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInfo)->get_ControllerDisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInfo::JoinAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInfo)->JoinAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInvitation::Sender() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInvitation)->get_Sender(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystem{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInvitation::SessionInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInvitation)->get_SessionInfo(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInvitationListener::InvitationReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInvitationListener)->add_InvitationReceived(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInvitationListener::InvitationReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, InvitationReceived(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInvitationListener::InvitationReceived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInvitationListener)->remove_InvitationReceived(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionInvitationReceivedEventArgs::Invitation() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionInvitationReceivedEventArgs)->get_Invitation(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionInvitation{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionJoinRequest::Participant() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionJoinRequest)->get_Participant(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipant{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionJoinRequest::Accept() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionJoinRequest)->Accept()); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionJoinRequestedEventArgs::JoinRequest() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionJoinRequestedEventArgs)->get_JoinRequest(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionJoinRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionJoinRequestedEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionJoinRequestedEventArgs)->GetDeferral(&result)); return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionJoinResult::Status() const { winrt::Windows::System::RemoteSystems::RemoteSystemSessionJoinStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionJoinResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionJoinResult::Session() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionJoinResult)->get_Session(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSession{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannel::Session() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannel)->get_Session(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSession{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannel::BroadcastValueSetAsync(winrt::Windows::Foundation::Collections::ValueSet const& messageData) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannel)->BroadcastValueSetAsync(*(void**)(&messageData), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannel::SendValueSetAsync(winrt::Windows::Foundation::Collections::ValueSet const& messageData, winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipant const& participant) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannel)->SendValueSetAsync(*(void**)(&messageData), *(void**)(&participant), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannel::SendValueSetToParticipantsAsync(winrt::Windows::Foundation::Collections::ValueSet const& messageData, param::async_iterable const& participants) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannel)->SendValueSetToParticipantsAsync(*(void**)(&messageData), *(void**)(&participants), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannel::ValueSetReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannel)->add_ValueSetReceived(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannel::ValueSetReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ValueSetReceived(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannel::ValueSetReceived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannel)->remove_ValueSetReceived(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannelFactory::Create(winrt::Windows::System::RemoteSystems::RemoteSystemSession const& session, param::hstring const& channelName) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannelFactory)->Create(*(void**)(&session), *(void**)(&channelName), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionMessageChannel{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionMessageChannelFactory::Create(winrt::Windows::System::RemoteSystems::RemoteSystemSession const& session, param::hstring const& channelName, winrt::Windows::System::RemoteSystems::RemoteSystemSessionMessageChannelReliability const& reliability) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionMessageChannelFactory)->CreateWithReliability(*(void**)(&session), *(void**)(&channelName), static_cast(reliability), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionMessageChannel{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionOptions::IsInviteOnly() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionOptions)->get_IsInviteOnly(&value)); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionOptions::IsInviteOnly(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionOptions)->put_IsInviteOnly(value)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipant::RemoteSystem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipant)->get_RemoteSystem(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystem{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipant::GetHostNames() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipant)->GetHostNames(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantAddedEventArgs::Participant() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantAddedEventArgs)->get_Participant(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipant{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantRemovedEventArgs::Participant() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantRemovedEventArgs)->get_Participant(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipant{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->Start()); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->Stop()); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Status() const { winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipantWatcherStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->add_Added(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Added(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Added(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->remove_Added(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Removed(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::Removed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->remove_Removed(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EnumerationCompleted(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionParticipantWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionParticipantWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionRemovedEventArgs::SessionInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionRemovedEventArgs)->get_SessionInfo(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionStatics::CreateWatcher() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionStatics)->CreateWatcher(&result)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionUpdatedEventArgs::SessionInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionUpdatedEventArgs)->get_SessionInfo(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionValueSetReceivedEventArgs::Sender() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionValueSetReceivedEventArgs)->get_Sender(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystemSessionParticipant{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionValueSetReceivedEventArgs::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionValueSetReceivedEventArgs)->get_Message(&value)); return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->Start()); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->Stop()); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Status() const { winrt::Windows::System::RemoteSystems::RemoteSystemSessionWatcherStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->add_Added(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Added(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Added(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->remove_Added(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->add_Updated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Updated(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Updated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->remove_Updated(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Removed(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemSessionWatcher::Removed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemSessionWatcher)->remove_Removed(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatics::FindByHostNameAsync(winrt::Windows::Networking::HostName const& hostName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatics)->FindByHostNameAsync(*(void**)(&hostName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatics::CreateWatcher() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatics)->CreateWatcher(&result)); return winrt::Windows::System::RemoteSystems::RemoteSystemWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatics::CreateWatcher(param::iterable const& filters) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatics)->CreateWatcherWithFilters(*(void**)(&filters), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatics::RequestAccessAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatics)->RequestAccessAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatics2::IsAuthorizationKindEnabled(winrt::Windows::System::RemoteSystems::RemoteSystemAuthorizationKind const& kind) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatics2)->IsAuthorizationKindEnabled(static_cast(kind), &result)); return result; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatics3::CreateWatcherForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatics3)->CreateWatcherForUser(*(void**)(&user), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatics3::CreateWatcherForUser(winrt::Windows::System::User const& user, param::iterable const& filters) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatics3)->CreateWatcherWithFiltersForUser(*(void**)(&user), *(void**)(&filters), &result)); return winrt::Windows::System::RemoteSystems::RemoteSystemWatcher{ result, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatusTypeFilter::RemoteSystemStatusType() const { winrt::Windows::System::RemoteSystems::RemoteSystemStatusType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatusTypeFilter)->get_RemoteSystemStatusType(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemStatusTypeFilterFactory::Create(winrt::Windows::System::RemoteSystems::RemoteSystemStatusType const& remoteSystemStatusType) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemStatusTypeFilterFactory)->Create(static_cast(remoteSystemStatusType), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemStatusTypeFilter{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemUpdatedEventArgs::RemoteSystem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemUpdatedEventArgs)->get_RemoteSystem(&value)); return winrt::Windows::System::RemoteSystems::RemoteSystem{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->Start()); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->Stop()); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemAdded(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->add_RemoteSystemAdded(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemAdded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, RemoteSystemAdded(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemAdded(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->remove_RemoteSystemAdded(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemUpdated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->add_RemoteSystemUpdated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemUpdated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, RemoteSystemUpdated(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemUpdated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->remove_RemoteSystemUpdated(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemRemoved(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->add_RemoteSystemRemoved(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemRemoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, RemoteSystemRemoved(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher::RemoteSystemRemoved(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher)->remove_RemoteSystemRemoved(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher2::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher2)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher2::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EnumerationCompleted(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher2::EnumerationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher2)->remove_EnumerationCompleted(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher2::ErrorOccurred(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher2)->add_ErrorOccurred(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher2::ErrorOccurred(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ErrorOccurred(handler)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher2::ErrorOccurred(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher2)->remove_ErrorOccurred(impl::bind_in(token)); } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcher3::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcher3)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWatcherErrorOccurredEventArgs::Error() const { winrt::Windows::System::RemoteSystems::RemoteSystemWatcherError value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWatcherErrorOccurredEventArgs)->get_Error(reinterpret_cast(&value))); return value; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWebAccountFilter::Account() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWebAccountFilter)->get_Account(&value)); return winrt::Windows::Security::Credentials::WebAccount{ value, take_ownership_from_abi }; } template auto consume_Windows_System_RemoteSystems_IRemoteSystemWebAccountFilterFactory::Create(winrt::Windows::Security::Credentials::WebAccount const& account) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::System::RemoteSystems::IRemoteSystemWebAccountFilterFactory)->Create(*(void**)(&account), &value)); return winrt::Windows::System::RemoteSystems::RemoteSystemWebAccountFilter{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppService(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppService()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LaunchUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LaunchUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RemoteSession(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSession()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpatialEntity(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpatialEntity()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_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_Kind(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); 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_IsAvailableByProximity(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAvailableByProximity()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsAvailableBySpatialProximity(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAvailableBySpatialProximity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCapabilitySupportedAsync(void* capabilityName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetCapabilitySupportedAsync(*reinterpret_cast(&capabilityName))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ManufacturerDisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManufacturerDisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ModelDisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ModelDisplayName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Platform(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Platform()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Apps(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Apps()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 get_RemoteSystem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystem()); 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_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_IsAvailableByProximity(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAvailableByProximity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAvailableBySpatialProximity(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAvailableBySpatialProximity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Attributes(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Attributes()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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(); } int32_t __stdcall get_ConnectionToken(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ConnectionToken()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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(); } int32_t __stdcall get_Attributes(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Attributes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SaveAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDefault(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDefault()); return 0; } catch (...) { return to_hresult(); } 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 get_RemoteSystemAuthorizationKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystemAuthorizationKind()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(int32_t remoteSystemAuthorizationKind, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&remoteSystemAuthorizationKind))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsProximal(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsProximal()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryCreateFromAppServiceConnection(void* connection, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryCreateFromAppServiceConnection(*reinterpret_cast(&connection))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystem()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystemApp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystemApp()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ConnectionToken(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ConnectionToken()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* remoteSystem, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&remoteSystem))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForApp(void* remoteSystemApp, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForApp(*reinterpret_cast(&remoteSystemApp))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromConnectionToken(void* connectionToken, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromConnectionToken(*reinterpret_cast(&connectionToken))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateFromConnectionTokenForUser(void* user, void* connectionToken, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromConnectionTokenForUser(*reinterpret_cast(&user), *reinterpret_cast(&connectionToken))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystemDiscoveryType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystemDiscoveryType()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(int32_t discoveryType, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&discoveryType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif template struct produce : produce_base { }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystemKinds(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RemoteSystemKinds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* remoteSystemKinds, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast const*>(&remoteSystemKinds))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Phone(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Phone()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Hub(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Hub()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Holographic(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Holographic()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Desktop(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Desktop()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Xbox(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Xbox()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Iot(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Iot()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tablet(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tablet()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Laptop(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Laptop()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystemId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystemId()); 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_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_ControllerDisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ControllerDisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Disconnected(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Disconnected(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Disconnected(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Disconnected(*reinterpret_cast(&token)); return 0; } int32_t __stdcall CreateParticipantWatcher(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateParticipantWatcher()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendInvitationAsync(void* invitee, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SendInvitationAsync(*reinterpret_cast(&invitee))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SessionInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SessionInfo()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_JoinRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().JoinRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_JoinRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().JoinRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall RemoveParticipantAsync(void* pParticipant, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RemoveParticipantAsync(*reinterpret_cast(&pParticipant))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateSessionAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateSessionAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateController(void* displayName, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateController(*reinterpret_cast(&displayName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateControllerWithSessionOptions(void* displayName, void* options, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateController(*reinterpret_cast(&displayName), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_Session(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Session()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_ControllerDisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ControllerDisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall JoinAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().JoinAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Sender(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Sender()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SessionInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SessionInfo()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_InvitationReceived(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().InvitationReceived(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_InvitationReceived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().InvitationReceived(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Invitation(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Invitation()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Participant(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Participant()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Accept() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Accept(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_JoinRequest(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().JoinRequest()); return 0; } catch (...) { return to_hresult(); } 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_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_Session(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Session()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Session(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Session()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BroadcastValueSetAsync(void* messageData, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().BroadcastValueSetAsync(*reinterpret_cast(&messageData))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendValueSetAsync(void* messageData, void* participant, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SendValueSetAsync(*reinterpret_cast(&messageData), *reinterpret_cast(&participant))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SendValueSetToParticipantsAsync(void* messageData, void* participants, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SendValueSetToParticipantsAsync(*reinterpret_cast(&messageData), *reinterpret_cast const*>(&participants))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ValueSetReceived(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ValueSetReceived(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ValueSetReceived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ValueSetReceived(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* session, void* channelName, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&session), *reinterpret_cast(&channelName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithReliability(void* session, void* channelName, int32_t reliability, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&session), *reinterpret_cast(&channelName), *reinterpret_cast(&reliability))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsInviteOnly(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInviteOnly()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsInviteOnly(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsInviteOnly(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetHostNames(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetHostNames()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Participant(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Participant()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Participant(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Participant()); 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 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 add_Added(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Added(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Added(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Removed(*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; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SessionInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SessionInfo()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWatcher(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWatcher()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SessionInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SessionInfo()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Sender(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Sender()); 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 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 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 add_Added(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Added(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Added(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Updated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Removed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FindByHostNameAsync(void* hostName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().FindByHostNameAsync(*reinterpret_cast(&hostName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWatcher(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWatcher()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWatcherWithFilters(void* filters, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWatcher(*reinterpret_cast const*>(&filters))); 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsAuthorizationKindEnabled(int32_t kind, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsAuthorizationKindEnabled(*reinterpret_cast(&kind))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWatcherForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWatcherForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWatcherWithFiltersForUser(void* user, void* filters, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWatcherForUser(*reinterpret_cast(&user), *reinterpret_cast const*>(&filters))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystemStatusType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystemStatusType()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(int32_t remoteSystemStatusType, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&remoteSystemStatusType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RemoteSystem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RemoteSystem()); 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_RemoteSystemAdded(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RemoteSystemAdded(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RemoteSystemAdded(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RemoteSystemAdded(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_RemoteSystemUpdated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RemoteSystemUpdated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RemoteSystemUpdated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RemoteSystemUpdated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_RemoteSystemRemoved(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RemoteSystemRemoved(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RemoteSystemRemoved(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RemoteSystemRemoved(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_ErrorOccurred(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ErrorOccurred(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ErrorOccurred(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ErrorOccurred(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 get_Error(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Error()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Account(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Account()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* account, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&account))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::System::RemoteSystems { inline auto KnownRemoteSystemCapabilities::AppService() { return impl::call_factory_cast([](IKnownRemoteSystemCapabilitiesStatics const& f) { return f.AppService(); }); } inline auto KnownRemoteSystemCapabilities::LaunchUri() { return impl::call_factory_cast([](IKnownRemoteSystemCapabilitiesStatics const& f) { return f.LaunchUri(); }); } inline auto KnownRemoteSystemCapabilities::RemoteSession() { return impl::call_factory_cast([](IKnownRemoteSystemCapabilitiesStatics const& f) { return f.RemoteSession(); }); } inline auto KnownRemoteSystemCapabilities::SpatialEntity() { return impl::call_factory_cast([](IKnownRemoteSystemCapabilitiesStatics const& f) { return f.SpatialEntity(); }); } inline auto RemoteSystem::FindByHostNameAsync(winrt::Windows::Networking::HostName const& hostName) { return impl::call_factory([&](IRemoteSystemStatics const& f) { return f.FindByHostNameAsync(hostName); }); } inline auto RemoteSystem::CreateWatcher() { return impl::call_factory_cast([](IRemoteSystemStatics const& f) { return f.CreateWatcher(); }); } inline auto RemoteSystem::CreateWatcher(param::iterable const& filters) { return impl::call_factory([&](IRemoteSystemStatics const& f) { return f.CreateWatcher(filters); }); } inline auto RemoteSystem::RequestAccessAsync() { return impl::call_factory_cast(*)(IRemoteSystemStatics const&), RemoteSystem, IRemoteSystemStatics>([](IRemoteSystemStatics const& f) { return f.RequestAccessAsync(); }); } inline auto RemoteSystem::IsAuthorizationKindEnabled(winrt::Windows::System::RemoteSystems::RemoteSystemAuthorizationKind const& kind) { return impl::call_factory([&](IRemoteSystemStatics2 const& f) { return f.IsAuthorizationKindEnabled(kind); }); } inline auto RemoteSystem::CreateWatcherForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IRemoteSystemStatics3 const& f) { return f.CreateWatcherForUser(user); }); } inline auto RemoteSystem::CreateWatcherForUser(winrt::Windows::System::User const& user, param::iterable const& filters) { return impl::call_factory([&](IRemoteSystemStatics3 const& f) { return f.CreateWatcherForUser(user, filters); }); } inline auto RemoteSystemAppRegistration::GetDefault() { return impl::call_factory_cast([](IRemoteSystemAppRegistrationStatics const& f) { return f.GetDefault(); }); } inline auto RemoteSystemAppRegistration::GetForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IRemoteSystemAppRegistrationStatics const& f) { return f.GetForUser(user); }); } inline RemoteSystemAuthorizationKindFilter::RemoteSystemAuthorizationKindFilter(winrt::Windows::System::RemoteSystems::RemoteSystemAuthorizationKind const& remoteSystemAuthorizationKind) : RemoteSystemAuthorizationKindFilter(impl::call_factory([&](IRemoteSystemAuthorizationKindFilterFactory const& f) { return f.Create(remoteSystemAuthorizationKind); })) { } inline auto RemoteSystemConnectionInfo::TryCreateFromAppServiceConnection(winrt::Windows::ApplicationModel::AppService::AppServiceConnection const& connection) { return impl::call_factory([&](IRemoteSystemConnectionInfoStatics const& f) { return f.TryCreateFromAppServiceConnection(connection); }); } inline RemoteSystemConnectionRequest::RemoteSystemConnectionRequest(winrt::Windows::System::RemoteSystems::RemoteSystem const& remoteSystem) : RemoteSystemConnectionRequest(impl::call_factory([&](IRemoteSystemConnectionRequestFactory const& f) { return f.Create(remoteSystem); })) { } inline auto RemoteSystemConnectionRequest::CreateForApp(winrt::Windows::System::RemoteSystems::RemoteSystemApp const& remoteSystemApp) { return impl::call_factory([&](IRemoteSystemConnectionRequestStatics const& f) { return f.CreateForApp(remoteSystemApp); }); } inline auto RemoteSystemConnectionRequest::CreateFromConnectionToken(param::hstring const& connectionToken) { return impl::call_factory([&](IRemoteSystemConnectionRequestStatics2 const& f) { return f.CreateFromConnectionToken(connectionToken); }); } inline auto RemoteSystemConnectionRequest::CreateFromConnectionTokenForUser(winrt::Windows::System::User const& user, param::hstring const& connectionToken) { return impl::call_factory([&](IRemoteSystemConnectionRequestStatics2 const& f) { return f.CreateFromConnectionTokenForUser(user, connectionToken); }); } inline RemoteSystemDiscoveryTypeFilter::RemoteSystemDiscoveryTypeFilter(winrt::Windows::System::RemoteSystems::RemoteSystemDiscoveryType const& discoveryType) : RemoteSystemDiscoveryTypeFilter(impl::call_factory([&](IRemoteSystemDiscoveryTypeFilterFactory const& f) { return f.Create(discoveryType); })) { } inline RemoteSystemKindFilter::RemoteSystemKindFilter(param::iterable const& remoteSystemKinds) : RemoteSystemKindFilter(impl::call_factory([&](IRemoteSystemKindFilterFactory const& f) { return f.Create(remoteSystemKinds); })) { } inline auto RemoteSystemKinds::Phone() { return impl::call_factory_cast([](IRemoteSystemKindStatics const& f) { return f.Phone(); }); } inline auto RemoteSystemKinds::Hub() { return impl::call_factory_cast([](IRemoteSystemKindStatics const& f) { return f.Hub(); }); } inline auto RemoteSystemKinds::Holographic() { return impl::call_factory_cast([](IRemoteSystemKindStatics const& f) { return f.Holographic(); }); } inline auto RemoteSystemKinds::Desktop() { return impl::call_factory_cast([](IRemoteSystemKindStatics const& f) { return f.Desktop(); }); } inline auto RemoteSystemKinds::Xbox() { return impl::call_factory_cast([](IRemoteSystemKindStatics const& f) { return f.Xbox(); }); } inline auto RemoteSystemKinds::Iot() { return impl::call_factory_cast([](IRemoteSystemKindStatics2 const& f) { return f.Iot(); }); } inline auto RemoteSystemKinds::Tablet() { return impl::call_factory_cast([](IRemoteSystemKindStatics2 const& f) { return f.Tablet(); }); } inline auto RemoteSystemKinds::Laptop() { return impl::call_factory_cast([](IRemoteSystemKindStatics2 const& f) { return f.Laptop(); }); } inline auto RemoteSystemSession::CreateWatcher() { return impl::call_factory_cast([](IRemoteSystemSessionStatics const& f) { return f.CreateWatcher(); }); } inline RemoteSystemSessionController::RemoteSystemSessionController(param::hstring const& displayName) : RemoteSystemSessionController(impl::call_factory([&](IRemoteSystemSessionControllerFactory const& f) { return f.CreateController(displayName); })) { } inline RemoteSystemSessionController::RemoteSystemSessionController(param::hstring const& displayName, winrt::Windows::System::RemoteSystems::RemoteSystemSessionOptions const& options) : RemoteSystemSessionController(impl::call_factory([&](IRemoteSystemSessionControllerFactory const& f) { return f.CreateController(displayName, options); })) { } inline RemoteSystemSessionInvitationListener::RemoteSystemSessionInvitationListener() : RemoteSystemSessionInvitationListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline RemoteSystemSessionMessageChannel::RemoteSystemSessionMessageChannel(winrt::Windows::System::RemoteSystems::RemoteSystemSession const& session, param::hstring const& channelName) : RemoteSystemSessionMessageChannel(impl::call_factory([&](IRemoteSystemSessionMessageChannelFactory const& f) { return f.Create(session, channelName); })) { } inline RemoteSystemSessionMessageChannel::RemoteSystemSessionMessageChannel(winrt::Windows::System::RemoteSystems::RemoteSystemSession const& session, param::hstring const& channelName, winrt::Windows::System::RemoteSystems::RemoteSystemSessionMessageChannelReliability const& reliability) : RemoteSystemSessionMessageChannel(impl::call_factory([&](IRemoteSystemSessionMessageChannelFactory const& f) { return f.Create(session, channelName, reliability); })) { } inline RemoteSystemSessionOptions::RemoteSystemSessionOptions() : RemoteSystemSessionOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline RemoteSystemStatusTypeFilter::RemoteSystemStatusTypeFilter(winrt::Windows::System::RemoteSystems::RemoteSystemStatusType const& remoteSystemStatusType) : RemoteSystemStatusTypeFilter(impl::call_factory([&](IRemoteSystemStatusTypeFilterFactory const& f) { return f.Create(remoteSystemStatusType); })) { } inline RemoteSystemWebAccountFilter::RemoteSystemWebAccountFilter(winrt::Windows::Security::Credentials::WebAccount const& account) : RemoteSystemWebAccountFilter(impl::call_factory([&](IRemoteSystemWebAccountFilterFactory const& f) { return f.Create(account); })) { } } 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 {}; 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