// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_Networking_Proximity_0_H #define WINRT_Windows_Networking_Proximity_0_H WINRT_EXPORT namespace winrt::Windows::Foundation { struct EventRegistrationToken; template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; struct Uri; } WINRT_EXPORT namespace winrt::Windows::Networking { struct HostName; } WINRT_EXPORT namespace winrt::Windows::Networking::Sockets { struct StreamSocket; } WINRT_EXPORT namespace winrt::Windows::Storage::Streams { struct IBuffer; } WINRT_EXPORT namespace winrt::Windows::Networking::Proximity { enum class PeerDiscoveryTypes : uint32_t { None = 0, Browse = 0x1, Triggered = 0x2, }; enum class PeerRole : int32_t { Peer = 0, Host = 1, Client = 2, }; enum class PeerWatcherStatus : int32_t { Created = 0, Started = 1, EnumerationCompleted = 2, Stopping = 3, Stopped = 4, Aborted = 5, }; enum class TriggeredConnectState : int32_t { PeerFound = 0, Listening = 1, Connecting = 2, Completed = 3, Canceled = 4, Failed = 5, }; struct IConnectionRequestedEventArgs; struct IPeerFinderStatics; struct IPeerFinderStatics2; struct IPeerInformation; struct IPeerInformation3; struct IPeerInformationWithHostAndService; struct IPeerWatcher; struct IProximityDevice; struct IProximityDeviceStatics; struct IProximityMessage; struct ITriggeredConnectionStateChangedEventArgs; struct ConnectionRequestedEventArgs; struct PeerFinder; struct PeerInformation; struct PeerWatcher; struct ProximityDevice; struct ProximityMessage; struct TriggeredConnectionStateChangedEventArgs; struct DeviceArrivedEventHandler; struct DeviceDepartedEventHandler; struct MessageReceivedHandler; struct MessageTransmittedHandler; } namespace winrt::impl { template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = delegate_category; }; template <> struct category{ using type = delegate_category; }; template <> struct category{ using type = delegate_category; }; template <> struct category{ using type = delegate_category; }; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.ConnectionRequestedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.PeerFinder"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.PeerInformation"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.PeerWatcher"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.ProximityDevice"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.ProximityMessage"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.TriggeredConnectionStateChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.PeerDiscoveryTypes"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.PeerRole"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.PeerWatcherStatus"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.TriggeredConnectState"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IConnectionRequestedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IPeerFinderStatics"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IPeerFinderStatics2"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IPeerInformation"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IPeerInformation3"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IPeerInformationWithHostAndService"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IPeerWatcher"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IProximityDevice"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IProximityDeviceStatics"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.IProximityMessage"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.ITriggeredConnectionStateChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.DeviceArrivedEventHandler"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.DeviceDepartedEventHandler"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.MessageReceivedHandler"; template <> inline constexpr auto& name_v = L"Windows.Networking.Proximity.MessageTransmittedHandler"; template <> inline constexpr guid guid_v{ 0xEB6891AE,0x4F1E,0x4C66,{ 0xBD,0x0D,0x46,0x92,0x4A,0x94,0x2E,0x08 } }; // EB6891AE-4F1E-4C66-BD0D-46924A942E08 template <> inline constexpr guid guid_v{ 0x914B3B61,0xF6E1,0x47C4,{ 0xA1,0x4C,0x14,0x8A,0x19,0x03,0xD0,0xC6 } }; // 914B3B61-F6E1-47C4-A14C-148A1903D0C6 template <> inline constexpr guid guid_v{ 0xD6E73C65,0xFDD0,0x4B0B,{ 0x93,0x12,0x86,0x64,0x08,0x93,0x5D,0x82 } }; // D6E73C65-FDD0-4B0B-9312-866408935D82 template <> inline constexpr guid guid_v{ 0x20024F08,0x9FFF,0x45F4,{ 0xB6,0xE9,0x40,0x8B,0x2E,0xBE,0xF3,0x73 } }; // 20024F08-9FFF-45F4-B6E9-408B2EBEF373 template <> inline constexpr guid guid_v{ 0xB20F612A,0xDBD0,0x40F8,{ 0x95,0xBD,0x2D,0x42,0x09,0xC7,0x83,0x6F } }; // B20F612A-DBD0-40F8-95BD-2D4209C7836F template <> inline constexpr guid guid_v{ 0xECC7CCAD,0x1B70,0x4E8B,{ 0x92,0xDB,0xBB,0xE7,0x81,0x41,0x93,0x08 } }; // ECC7CCAD-1B70-4E8B-92DB-BBE781419308 template <> inline constexpr guid guid_v{ 0x3CEE21F8,0x2FA6,0x4679,{ 0x96,0x91,0x03,0xC9,0x4A,0x42,0x0F,0x34 } }; // 3CEE21F8-2FA6-4679-9691-03C94A420F34 template <> inline constexpr guid guid_v{ 0xEFA8A552,0xF6E1,0x4329,{ 0xA0,0xFC,0xAB,0x6B,0x0F,0xD2,0x82,0x62 } }; // EFA8A552-F6E1-4329-A0FC-AB6B0FD28262 template <> inline constexpr guid guid_v{ 0x914BA01D,0xF6E1,0x47C4,{ 0xA1,0x4C,0x14,0x8A,0x19,0x03,0xD0,0xC6 } }; // 914BA01D-F6E1-47C4-A14C-148A1903D0C6 template <> inline constexpr guid guid_v{ 0xEFAB0782,0xF6E1,0x4675,{ 0xA0,0x45,0xD8,0xE3,0x20,0xC2,0x48,0x08 } }; // EFAB0782-F6E1-4675-A045-D8E320C24808 template <> inline constexpr guid guid_v{ 0xC6A780AD,0xF6E1,0x4D54,{ 0x96,0xE2,0x33,0xF6,0x20,0xBC,0xA8,0x8A } }; // C6A780AD-F6E1-4D54-96E2-33F620BCA88A template <> inline constexpr guid guid_v{ 0xEFA9DA69,0xF6E1,0x49C9,{ 0xA4,0x9E,0x8E,0x0F,0xC5,0x8F,0xB9,0x11 } }; // EFA9DA69-F6E1-49C9-A49E-8E0FC58FB911 template <> inline constexpr guid guid_v{ 0xEFA9DA69,0xF6E2,0x49C9,{ 0xA4,0x9E,0x8E,0x0F,0xC5,0x8F,0xB9,0x11 } }; // EFA9DA69-F6E2-49C9-A49E-8E0FC58FB911 template <> inline constexpr guid guid_v{ 0xEFAB0782,0xF6E2,0x4675,{ 0xA0,0x45,0xD8,0xE3,0x20,0xC2,0x48,0x08 } }; // EFAB0782-F6E2-4675-A045-D8E320C24808 template <> inline constexpr guid guid_v{ 0xEFAA0B4A,0xF6E2,0x4D7D,{ 0x85,0x6C,0x78,0xFC,0x8E,0xFC,0x02,0x1E } }; // EFAA0B4A-F6E2-4D7D-856C-78FC8EFC021E template <> struct default_interface{ using type = winrt::Windows::Networking::Proximity::IConnectionRequestedEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::Networking::Proximity::IPeerInformation; }; template <> struct default_interface{ using type = winrt::Windows::Networking::Proximity::IPeerWatcher; }; template <> struct default_interface{ using type = winrt::Windows::Networking::Proximity::IProximityDevice; }; template <> struct default_interface{ using type = winrt::Windows::Networking::Proximity::IProximityMessage; }; template <> struct default_interface{ using type = winrt::Windows::Networking::Proximity::ITriggeredConnectionStateChangedEventArgs; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_PeerInformation(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_AllowBluetooth(bool*) noexcept = 0; virtual int32_t __stdcall put_AllowBluetooth(bool) noexcept = 0; virtual int32_t __stdcall get_AllowInfrastructure(bool*) noexcept = 0; virtual int32_t __stdcall put_AllowInfrastructure(bool) noexcept = 0; virtual int32_t __stdcall get_AllowWiFiDirect(bool*) noexcept = 0; virtual int32_t __stdcall put_AllowWiFiDirect(bool) noexcept = 0; virtual int32_t __stdcall get_DisplayName(void**) noexcept = 0; virtual int32_t __stdcall put_DisplayName(void*) noexcept = 0; virtual int32_t __stdcall get_SupportedDiscoveryTypes(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_AlternateIdentities(void**) noexcept = 0; virtual int32_t __stdcall Start() noexcept = 0; virtual int32_t __stdcall StartWithMessage(void*) noexcept = 0; virtual int32_t __stdcall Stop() noexcept = 0; virtual int32_t __stdcall add_TriggeredConnectionStateChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_TriggeredConnectionStateChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_ConnectionRequested(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_ConnectionRequested(winrt::event_token) noexcept = 0; virtual int32_t __stdcall FindAllPeersAsync(void**) noexcept = 0; virtual int32_t __stdcall ConnectAsync(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Role(int32_t*) noexcept = 0; virtual int32_t __stdcall put_Role(int32_t) noexcept = 0; virtual int32_t __stdcall get_DiscoveryData(void**) noexcept = 0; virtual int32_t __stdcall put_DiscoveryData(void*) noexcept = 0; virtual int32_t __stdcall CreateWatcher(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_DisplayName(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Id(void**) noexcept = 0; virtual int32_t __stdcall get_DiscoveryData(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_HostName(void**) noexcept = 0; virtual int32_t __stdcall get_ServiceName(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall add_Added(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Added(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_Removed(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Removed(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_Updated(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Updated(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_EnumerationCompleted(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_EnumerationCompleted(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_Stopped(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Stopped(winrt::event_token) noexcept = 0; virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; virtual int32_t __stdcall Start() noexcept = 0; virtual int32_t __stdcall Stop() noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall SubscribeForMessage(void*, void*, int64_t*) noexcept = 0; virtual int32_t __stdcall PublishMessage(void*, void*, int64_t*) noexcept = 0; virtual int32_t __stdcall PublishMessageWithCallback(void*, void*, void*, int64_t*) noexcept = 0; virtual int32_t __stdcall PublishBinaryMessage(void*, void*, int64_t*) noexcept = 0; virtual int32_t __stdcall PublishBinaryMessageWithCallback(void*, void*, void*, int64_t*) noexcept = 0; virtual int32_t __stdcall PublishUriMessage(void*, int64_t*) noexcept = 0; virtual int32_t __stdcall PublishUriMessageWithCallback(void*, void*, int64_t*) noexcept = 0; virtual int32_t __stdcall StopSubscribingForMessage(int64_t) noexcept = 0; virtual int32_t __stdcall StopPublishingMessage(int64_t) noexcept = 0; virtual int32_t __stdcall add_DeviceArrived(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_DeviceArrived(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_DeviceDeparted(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_DeviceDeparted(winrt::event_token) noexcept = 0; virtual int32_t __stdcall get_MaxMessageBytes(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_BitsPerSecond(uint64_t*) noexcept = 0; virtual int32_t __stdcall get_DeviceId(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0; virtual int32_t __stdcall GetDefault(void**) noexcept = 0; virtual int32_t __stdcall FromId(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_MessageType(void**) noexcept = 0; virtual int32_t __stdcall get_SubscriptionId(int64_t*) noexcept = 0; virtual int32_t __stdcall get_Data(void**) noexcept = 0; virtual int32_t __stdcall get_DataAsString(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_State(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Id(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_Socket(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : unknown_abi { virtual int32_t __stdcall Invoke(void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : unknown_abi { virtual int32_t __stdcall Invoke(void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : unknown_abi { virtual int32_t __stdcall Invoke(void*, void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : unknown_abi { virtual int32_t __stdcall Invoke(void*, int64_t) noexcept = 0; }; }; template struct consume_Windows_Networking_Proximity_IConnectionRequestedEventArgs { [[nodiscard]] auto PeerInformation() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IConnectionRequestedEventArgs; }; template struct consume_Windows_Networking_Proximity_IPeerFinderStatics { [[nodiscard]] auto AllowBluetooth() const; auto AllowBluetooth(bool value) const; [[nodiscard]] auto AllowInfrastructure() const; auto AllowInfrastructure(bool value) const; [[nodiscard]] auto AllowWiFiDirect() const; auto AllowWiFiDirect(bool value) const; [[nodiscard]] auto DisplayName() const; auto DisplayName(param::hstring const& value) const; [[nodiscard]] auto SupportedDiscoveryTypes() const; [[nodiscard]] auto AlternateIdentities() const; auto Start() const; auto Start(param::hstring const& peerMessage) const; auto Stop() const; auto TriggeredConnectionStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using TriggeredConnectionStateChanged_revoker = impl::event_revoker::remove_TriggeredConnectionStateChanged>; [[nodiscard]] auto TriggeredConnectionStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto TriggeredConnectionStateChanged(winrt::event_token const& cookie) const noexcept; auto ConnectionRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using ConnectionRequested_revoker = impl::event_revoker::remove_ConnectionRequested>; [[nodiscard]] auto ConnectionRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto ConnectionRequested(winrt::event_token const& cookie) const noexcept; auto FindAllPeersAsync() const; auto ConnectAsync(winrt::Windows::Networking::Proximity::PeerInformation const& peerInformation) const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IPeerFinderStatics; }; template struct consume_Windows_Networking_Proximity_IPeerFinderStatics2 { [[nodiscard]] auto Role() const; auto Role(winrt::Windows::Networking::Proximity::PeerRole const& value) const; [[nodiscard]] auto DiscoveryData() const; auto DiscoveryData(winrt::Windows::Storage::Streams::IBuffer const& value) const; auto CreateWatcher() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IPeerFinderStatics2; }; template struct consume_Windows_Networking_Proximity_IPeerInformation { [[nodiscard]] auto DisplayName() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IPeerInformation; }; template struct consume_Windows_Networking_Proximity_IPeerInformation3 { [[nodiscard]] auto Id() const; [[nodiscard]] auto DiscoveryData() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IPeerInformation3; }; template struct consume_Windows_Networking_Proximity_IPeerInformationWithHostAndService { [[nodiscard]] auto HostName() const; [[nodiscard]] auto ServiceName() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IPeerInformationWithHostAndService; }; template struct consume_Windows_Networking_Proximity_IPeerWatcher { auto Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using Added_revoker = impl::event_revoker::remove_Added>; [[nodiscard]] auto Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto Added(winrt::event_token const& token) const noexcept; auto Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using Removed_revoker = impl::event_revoker::remove_Removed>; [[nodiscard]] auto Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto Removed(winrt::event_token const& token) const noexcept; auto Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using Updated_revoker = impl::event_revoker::remove_Updated>; [[nodiscard]] auto Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto Updated(winrt::event_token const& token) const noexcept; auto EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using EnumerationCompleted_revoker = impl::event_revoker::remove_EnumerationCompleted>; [[nodiscard]] auto EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto EnumerationCompleted(winrt::event_token const& token) const noexcept; auto Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using Stopped_revoker = impl::event_revoker::remove_Stopped>; [[nodiscard]] auto Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto Stopped(winrt::event_token const& token) const noexcept; [[nodiscard]] auto Status() const; auto Start() const; auto Stop() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IPeerWatcher; }; template struct consume_Windows_Networking_Proximity_IProximityDevice { auto SubscribeForMessage(param::hstring const& messageType, winrt::Windows::Networking::Proximity::MessageReceivedHandler const& messageReceivedHandler) const; auto PublishMessage(param::hstring const& messageType, param::hstring const& message) const; auto PublishMessage(param::hstring const& messageType, param::hstring const& message, winrt::Windows::Networking::Proximity::MessageTransmittedHandler const& messageTransmittedHandler) const; auto PublishBinaryMessage(param::hstring const& messageType, winrt::Windows::Storage::Streams::IBuffer const& message) const; auto PublishBinaryMessage(param::hstring const& messageType, winrt::Windows::Storage::Streams::IBuffer const& message, winrt::Windows::Networking::Proximity::MessageTransmittedHandler const& messageTransmittedHandler) const; auto PublishUriMessage(winrt::Windows::Foundation::Uri const& message) const; auto PublishUriMessage(winrt::Windows::Foundation::Uri const& message, winrt::Windows::Networking::Proximity::MessageTransmittedHandler const& messageTransmittedHandler) const; auto StopSubscribingForMessage(int64_t subscriptionId) const; auto StopPublishingMessage(int64_t messageId) const; auto DeviceArrived(winrt::Windows::Networking::Proximity::DeviceArrivedEventHandler const& arrivedHandler) const; using DeviceArrived_revoker = impl::event_revoker::remove_DeviceArrived>; [[nodiscard]] auto DeviceArrived(auto_revoke_t, winrt::Windows::Networking::Proximity::DeviceArrivedEventHandler const& arrivedHandler) const; auto DeviceArrived(winrt::event_token const& cookie) const noexcept; auto DeviceDeparted(winrt::Windows::Networking::Proximity::DeviceDepartedEventHandler const& departedHandler) const; using DeviceDeparted_revoker = impl::event_revoker::remove_DeviceDeparted>; [[nodiscard]] auto DeviceDeparted(auto_revoke_t, winrt::Windows::Networking::Proximity::DeviceDepartedEventHandler const& departedHandler) const; auto DeviceDeparted(winrt::event_token const& cookie) const noexcept; [[nodiscard]] auto MaxMessageBytes() const; [[nodiscard]] auto BitsPerSecond() const; [[nodiscard]] auto DeviceId() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IProximityDevice; }; template struct consume_Windows_Networking_Proximity_IProximityDeviceStatics { auto GetDeviceSelector() const; auto GetDefault() const; auto FromId(param::hstring const& deviceId) const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IProximityDeviceStatics; }; template struct consume_Windows_Networking_Proximity_IProximityMessage { [[nodiscard]] auto MessageType() const; [[nodiscard]] auto SubscriptionId() const; [[nodiscard]] auto Data() const; [[nodiscard]] auto DataAsString() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_IProximityMessage; }; template struct consume_Windows_Networking_Proximity_ITriggeredConnectionStateChangedEventArgs { [[nodiscard]] auto State() const; [[nodiscard]] auto Id() const; [[nodiscard]] auto Socket() const; }; template <> struct consume { template using type = consume_Windows_Networking_Proximity_ITriggeredConnectionStateChangedEventArgs; }; } #endif