// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Media_DialProtocol_0_H #define WINRT_Windows_Media_DialProtocol_0_H WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration { struct DeviceInformation; struct DevicePickerAppearance; } WINRT_EXPORT namespace winrt::Windows::Foundation { struct EventRegistrationToken; struct IAsyncAction; struct Rect; template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; } WINRT_EXPORT namespace winrt::Windows::Foundation::Collections { template struct WINRT_IMPL_EMPTY_BASES IIterable; template struct WINRT_IMPL_EMPTY_BASES IKeyValuePair; } WINRT_EXPORT namespace winrt::Windows::Storage::Streams { struct IRandomAccessStreamReference; } WINRT_EXPORT namespace winrt::Windows::UI::Popups { enum class Placement : int32_t; } WINRT_EXPORT namespace winrt::Windows::Media::DialProtocol { enum class DialAppLaunchResult : int32_t { Launched = 0, FailedToLaunch = 1, NotFound = 2, NetworkFailure = 3, }; enum class DialAppState : int32_t { Unknown = 0, Stopped = 1, Running = 2, NetworkFailure = 3, }; enum class DialAppStopResult : int32_t { Stopped = 0, StopFailed = 1, OperationNotSupported = 2, NetworkFailure = 3, }; enum class DialDeviceDisplayStatus : int32_t { None = 0, Connecting = 1, Connected = 2, Disconnecting = 3, Disconnected = 4, Error = 5, }; struct IDialApp; struct IDialAppStateDetails; struct IDialDevice; struct IDialDevice2; struct IDialDevicePicker; struct IDialDevicePickerFilter; struct IDialDeviceSelectedEventArgs; struct IDialDeviceStatics; struct IDialDisconnectButtonClickedEventArgs; struct IDialReceiverApp; struct IDialReceiverApp2; struct IDialReceiverAppStatics; struct DialApp; struct DialAppStateDetails; struct DialDevice; struct DialDevicePicker; struct DialDevicePickerFilter; struct DialDeviceSelectedEventArgs; struct DialDisconnectButtonClickedEventArgs; struct DialReceiverApp; } 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 = 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 = 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 <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialApp"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialAppStateDetails"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialDevice"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialDevicePicker"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialDevicePickerFilter"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialDeviceSelectedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialDisconnectButtonClickedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialReceiverApp"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialAppLaunchResult"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialAppState"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialAppStopResult"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.DialDeviceDisplayStatus"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialApp"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialAppStateDetails"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialDevice"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialDevice2"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialDevicePicker"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialDevicePickerFilter"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialDeviceSelectedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialDeviceStatics"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialDisconnectButtonClickedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialReceiverApp"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialReceiverApp2"; template <> inline constexpr auto& name_v = L"Windows.Media.DialProtocol.IDialReceiverAppStatics"; template <> inline constexpr guid guid_v{ 0x555FFBD3,0x45B7,0x49F3,{ 0xBB,0xD7,0x30,0x2D,0xB6,0x08,0x46,0x46 } }; // 555FFBD3-45B7-49F3-BBD7-302DB6084646 template <> inline constexpr guid guid_v{ 0xDDC4A4A1,0xF5DE,0x400D,{ 0xBE,0xA4,0x8C,0x84,0x66,0xBB,0x29,0x61 } }; // DDC4A4A1-F5DE-400D-BEA4-8C8466BB2961 template <> inline constexpr guid guid_v{ 0xFFF0EDAF,0x759F,0x41D2,{ 0xA2,0x0A,0x7F,0x29,0xCE,0x0B,0x37,0x84 } }; // FFF0EDAF-759F-41D2-A20A-7F29CE0B3784 template <> inline constexpr guid guid_v{ 0xBAB7F3D5,0x5BFB,0x4EBA,{ 0x8B,0x32,0xB5,0x7C,0x5C,0x5E,0xE5,0xC9 } }; // BAB7F3D5-5BFB-4EBA-8B32-B57C5C5EE5C9 template <> inline constexpr guid guid_v{ 0xBA7E520A,0xFF59,0x4F4B,{ 0xBD,0xAC,0xD8,0x9F,0x49,0x5A,0xD6,0xE1 } }; // BA7E520A-FF59-4F4B-BDAC-D89F495AD6E1 template <> inline constexpr guid guid_v{ 0xC17C93BA,0x86C0,0x485D,{ 0xB8,0xD6,0x0F,0x9A,0x8F,0x64,0x15,0x90 } }; // C17C93BA-86C0-485D-B8D6-0F9A8F641590 template <> inline constexpr guid guid_v{ 0x480B92AD,0xAC76,0x47EB,{ 0x9C,0x06,0xA1,0x93,0x04,0xDA,0x02,0x47 } }; // 480B92AD-AC76-47EB-9C06-A19304DA0247 template <> inline constexpr guid guid_v{ 0xAA69CC95,0x01F8,0x4758,{ 0x84,0x61,0x2B,0xBD,0x1C,0xDC,0x3C,0xF3 } }; // AA69CC95-01F8-4758-8461-2BBD1CDC3CF3 template <> inline constexpr guid guid_v{ 0x52765152,0x9C81,0x4E55,{ 0xAD,0xC2,0x0E,0xBE,0x99,0xCD,0xE3,0xB6 } }; // 52765152-9C81-4E55-ADC2-0EBE99CDE3B6 template <> inline constexpr guid guid_v{ 0xFD3E7C57,0x5045,0x470E,{ 0xB3,0x04,0x4D,0xD9,0xB1,0x3E,0x7D,0x11 } }; // FD3E7C57-5045-470E-B304-4DD9B13E7D11 template <> inline constexpr guid guid_v{ 0x530C5805,0x9130,0x42AC,{ 0xA5,0x04,0x19,0x77,0xDC,0xB2,0xEA,0x8A } }; // 530C5805-9130-42AC-A504-1977DCB2EA8A template <> inline constexpr guid guid_v{ 0x53183A3C,0x4C36,0x4D02,{ 0xB2,0x8A,0xF2,0xA9,0xDA,0x38,0xEC,0x52 } }; // 53183A3C-4C36-4D02-B28A-F2A9DA38EC52 template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialApp; }; template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialAppStateDetails; }; template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialDevice; }; template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialDevicePicker; }; template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialDevicePickerFilter; }; template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialDeviceSelectedEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialDisconnectButtonClickedEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::Media::DialProtocol::IDialReceiverApp; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_AppName(void**) noexcept = 0; virtual int32_t __stdcall RequestLaunchAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall StopAsync(void**) noexcept = 0; virtual int32_t __stdcall GetAppStateAsync(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_FullXml(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 GetDialApp(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_FriendlyName(void**) noexcept = 0; virtual int32_t __stdcall get_Thumbnail(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Filter(void**) noexcept = 0; virtual int32_t __stdcall get_Appearance(void**) noexcept = 0; virtual int32_t __stdcall add_DialDeviceSelected(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_DialDeviceSelected(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_DisconnectButtonClicked(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_DisconnectButtonClicked(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_DialDevicePickerDismissed(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_DialDevicePickerDismissed(winrt::event_token) noexcept = 0; virtual int32_t __stdcall Show(winrt::Windows::Foundation::Rect) noexcept = 0; virtual int32_t __stdcall ShowWithPlacement(winrt::Windows::Foundation::Rect, int32_t) noexcept = 0; virtual int32_t __stdcall PickSingleDialDeviceAsync(winrt::Windows::Foundation::Rect, void**) noexcept = 0; virtual int32_t __stdcall PickSingleDialDeviceAsyncWithPlacement(winrt::Windows::Foundation::Rect, int32_t, void**) noexcept = 0; virtual int32_t __stdcall Hide() noexcept = 0; virtual int32_t __stdcall SetDisplayStatus(void*, int32_t) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_SupportedAppNames(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_SelectedDialDevice(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetDeviceSelector(void*, void**) noexcept = 0; virtual int32_t __stdcall FromIdAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall DeviceInfoSupportsDialAsync(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Device(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetAdditionalDataAsync(void**) noexcept = 0; virtual int32_t __stdcall SetAdditionalDataAsync(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetUniqueDeviceNameAsync(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Current(void**) noexcept = 0; }; }; template struct consume_Windows_Media_DialProtocol_IDialApp { [[nodiscard]] auto AppName() const; auto RequestLaunchAsync(param::hstring const& appArgument) const; auto StopAsync() const; auto GetAppStateAsync() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialApp; }; template struct consume_Windows_Media_DialProtocol_IDialAppStateDetails { [[nodiscard]] auto State() const; [[nodiscard]] auto FullXml() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialAppStateDetails; }; template struct consume_Windows_Media_DialProtocol_IDialDevice { [[nodiscard]] auto Id() const; auto GetDialApp(param::hstring const& appName) const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialDevice; }; template struct consume_Windows_Media_DialProtocol_IDialDevice2 { [[nodiscard]] auto FriendlyName() const; [[nodiscard]] auto Thumbnail() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialDevice2; }; template struct consume_Windows_Media_DialProtocol_IDialDevicePicker { [[nodiscard]] auto Filter() const; [[nodiscard]] auto Appearance() const; auto DialDeviceSelected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using DialDeviceSelected_revoker = impl::event_revoker::remove_DialDeviceSelected>; [[nodiscard]] auto DialDeviceSelected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto DialDeviceSelected(winrt::event_token const& token) const noexcept; auto DisconnectButtonClicked(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using DisconnectButtonClicked_revoker = impl::event_revoker::remove_DisconnectButtonClicked>; [[nodiscard]] auto DisconnectButtonClicked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto DisconnectButtonClicked(winrt::event_token const& token) const noexcept; auto DialDevicePickerDismissed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using DialDevicePickerDismissed_revoker = impl::event_revoker::remove_DialDevicePickerDismissed>; [[nodiscard]] auto DialDevicePickerDismissed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto DialDevicePickerDismissed(winrt::event_token const& token) const noexcept; auto Show(winrt::Windows::Foundation::Rect const& selection) const; auto Show(winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const; auto PickSingleDialDeviceAsync(winrt::Windows::Foundation::Rect const& selection) const; auto PickSingleDialDeviceAsync(winrt::Windows::Foundation::Rect const& selection, winrt::Windows::UI::Popups::Placement const& preferredPlacement) const; auto Hide() const; auto SetDisplayStatus(winrt::Windows::Media::DialProtocol::DialDevice const& device, winrt::Windows::Media::DialProtocol::DialDeviceDisplayStatus const& status) const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialDevicePicker; }; template struct consume_Windows_Media_DialProtocol_IDialDevicePickerFilter { [[nodiscard]] auto SupportedAppNames() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialDevicePickerFilter; }; template struct consume_Windows_Media_DialProtocol_IDialDeviceSelectedEventArgs { [[nodiscard]] auto SelectedDialDevice() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialDeviceSelectedEventArgs; }; template struct consume_Windows_Media_DialProtocol_IDialDeviceStatics { auto GetDeviceSelector(param::hstring const& appName) const; auto FromIdAsync(param::hstring const& value) const; auto DeviceInfoSupportsDialAsync(winrt::Windows::Devices::Enumeration::DeviceInformation const& device) const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialDeviceStatics; }; template struct consume_Windows_Media_DialProtocol_IDialDisconnectButtonClickedEventArgs { [[nodiscard]] auto Device() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialDisconnectButtonClickedEventArgs; }; template struct consume_Windows_Media_DialProtocol_IDialReceiverApp { auto GetAdditionalDataAsync() const; auto SetAdditionalDataAsync(param::async_iterable> const& additionalData) const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialReceiverApp; }; template struct consume_Windows_Media_DialProtocol_IDialReceiverApp2 { auto GetUniqueDeviceNameAsync() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialReceiverApp2; }; template struct consume_Windows_Media_DialProtocol_IDialReceiverAppStatics { [[nodiscard]] auto Current() const; }; template <> struct consume { template using type = consume_Windows_Media_DialProtocol_IDialReceiverAppStatics; }; } #endif