winrt-Windows.Media.Protection 2.2.0__cp313-cp313-win_arm64.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,128 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
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
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.media.playback as windows_media_playback
15
+
16
+ from winrt.windows.media.protection import GraphicsTrustStatus, HdcpProtection, HdcpSetProtectionResult, ProtectionCapabilityResult, RenewalStatus, RevocationAndRenewalReasons
17
+ from winrt.windows.media.protection import ComponentLoadFailedEventHandler, RebootNeededEventHandler, ServiceRequestedEventHandler
18
+
19
+ Self = typing.TypeVar('Self')
20
+
21
+ @typing.final
22
+ class ComponentLoadFailedEventArgs(winrt.system.Object):
23
+ @staticmethod
24
+ def _from(obj: winrt.system.Object, /) -> ComponentLoadFailedEventArgs: ...
25
+ @_property
26
+ def completion(self) -> typing.Optional[MediaProtectionServiceCompletion]: ...
27
+ @_property
28
+ def information(self) -> typing.Optional[RevocationAndRenewalInformation]: ...
29
+
30
+ @typing.final
31
+ class ComponentRenewal_Static(type):
32
+ def renew_system_components_async(cls, information: typing.Optional[RevocationAndRenewalInformation], /) -> windows_foundation.IAsyncOperationWithProgress[RenewalStatus, winrt.system.UInt32]: ...
33
+
34
+ @typing.final
35
+ class ComponentRenewal(winrt.system.Object, metaclass=ComponentRenewal_Static):
36
+ pass
37
+
38
+ @typing.final
39
+ class HdcpSession(winrt.system.Object):
40
+ def __enter__(self: Self) -> Self: ...
41
+ def __exit__(self, *args) -> None: ...
42
+ @staticmethod
43
+ def _from(obj: winrt.system.Object, /) -> HdcpSession: ...
44
+ def __new__(cls: typing.Type[HdcpSession]) -> HdcpSession: ...
45
+ def close(self) -> None: ...
46
+ def get_effective_protection(self) -> typing.Optional[typing.Optional[HdcpProtection]]: ...
47
+ def is_effective_protection_at_least(self, protection: HdcpProtection, /) -> bool: ...
48
+ def set_desired_min_protection_async(self, protection: HdcpProtection, /) -> windows_foundation.IAsyncOperation[HdcpSetProtectionResult]: ...
49
+ def add_protection_changed(self, handler: windows_foundation.TypedEventHandler[HdcpSession, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
50
+ def remove_protection_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
51
+
52
+ @typing.final
53
+ class MediaProtectionManager(winrt.system.Object):
54
+ @staticmethod
55
+ def _from(obj: winrt.system.Object, /) -> MediaProtectionManager: ...
56
+ def __new__(cls: typing.Type[MediaProtectionManager]) -> MediaProtectionManager: ...
57
+ def add_component_load_failed(self, handler: typing.Optional[ComponentLoadFailedEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
58
+ def remove_component_load_failed(self, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
59
+ def add_reboot_needed(self, handler: typing.Optional[RebootNeededEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
60
+ def remove_reboot_needed(self, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
61
+ def add_service_requested(self, handler: typing.Optional[ServiceRequestedEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
62
+ def remove_service_requested(self, cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
63
+ @_property
64
+ def properties(self) -> typing.Optional[windows_foundation_collections.IPropertySet]: ...
65
+
66
+ @typing.final
67
+ class MediaProtectionPMPServer(winrt.system.Object):
68
+ @staticmethod
69
+ def _from(obj: winrt.system.Object, /) -> MediaProtectionPMPServer: ...
70
+ def __new__(cls: typing.Type[MediaProtectionPMPServer], p_properties: typing.Optional[windows_foundation_collections.IPropertySet]) -> MediaProtectionPMPServer: ...
71
+ @_property
72
+ def properties(self) -> typing.Optional[windows_foundation_collections.IPropertySet]: ...
73
+
74
+ @typing.final
75
+ class MediaProtectionServiceCompletion(winrt.system.Object):
76
+ @staticmethod
77
+ def _from(obj: winrt.system.Object, /) -> MediaProtectionServiceCompletion: ...
78
+ def complete(self, success: bool, /) -> None: ...
79
+
80
+ @typing.final
81
+ class ProtectionCapabilities(winrt.system.Object):
82
+ @staticmethod
83
+ def _from(obj: winrt.system.Object, /) -> ProtectionCapabilities: ...
84
+ def __new__(cls: typing.Type[ProtectionCapabilities]) -> ProtectionCapabilities: ...
85
+ def is_type_supported(self, type: str, key_system: str, /) -> ProtectionCapabilityResult: ...
86
+
87
+ @typing.final
88
+ class RevocationAndRenewalInformation(winrt.system.Object):
89
+ @staticmethod
90
+ def _from(obj: winrt.system.Object, /) -> RevocationAndRenewalInformation: ...
91
+ @_property
92
+ def items(self) -> typing.Optional[windows_foundation_collections.IVector[RevocationAndRenewalItem]]: ...
93
+
94
+ @typing.final
95
+ class RevocationAndRenewalItem(winrt.system.Object):
96
+ @staticmethod
97
+ def _from(obj: winrt.system.Object, /) -> RevocationAndRenewalItem: ...
98
+ @_property
99
+ def header_hash(self) -> str: ...
100
+ @_property
101
+ def name(self) -> str: ...
102
+ @_property
103
+ def public_key_hash(self) -> str: ...
104
+ @_property
105
+ def reasons(self) -> RevocationAndRenewalReasons: ...
106
+ @_property
107
+ def renewal_id(self) -> str: ...
108
+
109
+ @typing.final
110
+ class ServiceRequestedEventArgs(winrt.system.Object):
111
+ @staticmethod
112
+ def _from(obj: winrt.system.Object, /) -> ServiceRequestedEventArgs: ...
113
+ @_property
114
+ def completion(self) -> typing.Optional[MediaProtectionServiceCompletion]: ...
115
+ @_property
116
+ def request(self) -> typing.Optional[IMediaProtectionServiceRequest]: ...
117
+ @_property
118
+ def media_playback_item(self) -> typing.Optional[windows_media_playback.MediaPlaybackItem]: ...
119
+
120
+ @typing.final
121
+ class IMediaProtectionServiceRequest(winrt.system.Object):
122
+ @staticmethod
123
+ def _from(obj: winrt.system.Object, /) -> IMediaProtectionServiceRequest: ...
124
+ @_property
125
+ def protection_system(self) -> _uuid.UUID: ...
126
+ @_property
127
+ def type(self) -> _uuid.UUID: ...
128
+
@@ -0,0 +1,94 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+ import typing
5
+ import uuid as _uuid
6
+
7
+ import winrt.system
8
+ from winrt import _winrt_windows_media_protection
9
+
10
+ __all__ = [
11
+ "GraphicsTrustStatus",
12
+ "HdcpProtection",
13
+ "HdcpSetProtectionResult",
14
+ "ProtectionCapabilityResult",
15
+ "RenewalStatus",
16
+ "RevocationAndRenewalReasons",
17
+ "ComponentLoadFailedEventArgs",
18
+ "ComponentRenewal",
19
+ "HdcpSession",
20
+ "MediaProtectionManager",
21
+ "MediaProtectionPMPServer",
22
+ "MediaProtectionServiceCompletion",
23
+ "ProtectionCapabilities",
24
+ "RevocationAndRenewalInformation",
25
+ "RevocationAndRenewalItem",
26
+ "ServiceRequestedEventArgs",
27
+ "IMediaProtectionServiceRequest",
28
+ "ComponentLoadFailedEventHandler",
29
+ "RebootNeededEventHandler",
30
+ "ServiceRequestedEventHandler",
31
+ ]
32
+
33
+ class GraphicsTrustStatus(enum.IntEnum):
34
+ TRUST_NOT_REQUIRED = 0
35
+ TRUST_ESTABLISHED = 1
36
+ ENVIRONMENT_NOT_SUPPORTED = 2
37
+ DRIVER_NOT_SUPPORTED = 3
38
+ DRIVER_SIGNING_FAILURE = 4
39
+ UNKNOWN_FAILURE = 5
40
+
41
+ class HdcpProtection(enum.IntEnum):
42
+ OFF = 0
43
+ ON = 1
44
+ ON_WITH_TYPE_ENFORCEMENT = 2
45
+
46
+ class HdcpSetProtectionResult(enum.IntEnum):
47
+ SUCCESS = 0
48
+ TIMED_OUT = 1
49
+ NOT_SUPPORTED = 2
50
+ UNKNOWN_FAILURE = 3
51
+
52
+ class ProtectionCapabilityResult(enum.IntEnum):
53
+ NOT_SUPPORTED = 0
54
+ MAYBE = 1
55
+ PROBABLY = 2
56
+
57
+ class RenewalStatus(enum.IntEnum):
58
+ NOT_STARTED = 0
59
+ UPDATES_IN_PROGRESS = 1
60
+ USER_CANCELLED = 2
61
+ APP_COMPONENTS_MAY_NEED_UPDATING = 3
62
+ NO_COMPONENTS_FOUND = 4
63
+
64
+ class RevocationAndRenewalReasons(enum.IntFlag):
65
+ USER_MODE_COMPONENT_LOAD = 0x1
66
+ KERNEL_MODE_COMPONENT_LOAD = 0x2
67
+ APP_COMPONENT = 0x4
68
+ GLOBAL_REVOCATION_LIST_LOAD_FAILED = 0x10
69
+ INVALID_GLOBAL_REVOCATION_LIST_SIGNATURE = 0x20
70
+ GLOBAL_REVOCATION_LIST_ABSENT = 0x1000
71
+ COMPONENT_REVOKED = 0x2000
72
+ INVALID_COMPONENT_CERTIFICATE_EXTENDED_KEY_USE = 0x4000
73
+ COMPONENT_CERTIFICATE_REVOKED = 0x8000
74
+ INVALID_COMPONENT_CERTIFICATE_ROOT = 0x10000
75
+ COMPONENT_HIGH_SECURITY_CERTIFICATE_REVOKED = 0x20000
76
+ COMPONENT_LOW_SECURITY_CERTIFICATE_REVOKED = 0x40000
77
+ BOOT_DRIVER_VERIFICATION_FAILED = 0x100000
78
+ COMPONENT_SIGNED_WITH_TEST_CERTIFICATE = 0x1000000
79
+ ENCRYPTION_FAILURE = 0x10000000
80
+
81
+ ComponentLoadFailedEventArgs = _winrt_windows_media_protection.ComponentLoadFailedEventArgs
82
+ ComponentRenewal = _winrt_windows_media_protection.ComponentRenewal
83
+ HdcpSession = _winrt_windows_media_protection.HdcpSession
84
+ MediaProtectionManager = _winrt_windows_media_protection.MediaProtectionManager
85
+ MediaProtectionPMPServer = _winrt_windows_media_protection.MediaProtectionPMPServer
86
+ MediaProtectionServiceCompletion = _winrt_windows_media_protection.MediaProtectionServiceCompletion
87
+ ProtectionCapabilities = _winrt_windows_media_protection.ProtectionCapabilities
88
+ RevocationAndRenewalInformation = _winrt_windows_media_protection.RevocationAndRenewalInformation
89
+ RevocationAndRenewalItem = _winrt_windows_media_protection.RevocationAndRenewalItem
90
+ ServiceRequestedEventArgs = _winrt_windows_media_protection.ServiceRequestedEventArgs
91
+ IMediaProtectionServiceRequest = _winrt_windows_media_protection.IMediaProtectionServiceRequest
92
+ ComponentLoadFailedEventHandler = typing.Callable[[typing.Optional[MediaProtectionManager], typing.Optional[ComponentLoadFailedEventArgs]], None]
93
+ RebootNeededEventHandler = typing.Callable[[typing.Optional[MediaProtectionManager]], None]
94
+ ServiceRequestedEventHandler = typing.Callable[[typing.Optional[MediaProtectionManager], typing.Optional[ServiceRequestedEventArgs]], None]
File without changes
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Media.Protection
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: 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.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Media.Playback[all] ==2.2.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.cp313-win_arm64.pyd,sha256=Ojv9t0RusgjkrwvANZNdUBf5ct2XoJU3QlaJ_P_mFMQ,181760
2
+ winrt/_winrt_windows_media_protection.pyi,sha256=_OInw7Kvl2Mjl91OHemed0UOO8fann8rXjLDpWc8ca8,6060
3
+ winrt/windows/media/protection/__init__.py,sha256=rqhoR3_YnbqfSE4EJmV6vCSzja9UbSS6PPK74cV__7c,3582
4
+ winrt/windows/media/protection/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Media.Protection-2.2.0.dist-info/METADATA,sha256=y8Wf4-ZS5pkK06K6_JVeTxVcjk6lsWpdNscZ-7Czzts,1205
6
+ winrt_Windows.Media.Protection-2.2.0.dist-info/WHEEL,sha256=Bc3zGnBzvnkuBaMd-KCqScACPFmA-93PSEDjeXqCzu8,101
7
+ winrt_Windows.Media.Protection-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Media.Protection-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_arm64
5
+