// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_Media_Protection_2_H #define WINRT_Windows_Media_Protection_2_H #include "winrt/impl/Windows.Foundation.1.h" #include "winrt/impl/Windows.Foundation.Collections.1.h" #include "winrt/impl/Windows.Media.Protection.1.h" WINRT_EXPORT namespace winrt::Windows::Media::Protection { struct ComponentLoadFailedEventHandler : winrt::Windows::Foundation::IUnknown { ComponentLoadFailedEventHandler(std::nullptr_t = nullptr) noexcept {} ComponentLoadFailedEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template ComponentLoadFailedEventHandler(L lambda); template ComponentLoadFailedEventHandler(F* function); template ComponentLoadFailedEventHandler(O* object, M method); template ComponentLoadFailedEventHandler(com_ptr&& object, M method); template ComponentLoadFailedEventHandler(weak_ref&& object, LM&& lambda_or_method); template ComponentLoadFailedEventHandler(std::shared_ptr&& object, M method); template ComponentLoadFailedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method); auto operator()(winrt::Windows::Media::Protection::MediaProtectionManager const& sender, winrt::Windows::Media::Protection::ComponentLoadFailedEventArgs const& e) const; }; struct RebootNeededEventHandler : winrt::Windows::Foundation::IUnknown { RebootNeededEventHandler(std::nullptr_t = nullptr) noexcept {} RebootNeededEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template RebootNeededEventHandler(L lambda); template RebootNeededEventHandler(F* function); template RebootNeededEventHandler(O* object, M method); template RebootNeededEventHandler(com_ptr&& object, M method); template RebootNeededEventHandler(weak_ref&& object, LM&& lambda_or_method); template RebootNeededEventHandler(std::shared_ptr&& object, M method); template RebootNeededEventHandler(std::weak_ptr&& object, LM&& lambda_or_method); auto operator()(winrt::Windows::Media::Protection::MediaProtectionManager const& sender) const; }; struct ServiceRequestedEventHandler : winrt::Windows::Foundation::IUnknown { ServiceRequestedEventHandler(std::nullptr_t = nullptr) noexcept {} ServiceRequestedEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template ServiceRequestedEventHandler(L lambda); template ServiceRequestedEventHandler(F* function); template ServiceRequestedEventHandler(O* object, M method); template ServiceRequestedEventHandler(com_ptr&& object, M method); template ServiceRequestedEventHandler(weak_ref&& object, LM&& lambda_or_method); template ServiceRequestedEventHandler(std::shared_ptr&& object, M method); template ServiceRequestedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method); auto operator()(winrt::Windows::Media::Protection::MediaProtectionManager const& sender, winrt::Windows::Media::Protection::ServiceRequestedEventArgs const& e) const; }; struct WINRT_IMPL_EMPTY_BASES ComponentLoadFailedEventArgs : winrt::Windows::Media::Protection::IComponentLoadFailedEventArgs { ComponentLoadFailedEventArgs(std::nullptr_t) noexcept {} ComponentLoadFailedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IComponentLoadFailedEventArgs(ptr, take_ownership_from_abi) {} }; struct ComponentRenewal { ComponentRenewal() = delete; static auto RenewSystemComponentsAsync(winrt::Windows::Media::Protection::RevocationAndRenewalInformation const& information); }; struct WINRT_IMPL_EMPTY_BASES HdcpSession : winrt::Windows::Media::Protection::IHdcpSession { HdcpSession(std::nullptr_t) noexcept {} HdcpSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IHdcpSession(ptr, take_ownership_from_abi) {} HdcpSession(); }; struct WINRT_IMPL_EMPTY_BASES MediaProtectionManager : winrt::Windows::Media::Protection::IMediaProtectionManager { MediaProtectionManager(std::nullptr_t) noexcept {} MediaProtectionManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IMediaProtectionManager(ptr, take_ownership_from_abi) {} MediaProtectionManager(); }; struct WINRT_IMPL_EMPTY_BASES MediaProtectionPMPServer : winrt::Windows::Media::Protection::IMediaProtectionPMPServer { MediaProtectionPMPServer(std::nullptr_t) noexcept {} MediaProtectionPMPServer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IMediaProtectionPMPServer(ptr, take_ownership_from_abi) {} explicit MediaProtectionPMPServer(winrt::Windows::Foundation::Collections::IPropertySet const& pProperties); }; struct WINRT_IMPL_EMPTY_BASES MediaProtectionServiceCompletion : winrt::Windows::Media::Protection::IMediaProtectionServiceCompletion { MediaProtectionServiceCompletion(std::nullptr_t) noexcept {} MediaProtectionServiceCompletion(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IMediaProtectionServiceCompletion(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ProtectionCapabilities : winrt::Windows::Media::Protection::IProtectionCapabilities { ProtectionCapabilities(std::nullptr_t) noexcept {} ProtectionCapabilities(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IProtectionCapabilities(ptr, take_ownership_from_abi) {} ProtectionCapabilities(); }; struct WINRT_IMPL_EMPTY_BASES RevocationAndRenewalInformation : winrt::Windows::Media::Protection::IRevocationAndRenewalInformation { RevocationAndRenewalInformation(std::nullptr_t) noexcept {} RevocationAndRenewalInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IRevocationAndRenewalInformation(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES RevocationAndRenewalItem : winrt::Windows::Media::Protection::IRevocationAndRenewalItem { RevocationAndRenewalItem(std::nullptr_t) noexcept {} RevocationAndRenewalItem(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IRevocationAndRenewalItem(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ServiceRequestedEventArgs : winrt::Windows::Media::Protection::IServiceRequestedEventArgs, impl::require { ServiceRequestedEventArgs(std::nullptr_t) noexcept {} ServiceRequestedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Media::Protection::IServiceRequestedEventArgs(ptr, take_ownership_from_abi) {} }; } #endif