winrt-Windows.Security.Authentication.OnlineId 2.1.0__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_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/PKG-INFO +6 -6
- winrt_windows_security_authentication_onlineid-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/py.Windows.Security.Authentication.OnlineId.cpp +400 -61
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/pyproject.toml +3 -2
- winrt_windows_security_authentication_onlineid-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/requirements.txt +2 -2
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/winrt/_winrt_windows_security_authentication_onlineid.pyi +1 -1
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/winrt/windows/security/authentication/onlineid/__init__.py +1 -1
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/PKG-INFO +6 -6
- winrt_windows_security_authentication_onlineid-2.2.0/winrt_Windows.Security.Authentication.OnlineId.egg-info/requires.txt +6 -0
- winrt_windows_security_authentication_onlineid-2.1.0/all-requirements.txt +0 -5
- winrt_windows_security_authentication_onlineid-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_security_authentication_onlineid-2.1.0/winrt_Windows.Security.Authentication.OnlineId.egg-info/requires.txt +0 -6
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/README.md +0 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/setup.cfg +0 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/setup.py +0 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/winrt/windows/security/authentication/onlineid/py.typed +0 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/SOURCES.txt +0 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/dependency_links.txt +0 -0
- {winrt_windows_security_authentication_onlineid-2.1.0 → winrt_windows_security_authentication_onlineid-2.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authentication.OnlineId
|
|
3
|
-
Version: 2.
|
|
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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
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,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
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.Authentication.OnlineId.h"
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
19
19
|
{
|
|
20
20
|
try
|
|
21
21
|
{
|
|
22
|
-
winrt::Windows::Security::Authentication::OnlineId::OnlineIdAuthenticator instance{
|
|
22
|
+
winrt::Windows::Security::Authentication::OnlineId::OnlineIdAuthenticator instance{};
|
|
23
23
|
return py::wrap(instance, type);
|
|
24
24
|
}
|
|
25
25
|
catch (...)
|
|
@@ -51,7 +51,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
51
51
|
{
|
|
52
52
|
try
|
|
53
53
|
{
|
|
54
|
-
|
|
54
|
+
static std::optional<bool> is_overload_present{};
|
|
55
|
+
|
|
56
|
+
if (!is_overload_present.has_value())
|
|
57
|
+
{
|
|
58
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator", L"AuthenticateUserAsync", 1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!is_overload_present.value())
|
|
55
62
|
{
|
|
56
63
|
py::set_arg_count_version_error(1);
|
|
57
64
|
return nullptr;
|
|
@@ -71,7 +78,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
71
78
|
{
|
|
72
79
|
try
|
|
73
80
|
{
|
|
74
|
-
|
|
81
|
+
static std::optional<bool> is_overload_present{};
|
|
82
|
+
|
|
83
|
+
if (!is_overload_present.has_value())
|
|
84
|
+
{
|
|
85
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator", L"AuthenticateUserAsync", 2);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (!is_overload_present.value())
|
|
75
89
|
{
|
|
76
90
|
py::set_arg_count_version_error(2);
|
|
77
91
|
return nullptr;
|
|
@@ -103,7 +117,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
103
117
|
{
|
|
104
118
|
try
|
|
105
119
|
{
|
|
106
|
-
|
|
120
|
+
static std::optional<bool> is_overload_present{};
|
|
121
|
+
|
|
122
|
+
if (!is_overload_present.has_value())
|
|
123
|
+
{
|
|
124
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator", L"SignOutUserAsync", 0);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (!is_overload_present.value())
|
|
107
128
|
{
|
|
108
129
|
py::set_arg_count_version_error(0);
|
|
109
130
|
return nullptr;
|
|
@@ -128,7 +149,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
128
149
|
{
|
|
129
150
|
try
|
|
130
151
|
{
|
|
131
|
-
|
|
152
|
+
static std::optional<bool> is_property_present{};
|
|
153
|
+
|
|
154
|
+
if (!is_property_present.has_value())
|
|
155
|
+
{
|
|
156
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator", L"ApplicationId");
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (!is_property_present.value())
|
|
132
160
|
{
|
|
133
161
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
134
162
|
return nullptr;
|
|
@@ -153,7 +181,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
153
181
|
|
|
154
182
|
try
|
|
155
183
|
{
|
|
156
|
-
|
|
184
|
+
static std::optional<bool> is_property_present{};
|
|
185
|
+
|
|
186
|
+
if (!is_property_present.has_value())
|
|
187
|
+
{
|
|
188
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator", L"ApplicationId");
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (!is_property_present.value())
|
|
157
192
|
{
|
|
158
193
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
159
194
|
return -1;
|
|
@@ -175,7 +210,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
175
210
|
{
|
|
176
211
|
try
|
|
177
212
|
{
|
|
178
|
-
|
|
213
|
+
static std::optional<bool> is_property_present{};
|
|
214
|
+
|
|
215
|
+
if (!is_property_present.has_value())
|
|
216
|
+
{
|
|
217
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator", L"AuthenticatedSafeCustomerId");
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (!is_property_present.value())
|
|
179
221
|
{
|
|
180
222
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
181
223
|
return nullptr;
|
|
@@ -194,7 +236,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
194
236
|
{
|
|
195
237
|
try
|
|
196
238
|
{
|
|
197
|
-
|
|
239
|
+
static std::optional<bool> is_property_present{};
|
|
240
|
+
|
|
241
|
+
if (!is_property_present.has_value())
|
|
242
|
+
{
|
|
243
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator", L"CanSignOut");
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (!is_property_present.value())
|
|
198
247
|
{
|
|
199
248
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
200
249
|
return nullptr;
|
|
@@ -284,7 +333,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
284
333
|
{
|
|
285
334
|
try
|
|
286
335
|
{
|
|
287
|
-
|
|
336
|
+
static std::optional<bool> is_property_present{};
|
|
337
|
+
|
|
338
|
+
if (!is_property_present.has_value())
|
|
339
|
+
{
|
|
340
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdServiceTicket", L"ErrorCode");
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (!is_property_present.value())
|
|
288
344
|
{
|
|
289
345
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
290
346
|
return nullptr;
|
|
@@ -303,7 +359,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
303
359
|
{
|
|
304
360
|
try
|
|
305
361
|
{
|
|
306
|
-
|
|
362
|
+
static std::optional<bool> is_property_present{};
|
|
363
|
+
|
|
364
|
+
if (!is_property_present.has_value())
|
|
365
|
+
{
|
|
366
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdServiceTicket", L"Request");
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (!is_property_present.value())
|
|
307
370
|
{
|
|
308
371
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
309
372
|
return nullptr;
|
|
@@ -322,7 +385,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
322
385
|
{
|
|
323
386
|
try
|
|
324
387
|
{
|
|
325
|
-
|
|
388
|
+
static std::optional<bool> is_property_present{};
|
|
389
|
+
|
|
390
|
+
if (!is_property_present.has_value())
|
|
391
|
+
{
|
|
392
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdServiceTicket", L"Value");
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (!is_property_present.value())
|
|
326
396
|
{
|
|
327
397
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
328
398
|
return nullptr;
|
|
@@ -407,7 +477,7 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
407
477
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
408
478
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
409
479
|
|
|
410
|
-
winrt::Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest instance{
|
|
480
|
+
winrt::Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest instance{param0, param1};
|
|
411
481
|
return py::wrap(instance, type);
|
|
412
482
|
}
|
|
413
483
|
catch (...)
|
|
@@ -422,7 +492,7 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
422
492
|
{
|
|
423
493
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
424
494
|
|
|
425
|
-
winrt::Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest instance{
|
|
495
|
+
winrt::Windows::Security::Authentication::OnlineId::OnlineIdServiceTicketRequest instance{param0};
|
|
426
496
|
return py::wrap(instance, type);
|
|
427
497
|
}
|
|
428
498
|
catch (...)
|
|
@@ -450,7 +520,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
450
520
|
{
|
|
451
521
|
try
|
|
452
522
|
{
|
|
453
|
-
|
|
523
|
+
static std::optional<bool> is_property_present{};
|
|
524
|
+
|
|
525
|
+
if (!is_property_present.has_value())
|
|
526
|
+
{
|
|
527
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest", L"Policy");
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
if (!is_property_present.value())
|
|
454
531
|
{
|
|
455
532
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
456
533
|
return nullptr;
|
|
@@ -469,7 +546,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
469
546
|
{
|
|
470
547
|
try
|
|
471
548
|
{
|
|
472
|
-
|
|
549
|
+
static std::optional<bool> is_property_present{};
|
|
550
|
+
|
|
551
|
+
if (!is_property_present.has_value())
|
|
552
|
+
{
|
|
553
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest", L"Service");
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
if (!is_property_present.value())
|
|
473
557
|
{
|
|
474
558
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
475
559
|
return nullptr;
|
|
@@ -552,7 +636,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
552
636
|
{
|
|
553
637
|
try
|
|
554
638
|
{
|
|
555
|
-
|
|
639
|
+
static std::optional<bool> is_overload_present{};
|
|
640
|
+
|
|
641
|
+
if (!is_overload_present.has_value())
|
|
642
|
+
{
|
|
643
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemAuthenticator", L"GetForUser", 1);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
if (!is_overload_present.value())
|
|
556
647
|
{
|
|
557
648
|
py::set_arg_count_version_error(1);
|
|
558
649
|
return nullptr;
|
|
@@ -579,7 +670,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
579
670
|
{
|
|
580
671
|
try
|
|
581
672
|
{
|
|
582
|
-
|
|
673
|
+
static std::optional<bool> is_property_present{};
|
|
674
|
+
|
|
675
|
+
if (!is_property_present.has_value())
|
|
676
|
+
{
|
|
677
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemAuthenticator", L"Default");
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
if (!is_property_present.value())
|
|
583
681
|
{
|
|
584
682
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
585
683
|
return nullptr;
|
|
@@ -668,7 +766,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
668
766
|
{
|
|
669
767
|
try
|
|
670
768
|
{
|
|
671
|
-
|
|
769
|
+
static std::optional<bool> is_overload_present{};
|
|
770
|
+
|
|
771
|
+
if (!is_overload_present.has_value())
|
|
772
|
+
{
|
|
773
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemAuthenticatorForUser", L"GetTicketAsync", 1);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
if (!is_overload_present.value())
|
|
672
777
|
{
|
|
673
778
|
py::set_arg_count_version_error(1);
|
|
674
779
|
return nullptr;
|
|
@@ -695,7 +800,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
695
800
|
{
|
|
696
801
|
try
|
|
697
802
|
{
|
|
698
|
-
|
|
803
|
+
static std::optional<bool> is_property_present{};
|
|
804
|
+
|
|
805
|
+
if (!is_property_present.has_value())
|
|
806
|
+
{
|
|
807
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemAuthenticatorForUser", L"ApplicationId");
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
if (!is_property_present.value())
|
|
699
811
|
{
|
|
700
812
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
701
813
|
return nullptr;
|
|
@@ -720,7 +832,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
720
832
|
|
|
721
833
|
try
|
|
722
834
|
{
|
|
723
|
-
|
|
835
|
+
static std::optional<bool> is_property_present{};
|
|
836
|
+
|
|
837
|
+
if (!is_property_present.has_value())
|
|
838
|
+
{
|
|
839
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemAuthenticatorForUser", L"ApplicationId");
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
if (!is_property_present.value())
|
|
724
843
|
{
|
|
725
844
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
726
845
|
return -1;
|
|
@@ -742,7 +861,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
742
861
|
{
|
|
743
862
|
try
|
|
744
863
|
{
|
|
745
|
-
|
|
864
|
+
static std::optional<bool> is_property_present{};
|
|
865
|
+
|
|
866
|
+
if (!is_property_present.has_value())
|
|
867
|
+
{
|
|
868
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemAuthenticatorForUser", L"User");
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
if (!is_property_present.value())
|
|
746
872
|
{
|
|
747
873
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
748
874
|
return nullptr;
|
|
@@ -830,7 +956,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
830
956
|
{
|
|
831
957
|
try
|
|
832
958
|
{
|
|
833
|
-
|
|
959
|
+
static std::optional<bool> is_property_present{};
|
|
960
|
+
|
|
961
|
+
if (!is_property_present.has_value())
|
|
962
|
+
{
|
|
963
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemIdentity", L"Id");
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
if (!is_property_present.value())
|
|
834
967
|
{
|
|
835
968
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
836
969
|
return nullptr;
|
|
@@ -849,7 +982,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
849
982
|
{
|
|
850
983
|
try
|
|
851
984
|
{
|
|
852
|
-
|
|
985
|
+
static std::optional<bool> is_property_present{};
|
|
986
|
+
|
|
987
|
+
if (!is_property_present.has_value())
|
|
988
|
+
{
|
|
989
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemIdentity", L"Ticket");
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
if (!is_property_present.value())
|
|
853
993
|
{
|
|
854
994
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
855
995
|
return nullptr;
|
|
@@ -936,7 +1076,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
936
1076
|
{
|
|
937
1077
|
try
|
|
938
1078
|
{
|
|
939
|
-
|
|
1079
|
+
static std::optional<bool> is_property_present{};
|
|
1080
|
+
|
|
1081
|
+
if (!is_property_present.has_value())
|
|
1082
|
+
{
|
|
1083
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemTicketResult", L"ExtendedError");
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
if (!is_property_present.value())
|
|
940
1087
|
{
|
|
941
1088
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
942
1089
|
return nullptr;
|
|
@@ -955,7 +1102,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
955
1102
|
{
|
|
956
1103
|
try
|
|
957
1104
|
{
|
|
958
|
-
|
|
1105
|
+
static std::optional<bool> is_property_present{};
|
|
1106
|
+
|
|
1107
|
+
if (!is_property_present.has_value())
|
|
1108
|
+
{
|
|
1109
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemTicketResult", L"Identity");
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
if (!is_property_present.value())
|
|
959
1113
|
{
|
|
960
1114
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
961
1115
|
return nullptr;
|
|
@@ -974,7 +1128,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
974
1128
|
{
|
|
975
1129
|
try
|
|
976
1130
|
{
|
|
977
|
-
|
|
1131
|
+
static std::optional<bool> is_property_present{};
|
|
1132
|
+
|
|
1133
|
+
if (!is_property_present.has_value())
|
|
1134
|
+
{
|
|
1135
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.OnlineIdSystemTicketResult", L"Status");
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
if (!is_property_present.value())
|
|
978
1139
|
{
|
|
979
1140
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
980
1141
|
return nullptr;
|
|
@@ -1066,7 +1227,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1066
1227
|
{
|
|
1067
1228
|
try
|
|
1068
1229
|
{
|
|
1069
|
-
|
|
1230
|
+
static std::optional<bool> is_overload_present{};
|
|
1231
|
+
|
|
1232
|
+
if (!is_overload_present.has_value())
|
|
1233
|
+
{
|
|
1234
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"Cancel", 0);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
if (!is_overload_present.value())
|
|
1070
1238
|
{
|
|
1071
1239
|
py::set_arg_count_version_error(0);
|
|
1072
1240
|
return nullptr;
|
|
@@ -1096,7 +1264,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1096
1264
|
{
|
|
1097
1265
|
try
|
|
1098
1266
|
{
|
|
1099
|
-
|
|
1267
|
+
static std::optional<bool> is_overload_present{};
|
|
1268
|
+
|
|
1269
|
+
if (!is_overload_present.has_value())
|
|
1270
|
+
{
|
|
1271
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"Close", 0);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
if (!is_overload_present.value())
|
|
1100
1275
|
{
|
|
1101
1276
|
py::set_arg_count_version_error(0);
|
|
1102
1277
|
return nullptr;
|
|
@@ -1126,7 +1301,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1126
1301
|
{
|
|
1127
1302
|
try
|
|
1128
1303
|
{
|
|
1129
|
-
|
|
1304
|
+
static std::optional<bool> is_overload_present{};
|
|
1305
|
+
|
|
1306
|
+
if (!is_overload_present.has_value())
|
|
1307
|
+
{
|
|
1308
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"GetResults", 0);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
if (!is_overload_present.value())
|
|
1130
1312
|
{
|
|
1131
1313
|
py::set_arg_count_version_error(0);
|
|
1132
1314
|
return nullptr;
|
|
@@ -1152,7 +1334,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1152
1334
|
{
|
|
1153
1335
|
try
|
|
1154
1336
|
{
|
|
1155
|
-
|
|
1337
|
+
static std::optional<bool> is_property_present{};
|
|
1338
|
+
|
|
1339
|
+
if (!is_property_present.has_value())
|
|
1340
|
+
{
|
|
1341
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"ErrorCode");
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
if (!is_property_present.value())
|
|
1156
1345
|
{
|
|
1157
1346
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1158
1347
|
return nullptr;
|
|
@@ -1171,7 +1360,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1171
1360
|
{
|
|
1172
1361
|
try
|
|
1173
1362
|
{
|
|
1174
|
-
|
|
1363
|
+
static std::optional<bool> is_property_present{};
|
|
1364
|
+
|
|
1365
|
+
if (!is_property_present.has_value())
|
|
1366
|
+
{
|
|
1367
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"Id");
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
if (!is_property_present.value())
|
|
1175
1371
|
{
|
|
1176
1372
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1177
1373
|
return nullptr;
|
|
@@ -1190,7 +1386,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1190
1386
|
{
|
|
1191
1387
|
try
|
|
1192
1388
|
{
|
|
1193
|
-
|
|
1389
|
+
static std::optional<bool> is_property_present{};
|
|
1390
|
+
|
|
1391
|
+
if (!is_property_present.has_value())
|
|
1392
|
+
{
|
|
1393
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"Status");
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
if (!is_property_present.value())
|
|
1194
1397
|
{
|
|
1195
1398
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1196
1399
|
return nullptr;
|
|
@@ -1209,7 +1412,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1209
1412
|
{
|
|
1210
1413
|
try
|
|
1211
1414
|
{
|
|
1212
|
-
|
|
1415
|
+
static std::optional<bool> is_property_present{};
|
|
1416
|
+
|
|
1417
|
+
if (!is_property_present.has_value())
|
|
1418
|
+
{
|
|
1419
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"Completed");
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
if (!is_property_present.value())
|
|
1213
1423
|
{
|
|
1214
1424
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1215
1425
|
return nullptr;
|
|
@@ -1234,7 +1444,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1234
1444
|
|
|
1235
1445
|
try
|
|
1236
1446
|
{
|
|
1237
|
-
|
|
1447
|
+
static std::optional<bool> is_property_present{};
|
|
1448
|
+
|
|
1449
|
+
if (!is_property_present.has_value())
|
|
1450
|
+
{
|
|
1451
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.SignOutUserOperation", L"Completed");
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
if (!is_property_present.value())
|
|
1238
1455
|
{
|
|
1239
1456
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1240
1457
|
return -1;
|
|
@@ -1339,7 +1556,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1339
1556
|
{
|
|
1340
1557
|
try
|
|
1341
1558
|
{
|
|
1342
|
-
|
|
1559
|
+
static std::optional<bool> is_overload_present{};
|
|
1560
|
+
|
|
1561
|
+
if (!is_overload_present.has_value())
|
|
1562
|
+
{
|
|
1563
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"Cancel", 0);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
if (!is_overload_present.value())
|
|
1343
1567
|
{
|
|
1344
1568
|
py::set_arg_count_version_error(0);
|
|
1345
1569
|
return nullptr;
|
|
@@ -1369,7 +1593,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1369
1593
|
{
|
|
1370
1594
|
try
|
|
1371
1595
|
{
|
|
1372
|
-
|
|
1596
|
+
static std::optional<bool> is_overload_present{};
|
|
1597
|
+
|
|
1598
|
+
if (!is_overload_present.has_value())
|
|
1599
|
+
{
|
|
1600
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"Close", 0);
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
if (!is_overload_present.value())
|
|
1373
1604
|
{
|
|
1374
1605
|
py::set_arg_count_version_error(0);
|
|
1375
1606
|
return nullptr;
|
|
@@ -1399,7 +1630,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1399
1630
|
{
|
|
1400
1631
|
try
|
|
1401
1632
|
{
|
|
1402
|
-
|
|
1633
|
+
static std::optional<bool> is_overload_present{};
|
|
1634
|
+
|
|
1635
|
+
if (!is_overload_present.has_value())
|
|
1636
|
+
{
|
|
1637
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"GetResults", 0);
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
if (!is_overload_present.value())
|
|
1403
1641
|
{
|
|
1404
1642
|
py::set_arg_count_version_error(0);
|
|
1405
1643
|
return nullptr;
|
|
@@ -1424,7 +1662,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1424
1662
|
{
|
|
1425
1663
|
try
|
|
1426
1664
|
{
|
|
1427
|
-
|
|
1665
|
+
static std::optional<bool> is_property_present{};
|
|
1666
|
+
|
|
1667
|
+
if (!is_property_present.has_value())
|
|
1668
|
+
{
|
|
1669
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"ErrorCode");
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
if (!is_property_present.value())
|
|
1428
1673
|
{
|
|
1429
1674
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1430
1675
|
return nullptr;
|
|
@@ -1443,7 +1688,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1443
1688
|
{
|
|
1444
1689
|
try
|
|
1445
1690
|
{
|
|
1446
|
-
|
|
1691
|
+
static std::optional<bool> is_property_present{};
|
|
1692
|
+
|
|
1693
|
+
if (!is_property_present.has_value())
|
|
1694
|
+
{
|
|
1695
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"Id");
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
if (!is_property_present.value())
|
|
1447
1699
|
{
|
|
1448
1700
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1449
1701
|
return nullptr;
|
|
@@ -1462,7 +1714,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1462
1714
|
{
|
|
1463
1715
|
try
|
|
1464
1716
|
{
|
|
1465
|
-
|
|
1717
|
+
static std::optional<bool> is_property_present{};
|
|
1718
|
+
|
|
1719
|
+
if (!is_property_present.has_value())
|
|
1720
|
+
{
|
|
1721
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"Status");
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
if (!is_property_present.value())
|
|
1466
1725
|
{
|
|
1467
1726
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1468
1727
|
return nullptr;
|
|
@@ -1481,7 +1740,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1481
1740
|
{
|
|
1482
1741
|
try
|
|
1483
1742
|
{
|
|
1484
|
-
|
|
1743
|
+
static std::optional<bool> is_property_present{};
|
|
1744
|
+
|
|
1745
|
+
if (!is_property_present.has_value())
|
|
1746
|
+
{
|
|
1747
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"Completed");
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
if (!is_property_present.value())
|
|
1485
1751
|
{
|
|
1486
1752
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1487
1753
|
return nullptr;
|
|
@@ -1506,7 +1772,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1506
1772
|
|
|
1507
1773
|
try
|
|
1508
1774
|
{
|
|
1509
|
-
|
|
1775
|
+
static std::optional<bool> is_property_present{};
|
|
1776
|
+
|
|
1777
|
+
if (!is_property_present.has_value())
|
|
1778
|
+
{
|
|
1779
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserAuthenticationOperation", L"Completed");
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
if (!is_property_present.value())
|
|
1510
1783
|
{
|
|
1511
1784
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1512
1785
|
return -1;
|
|
@@ -1607,7 +1880,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1607
1880
|
{
|
|
1608
1881
|
try
|
|
1609
1882
|
{
|
|
1610
|
-
|
|
1883
|
+
static std::optional<bool> is_property_present{};
|
|
1884
|
+
|
|
1885
|
+
if (!is_property_present.has_value())
|
|
1886
|
+
{
|
|
1887
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"FirstName");
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
if (!is_property_present.value())
|
|
1611
1891
|
{
|
|
1612
1892
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1613
1893
|
return nullptr;
|
|
@@ -1626,7 +1906,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1626
1906
|
{
|
|
1627
1907
|
try
|
|
1628
1908
|
{
|
|
1629
|
-
|
|
1909
|
+
static std::optional<bool> is_property_present{};
|
|
1910
|
+
|
|
1911
|
+
if (!is_property_present.has_value())
|
|
1912
|
+
{
|
|
1913
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"Id");
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
if (!is_property_present.value())
|
|
1630
1917
|
{
|
|
1631
1918
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1632
1919
|
return nullptr;
|
|
@@ -1645,7 +1932,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1645
1932
|
{
|
|
1646
1933
|
try
|
|
1647
1934
|
{
|
|
1648
|
-
|
|
1935
|
+
static std::optional<bool> is_property_present{};
|
|
1936
|
+
|
|
1937
|
+
if (!is_property_present.has_value())
|
|
1938
|
+
{
|
|
1939
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"IsBetaAccount");
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
if (!is_property_present.value())
|
|
1649
1943
|
{
|
|
1650
1944
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1651
1945
|
return nullptr;
|
|
@@ -1664,7 +1958,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1664
1958
|
{
|
|
1665
1959
|
try
|
|
1666
1960
|
{
|
|
1667
|
-
|
|
1961
|
+
static std::optional<bool> is_property_present{};
|
|
1962
|
+
|
|
1963
|
+
if (!is_property_present.has_value())
|
|
1964
|
+
{
|
|
1965
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"IsConfirmedPC");
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
if (!is_property_present.value())
|
|
1668
1969
|
{
|
|
1669
1970
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1670
1971
|
return nullptr;
|
|
@@ -1683,7 +1984,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1683
1984
|
{
|
|
1684
1985
|
try
|
|
1685
1986
|
{
|
|
1686
|
-
|
|
1987
|
+
static std::optional<bool> is_property_present{};
|
|
1988
|
+
|
|
1989
|
+
if (!is_property_present.has_value())
|
|
1990
|
+
{
|
|
1991
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"LastName");
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
if (!is_property_present.value())
|
|
1687
1995
|
{
|
|
1688
1996
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1689
1997
|
return nullptr;
|
|
@@ -1702,7 +2010,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1702
2010
|
{
|
|
1703
2011
|
try
|
|
1704
2012
|
{
|
|
1705
|
-
|
|
2013
|
+
static std::optional<bool> is_property_present{};
|
|
2014
|
+
|
|
2015
|
+
if (!is_property_present.has_value())
|
|
2016
|
+
{
|
|
2017
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"SafeCustomerId");
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
if (!is_property_present.value())
|
|
1706
2021
|
{
|
|
1707
2022
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1708
2023
|
return nullptr;
|
|
@@ -1721,7 +2036,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1721
2036
|
{
|
|
1722
2037
|
try
|
|
1723
2038
|
{
|
|
1724
|
-
|
|
2039
|
+
static std::optional<bool> is_property_present{};
|
|
2040
|
+
|
|
2041
|
+
if (!is_property_present.has_value())
|
|
2042
|
+
{
|
|
2043
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"SignInName");
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
if (!is_property_present.value())
|
|
1725
2047
|
{
|
|
1726
2048
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1727
2049
|
return nullptr;
|
|
@@ -1740,7 +2062,14 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
|
|
|
1740
2062
|
{
|
|
1741
2063
|
try
|
|
1742
2064
|
{
|
|
1743
|
-
|
|
2065
|
+
static std::optional<bool> is_property_present{};
|
|
2066
|
+
|
|
2067
|
+
if (!is_property_present.has_value())
|
|
2068
|
+
{
|
|
2069
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authentication.OnlineId.UserIdentity", L"Tickets");
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
if (!is_property_present.value())
|
|
1744
2073
|
{
|
|
1745
2074
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1746
2075
|
return nullptr;
|
|
@@ -1857,17 +2186,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_onlineid(void) noex
|
|
|
1857
2186
|
return nullptr;
|
|
1858
2187
|
}
|
|
1859
2188
|
|
|
1860
|
-
|
|
2189
|
+
py::pytype_handle OnlineIdAuthenticator_type{py::register_python_type(module.get(), &type_spec_OnlineIdAuthenticator, object_bases.get(), nullptr)};
|
|
2190
|
+
if (!OnlineIdAuthenticator_type)
|
|
1861
2191
|
{
|
|
1862
2192
|
return nullptr;
|
|
1863
2193
|
}
|
|
1864
2194
|
|
|
1865
|
-
|
|
2195
|
+
py::pytype_handle OnlineIdServiceTicket_type{py::register_python_type(module.get(), &type_spec_OnlineIdServiceTicket, object_bases.get(), nullptr)};
|
|
2196
|
+
if (!OnlineIdServiceTicket_type)
|
|
1866
2197
|
{
|
|
1867
2198
|
return nullptr;
|
|
1868
2199
|
}
|
|
1869
2200
|
|
|
1870
|
-
|
|
2201
|
+
py::pytype_handle OnlineIdServiceTicketRequest_type{py::register_python_type(module.get(), &type_spec_OnlineIdServiceTicketRequest, object_bases.get(), nullptr)};
|
|
2202
|
+
if (!OnlineIdServiceTicketRequest_type)
|
|
1871
2203
|
{
|
|
1872
2204
|
return nullptr;
|
|
1873
2205
|
}
|
|
@@ -1878,37 +2210,44 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authentication_onlineid(void) noex
|
|
|
1878
2210
|
return nullptr;
|
|
1879
2211
|
}
|
|
1880
2212
|
|
|
1881
|
-
|
|
2213
|
+
py::pytype_handle OnlineIdSystemAuthenticator_type{py::register_python_type(module.get(), &type_spec_OnlineIdSystemAuthenticator, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_OnlineIdSystemAuthenticator_Static.get()))};
|
|
2214
|
+
if (!OnlineIdSystemAuthenticator_type)
|
|
1882
2215
|
{
|
|
1883
2216
|
return nullptr;
|
|
1884
2217
|
}
|
|
1885
2218
|
|
|
1886
|
-
|
|
2219
|
+
py::pytype_handle OnlineIdSystemAuthenticatorForUser_type{py::register_python_type(module.get(), &type_spec_OnlineIdSystemAuthenticatorForUser, object_bases.get(), nullptr)};
|
|
2220
|
+
if (!OnlineIdSystemAuthenticatorForUser_type)
|
|
1887
2221
|
{
|
|
1888
2222
|
return nullptr;
|
|
1889
2223
|
}
|
|
1890
2224
|
|
|
1891
|
-
|
|
2225
|
+
py::pytype_handle OnlineIdSystemIdentity_type{py::register_python_type(module.get(), &type_spec_OnlineIdSystemIdentity, object_bases.get(), nullptr)};
|
|
2226
|
+
if (!OnlineIdSystemIdentity_type)
|
|
1892
2227
|
{
|
|
1893
2228
|
return nullptr;
|
|
1894
2229
|
}
|
|
1895
2230
|
|
|
1896
|
-
|
|
2231
|
+
py::pytype_handle OnlineIdSystemTicketResult_type{py::register_python_type(module.get(), &type_spec_OnlineIdSystemTicketResult, object_bases.get(), nullptr)};
|
|
2232
|
+
if (!OnlineIdSystemTicketResult_type)
|
|
1897
2233
|
{
|
|
1898
2234
|
return nullptr;
|
|
1899
2235
|
}
|
|
1900
2236
|
|
|
1901
|
-
|
|
2237
|
+
py::pytype_handle SignOutUserOperation_type{py::register_python_type(module.get(), &type_spec_SignOutUserOperation, object_bases.get(), nullptr)};
|
|
2238
|
+
if (!SignOutUserOperation_type)
|
|
1902
2239
|
{
|
|
1903
2240
|
return nullptr;
|
|
1904
2241
|
}
|
|
1905
2242
|
|
|
1906
|
-
|
|
2243
|
+
py::pytype_handle UserAuthenticationOperation_type{py::register_python_type(module.get(), &type_spec_UserAuthenticationOperation, object_bases.get(), nullptr)};
|
|
2244
|
+
if (!UserAuthenticationOperation_type)
|
|
1907
2245
|
{
|
|
1908
2246
|
return nullptr;
|
|
1909
2247
|
}
|
|
1910
2248
|
|
|
1911
|
-
|
|
2249
|
+
py::pytype_handle UserIdentity_type{py::register_python_type(module.get(), &type_spec_UserIdentity, object_bases.get(), nullptr)};
|
|
2250
|
+
if (!UserIdentity_type)
|
|
1912
2251
|
{
|
|
1913
2252
|
return nullptr;
|
|
1914
2253
|
}
|
|
@@ -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.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authentication.OnlineId
|
|
3
|
-
Version: 2.
|
|
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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
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.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|