winrt-Windows.Security.DataProtection 4!10.0.28000.2705__py3-none-any.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,17 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "UserDataAvailability",
10
+ "UserDataBufferUnprotectStatus",
11
+ "UserDataStorageItemProtectionStatus",
12
+ "UserDataAvailabilityStateChangedEventArgs",
13
+ "UserDataBufferUnprotectResult",
14
+ "UserDataProtectionManager",
15
+ "UserDataStorageItemProtectionInfo",
16
+ ]
17
+
@@ -0,0 +1,88 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import enum
4
+ import typing
5
+ from builtins import property as _property
6
+
7
+ import winrt.system
8
+ import winrt.windows.foundation as windows_foundation
9
+ import winrt.windows.storage as windows_storage
10
+ import winrt.windows.storage.streams as windows_storage_streams
11
+ import winrt.windows.system as windows_system
12
+
13
+ __all__ = [
14
+ "UserDataAvailability",
15
+ "UserDataBufferUnprotectStatus",
16
+ "UserDataStorageItemProtectionStatus",
17
+ "UserDataAvailabilityStateChangedEventArgs",
18
+ "UserDataBufferUnprotectResult",
19
+ "UserDataProtectionManager",
20
+ "UserDataStorageItemProtectionInfo",
21
+ ]
22
+
23
+ class UserDataAvailability(enum.IntEnum):
24
+ ALWAYS = 0
25
+ AFTER_FIRST_UNLOCK = 1
26
+ WHILE_UNLOCKED = 2
27
+
28
+ class UserDataBufferUnprotectStatus(enum.IntEnum):
29
+ SUCCEEDED = 0
30
+ UNAVAILABLE = 1
31
+
32
+ class UserDataStorageItemProtectionStatus(enum.IntEnum):
33
+ SUCCEEDED = 0
34
+ NOT_PROTECTABLE = 1
35
+ DATA_UNAVAILABLE = 2
36
+
37
+ @typing.final
38
+ class UserDataAvailabilityStateChangedEventArgs(winrt.system.Object):
39
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
40
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
41
+ # Windows.Foundation.Deferral Windows.Security.DataProtection.UserDataAvailabilityStateChangedEventArgs::GetDeferral()
42
+ def get_deferral(self) -> windows_foundation.Deferral: ...
43
+
44
+ @typing.final
45
+ class UserDataBufferUnprotectResult(winrt.system.Object):
46
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
47
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
48
+ # Windows.Security.DataProtection.UserDataBufferUnprotectStatus Windows.Security.DataProtection.UserDataBufferUnprotectResult::get_Status()
49
+ @_property
50
+ def status(self) -> UserDataBufferUnprotectStatus: ...
51
+ # Windows.Storage.Streams.IBuffer Windows.Security.DataProtection.UserDataBufferUnprotectResult::get_UnprotectedBuffer()
52
+ @_property
53
+ def unprotected_buffer(self) -> windows_storage_streams.IBuffer: ...
54
+
55
+ @typing.final
56
+ class UserDataProtectionManager_Static(winrt.system.Object_Static):
57
+ # Windows.Security.DataProtection.UserDataProtectionManager Windows.Security.DataProtection.UserDataProtectionManager::TryGetDefault()
58
+ def try_get_default(cls) -> UserDataProtectionManager | None: ...
59
+ # Windows.Security.DataProtection.UserDataProtectionManager Windows.Security.DataProtection.UserDataProtectionManager::TryGetForUser(Windows.System.User)
60
+ def try_get_for_user(cls, user: windows_system.User, /) -> UserDataProtectionManager | None: ...
61
+
62
+ @typing.final
63
+ class UserDataProtectionManager(winrt.system.Object, metaclass=UserDataProtectionManager_Static):
64
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
65
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
66
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.DataProtection.UserDataStorageItemProtectionInfo> Windows.Security.DataProtection.UserDataProtectionManager::GetStorageItemProtectionInfoAsync(Windows.Storage.IStorageItem)
67
+ def get_storage_item_protection_info_async(self, storage_item: windows_storage.IStorageItem, /) -> windows_foundation.IAsyncOperation[UserDataStorageItemProtectionInfo]: ...
68
+ # System.Boolean Windows.Security.DataProtection.UserDataProtectionManager::IsContinuedDataAvailabilityExpected(Windows.Security.DataProtection.UserDataAvailability)
69
+ def is_continued_data_availability_expected(self, availability: UserDataAvailability, /) -> bool: ...
70
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer> Windows.Security.DataProtection.UserDataProtectionManager::ProtectBufferAsync(Windows.Storage.Streams.IBuffer,Windows.Security.DataProtection.UserDataAvailability)
71
+ def protect_buffer_async(self, unprotected_buffer: winrt.system.ReadableBuffer, availability: UserDataAvailability, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
72
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.DataProtection.UserDataStorageItemProtectionStatus> Windows.Security.DataProtection.UserDataProtectionManager::ProtectStorageItemAsync(Windows.Storage.IStorageItem,Windows.Security.DataProtection.UserDataAvailability)
73
+ def protect_storage_item_async(self, storage_item: windows_storage.IStorageItem, availability: UserDataAvailability, /) -> windows_foundation.IAsyncOperation[UserDataStorageItemProtectionStatus]: ...
74
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.DataProtection.UserDataBufferUnprotectResult> Windows.Security.DataProtection.UserDataProtectionManager::UnprotectBufferAsync(Windows.Storage.Streams.IBuffer)
75
+ def unprotect_buffer_async(self, protected_buffer: winrt.system.ReadableBuffer, /) -> windows_foundation.IAsyncOperation[UserDataBufferUnprotectResult]: ...
76
+ # Windows.Foundation.EventRegistrationToken Windows.Security.DataProtection.UserDataProtectionManager::add_DataAvailabilityStateChanged(Windows.Foundation.TypedEventHandler`2<Windows.Security.DataProtection.UserDataProtectionManager,Windows.Security.DataProtection.UserDataAvailabilityStateChangedEventArgs>)
77
+ def add_data_availability_state_changed(self, handler: windows_foundation.TypedEventHandler[UserDataProtectionManager, UserDataAvailabilityStateChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
78
+ # System.Void Windows.Security.DataProtection.UserDataProtectionManager::remove_DataAvailabilityStateChanged(Windows.Foundation.EventRegistrationToken)
79
+ def remove_data_availability_state_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
80
+
81
+ @typing.final
82
+ class UserDataStorageItemProtectionInfo(winrt.system.Object):
83
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
84
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
85
+ # Windows.Security.DataProtection.UserDataAvailability Windows.Security.DataProtection.UserDataStorageItemProtectionInfo::get_Availability()
86
+ @_property
87
+ def availability(self) -> UserDataAvailability: ...
88
+
File without changes
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.Security.DataProtection
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.Security.DataProtection namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
25
+ Provides-Extra: all
26
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
27
+ Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Requires-Dist: winrt-windows-storage[all]>=4!10.0.28000.2705; extra == 'all'
29
+ Requires-Dist: winrt-windows-system[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Description-Content-Type: text/markdown
31
+
32
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
33
+
34
+ # winrt-Windows.Security.DataProtection
35
+
36
+ Windows Runtime (WinRT) APIs for the `Windows.Security.DataProtection` namespace.
37
+
38
+ This package provides the `winrt.windows.security.dataprotection` module.
39
+
40
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
41
+ `Microsoft.Windows.SDK.CPP` NuGet package.
42
+
43
+ ```
44
+ pip install winrt-Windows.Security.DataProtection
45
+ ```
46
+
47
+ Other WinRT namespaces are packages of their own, so install the package of
48
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/security/dataprotection/__init__.py,sha256=uZEA0dCxazEfz9RjmFBhTYQI4MEaM0L7ad4yhsRScvc,462
2
+ winrt/windows/security/dataprotection/__init__.pyi,sha256=U9haPNlQZxiIjSaKwrIa0-4qAp9AbyjE0MXwFS70FCM,6199
3
+ winrt/windows/security/dataprotection/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/security/dataprotection/_table.pywinrt,sha256=uQOpgG9JBrBLfsGogLmu_BtSt_NLDPHMS-Qvvr3bdyw,12032
5
+ winrt_windows_security_dataprotection-4!10.0.28000.2705.dist-info/METADATA,sha256=TGAnLBUgYOvSio4sjR0_7I0wMqGg7eyRt_DRXNdP8Ao,2134
6
+ winrt_windows_security_dataprotection-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_security_dataprotection-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_security_dataprotection-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE