winrt-Windows.Security.Authorization.AppCapabilityAccess 2.0.1__tar.gz → 2.2.0__tar.gz
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.
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/PKG-INFO +6 -6
- winrt_windows_security_authorization_appcapabilityaccess-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/py.Windows.Security.Authorization.AppCapabilityAccess.cpp +180 -102
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/pyproject.toml +3 -2
- winrt_windows_security_authorization_appcapabilityaccess-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/requirements.txt +2 -2
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/winrt/_winrt_windows_security_authorization_appcapabilityaccess.pyi +11 -11
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/winrt/windows/security/authorization/appcapabilityaccess/__init__.py +1 -1
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/PKG-INFO +6 -6
- winrt_windows_security_authorization_appcapabilityaccess-2.2.0/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/requires.txt +6 -0
- winrt_windows_security_authorization_appcapabilityaccess-2.0.1/all-requirements.txt +0 -5
- winrt_windows_security_authorization_appcapabilityaccess-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_security_authorization_appcapabilityaccess-2.0.1/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/requires.txt +0 -6
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/README.md +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/setup.cfg +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/setup.py +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/winrt/windows/security/authorization/appcapabilityaccess/py.typed +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/SOURCES.txt +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/dependency_links.txt +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.0.1 → winrt_windows_security_authorization_appcapabilityaccess-2.2.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authorization.AppCapabilityAccess
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.System[all]==2.0
|
|
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.System[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Security.Authorization.AppCapabilityAccess.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
7
6
|
{
|
|
8
7
|
// ----- AppCapability class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CheckAccess", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CheckAccess", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(0);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
return py::convert(self->obj.CheckAccess());
|
|
40
46
|
}
|
|
41
47
|
catch (...)
|
|
@@ -57,14 +63,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
57
63
|
|
|
58
64
|
if (arg_count == 1)
|
|
59
65
|
{
|
|
60
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"Create", 1))
|
|
61
|
-
{
|
|
62
|
-
py::set_arg_count_version_error(1);
|
|
63
|
-
return nullptr;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
66
|
try
|
|
67
67
|
{
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"Create", 1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
76
|
+
{
|
|
77
|
+
py::set_arg_count_version_error(1);
|
|
78
|
+
return nullptr;
|
|
79
|
+
}
|
|
80
|
+
|
|
68
81
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
69
82
|
|
|
70
83
|
return py::convert(winrt::Windows::Security::Authorization::AppCapabilityAccess::AppCapability::Create(param0));
|
|
@@ -88,14 +101,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
88
101
|
|
|
89
102
|
if (arg_count == 3)
|
|
90
103
|
{
|
|
91
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CreateWithProcessIdForUser", 3))
|
|
92
|
-
{
|
|
93
|
-
py::set_arg_count_version_error(3);
|
|
94
|
-
return nullptr;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
104
|
try
|
|
98
105
|
{
|
|
106
|
+
static std::optional<bool> is_overload_present{};
|
|
107
|
+
|
|
108
|
+
if (!is_overload_present.has_value())
|
|
109
|
+
{
|
|
110
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CreateWithProcessIdForUser", 3);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!is_overload_present.value())
|
|
114
|
+
{
|
|
115
|
+
py::set_arg_count_version_error(3);
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
|
|
99
119
|
auto param0 = py::convert_to<winrt::Windows::System::User>(args, 0);
|
|
100
120
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
101
121
|
auto param2 = py::convert_to<uint32_t>(args, 2);
|
|
@@ -121,14 +141,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
121
141
|
|
|
122
142
|
if (arg_count == 0)
|
|
123
143
|
{
|
|
124
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessAsync", 0))
|
|
125
|
-
{
|
|
126
|
-
py::set_arg_count_version_error(0);
|
|
127
|
-
return nullptr;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
144
|
try
|
|
131
145
|
{
|
|
146
|
+
static std::optional<bool> is_overload_present{};
|
|
147
|
+
|
|
148
|
+
if (!is_overload_present.has_value())
|
|
149
|
+
{
|
|
150
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessAsync", 0);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (!is_overload_present.value())
|
|
154
|
+
{
|
|
155
|
+
py::set_arg_count_version_error(0);
|
|
156
|
+
return nullptr;
|
|
157
|
+
}
|
|
158
|
+
|
|
132
159
|
return py::convert(self->obj.RequestAccessAsync());
|
|
133
160
|
}
|
|
134
161
|
catch (...)
|
|
@@ -150,14 +177,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
150
177
|
|
|
151
178
|
if (arg_count == 1)
|
|
152
179
|
{
|
|
153
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessForCapabilitiesAsync", 1))
|
|
154
|
-
{
|
|
155
|
-
py::set_arg_count_version_error(1);
|
|
156
|
-
return nullptr;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
180
|
try
|
|
160
181
|
{
|
|
182
|
+
static std::optional<bool> is_overload_present{};
|
|
183
|
+
|
|
184
|
+
if (!is_overload_present.has_value())
|
|
185
|
+
{
|
|
186
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessForCapabilitiesAsync", 1);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (!is_overload_present.value())
|
|
190
|
+
{
|
|
191
|
+
py::set_arg_count_version_error(1);
|
|
192
|
+
return nullptr;
|
|
193
|
+
}
|
|
194
|
+
|
|
161
195
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
162
196
|
|
|
163
197
|
return py::convert(winrt::Windows::Security::Authorization::AppCapabilityAccess::AppCapability::RequestAccessForCapabilitiesAsync(param0));
|
|
@@ -181,14 +215,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
181
215
|
|
|
182
216
|
if (arg_count == 2)
|
|
183
217
|
{
|
|
184
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessForCapabilitiesForUserAsync", 2))
|
|
185
|
-
{
|
|
186
|
-
py::set_arg_count_version_error(2);
|
|
187
|
-
return nullptr;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
218
|
try
|
|
191
219
|
{
|
|
220
|
+
static std::optional<bool> is_overload_present{};
|
|
221
|
+
|
|
222
|
+
if (!is_overload_present.has_value())
|
|
223
|
+
{
|
|
224
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessForCapabilitiesForUserAsync", 2);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (!is_overload_present.value())
|
|
228
|
+
{
|
|
229
|
+
py::set_arg_count_version_error(2);
|
|
230
|
+
return nullptr;
|
|
231
|
+
}
|
|
232
|
+
|
|
192
233
|
auto param0 = py::convert_to<winrt::Windows::System::User>(args, 0);
|
|
193
234
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
194
235
|
|
|
@@ -209,14 +250,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
209
250
|
|
|
210
251
|
static PyObject* AppCapability_get_CapabilityName(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapability* self, void* /*unused*/) noexcept
|
|
211
252
|
{
|
|
212
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CapabilityName"))
|
|
213
|
-
{
|
|
214
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
215
|
-
return nullptr;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
253
|
try
|
|
219
254
|
{
|
|
255
|
+
static std::optional<bool> is_property_present{};
|
|
256
|
+
|
|
257
|
+
if (!is_property_present.has_value())
|
|
258
|
+
{
|
|
259
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CapabilityName");
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (!is_property_present.value())
|
|
263
|
+
{
|
|
264
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
265
|
+
return nullptr;
|
|
266
|
+
}
|
|
267
|
+
|
|
220
268
|
return py::convert(self->obj.CapabilityName());
|
|
221
269
|
}
|
|
222
270
|
catch (...)
|
|
@@ -228,14 +276,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
228
276
|
|
|
229
277
|
static PyObject* AppCapability_get_User(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapability* self, void* /*unused*/) noexcept
|
|
230
278
|
{
|
|
231
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"User"))
|
|
232
|
-
{
|
|
233
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
234
|
-
return nullptr;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
279
|
try
|
|
238
280
|
{
|
|
281
|
+
static std::optional<bool> is_property_present{};
|
|
282
|
+
|
|
283
|
+
if (!is_property_present.has_value())
|
|
284
|
+
{
|
|
285
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"User");
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (!is_property_present.value())
|
|
289
|
+
{
|
|
290
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
291
|
+
return nullptr;
|
|
292
|
+
}
|
|
293
|
+
|
|
239
294
|
return py::convert(self->obj.User());
|
|
240
295
|
}
|
|
241
296
|
catch (...)
|
|
@@ -247,14 +302,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
247
302
|
|
|
248
303
|
static PyObject* AppCapability_get_DisplayMessage(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapability* self, void* /*unused*/) noexcept
|
|
249
304
|
{
|
|
250
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"DisplayMessage"))
|
|
251
|
-
{
|
|
252
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
253
|
-
return nullptr;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
305
|
try
|
|
257
306
|
{
|
|
307
|
+
static std::optional<bool> is_property_present{};
|
|
308
|
+
|
|
309
|
+
if (!is_property_present.has_value())
|
|
310
|
+
{
|
|
311
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"DisplayMessage");
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (!is_property_present.value())
|
|
315
|
+
{
|
|
316
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
317
|
+
return nullptr;
|
|
318
|
+
}
|
|
319
|
+
|
|
258
320
|
return py::convert(self->obj.DisplayMessage());
|
|
259
321
|
}
|
|
260
322
|
catch (...)
|
|
@@ -266,12 +328,6 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
266
328
|
|
|
267
329
|
static int AppCapability_put_DisplayMessage(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapability* self, PyObject* arg, void* /*unused*/) noexcept
|
|
268
330
|
{
|
|
269
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"DisplayMessage"))
|
|
270
|
-
{
|
|
271
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
272
|
-
return -1;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
331
|
if (arg == nullptr)
|
|
276
332
|
{
|
|
277
333
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -280,6 +336,19 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
280
336
|
|
|
281
337
|
try
|
|
282
338
|
{
|
|
339
|
+
static std::optional<bool> is_property_present{};
|
|
340
|
+
|
|
341
|
+
if (!is_property_present.has_value())
|
|
342
|
+
{
|
|
343
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"DisplayMessage");
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (!is_property_present.value())
|
|
347
|
+
{
|
|
348
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
349
|
+
return -1;
|
|
350
|
+
}
|
|
351
|
+
|
|
283
352
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
284
353
|
|
|
285
354
|
self->obj.DisplayMessage(param0);
|
|
@@ -294,14 +363,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
294
363
|
|
|
295
364
|
static PyObject* AppCapability_add_AccessChanged(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapability* self, PyObject* arg) noexcept
|
|
296
365
|
{
|
|
297
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"AccessChanged"))
|
|
298
|
-
{
|
|
299
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
300
|
-
return nullptr;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
366
|
try
|
|
304
367
|
{
|
|
368
|
+
static std::optional<bool> is_event_present{};
|
|
369
|
+
|
|
370
|
+
if (!is_event_present.has_value())
|
|
371
|
+
{
|
|
372
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"AccessChanged");
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (!is_event_present.value())
|
|
376
|
+
{
|
|
377
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
378
|
+
return nullptr;
|
|
379
|
+
}
|
|
380
|
+
|
|
305
381
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Security::Authorization::AppCapabilityAccess::AppCapability, winrt::Windows::Security::Authorization::AppCapabilityAccess::AppCapabilityAccessChangedEventArgs>>(arg);
|
|
306
382
|
|
|
307
383
|
return py::convert(self->obj.AccessChanged(param0));
|
|
@@ -315,14 +391,21 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
315
391
|
|
|
316
392
|
static PyObject* AppCapability_remove_AccessChanged(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapability* self, PyObject* arg) noexcept
|
|
317
393
|
{
|
|
318
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"AccessChanged"))
|
|
319
|
-
{
|
|
320
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
321
|
-
return nullptr;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
394
|
try
|
|
325
395
|
{
|
|
396
|
+
static std::optional<bool> is_event_present{};
|
|
397
|
+
|
|
398
|
+
if (!is_event_present.has_value())
|
|
399
|
+
{
|
|
400
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"AccessChanged");
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if (!is_event_present.value())
|
|
404
|
+
{
|
|
405
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
406
|
+
return nullptr;
|
|
407
|
+
}
|
|
408
|
+
|
|
326
409
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
327
410
|
|
|
328
411
|
self->obj.AccessChanged(param0);
|
|
@@ -376,23 +459,20 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
376
459
|
{ }
|
|
377
460
|
};
|
|
378
461
|
|
|
379
|
-
static PyType_Slot _type_slots_AppCapability[] =
|
|
380
|
-
{
|
|
462
|
+
static PyType_Slot _type_slots_AppCapability[] = {
|
|
381
463
|
{ Py_tp_new, reinterpret_cast<void*>(_new_AppCapability) },
|
|
382
464
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AppCapability) },
|
|
383
465
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AppCapability) },
|
|
384
466
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AppCapability) },
|
|
385
|
-
{ }
|
|
467
|
+
{ }
|
|
386
468
|
};
|
|
387
469
|
|
|
388
|
-
static PyType_Spec type_spec_AppCapability =
|
|
389
|
-
{
|
|
470
|
+
static PyType_Spec type_spec_AppCapability = {
|
|
390
471
|
"winrt._winrt_windows_security_authorization_appcapabilityaccess.AppCapability",
|
|
391
472
|
sizeof(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapability),
|
|
392
473
|
0,
|
|
393
474
|
Py_TPFLAGS_DEFAULT,
|
|
394
|
-
_type_slots_AppCapability
|
|
395
|
-
};
|
|
475
|
+
_type_slots_AppCapability};
|
|
396
476
|
|
|
397
477
|
static PyGetSetDef getset_AppCapability_Static[] = {
|
|
398
478
|
{ }
|
|
@@ -474,39 +554,35 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
474
554
|
{ }
|
|
475
555
|
};
|
|
476
556
|
|
|
477
|
-
static PyType_Slot _type_slots_AppCapabilityAccessChangedEventArgs[] =
|
|
478
|
-
{
|
|
557
|
+
static PyType_Slot _type_slots_AppCapabilityAccessChangedEventArgs[] = {
|
|
479
558
|
{ Py_tp_new, reinterpret_cast<void*>(_new_AppCapabilityAccessChangedEventArgs) },
|
|
480
559
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AppCapabilityAccessChangedEventArgs) },
|
|
481
560
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AppCapabilityAccessChangedEventArgs) },
|
|
482
561
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AppCapabilityAccessChangedEventArgs) },
|
|
483
|
-
{ }
|
|
562
|
+
{ }
|
|
484
563
|
};
|
|
485
564
|
|
|
486
|
-
static PyType_Spec type_spec_AppCapabilityAccessChangedEventArgs =
|
|
487
|
-
{
|
|
565
|
+
static PyType_Spec type_spec_AppCapabilityAccessChangedEventArgs = {
|
|
488
566
|
"winrt._winrt_windows_security_authorization_appcapabilityaccess.AppCapabilityAccessChangedEventArgs",
|
|
489
567
|
sizeof(py::wrapper::Windows::Security::Authorization::AppCapabilityAccess::AppCapabilityAccessChangedEventArgs),
|
|
490
568
|
0,
|
|
491
569
|
Py_TPFLAGS_DEFAULT,
|
|
492
|
-
_type_slots_AppCapabilityAccessChangedEventArgs
|
|
493
|
-
};
|
|
570
|
+
_type_slots_AppCapabilityAccessChangedEventArgs};
|
|
494
571
|
|
|
495
572
|
// ----- Windows.Security.Authorization.AppCapabilityAccess Initialization --------------------
|
|
496
|
-
PyDoc_STRVAR(module_doc, "Windows::Security::Authorization::AppCapabilityAccess");
|
|
497
|
-
|
|
498
573
|
|
|
499
|
-
|
|
500
|
-
= {PyModuleDef_HEAD_INIT,
|
|
501
|
-
"_winrt_windows_security_authorization_appcapabilityaccess",
|
|
502
|
-
module_doc,
|
|
503
|
-
0,
|
|
504
|
-
nullptr,
|
|
505
|
-
nullptr,
|
|
506
|
-
nullptr,
|
|
507
|
-
nullptr,
|
|
508
|
-
nullptr};
|
|
574
|
+
PyDoc_STRVAR(module_doc, "Windows.Security.Authorization.AppCapabilityAccess");
|
|
509
575
|
|
|
576
|
+
static PyModuleDef module_def = {
|
|
577
|
+
PyModuleDef_HEAD_INIT,
|
|
578
|
+
"_winrt_windows_security_authorization_appcapabilityaccess",
|
|
579
|
+
module_doc,
|
|
580
|
+
0,
|
|
581
|
+
nullptr,
|
|
582
|
+
nullptr,
|
|
583
|
+
nullptr,
|
|
584
|
+
nullptr,
|
|
585
|
+
nullptr};
|
|
510
586
|
} // py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
511
587
|
|
|
512
588
|
PyMODINIT_FUNC PyInit__winrt_windows_security_authorization_appcapabilityaccess(void) noexcept
|
|
@@ -544,12 +620,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authorization_appcapabilityaccess(
|
|
|
544
620
|
return nullptr;
|
|
545
621
|
}
|
|
546
622
|
|
|
547
|
-
|
|
623
|
+
py::pytype_handle AppCapability_type{py::register_python_type(module.get(), &type_spec_AppCapability, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AppCapability_Static.get()))};
|
|
624
|
+
if (!AppCapability_type)
|
|
548
625
|
{
|
|
549
626
|
return nullptr;
|
|
550
627
|
}
|
|
551
628
|
|
|
552
|
-
|
|
629
|
+
py::pytype_handle AppCapabilityAccessChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_AppCapabilityAccessChangedEventArgs, object_bases.get(), nullptr)};
|
|
630
|
+
if (!AppCapabilityAccessChangedEventArgs_type)
|
|
553
631
|
{
|
|
554
632
|
return nullptr;
|
|
555
633
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,9 +9,9 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.system as windows_system
|
|
15
15
|
|
|
16
16
|
from winrt.windows.security.authorization.appcapabilityaccess import AppCapabilityAccessStatus
|
|
17
17
|
|
|
@@ -20,22 +20,22 @@ Self = typing.TypeVar('Self')
|
|
|
20
20
|
@typing.final
|
|
21
21
|
class AppCapability_Static(type):
|
|
22
22
|
def create(cls, capability_name: str, /) -> typing.Optional[AppCapability]: ...
|
|
23
|
-
def create_with_process_id_for_user(cls, user: typing.Optional[
|
|
24
|
-
def request_access_for_capabilities_async(cls, capability_names: typing.Iterable[str], /) ->
|
|
25
|
-
def request_access_for_capabilities_for_user_async(cls, user: typing.Optional[
|
|
23
|
+
def create_with_process_id_for_user(cls, user: typing.Optional[windows_system.User], capability_name: str, pid: winrt.system.UInt32, /) -> typing.Optional[AppCapability]: ...
|
|
24
|
+
def request_access_for_capabilities_async(cls, capability_names: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IMapView[str, AppCapabilityAccessStatus]]: ...
|
|
25
|
+
def request_access_for_capabilities_for_user_async(cls, user: typing.Optional[windows_system.User], capability_names: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IMapView[str, AppCapabilityAccessStatus]]: ...
|
|
26
26
|
|
|
27
27
|
@typing.final
|
|
28
28
|
class AppCapability(winrt.system.Object, metaclass=AppCapability_Static):
|
|
29
29
|
@staticmethod
|
|
30
30
|
def _from(obj: winrt.system.Object, /) -> AppCapability: ...
|
|
31
31
|
def check_access(self) -> AppCapabilityAccessStatus: ...
|
|
32
|
-
def request_access_async(self) ->
|
|
33
|
-
def add_access_changed(self, handler:
|
|
34
|
-
def remove_access_changed(self, token:
|
|
32
|
+
def request_access_async(self) -> windows_foundation.IAsyncOperation[AppCapabilityAccessStatus]: ...
|
|
33
|
+
def add_access_changed(self, handler: windows_foundation.TypedEventHandler[AppCapability, AppCapabilityAccessChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
34
|
+
def remove_access_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
35
35
|
@_property
|
|
36
36
|
def capability_name(self) -> str: ...
|
|
37
37
|
@_property
|
|
38
|
-
def user(self) -> typing.Optional[
|
|
38
|
+
def user(self) -> typing.Optional[windows_system.User]: ...
|
|
39
39
|
@_property
|
|
40
40
|
def display_message(self) -> str: ...
|
|
41
41
|
@display_message.setter
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authorization.AppCapabilityAccess
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.System[all]==2.0
|
|
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.System[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|