// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_System_Diagnostics_DevicePortal_0_H #define WINRT_Windows_System_Diagnostics_DevicePortal_0_H WINRT_EXPORT namespace winrt::Windows::ApplicationModel::AppService { struct AppServiceConnection; } WINRT_EXPORT namespace winrt::Windows::Foundation { struct Deferral; struct EventRegistrationToken; template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; } WINRT_EXPORT namespace winrt::Windows::Networking::Sockets { enum class MessageWebSocketReceiveMode : int32_t; struct ServerMessageWebSocket; struct ServerStreamWebSocket; enum class SocketMessageType : int32_t; } WINRT_EXPORT namespace winrt::Windows::Web::Http { struct HttpRequestMessage; struct HttpResponseMessage; } WINRT_EXPORT namespace winrt::Windows::System::Diagnostics::DevicePortal { enum class DevicePortalConnectionClosedReason : int32_t { Unknown = 0, ResourceLimitsExceeded = 1, ProtocolError = 2, NotAuthorized = 3, UserNotPresent = 4, ServiceTerminated = 5, }; struct IDevicePortalConnection; struct IDevicePortalConnectionClosedEventArgs; struct IDevicePortalConnectionRequestReceivedEventArgs; struct IDevicePortalConnectionStatics; struct IDevicePortalWebSocketConnection; struct IDevicePortalWebSocketConnectionRequestReceivedEventArgs; struct DevicePortalConnection; struct DevicePortalConnectionClosedEventArgs; struct DevicePortalConnectionRequestReceivedEventArgs; } 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 = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedReason"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.IDevicePortalConnection"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.IDevicePortalConnectionClosedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.IDevicePortalConnectionRequestReceivedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.IDevicePortalConnectionStatics"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.IDevicePortalWebSocketConnection"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.DevicePortal.IDevicePortalWebSocketConnectionRequestReceivedEventArgs"; template <> inline constexpr guid guid_v{ 0x0F447F51,0x1198,0x4DA1,{ 0x8D,0x54,0xBD,0xEF,0x39,0x3E,0x09,0xB6 } }; // 0F447F51-1198-4DA1-8D54-BDEF393E09B6 template <> inline constexpr guid guid_v{ 0xFCF70E38,0x7032,0x428C,{ 0x9F,0x50,0x94,0x5C,0x15,0xA9,0xF0,0xCB } }; // FCF70E38-7032-428C-9F50-945C15A9F0CB template <> inline constexpr guid guid_v{ 0x64DAE045,0x6FDA,0x4459,{ 0x9E,0xBD,0xEC,0xCE,0x22,0xE3,0x85,0x59 } }; // 64DAE045-6FDA-4459-9EBD-ECCE22E38559 template <> inline constexpr guid guid_v{ 0x4BBE31E7,0xE9B9,0x4645,{ 0x8F,0xED,0xA5,0x3E,0xEA,0x0E,0xDB,0xD6 } }; // 4BBE31E7-E9B9-4645-8FED-A53EEA0EDBD6 template <> inline constexpr guid guid_v{ 0x67657920,0xD65A,0x42F0,{ 0xAE,0xF4,0x78,0x78,0x08,0x09,0x8B,0x7B } }; // 67657920-D65A-42F0-AEF4-787808098B7B template <> inline constexpr guid guid_v{ 0x79FDCABA,0x175C,0x4739,{ 0x9F,0x74,0xDD,0xA7,0x97,0xC3,0x5B,0x3F } }; // 79FDCABA-175C-4739-9F74-DDA797C35B3F template <> struct default_interface{ using type = winrt::Windows::System::Diagnostics::DevicePortal::IDevicePortalConnection; }; template <> struct default_interface{ using type = winrt::Windows::System::Diagnostics::DevicePortal::IDevicePortalConnectionClosedEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::System::Diagnostics::DevicePortal::IDevicePortalConnectionRequestReceivedEventArgs; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall add_Closed(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Closed(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_RequestReceived(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_RequestReceived(winrt::event_token) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Reason(int32_t*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_RequestMessage(void**) noexcept = 0; virtual int32_t __stdcall get_ResponseMessage(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetForAppServiceConnection(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetServerMessageWebSocketForRequest(void*, void**) noexcept = 0; virtual int32_t __stdcall GetServerMessageWebSocketForRequest2(void*, int32_t, void*, void**) noexcept = 0; virtual int32_t __stdcall GetServerMessageWebSocketForRequest3(void*, int32_t, void*, uint32_t, uint32_t, int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetServerStreamWebSocketForRequest(void*, void**) noexcept = 0; virtual int32_t __stdcall GetServerStreamWebSocketForRequest2(void*, void*, uint32_t, bool, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_IsWebSocketUpgradeRequest(bool*) noexcept = 0; virtual int32_t __stdcall get_WebSocketProtocolsRequested(void**) noexcept = 0; virtual int32_t __stdcall GetDeferral(void**) noexcept = 0; }; }; template struct consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnection { auto Closed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using Closed_revoker = impl::event_revoker::remove_Closed>; [[nodiscard]] auto Closed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto Closed(winrt::event_token const& token) const noexcept; auto RequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using RequestReceived_revoker = impl::event_revoker::remove_RequestReceived>; [[nodiscard]] auto RequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto RequestReceived(winrt::event_token const& token) const noexcept; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnection; }; template struct consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnectionClosedEventArgs { [[nodiscard]] auto Reason() const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnectionClosedEventArgs; }; template struct consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnectionRequestReceivedEventArgs { [[nodiscard]] auto RequestMessage() const; [[nodiscard]] auto ResponseMessage() const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnectionRequestReceivedEventArgs; }; template struct consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnectionStatics { auto GetForAppServiceConnection(winrt::Windows::ApplicationModel::AppService::AppServiceConnection const& appServiceConnection) const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalConnectionStatics; }; template struct consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalWebSocketConnection { auto GetServerMessageWebSocketForRequest(winrt::Windows::Web::Http::HttpRequestMessage const& request) const; auto GetServerMessageWebSocketForRequest(winrt::Windows::Web::Http::HttpRequestMessage const& request, winrt::Windows::Networking::Sockets::SocketMessageType const& messageType, param::hstring const& protocol) const; auto GetServerMessageWebSocketForRequest(winrt::Windows::Web::Http::HttpRequestMessage const& request, winrt::Windows::Networking::Sockets::SocketMessageType const& messageType, param::hstring const& protocol, uint32_t outboundBufferSizeInBytes, uint32_t maxMessageSize, winrt::Windows::Networking::Sockets::MessageWebSocketReceiveMode const& receiveMode) const; auto GetServerStreamWebSocketForRequest(winrt::Windows::Web::Http::HttpRequestMessage const& request) const; auto GetServerStreamWebSocketForRequest(winrt::Windows::Web::Http::HttpRequestMessage const& request, param::hstring const& protocol, uint32_t outboundBufferSizeInBytes, bool noDelay) const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalWebSocketConnection; }; template struct consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalWebSocketConnectionRequestReceivedEventArgs { [[nodiscard]] auto IsWebSocketUpgradeRequest() const; [[nodiscard]] auto WebSocketProtocolsRequested() const; auto GetDeferral() const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_DevicePortal_IDevicePortalWebSocketConnectionRequestReceivedEventArgs; }; } #endif