// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Devices_Enumeration_Pnp_0_H #define WINRT_Windows_Devices_Enumeration_Pnp_0_H WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration { enum class DeviceWatcherStatus : int32_t; } WINRT_EXPORT namespace winrt::Windows::Foundation { struct EventRegistrationToken; 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 IVectorView; } WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration::Pnp { enum class PnpObjectType : int32_t { Unknown = 0, DeviceInterface = 1, DeviceContainer = 2, Device = 3, DeviceInterfaceClass = 4, AssociationEndpoint = 5, AssociationEndpointContainer = 6, AssociationEndpointService = 7, DevicePanel = 8, AssociationEndpointProtocol = 9, }; struct IPnpObject; struct IPnpObjectStatics; struct IPnpObjectUpdate; struct IPnpObjectWatcher; struct PnpObject; struct PnpObjectCollection; struct PnpObjectUpdate; struct PnpObjectWatcher; } 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 = 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 <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.PnpObject"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.PnpObjectType"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.IPnpObject"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.IPnpObjectStatics"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.IPnpObjectUpdate"; template <> inline constexpr auto& name_v = L"Windows.Devices.Enumeration.Pnp.IPnpObjectWatcher"; template <> inline constexpr guid guid_v{ 0x95C66258,0x733B,0x4A8F,{ 0x93,0xA3,0xDB,0x07,0x8A,0xC8,0x70,0xC1 } }; // 95C66258-733B-4A8F-93A3-DB078AC870C1 template <> inline constexpr guid guid_v{ 0xB3C32A3D,0xD168,0x4660,{ 0xBB,0xF3,0xA7,0x33,0xB1,0x4B,0x6E,0x01 } }; // B3C32A3D-D168-4660-BBF3-A733B14B6E01 template <> inline constexpr guid guid_v{ 0x6F59E812,0x001E,0x4844,{ 0xBC,0xC6,0x43,0x28,0x86,0x85,0x6A,0x17 } }; // 6F59E812-001E-4844-BCC6-432886856A17 template <> inline constexpr guid guid_v{ 0x83C95CA8,0x4772,0x4A7A,{ 0xAC,0xA8,0xE4,0x8C,0x42,0xA8,0x9C,0x44 } }; // 83C95CA8-4772-4A7A-ACA8-E48C42A89C44 template <> struct default_interface{ using type = winrt::Windows::Devices::Enumeration::Pnp::IPnpObject; }; template <> struct default_interface{ using type = winrt::Windows::Foundation::Collections::IVectorView; }; template <> struct default_interface{ using type = winrt::Windows::Devices::Enumeration::Pnp::IPnpObjectUpdate; }; template <> struct default_interface{ using type = winrt::Windows::Devices::Enumeration::Pnp::IPnpObjectWatcher; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Type(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Id(void**) noexcept = 0; virtual int32_t __stdcall get_Properties(void**) noexcept = 0; virtual int32_t __stdcall Update(void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall CreateFromIdAsync(int32_t, void*, void*, void**) noexcept = 0; virtual int32_t __stdcall FindAllAsync(int32_t, void*, void**) noexcept = 0; virtual int32_t __stdcall FindAllAsyncAqsFilter(int32_t, void*, void*, void**) noexcept = 0; virtual int32_t __stdcall CreateWatcher(int32_t, void*, void**) noexcept = 0; virtual int32_t __stdcall CreateWatcherAqsFilter(int32_t, void*, void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Type(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Id(void**) noexcept = 0; virtual int32_t __stdcall get_Properties(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_Updated(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Updated(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_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 consume_Windows_Devices_Enumeration_Pnp_IPnpObject { [[nodiscard]] auto Type() const; [[nodiscard]] auto Id() const; [[nodiscard]] auto Properties() const; auto Update(winrt::Windows::Devices::Enumeration::Pnp::PnpObjectUpdate const& updateInfo) const; }; template <> struct consume { template using type = consume_Windows_Devices_Enumeration_Pnp_IPnpObject; }; template struct consume_Windows_Devices_Enumeration_Pnp_IPnpObjectStatics { auto CreateFromIdAsync(winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType const& type, param::hstring const& id, param::async_iterable const& requestedProperties) const; auto FindAllAsync(winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType const& type, param::async_iterable const& requestedProperties) const; auto FindAllAsync(winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType const& type, param::async_iterable const& requestedProperties, param::hstring const& aqsFilter) const; auto CreateWatcher(winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType const& type, param::iterable const& requestedProperties) const; auto CreateWatcher(winrt::Windows::Devices::Enumeration::Pnp::PnpObjectType const& type, param::iterable const& requestedProperties, param::hstring const& aqsFilter) const; }; template <> struct consume { template using type = consume_Windows_Devices_Enumeration_Pnp_IPnpObjectStatics; }; template struct consume_Windows_Devices_Enumeration_Pnp_IPnpObjectUpdate { [[nodiscard]] auto Type() const; [[nodiscard]] auto Id() const; [[nodiscard]] auto Properties() const; }; template <> struct consume { template using type = consume_Windows_Devices_Enumeration_Pnp_IPnpObjectUpdate; }; template struct consume_Windows_Devices_Enumeration_Pnp_IPnpObjectWatcher { 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 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 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 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_Devices_Enumeration_Pnp_IPnpObjectWatcher; }; } #endif