winrt-Windows.System.Update 2.0.0b2__tar.gz → 2.1.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.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/PKG-INFO +4 -1
- winrt_windows_system_update-2.1.0/all-requirements.txt +4 -0
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/py.Windows.System.Update.cpp +236 -247
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/pyproject.toml +2 -2
- winrt_windows_system_update-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/requirements.txt +2 -2
- winrt_windows_system_update-2.1.0/setup.py +31 -0
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/winrt/_winrt_windows_system_update.pyi +13 -14
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/winrt/windows/system/update/__init__.py +1 -1
- winrt_windows_system_update-2.1.0/winrt/windows/system/update/py.typed +0 -0
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/winrt_Windows.System.Update.egg-info/PKG-INFO +4 -1
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/winrt_Windows.System.Update.egg-info/SOURCES.txt +1 -0
- winrt_windows_system_update-2.1.0/winrt_Windows.System.Update.egg-info/requires.txt +5 -0
- winrt-Windows.System.Update-2.0.0b2/all-requirements.txt +0 -4
- winrt-Windows.System.Update-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.System.Update-2.0.0b2/setup.py +0 -16
- winrt-Windows.System.Update-2.0.0b2/winrt_Windows.System.Update.egg-info/requires.txt +0 -5
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/README.md +0 -0
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/winrt_Windows.System.Update.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.System.Update-2.0.0b2 → winrt_windows_system_update-2.1.0}/winrt_Windows.System.Update.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Update
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
19
|
|
|
17
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
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.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Update.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::Update
|
|
7
6
|
{
|
|
8
7
|
// ----- SystemUpdateItem class --------------------
|
|
@@ -24,14 +23,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
24
23
|
|
|
25
24
|
static PyObject* SystemUpdateItem_get_Description(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
26
25
|
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Description"))
|
|
28
|
-
{
|
|
29
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
30
|
-
return nullptr;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
try
|
|
34
27
|
{
|
|
28
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Description"))
|
|
29
|
+
{
|
|
30
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
|
|
35
34
|
return py::convert(self->obj.Description());
|
|
36
35
|
}
|
|
37
36
|
catch (...)
|
|
@@ -43,14 +42,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
43
42
|
|
|
44
43
|
static PyObject* SystemUpdateItem_get_DownloadProgress(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
45
44
|
{
|
|
46
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"DownloadProgress"))
|
|
47
|
-
{
|
|
48
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
49
|
-
return nullptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
45
|
try
|
|
53
46
|
{
|
|
47
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"DownloadProgress"))
|
|
48
|
+
{
|
|
49
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
50
|
+
return nullptr;
|
|
51
|
+
}
|
|
52
|
+
|
|
54
53
|
return py::convert(self->obj.DownloadProgress());
|
|
55
54
|
}
|
|
56
55
|
catch (...)
|
|
@@ -62,14 +61,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
62
61
|
|
|
63
62
|
static PyObject* SystemUpdateItem_get_ExtendedError(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
64
63
|
{
|
|
65
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"ExtendedError"))
|
|
66
|
-
{
|
|
67
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
68
|
-
return nullptr;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
try
|
|
72
65
|
{
|
|
66
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"ExtendedError"))
|
|
67
|
+
{
|
|
68
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
69
|
+
return nullptr;
|
|
70
|
+
}
|
|
71
|
+
|
|
73
72
|
return py::convert(self->obj.ExtendedError());
|
|
74
73
|
}
|
|
75
74
|
catch (...)
|
|
@@ -81,14 +80,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
81
80
|
|
|
82
81
|
static PyObject* SystemUpdateItem_get_Id(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
83
82
|
{
|
|
84
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Id"))
|
|
85
|
-
{
|
|
86
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
87
|
-
return nullptr;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
83
|
try
|
|
91
84
|
{
|
|
85
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Id"))
|
|
86
|
+
{
|
|
87
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
88
|
+
return nullptr;
|
|
89
|
+
}
|
|
90
|
+
|
|
92
91
|
return py::convert(self->obj.Id());
|
|
93
92
|
}
|
|
94
93
|
catch (...)
|
|
@@ -100,14 +99,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
100
99
|
|
|
101
100
|
static PyObject* SystemUpdateItem_get_InstallProgress(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
102
101
|
{
|
|
103
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"InstallProgress"))
|
|
104
|
-
{
|
|
105
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
106
|
-
return nullptr;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
102
|
try
|
|
110
103
|
{
|
|
104
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"InstallProgress"))
|
|
105
|
+
{
|
|
106
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
107
|
+
return nullptr;
|
|
108
|
+
}
|
|
109
|
+
|
|
111
110
|
return py::convert(self->obj.InstallProgress());
|
|
112
111
|
}
|
|
113
112
|
catch (...)
|
|
@@ -119,14 +118,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
119
118
|
|
|
120
119
|
static PyObject* SystemUpdateItem_get_Revision(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
121
120
|
{
|
|
122
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Revision"))
|
|
123
|
-
{
|
|
124
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
125
|
-
return nullptr;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
121
|
try
|
|
129
122
|
{
|
|
123
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Revision"))
|
|
124
|
+
{
|
|
125
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
126
|
+
return nullptr;
|
|
127
|
+
}
|
|
128
|
+
|
|
130
129
|
return py::convert(self->obj.Revision());
|
|
131
130
|
}
|
|
132
131
|
catch (...)
|
|
@@ -138,14 +137,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
138
137
|
|
|
139
138
|
static PyObject* SystemUpdateItem_get_State(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
140
139
|
{
|
|
141
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"State"))
|
|
142
|
-
{
|
|
143
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
144
|
-
return nullptr;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
140
|
try
|
|
148
141
|
{
|
|
142
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"State"))
|
|
143
|
+
{
|
|
144
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
145
|
+
return nullptr;
|
|
146
|
+
}
|
|
147
|
+
|
|
149
148
|
return py::convert(self->obj.State());
|
|
150
149
|
}
|
|
151
150
|
catch (...)
|
|
@@ -157,14 +156,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
157
156
|
|
|
158
157
|
static PyObject* SystemUpdateItem_get_Title(py::wrapper::Windows::System::Update::SystemUpdateItem* self, void* /*unused*/) noexcept
|
|
159
158
|
{
|
|
160
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Title"))
|
|
161
|
-
{
|
|
162
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
163
|
-
return nullptr;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
159
|
try
|
|
167
160
|
{
|
|
161
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Title"))
|
|
162
|
+
{
|
|
163
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
164
|
+
return nullptr;
|
|
165
|
+
}
|
|
166
|
+
|
|
168
167
|
return py::convert(self->obj.Title());
|
|
169
168
|
}
|
|
170
169
|
catch (...)
|
|
@@ -216,23 +215,20 @@ namespace py::cpp::Windows::System::Update
|
|
|
216
215
|
{ }
|
|
217
216
|
};
|
|
218
217
|
|
|
219
|
-
static PyType_Slot _type_slots_SystemUpdateItem[] =
|
|
220
|
-
{
|
|
218
|
+
static PyType_Slot _type_slots_SystemUpdateItem[] = {
|
|
221
219
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemUpdateItem) },
|
|
222
220
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemUpdateItem) },
|
|
223
221
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemUpdateItem) },
|
|
224
222
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemUpdateItem) },
|
|
225
|
-
{ }
|
|
223
|
+
{ }
|
|
226
224
|
};
|
|
227
225
|
|
|
228
|
-
static PyType_Spec type_spec_SystemUpdateItem =
|
|
229
|
-
{
|
|
226
|
+
static PyType_Spec type_spec_SystemUpdateItem = {
|
|
230
227
|
"winrt._winrt_windows_system_update.SystemUpdateItem",
|
|
231
228
|
sizeof(py::wrapper::Windows::System::Update::SystemUpdateItem),
|
|
232
229
|
0,
|
|
233
230
|
Py_TPFLAGS_DEFAULT,
|
|
234
|
-
_type_slots_SystemUpdateItem
|
|
235
|
-
};
|
|
231
|
+
_type_slots_SystemUpdateItem};
|
|
236
232
|
|
|
237
233
|
// ----- SystemUpdateLastErrorInfo class --------------------
|
|
238
234
|
|
|
@@ -253,14 +249,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
253
249
|
|
|
254
250
|
static PyObject* SystemUpdateLastErrorInfo_get_ExtendedError(py::wrapper::Windows::System::Update::SystemUpdateLastErrorInfo* self, void* /*unused*/) noexcept
|
|
255
251
|
{
|
|
256
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"ExtendedError"))
|
|
257
|
-
{
|
|
258
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
259
|
-
return nullptr;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
252
|
try
|
|
263
253
|
{
|
|
254
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"ExtendedError"))
|
|
255
|
+
{
|
|
256
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
257
|
+
return nullptr;
|
|
258
|
+
}
|
|
259
|
+
|
|
264
260
|
return py::convert(self->obj.ExtendedError());
|
|
265
261
|
}
|
|
266
262
|
catch (...)
|
|
@@ -272,14 +268,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
272
268
|
|
|
273
269
|
static PyObject* SystemUpdateLastErrorInfo_get_IsInteractive(py::wrapper::Windows::System::Update::SystemUpdateLastErrorInfo* self, void* /*unused*/) noexcept
|
|
274
270
|
{
|
|
275
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"IsInteractive"))
|
|
276
|
-
{
|
|
277
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
278
|
-
return nullptr;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
271
|
try
|
|
282
272
|
{
|
|
273
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"IsInteractive"))
|
|
274
|
+
{
|
|
275
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
276
|
+
return nullptr;
|
|
277
|
+
}
|
|
278
|
+
|
|
283
279
|
return py::convert(self->obj.IsInteractive());
|
|
284
280
|
}
|
|
285
281
|
catch (...)
|
|
@@ -291,14 +287,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
291
287
|
|
|
292
288
|
static PyObject* SystemUpdateLastErrorInfo_get_State(py::wrapper::Windows::System::Update::SystemUpdateLastErrorInfo* self, void* /*unused*/) noexcept
|
|
293
289
|
{
|
|
294
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"State"))
|
|
295
|
-
{
|
|
296
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
297
|
-
return nullptr;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
290
|
try
|
|
301
291
|
{
|
|
292
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"State"))
|
|
293
|
+
{
|
|
294
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
295
|
+
return nullptr;
|
|
296
|
+
}
|
|
297
|
+
|
|
302
298
|
return py::convert(self->obj.State());
|
|
303
299
|
}
|
|
304
300
|
catch (...)
|
|
@@ -345,23 +341,20 @@ namespace py::cpp::Windows::System::Update
|
|
|
345
341
|
{ }
|
|
346
342
|
};
|
|
347
343
|
|
|
348
|
-
static PyType_Slot _type_slots_SystemUpdateLastErrorInfo[] =
|
|
349
|
-
{
|
|
344
|
+
static PyType_Slot _type_slots_SystemUpdateLastErrorInfo[] = {
|
|
350
345
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemUpdateLastErrorInfo) },
|
|
351
346
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemUpdateLastErrorInfo) },
|
|
352
347
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemUpdateLastErrorInfo) },
|
|
353
348
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemUpdateLastErrorInfo) },
|
|
354
|
-
{ }
|
|
349
|
+
{ }
|
|
355
350
|
};
|
|
356
351
|
|
|
357
|
-
static PyType_Spec type_spec_SystemUpdateLastErrorInfo =
|
|
358
|
-
{
|
|
352
|
+
static PyType_Spec type_spec_SystemUpdateLastErrorInfo = {
|
|
359
353
|
"winrt._winrt_windows_system_update.SystemUpdateLastErrorInfo",
|
|
360
354
|
sizeof(py::wrapper::Windows::System::Update::SystemUpdateLastErrorInfo),
|
|
361
355
|
0,
|
|
362
356
|
Py_TPFLAGS_DEFAULT,
|
|
363
|
-
_type_slots_SystemUpdateLastErrorInfo
|
|
364
|
-
};
|
|
357
|
+
_type_slots_SystemUpdateLastErrorInfo};
|
|
365
358
|
|
|
366
359
|
// ----- SystemUpdateManager class --------------------
|
|
367
360
|
|
|
@@ -378,14 +371,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
378
371
|
|
|
379
372
|
if (arg_count == 1)
|
|
380
373
|
{
|
|
381
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"BlockAutomaticRebootAsync", 1))
|
|
382
|
-
{
|
|
383
|
-
py::set_arg_count_version_error(1);
|
|
384
|
-
return nullptr;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
374
|
try
|
|
388
375
|
{
|
|
376
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"BlockAutomaticRebootAsync", 1))
|
|
377
|
+
{
|
|
378
|
+
py::set_arg_count_version_error(1);
|
|
379
|
+
return nullptr;
|
|
380
|
+
}
|
|
381
|
+
|
|
389
382
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
390
383
|
|
|
391
384
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::BlockAutomaticRebootAsync(param0));
|
|
@@ -409,14 +402,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
409
402
|
|
|
410
403
|
if (arg_count == 0)
|
|
411
404
|
{
|
|
412
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetAutomaticRebootBlockIds", 0))
|
|
413
|
-
{
|
|
414
|
-
py::set_arg_count_version_error(0);
|
|
415
|
-
return nullptr;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
405
|
try
|
|
419
406
|
{
|
|
407
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetAutomaticRebootBlockIds", 0))
|
|
408
|
+
{
|
|
409
|
+
py::set_arg_count_version_error(0);
|
|
410
|
+
return nullptr;
|
|
411
|
+
}
|
|
412
|
+
|
|
420
413
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::GetAutomaticRebootBlockIds());
|
|
421
414
|
}
|
|
422
415
|
catch (...)
|
|
@@ -438,14 +431,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
438
431
|
|
|
439
432
|
if (arg_count == 0)
|
|
440
433
|
{
|
|
441
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetFlightRing", 0))
|
|
442
|
-
{
|
|
443
|
-
py::set_arg_count_version_error(0);
|
|
444
|
-
return nullptr;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
434
|
try
|
|
448
435
|
{
|
|
436
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetFlightRing", 0))
|
|
437
|
+
{
|
|
438
|
+
py::set_arg_count_version_error(0);
|
|
439
|
+
return nullptr;
|
|
440
|
+
}
|
|
441
|
+
|
|
449
442
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::GetFlightRing());
|
|
450
443
|
}
|
|
451
444
|
catch (...)
|
|
@@ -467,14 +460,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
467
460
|
|
|
468
461
|
if (arg_count == 0)
|
|
469
462
|
{
|
|
470
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetUpdateItems", 0))
|
|
471
|
-
{
|
|
472
|
-
py::set_arg_count_version_error(0);
|
|
473
|
-
return nullptr;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
463
|
try
|
|
477
464
|
{
|
|
465
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetUpdateItems", 0))
|
|
466
|
+
{
|
|
467
|
+
py::set_arg_count_version_error(0);
|
|
468
|
+
return nullptr;
|
|
469
|
+
}
|
|
470
|
+
|
|
478
471
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::GetUpdateItems());
|
|
479
472
|
}
|
|
480
473
|
catch (...)
|
|
@@ -496,14 +489,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
496
489
|
|
|
497
490
|
if (arg_count == 0)
|
|
498
491
|
{
|
|
499
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"IsSupported", 0))
|
|
500
|
-
{
|
|
501
|
-
py::set_arg_count_version_error(0);
|
|
502
|
-
return nullptr;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
492
|
try
|
|
506
493
|
{
|
|
494
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"IsSupported", 0))
|
|
495
|
+
{
|
|
496
|
+
py::set_arg_count_version_error(0);
|
|
497
|
+
return nullptr;
|
|
498
|
+
}
|
|
499
|
+
|
|
507
500
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::IsSupported());
|
|
508
501
|
}
|
|
509
502
|
catch (...)
|
|
@@ -525,14 +518,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
525
518
|
|
|
526
519
|
if (arg_count == 0)
|
|
527
520
|
{
|
|
528
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"RebootToCompleteInstall", 0))
|
|
529
|
-
{
|
|
530
|
-
py::set_arg_count_version_error(0);
|
|
531
|
-
return nullptr;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
521
|
try
|
|
535
522
|
{
|
|
523
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"RebootToCompleteInstall", 0))
|
|
524
|
+
{
|
|
525
|
+
py::set_arg_count_version_error(0);
|
|
526
|
+
return nullptr;
|
|
527
|
+
}
|
|
528
|
+
|
|
536
529
|
winrt::Windows::System::Update::SystemUpdateManager::RebootToCompleteInstall();
|
|
537
530
|
Py_RETURN_NONE;
|
|
538
531
|
}
|
|
@@ -555,14 +548,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
555
548
|
|
|
556
549
|
if (arg_count == 1)
|
|
557
550
|
{
|
|
558
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"SetFlightRing", 1))
|
|
559
|
-
{
|
|
560
|
-
py::set_arg_count_version_error(1);
|
|
561
|
-
return nullptr;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
551
|
try
|
|
565
552
|
{
|
|
553
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"SetFlightRing", 1))
|
|
554
|
+
{
|
|
555
|
+
py::set_arg_count_version_error(1);
|
|
556
|
+
return nullptr;
|
|
557
|
+
}
|
|
558
|
+
|
|
566
559
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
567
560
|
|
|
568
561
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::SetFlightRing(param0));
|
|
@@ -586,14 +579,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
586
579
|
|
|
587
580
|
if (arg_count == 0)
|
|
588
581
|
{
|
|
589
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"StartCancelUpdates", 0))
|
|
590
|
-
{
|
|
591
|
-
py::set_arg_count_version_error(0);
|
|
592
|
-
return nullptr;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
582
|
try
|
|
596
583
|
{
|
|
584
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"StartCancelUpdates", 0))
|
|
585
|
+
{
|
|
586
|
+
py::set_arg_count_version_error(0);
|
|
587
|
+
return nullptr;
|
|
588
|
+
}
|
|
589
|
+
|
|
597
590
|
winrt::Windows::System::Update::SystemUpdateManager::StartCancelUpdates();
|
|
598
591
|
Py_RETURN_NONE;
|
|
599
592
|
}
|
|
@@ -616,14 +609,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
616
609
|
|
|
617
610
|
if (arg_count == 1)
|
|
618
611
|
{
|
|
619
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"StartInstall", 1))
|
|
620
|
-
{
|
|
621
|
-
py::set_arg_count_version_error(1);
|
|
622
|
-
return nullptr;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
612
|
try
|
|
626
613
|
{
|
|
614
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"StartInstall", 1))
|
|
615
|
+
{
|
|
616
|
+
py::set_arg_count_version_error(1);
|
|
617
|
+
return nullptr;
|
|
618
|
+
}
|
|
619
|
+
|
|
627
620
|
auto param0 = py::convert_to<winrt::Windows::System::Update::SystemUpdateStartInstallAction>(args, 0);
|
|
628
621
|
|
|
629
622
|
winrt::Windows::System::Update::SystemUpdateManager::StartInstall(param0);
|
|
@@ -648,14 +641,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
648
641
|
|
|
649
642
|
if (arg_count == 2)
|
|
650
643
|
{
|
|
651
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"TrySetUserActiveHours", 2))
|
|
652
|
-
{
|
|
653
|
-
py::set_arg_count_version_error(2);
|
|
654
|
-
return nullptr;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
644
|
try
|
|
658
645
|
{
|
|
646
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"TrySetUserActiveHours", 2))
|
|
647
|
+
{
|
|
648
|
+
py::set_arg_count_version_error(2);
|
|
649
|
+
return nullptr;
|
|
650
|
+
}
|
|
651
|
+
|
|
659
652
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 0);
|
|
660
653
|
auto param1 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 1);
|
|
661
654
|
|
|
@@ -680,14 +673,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
680
673
|
|
|
681
674
|
if (arg_count == 1)
|
|
682
675
|
{
|
|
683
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"UnblockAutomaticRebootAsync", 1))
|
|
684
|
-
{
|
|
685
|
-
py::set_arg_count_version_error(1);
|
|
686
|
-
return nullptr;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
676
|
try
|
|
690
677
|
{
|
|
678
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"UnblockAutomaticRebootAsync", 1))
|
|
679
|
+
{
|
|
680
|
+
py::set_arg_count_version_error(1);
|
|
681
|
+
return nullptr;
|
|
682
|
+
}
|
|
683
|
+
|
|
691
684
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
692
685
|
|
|
693
686
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::UnblockAutomaticRebootAsync(param0));
|
|
@@ -707,14 +700,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
707
700
|
|
|
708
701
|
static PyObject* SystemUpdateManager_get_AttentionRequiredReason(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
709
702
|
{
|
|
710
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"AttentionRequiredReason"))
|
|
711
|
-
{
|
|
712
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
713
|
-
return nullptr;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
703
|
try
|
|
717
704
|
{
|
|
705
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"AttentionRequiredReason"))
|
|
706
|
+
{
|
|
707
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
708
|
+
return nullptr;
|
|
709
|
+
}
|
|
710
|
+
|
|
718
711
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::AttentionRequiredReason());
|
|
719
712
|
}
|
|
720
713
|
catch (...)
|
|
@@ -726,14 +719,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
726
719
|
|
|
727
720
|
static PyObject* SystemUpdateManager_get_DownloadProgress(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
728
721
|
{
|
|
729
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"DownloadProgress"))
|
|
730
|
-
{
|
|
731
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
732
|
-
return nullptr;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
722
|
try
|
|
736
723
|
{
|
|
724
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"DownloadProgress"))
|
|
725
|
+
{
|
|
726
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
727
|
+
return nullptr;
|
|
728
|
+
}
|
|
729
|
+
|
|
737
730
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::DownloadProgress());
|
|
738
731
|
}
|
|
739
732
|
catch (...)
|
|
@@ -745,14 +738,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
745
738
|
|
|
746
739
|
static PyObject* SystemUpdateManager_get_ExtendedError(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
747
740
|
{
|
|
748
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"ExtendedError"))
|
|
749
|
-
{
|
|
750
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
751
|
-
return nullptr;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
741
|
try
|
|
755
742
|
{
|
|
743
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"ExtendedError"))
|
|
744
|
+
{
|
|
745
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
746
|
+
return nullptr;
|
|
747
|
+
}
|
|
748
|
+
|
|
756
749
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::ExtendedError());
|
|
757
750
|
}
|
|
758
751
|
catch (...)
|
|
@@ -764,14 +757,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
764
757
|
|
|
765
758
|
static PyObject* SystemUpdateManager_get_InstallProgress(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
766
759
|
{
|
|
767
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"InstallProgress"))
|
|
768
|
-
{
|
|
769
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
770
|
-
return nullptr;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
760
|
try
|
|
774
761
|
{
|
|
762
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"InstallProgress"))
|
|
763
|
+
{
|
|
764
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
765
|
+
return nullptr;
|
|
766
|
+
}
|
|
767
|
+
|
|
775
768
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::InstallProgress());
|
|
776
769
|
}
|
|
777
770
|
catch (...)
|
|
@@ -783,14 +776,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
783
776
|
|
|
784
777
|
static PyObject* SystemUpdateManager_get_LastErrorInfo(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
785
778
|
{
|
|
786
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastErrorInfo"))
|
|
787
|
-
{
|
|
788
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
789
|
-
return nullptr;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
779
|
try
|
|
793
780
|
{
|
|
781
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastErrorInfo"))
|
|
782
|
+
{
|
|
783
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
784
|
+
return nullptr;
|
|
785
|
+
}
|
|
786
|
+
|
|
794
787
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::LastErrorInfo());
|
|
795
788
|
}
|
|
796
789
|
catch (...)
|
|
@@ -802,14 +795,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
802
795
|
|
|
803
796
|
static PyObject* SystemUpdateManager_get_LastUpdateCheckTime(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
804
797
|
{
|
|
805
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastUpdateCheckTime"))
|
|
806
|
-
{
|
|
807
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
808
|
-
return nullptr;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
798
|
try
|
|
812
799
|
{
|
|
800
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastUpdateCheckTime"))
|
|
801
|
+
{
|
|
802
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
803
|
+
return nullptr;
|
|
804
|
+
}
|
|
805
|
+
|
|
813
806
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::LastUpdateCheckTime());
|
|
814
807
|
}
|
|
815
808
|
catch (...)
|
|
@@ -821,14 +814,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
821
814
|
|
|
822
815
|
static PyObject* SystemUpdateManager_get_LastUpdateInstallTime(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
823
816
|
{
|
|
824
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastUpdateInstallTime"))
|
|
825
|
-
{
|
|
826
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
827
|
-
return nullptr;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
817
|
try
|
|
831
818
|
{
|
|
819
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastUpdateInstallTime"))
|
|
820
|
+
{
|
|
821
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
822
|
+
return nullptr;
|
|
823
|
+
}
|
|
824
|
+
|
|
832
825
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::LastUpdateInstallTime());
|
|
833
826
|
}
|
|
834
827
|
catch (...)
|
|
@@ -840,14 +833,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
840
833
|
|
|
841
834
|
static PyObject* SystemUpdateManager_get_State(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
842
835
|
{
|
|
843
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"State"))
|
|
844
|
-
{
|
|
845
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
846
|
-
return nullptr;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
836
|
try
|
|
850
837
|
{
|
|
838
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"State"))
|
|
839
|
+
{
|
|
840
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
841
|
+
return nullptr;
|
|
842
|
+
}
|
|
843
|
+
|
|
851
844
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::State());
|
|
852
845
|
}
|
|
853
846
|
catch (...)
|
|
@@ -859,14 +852,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
859
852
|
|
|
860
853
|
static PyObject* SystemUpdateManager_get_UserActiveHoursEnd(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
861
854
|
{
|
|
862
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursEnd"))
|
|
863
|
-
{
|
|
864
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
865
|
-
return nullptr;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
855
|
try
|
|
869
856
|
{
|
|
857
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursEnd"))
|
|
858
|
+
{
|
|
859
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
860
|
+
return nullptr;
|
|
861
|
+
}
|
|
862
|
+
|
|
870
863
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::UserActiveHoursEnd());
|
|
871
864
|
}
|
|
872
865
|
catch (...)
|
|
@@ -878,14 +871,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
878
871
|
|
|
879
872
|
static PyObject* SystemUpdateManager_get_UserActiveHoursMax(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
880
873
|
{
|
|
881
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursMax"))
|
|
882
|
-
{
|
|
883
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
884
|
-
return nullptr;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
874
|
try
|
|
888
875
|
{
|
|
876
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursMax"))
|
|
877
|
+
{
|
|
878
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
879
|
+
return nullptr;
|
|
880
|
+
}
|
|
881
|
+
|
|
889
882
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::UserActiveHoursMax());
|
|
890
883
|
}
|
|
891
884
|
catch (...)
|
|
@@ -897,14 +890,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
897
890
|
|
|
898
891
|
static PyObject* SystemUpdateManager_get_UserActiveHoursStart(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
899
892
|
{
|
|
900
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursStart"))
|
|
901
|
-
{
|
|
902
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
903
|
-
return nullptr;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
893
|
try
|
|
907
894
|
{
|
|
895
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursStart"))
|
|
896
|
+
{
|
|
897
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
898
|
+
return nullptr;
|
|
899
|
+
}
|
|
900
|
+
|
|
908
901
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::UserActiveHoursStart());
|
|
909
902
|
}
|
|
910
903
|
catch (...)
|
|
@@ -916,14 +909,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
916
909
|
|
|
917
910
|
static PyObject* SystemUpdateManager_add_StateChanged(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
918
911
|
{
|
|
919
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Update.SystemUpdateManager", L"StateChanged"))
|
|
920
|
-
{
|
|
921
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
922
|
-
return nullptr;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
912
|
try
|
|
926
913
|
{
|
|
914
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Update.SystemUpdateManager", L"StateChanged"))
|
|
915
|
+
{
|
|
916
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
917
|
+
return nullptr;
|
|
918
|
+
}
|
|
919
|
+
|
|
927
920
|
auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>>(arg);
|
|
928
921
|
|
|
929
922
|
return py::convert(winrt::Windows::System::Update::SystemUpdateManager::StateChanged(param0));
|
|
@@ -937,14 +930,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
937
930
|
|
|
938
931
|
static PyObject* SystemUpdateManager_remove_StateChanged(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
939
932
|
{
|
|
940
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Update.SystemUpdateManager", L"StateChanged"))
|
|
941
|
-
{
|
|
942
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
943
|
-
return nullptr;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
933
|
try
|
|
947
934
|
{
|
|
935
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Update.SystemUpdateManager", L"StateChanged"))
|
|
936
|
+
{
|
|
937
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
938
|
+
return nullptr;
|
|
939
|
+
}
|
|
940
|
+
|
|
948
941
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
949
942
|
|
|
950
943
|
winrt::Windows::System::Update::SystemUpdateManager::StateChanged(param0);
|
|
@@ -958,8 +951,6 @@ namespace py::cpp::Windows::System::Update
|
|
|
958
951
|
}
|
|
959
952
|
|
|
960
953
|
static PyMethodDef _methods_SystemUpdateManager[] = {
|
|
961
|
-
{ "add_state_changed", reinterpret_cast<PyCFunction>(SystemUpdateManager_add_StateChanged), METH_O | METH_STATIC, nullptr },
|
|
962
|
-
{ "remove_state_changed", reinterpret_cast<PyCFunction>(SystemUpdateManager_remove_StateChanged), METH_O | METH_STATIC, nullptr },
|
|
963
954
|
{ }
|
|
964
955
|
};
|
|
965
956
|
|
|
@@ -967,22 +958,19 @@ namespace py::cpp::Windows::System::Update
|
|
|
967
958
|
{ }
|
|
968
959
|
};
|
|
969
960
|
|
|
970
|
-
static PyType_Slot _type_slots_SystemUpdateManager[] =
|
|
971
|
-
{
|
|
961
|
+
static PyType_Slot _type_slots_SystemUpdateManager[] = {
|
|
972
962
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemUpdateManager) },
|
|
973
963
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemUpdateManager) },
|
|
974
964
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemUpdateManager) },
|
|
975
|
-
{ }
|
|
965
|
+
{ }
|
|
976
966
|
};
|
|
977
967
|
|
|
978
|
-
static PyType_Spec type_spec_SystemUpdateManager =
|
|
979
|
-
{
|
|
968
|
+
static PyType_Spec type_spec_SystemUpdateManager = {
|
|
980
969
|
"winrt._winrt_windows_system_update.SystemUpdateManager",
|
|
981
970
|
0,
|
|
982
971
|
0,
|
|
983
972
|
Py_TPFLAGS_DEFAULT,
|
|
984
|
-
_type_slots_SystemUpdateManager
|
|
985
|
-
};
|
|
973
|
+
_type_slots_SystemUpdateManager};
|
|
986
974
|
|
|
987
975
|
static PyGetSetDef getset_SystemUpdateManager_Static[] = {
|
|
988
976
|
{ "attention_required_reason", reinterpret_cast<getter>(SystemUpdateManager_get_AttentionRequiredReason), nullptr, nullptr, nullptr },
|
|
@@ -1011,6 +999,8 @@ namespace py::cpp::Windows::System::Update
|
|
|
1011
999
|
{ "start_install", reinterpret_cast<PyCFunction>(SystemUpdateManager_StartInstall), METH_VARARGS, nullptr },
|
|
1012
1000
|
{ "try_set_user_active_hours", reinterpret_cast<PyCFunction>(SystemUpdateManager_TrySetUserActiveHours), METH_VARARGS, nullptr },
|
|
1013
1001
|
{ "unblock_automatic_reboot_async", reinterpret_cast<PyCFunction>(SystemUpdateManager_UnblockAutomaticRebootAsync), METH_VARARGS, nullptr },
|
|
1002
|
+
{ "add_state_changed", reinterpret_cast<PyCFunction>(SystemUpdateManager_add_StateChanged), METH_O, nullptr },
|
|
1003
|
+
{ "remove_state_changed", reinterpret_cast<PyCFunction>(SystemUpdateManager_remove_StateChanged), METH_O, nullptr },
|
|
1014
1004
|
{ }
|
|
1015
1005
|
};
|
|
1016
1006
|
|
|
@@ -1032,20 +1022,19 @@ namespace py::cpp::Windows::System::Update
|
|
|
1032
1022
|
};
|
|
1033
1023
|
|
|
1034
1024
|
// ----- Windows.System.Update Initialization --------------------
|
|
1035
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Update");
|
|
1036
1025
|
|
|
1026
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Update");
|
|
1037
1027
|
|
|
1038
|
-
static PyModuleDef module_def
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1028
|
+
static PyModuleDef module_def = {
|
|
1029
|
+
PyModuleDef_HEAD_INIT,
|
|
1030
|
+
"_winrt_windows_system_update",
|
|
1031
|
+
module_doc,
|
|
1032
|
+
0,
|
|
1033
|
+
nullptr,
|
|
1034
|
+
nullptr,
|
|
1035
|
+
nullptr,
|
|
1036
|
+
nullptr,
|
|
1037
|
+
nullptr};
|
|
1049
1038
|
} // py::cpp::Windows::System::Update
|
|
1050
1039
|
|
|
1051
1040
|
PyMODINIT_FUNC PyInit__winrt_windows_system_update(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_system_update",
|
|
26
|
+
sources=["py.Windows.System.Update.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -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.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,8 +9,8 @@ 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
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
14
|
|
|
15
15
|
from winrt.windows.system.update import SystemUpdateAttentionRequiredReason, SystemUpdateItemState, SystemUpdateManagerState, SystemUpdateStartInstallAction
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ class SystemUpdateItem(winrt.system.Object):
|
|
|
25
25
|
@_property
|
|
26
26
|
def download_progress(self) -> winrt.system.Double: ...
|
|
27
27
|
@_property
|
|
28
|
-
def extended_error(self) ->
|
|
28
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
29
29
|
@_property
|
|
30
30
|
def id(self) -> str: ...
|
|
31
31
|
@_property
|
|
@@ -42,7 +42,7 @@ class SystemUpdateLastErrorInfo(winrt.system.Object):
|
|
|
42
42
|
@staticmethod
|
|
43
43
|
def _from(obj: winrt.system.Object, /) -> SystemUpdateLastErrorInfo: ...
|
|
44
44
|
@_property
|
|
45
|
-
def extended_error(self) ->
|
|
45
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
46
46
|
@_property
|
|
47
47
|
def is_interactive(self) -> bool: ...
|
|
48
48
|
@_property
|
|
@@ -50,25 +50,25 @@ class SystemUpdateLastErrorInfo(winrt.system.Object):
|
|
|
50
50
|
|
|
51
51
|
@typing.final
|
|
52
52
|
class SystemUpdateManager_Static(type):
|
|
53
|
-
def block_automatic_reboot_async(cls, lock_id: str, /) ->
|
|
54
|
-
def get_automatic_reboot_block_ids(cls) -> typing.Optional[
|
|
53
|
+
def block_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
54
|
+
def get_automatic_reboot_block_ids(cls) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
55
55
|
def get_flight_ring(cls) -> str: ...
|
|
56
|
-
def get_update_items(cls) -> typing.Optional[
|
|
56
|
+
def get_update_items(cls) -> typing.Optional[windows_foundation_collections.IVectorView[SystemUpdateItem]]: ...
|
|
57
57
|
def is_supported(cls) -> bool: ...
|
|
58
58
|
def reboot_to_complete_install(cls) -> None: ...
|
|
59
59
|
def set_flight_ring(cls, flight_ring: str, /) -> bool: ...
|
|
60
60
|
def start_cancel_updates(cls) -> None: ...
|
|
61
61
|
def start_install(cls, action: SystemUpdateStartInstallAction, /) -> None: ...
|
|
62
62
|
def try_set_user_active_hours(cls, start: datetime.timedelta, end: datetime.timedelta, /) -> bool: ...
|
|
63
|
-
def unblock_automatic_reboot_async(cls, lock_id: str, /) ->
|
|
64
|
-
def add_state_changed(cls, handler:
|
|
65
|
-
def remove_state_changed(cls, token:
|
|
63
|
+
def unblock_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
64
|
+
def add_state_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
65
|
+
def remove_state_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
66
66
|
@_property
|
|
67
67
|
def attention_required_reason(cls) -> SystemUpdateAttentionRequiredReason: ...
|
|
68
68
|
@_property
|
|
69
69
|
def download_progress(cls) -> winrt.system.Double: ...
|
|
70
70
|
@_property
|
|
71
|
-
def extended_error(cls) ->
|
|
71
|
+
def extended_error(cls) -> windows_foundation.HResult: ...
|
|
72
72
|
@_property
|
|
73
73
|
def install_progress(cls) -> winrt.system.Double: ...
|
|
74
74
|
@_property
|
|
@@ -88,6 +88,5 @@ class SystemUpdateManager_Static(type):
|
|
|
88
88
|
|
|
89
89
|
@typing.final
|
|
90
90
|
class SystemUpdateManager(winrt.system.Object, metaclass=SystemUpdateManager_Static):
|
|
91
|
-
|
|
92
|
-
def _from(obj: winrt.system.Object, /) -> SystemUpdateManager: ...
|
|
91
|
+
pass
|
|
93
92
|
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Update
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
16
19
|
|
|
17
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
21
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_system_update.pyi
|
|
9
9
|
winrt/windows/system/update/__init__.py
|
|
10
|
+
winrt/windows/system/update/py.typed
|
|
10
11
|
winrt_Windows.System.Update.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.System.Update.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.System.Update.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_system_update",
|
|
10
|
-
sources=["py.Windows.System.Update.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|