winrt-Windows.Media.Protection 3.2.1__cp314-cp314-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,143 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+ from abc import abstractmethod
10
+
11
+ import winrt._winrt
12
+ import winrt.system
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.media.playback as windows_media_playback
16
+
17
+ from winrt.windows.media.protection import GraphicsTrustStatus, HdcpProtection, HdcpSetProtectionResult, ProtectionCapabilityResult, RenewalStatus, RevocationAndRenewalReasons
18
+ from winrt.windows.media.protection import ComponentLoadFailedEventHandler, RebootNeededEventHandler, ServiceRequestedEventHandler
19
+
20
+ Self = typing.TypeVar('Self')
21
+
22
+ @typing.final
23
+ class ComponentLoadFailedEventArgs(winrt.system.Object):
24
+ # Windows.Media.Protection.MediaProtectionServiceCompletion Windows.Media.Protection.ComponentLoadFailedEventArgs::get_Completion()
25
+ @_property
26
+ def completion(self) -> MediaProtectionServiceCompletion: ...
27
+ # Windows.Media.Protection.RevocationAndRenewalInformation Windows.Media.Protection.ComponentLoadFailedEventArgs::get_Information()
28
+ @_property
29
+ def information(self) -> RevocationAndRenewalInformation: ...
30
+
31
+ @typing.final
32
+ class ComponentRenewal_Static(winrt._winrt.IInspectable_Static):
33
+ # Windows.Foundation.IAsyncOperationWithProgress`2<Windows.Media.Protection.RenewalStatus,System.UInt32> Windows.Media.Protection.ComponentRenewal::RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation)
34
+ def renew_system_components_async(cls, information: RevocationAndRenewalInformation, /) -> windows_foundation.IAsyncOperationWithProgress[RenewalStatus, winrt.system.UInt32]: ...
35
+
36
+ @typing.final
37
+ class ComponentRenewal(winrt.system.Object, metaclass=ComponentRenewal_Static):
38
+ pass
39
+
40
+ @typing.final
41
+ class HdcpSession(winrt.system.Object, windows_foundation.IClosable):
42
+ def __enter__(self: Self) -> Self: ...
43
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
44
+ def __new__(cls: typing.Type[Self]) -> Self: ...
45
+ # System.Void Windows.Media.Protection.HdcpSession::Close()
46
+ def close(self) -> None: ...
47
+ # Windows.Foundation.IReference`1<Windows.Media.Protection.HdcpProtection> Windows.Media.Protection.HdcpSession::GetEffectiveProtection()
48
+ def get_effective_protection(self) -> typing.Optional[HdcpProtection]: ...
49
+ # System.Boolean Windows.Media.Protection.HdcpSession::IsEffectiveProtectionAtLeast(Windows.Media.Protection.HdcpProtection)
50
+ def is_effective_protection_at_least(self, protection: HdcpProtection, /) -> bool: ...
51
+ # Windows.Foundation.IAsyncOperation`1<Windows.Media.Protection.HdcpSetProtectionResult> Windows.Media.Protection.HdcpSession::SetDesiredMinProtectionAsync(Windows.Media.Protection.HdcpProtection)
52
+ def set_desired_min_protection_async(self, protection: HdcpProtection, /) -> windows_foundation.IAsyncOperation[HdcpSetProtectionResult]: ...
53
+ # Windows.Foundation.EventRegistrationToken Windows.Media.Protection.HdcpSession::add_ProtectionChanged(Windows.Foundation.TypedEventHandler`2<Windows.Media.Protection.HdcpSession,System.Object>)
54
+ def add_protection_changed(self, handler: windows_foundation.TypedEventHandler[HdcpSession, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
55
+ # System.Void Windows.Media.Protection.HdcpSession::remove_ProtectionChanged(Windows.Foundation.EventRegistrationToken)
56
+ def remove_protection_changed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
57
+
58
+ @typing.final
59
+ class MediaProtectionManager(winrt.system.Object):
60
+ def __new__(cls: typing.Type[Self]) -> Self: ...
61
+ # Windows.Foundation.EventRegistrationToken Windows.Media.Protection.MediaProtectionManager::add_ComponentLoadFailed(Windows.Media.Protection.ComponentLoadFailedEventHandler)
62
+ def add_component_load_failed(self, handler: ComponentLoadFailedEventHandler, /) -> windows_foundation.EventRegistrationToken: ...
63
+ # System.Void Windows.Media.Protection.MediaProtectionManager::remove_ComponentLoadFailed(Windows.Foundation.EventRegistrationToken)
64
+ def remove_component_load_failed(self, cookie: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
65
+ # Windows.Foundation.EventRegistrationToken Windows.Media.Protection.MediaProtectionManager::add_RebootNeeded(Windows.Media.Protection.RebootNeededEventHandler)
66
+ def add_reboot_needed(self, handler: RebootNeededEventHandler, /) -> windows_foundation.EventRegistrationToken: ...
67
+ # System.Void Windows.Media.Protection.MediaProtectionManager::remove_RebootNeeded(Windows.Foundation.EventRegistrationToken)
68
+ def remove_reboot_needed(self, cookie: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
69
+ # Windows.Foundation.EventRegistrationToken Windows.Media.Protection.MediaProtectionManager::add_ServiceRequested(Windows.Media.Protection.ServiceRequestedEventHandler)
70
+ def add_service_requested(self, handler: ServiceRequestedEventHandler, /) -> windows_foundation.EventRegistrationToken: ...
71
+ # System.Void Windows.Media.Protection.MediaProtectionManager::remove_ServiceRequested(Windows.Foundation.EventRegistrationToken)
72
+ def remove_service_requested(self, cookie: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
73
+ # Windows.Foundation.Collections.IPropertySet Windows.Media.Protection.MediaProtectionManager::get_Properties()
74
+ @_property
75
+ def properties(self) -> windows_foundation_collections.IPropertySet: ...
76
+
77
+ @typing.final
78
+ class MediaProtectionPMPServer(winrt.system.Object):
79
+ def __new__(cls: typing.Type[Self], p_properties: windows_foundation_collections.IPropertySet) -> Self: ...
80
+ # Windows.Foundation.Collections.IPropertySet Windows.Media.Protection.MediaProtectionPMPServer::get_Properties()
81
+ @_property
82
+ def properties(self) -> windows_foundation_collections.IPropertySet: ...
83
+
84
+ @typing.final
85
+ class MediaProtectionServiceCompletion(winrt.system.Object):
86
+ # System.Void Windows.Media.Protection.MediaProtectionServiceCompletion::Complete(System.Boolean)
87
+ def complete(self, success: bool, /) -> None: ...
88
+
89
+ @typing.final
90
+ class ProtectionCapabilities(winrt.system.Object):
91
+ def __new__(cls: typing.Type[Self]) -> Self: ...
92
+ # Windows.Media.Protection.ProtectionCapabilityResult Windows.Media.Protection.ProtectionCapabilities::IsTypeSupported(System.String,System.String)
93
+ def is_type_supported(self, type: str, key_system: str, /) -> ProtectionCapabilityResult: ...
94
+
95
+ @typing.final
96
+ class RevocationAndRenewalInformation(winrt.system.Object):
97
+ # Windows.Foundation.Collections.IVector`1<Windows.Media.Protection.RevocationAndRenewalItem> Windows.Media.Protection.RevocationAndRenewalInformation::get_Items()
98
+ @_property
99
+ def items(self) -> typing.MutableSequence[RevocationAndRenewalItem]: ...
100
+
101
+ @typing.final
102
+ class RevocationAndRenewalItem(winrt.system.Object):
103
+ # System.String Windows.Media.Protection.RevocationAndRenewalItem::get_HeaderHash()
104
+ @_property
105
+ def header_hash(self) -> str: ...
106
+ # System.String Windows.Media.Protection.RevocationAndRenewalItem::get_Name()
107
+ @_property
108
+ def name(self) -> str: ...
109
+ # System.String Windows.Media.Protection.RevocationAndRenewalItem::get_PublicKeyHash()
110
+ @_property
111
+ def public_key_hash(self) -> str: ...
112
+ # Windows.Media.Protection.RevocationAndRenewalReasons Windows.Media.Protection.RevocationAndRenewalItem::get_Reasons()
113
+ @_property
114
+ def reasons(self) -> RevocationAndRenewalReasons: ...
115
+ # System.String Windows.Media.Protection.RevocationAndRenewalItem::get_RenewalId()
116
+ @_property
117
+ def renewal_id(self) -> str: ...
118
+
119
+ @typing.final
120
+ class ServiceRequestedEventArgs(winrt.system.Object):
121
+ # Windows.Media.Protection.MediaProtectionServiceCompletion Windows.Media.Protection.ServiceRequestedEventArgs::get_Completion()
122
+ @_property
123
+ def completion(self) -> MediaProtectionServiceCompletion: ...
124
+ # Windows.Media.Protection.IMediaProtectionServiceRequest Windows.Media.Protection.ServiceRequestedEventArgs::get_Request()
125
+ @_property
126
+ def request(self) -> IMediaProtectionServiceRequest: ...
127
+ # Windows.Media.Playback.MediaPlaybackItem Windows.Media.Protection.ServiceRequestedEventArgs::get_MediaPlaybackItem()
128
+ @_property
129
+ def media_playback_item(self) -> windows_media_playback.MediaPlaybackItem: ...
130
+
131
+ @typing.final
132
+ class _IMediaProtectionServiceRequest: ...
133
+
134
+ class IMediaProtectionServiceRequest(winrt._winrt.IInspectable):
135
+ # System.Guid Windows.Media.Protection.IMediaProtectionServiceRequest::get_ProtectionSystem()
136
+ @_property
137
+ @abstractmethod
138
+ def protection_system(self) -> _uuid.UUID: ...
139
+ # System.Guid Windows.Media.Protection.IMediaProtectionServiceRequest::get_Type()
140
+ @_property
141
+ @abstractmethod
142
+ def type(self) -> _uuid.UUID: ...
143
+
@@ -0,0 +1,96 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import enum
4
+ import typing
5
+ import uuid as _uuid
6
+
7
+ import winrt.system
8
+ from winrt._winrt_windows_media_protection import (
9
+ ComponentLoadFailedEventArgs,
10
+ ComponentRenewal,
11
+ HdcpSession,
12
+ MediaProtectionManager,
13
+ MediaProtectionPMPServer,
14
+ MediaProtectionServiceCompletion,
15
+ ProtectionCapabilities,
16
+ RevocationAndRenewalInformation,
17
+ RevocationAndRenewalItem,
18
+ ServiceRequestedEventArgs,
19
+ _IMediaProtectionServiceRequest,
20
+ IMediaProtectionServiceRequest,
21
+ )
22
+
23
+ __all__ = [
24
+ "GraphicsTrustStatus",
25
+ "HdcpProtection",
26
+ "HdcpSetProtectionResult",
27
+ "ProtectionCapabilityResult",
28
+ "RenewalStatus",
29
+ "RevocationAndRenewalReasons",
30
+ "ComponentLoadFailedEventArgs",
31
+ "ComponentRenewal",
32
+ "HdcpSession",
33
+ "MediaProtectionManager",
34
+ "MediaProtectionPMPServer",
35
+ "MediaProtectionServiceCompletion",
36
+ "ProtectionCapabilities",
37
+ "RevocationAndRenewalInformation",
38
+ "RevocationAndRenewalItem",
39
+ "ServiceRequestedEventArgs",
40
+ "IMediaProtectionServiceRequest",
41
+ "ComponentLoadFailedEventHandler",
42
+ "RebootNeededEventHandler",
43
+ "ServiceRequestedEventHandler",
44
+ ]
45
+
46
+ class GraphicsTrustStatus(enum.IntEnum):
47
+ TRUST_NOT_REQUIRED = 0
48
+ TRUST_ESTABLISHED = 1
49
+ ENVIRONMENT_NOT_SUPPORTED = 2
50
+ DRIVER_NOT_SUPPORTED = 3
51
+ DRIVER_SIGNING_FAILURE = 4
52
+ UNKNOWN_FAILURE = 5
53
+
54
+ class HdcpProtection(enum.IntEnum):
55
+ OFF = 0
56
+ ON = 1
57
+ ON_WITH_TYPE_ENFORCEMENT = 2
58
+
59
+ class HdcpSetProtectionResult(enum.IntEnum):
60
+ SUCCESS = 0
61
+ TIMED_OUT = 1
62
+ NOT_SUPPORTED = 2
63
+ UNKNOWN_FAILURE = 3
64
+
65
+ class ProtectionCapabilityResult(enum.IntEnum):
66
+ NOT_SUPPORTED = 0
67
+ MAYBE = 1
68
+ PROBABLY = 2
69
+
70
+ class RenewalStatus(enum.IntEnum):
71
+ NOT_STARTED = 0
72
+ UPDATES_IN_PROGRESS = 1
73
+ USER_CANCELLED = 2
74
+ APP_COMPONENTS_MAY_NEED_UPDATING = 3
75
+ NO_COMPONENTS_FOUND = 4
76
+
77
+ class RevocationAndRenewalReasons(enum.IntFlag):
78
+ USER_MODE_COMPONENT_LOAD = 0x1
79
+ KERNEL_MODE_COMPONENT_LOAD = 0x2
80
+ APP_COMPONENT = 0x4
81
+ GLOBAL_REVOCATION_LIST_LOAD_FAILED = 0x10
82
+ INVALID_GLOBAL_REVOCATION_LIST_SIGNATURE = 0x20
83
+ GLOBAL_REVOCATION_LIST_ABSENT = 0x1000
84
+ COMPONENT_REVOKED = 0x2000
85
+ INVALID_COMPONENT_CERTIFICATE_EXTENDED_KEY_USE = 0x4000
86
+ COMPONENT_CERTIFICATE_REVOKED = 0x8000
87
+ INVALID_COMPONENT_CERTIFICATE_ROOT = 0x10000
88
+ COMPONENT_HIGH_SECURITY_CERTIFICATE_REVOKED = 0x20000
89
+ COMPONENT_LOW_SECURITY_CERTIFICATE_REVOKED = 0x40000
90
+ BOOT_DRIVER_VERIFICATION_FAILED = 0x100000
91
+ COMPONENT_SIGNED_WITH_TEST_CERTIFICATE = 0x1000000
92
+ ENCRYPTION_FAILURE = 0x10000000
93
+
94
+ ComponentLoadFailedEventHandler = typing.Callable[[MediaProtectionManager, ComponentLoadFailedEventArgs], None]
95
+ RebootNeededEventHandler = typing.Callable[[MediaProtectionManager], None]
96
+ ServiceRequestedEventHandler = typing.Callable[[MediaProtectionManager, ServiceRequestedEventArgs], None]
File without changes
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.4
2
+ Name: winrt-Windows.Media.Protection
3
+ Version: 3.2.1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License-Expression: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime~=3.2.1.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Media.Playback[all]~=3.2.1.0; extra == "all"
20
+
21
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
22
+
23
+ # winrt-Windows.Media.Protection
24
+
25
+ Windows Runtime (WinRT) APIs for for the `Windows.Media.Protection` namespace.
26
+
27
+ This package provides the `winrt.windows.media.protection` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_media_protection.cp314-win32.pyd,sha256=ZQoOXytOtSFljvuJh1CznyKW5z21BYnpINxjp9vkL2g,167936
2
+ winrt/_winrt_windows_media_protection.pyi,sha256=akkndxDx8PNArUcJyIjYZ7j7Sbf-z8pvasf-cy8sG-Q,9225
3
+ winrt/windows/media/protection/__init__.py,sha256=zPXSOxI9BzRwVNaSJykYoHDLNqFgIkS2Z_kGgpGywlk,2943
4
+ winrt/windows/media/protection/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_media_protection-3.2.1.dist-info/METADATA,sha256=A1pOaopBzSWm_Hczmy0tQ-FPqa9xg_XhWy0NuqdN9Zs,1211
6
+ winrt_windows_media_protection-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
7
+ winrt_windows_media_protection-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_windows_media_protection-3.2.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win32
5
+