winrt-Windows.System.RemoteDesktop.Provider 2.0.1__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/PKG-INFO +6 -6
- winrt_windows_system_remotedesktop_provider-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/py.Windows.System.RemoteDesktop.Provider.cpp +265 -158
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/pyproject.toml +3 -2
- winrt_windows_system_remotedesktop_provider-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/requirements.txt +2 -2
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/winrt/_winrt_windows_system_remotedesktop_provider.pyi +13 -14
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/winrt/windows/system/remotedesktop/provider/__init__.py +1 -1
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/PKG-INFO +6 -6
- winrt_windows_system_remotedesktop_provider-2.2.0/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +6 -0
- winrt_windows_system_remotedesktop_provider-2.0.1/all-requirements.txt +0 -5
- winrt_windows_system_remotedesktop_provider-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_system_remotedesktop_provider-2.0.1/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +0 -6
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/README.md +0 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/setup.cfg +0 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/setup.py +0 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/winrt/windows/system/remotedesktop/provider/py.typed +0 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.2.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.RemoteDesktop.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.UI[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.RemoteDesktop.Provider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
7
6
|
{
|
|
8
7
|
// ----- PerformLocalActionRequestedEventArgs class --------------------
|
|
@@ -24,14 +23,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
24
23
|
|
|
25
24
|
static PyObject* PerformLocalActionRequestedEventArgs_get_Action(py::wrapper::Windows::System::RemoteDesktop::Provider::PerformLocalActionRequestedEventArgs* self, void* /*unused*/) noexcept
|
|
26
25
|
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.PerformLocalActionRequestedEventArgs", L"Action"))
|
|
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
|
+
static std::optional<bool> is_property_present{};
|
|
29
|
+
|
|
30
|
+
if (!is_property_present.has_value())
|
|
31
|
+
{
|
|
32
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.PerformLocalActionRequestedEventArgs", L"Action");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (!is_property_present.value())
|
|
36
|
+
{
|
|
37
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
38
|
+
return nullptr;
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
return py::convert(self->obj.Action());
|
|
36
42
|
}
|
|
37
43
|
catch (...)
|
|
@@ -76,23 +82,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
76
82
|
{ }
|
|
77
83
|
};
|
|
78
84
|
|
|
79
|
-
static PyType_Slot _type_slots_PerformLocalActionRequestedEventArgs[] =
|
|
80
|
-
{
|
|
85
|
+
static PyType_Slot _type_slots_PerformLocalActionRequestedEventArgs[] = {
|
|
81
86
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PerformLocalActionRequestedEventArgs) },
|
|
82
87
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PerformLocalActionRequestedEventArgs) },
|
|
83
88
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PerformLocalActionRequestedEventArgs) },
|
|
84
89
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PerformLocalActionRequestedEventArgs) },
|
|
85
|
-
{ }
|
|
90
|
+
{ }
|
|
86
91
|
};
|
|
87
92
|
|
|
88
|
-
static PyType_Spec type_spec_PerformLocalActionRequestedEventArgs =
|
|
89
|
-
{
|
|
93
|
+
static PyType_Spec type_spec_PerformLocalActionRequestedEventArgs = {
|
|
90
94
|
"winrt._winrt_windows_system_remotedesktop_provider.PerformLocalActionRequestedEventArgs",
|
|
91
95
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::PerformLocalActionRequestedEventArgs),
|
|
92
96
|
0,
|
|
93
97
|
Py_TPFLAGS_DEFAULT,
|
|
94
|
-
_type_slots_PerformLocalActionRequestedEventArgs
|
|
95
|
-
};
|
|
98
|
+
_type_slots_PerformLocalActionRequestedEventArgs};
|
|
96
99
|
|
|
97
100
|
// ----- RemoteDesktopConnectionInfo class --------------------
|
|
98
101
|
|
|
@@ -117,14 +120,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
117
120
|
|
|
118
121
|
if (arg_count == 2)
|
|
119
122
|
{
|
|
120
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"GetForLaunchUri", 2))
|
|
121
|
-
{
|
|
122
|
-
py::set_arg_count_version_error(2);
|
|
123
|
-
return nullptr;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
123
|
try
|
|
127
124
|
{
|
|
125
|
+
static std::optional<bool> is_overload_present{};
|
|
126
|
+
|
|
127
|
+
if (!is_overload_present.has_value())
|
|
128
|
+
{
|
|
129
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"GetForLaunchUri", 2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (!is_overload_present.value())
|
|
133
|
+
{
|
|
134
|
+
py::set_arg_count_version_error(2);
|
|
135
|
+
return nullptr;
|
|
136
|
+
}
|
|
137
|
+
|
|
128
138
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
129
139
|
auto param1 = py::convert_to<winrt::Windows::UI::WindowId>(args, 1);
|
|
130
140
|
|
|
@@ -149,14 +159,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
149
159
|
|
|
150
160
|
if (arg_count == 1)
|
|
151
161
|
{
|
|
152
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"PerformLocalActionFromRemote", 1))
|
|
153
|
-
{
|
|
154
|
-
py::set_arg_count_version_error(1);
|
|
155
|
-
return nullptr;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
162
|
try
|
|
159
163
|
{
|
|
164
|
+
static std::optional<bool> is_overload_present{};
|
|
165
|
+
|
|
166
|
+
if (!is_overload_present.has_value())
|
|
167
|
+
{
|
|
168
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"PerformLocalActionFromRemote", 1);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (!is_overload_present.value())
|
|
172
|
+
{
|
|
173
|
+
py::set_arg_count_version_error(1);
|
|
174
|
+
return nullptr;
|
|
175
|
+
}
|
|
176
|
+
|
|
160
177
|
auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopLocalAction>(args, 0);
|
|
161
178
|
|
|
162
179
|
self->obj.PerformLocalActionFromRemote(param0);
|
|
@@ -181,14 +198,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
181
198
|
|
|
182
199
|
if (arg_count == 1)
|
|
183
200
|
{
|
|
184
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SetConnectionStatus", 1))
|
|
185
|
-
{
|
|
186
|
-
py::set_arg_count_version_error(1);
|
|
187
|
-
return nullptr;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
201
|
try
|
|
191
202
|
{
|
|
203
|
+
static std::optional<bool> is_overload_present{};
|
|
204
|
+
|
|
205
|
+
if (!is_overload_present.has_value())
|
|
206
|
+
{
|
|
207
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SetConnectionStatus", 1);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (!is_overload_present.value())
|
|
211
|
+
{
|
|
212
|
+
py::set_arg_count_version_error(1);
|
|
213
|
+
return nullptr;
|
|
214
|
+
}
|
|
215
|
+
|
|
192
216
|
auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionStatus>(args, 0);
|
|
193
217
|
|
|
194
218
|
self->obj.SetConnectionStatus(param0);
|
|
@@ -213,14 +237,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
213
237
|
|
|
214
238
|
if (arg_count == 0)
|
|
215
239
|
{
|
|
216
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SwitchToLocalSession", 0))
|
|
217
|
-
{
|
|
218
|
-
py::set_arg_count_version_error(0);
|
|
219
|
-
return nullptr;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
240
|
try
|
|
223
241
|
{
|
|
242
|
+
static std::optional<bool> is_overload_present{};
|
|
243
|
+
|
|
244
|
+
if (!is_overload_present.has_value())
|
|
245
|
+
{
|
|
246
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SwitchToLocalSession", 0);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (!is_overload_present.value())
|
|
250
|
+
{
|
|
251
|
+
py::set_arg_count_version_error(0);
|
|
252
|
+
return nullptr;
|
|
253
|
+
}
|
|
254
|
+
|
|
224
255
|
self->obj.SwitchToLocalSession();
|
|
225
256
|
Py_RETURN_NONE;
|
|
226
257
|
}
|
|
@@ -274,23 +305,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
274
305
|
{ }
|
|
275
306
|
};
|
|
276
307
|
|
|
277
|
-
static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] =
|
|
278
|
-
{
|
|
308
|
+
static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] = {
|
|
279
309
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionInfo) },
|
|
280
310
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionInfo) },
|
|
281
311
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionInfo) },
|
|
282
312
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionInfo) },
|
|
283
|
-
{ }
|
|
313
|
+
{ }
|
|
284
314
|
};
|
|
285
315
|
|
|
286
|
-
static PyType_Spec type_spec_RemoteDesktopConnectionInfo =
|
|
287
|
-
{
|
|
316
|
+
static PyType_Spec type_spec_RemoteDesktopConnectionInfo = {
|
|
288
317
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo",
|
|
289
318
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo),
|
|
290
319
|
0,
|
|
291
320
|
Py_TPFLAGS_DEFAULT,
|
|
292
|
-
_type_slots_RemoteDesktopConnectionInfo
|
|
293
|
-
};
|
|
321
|
+
_type_slots_RemoteDesktopConnectionInfo};
|
|
294
322
|
|
|
295
323
|
static PyGetSetDef getset_RemoteDesktopConnectionInfo_Static[] = {
|
|
296
324
|
{ }
|
|
@@ -341,14 +369,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
341
369
|
|
|
342
370
|
if (arg_count == 0)
|
|
343
371
|
{
|
|
344
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"Close", 0))
|
|
345
|
-
{
|
|
346
|
-
py::set_arg_count_version_error(0);
|
|
347
|
-
return nullptr;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
372
|
try
|
|
351
373
|
{
|
|
374
|
+
static std::optional<bool> is_overload_present{};
|
|
375
|
+
|
|
376
|
+
if (!is_overload_present.has_value())
|
|
377
|
+
{
|
|
378
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"Close", 0);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (!is_overload_present.value())
|
|
382
|
+
{
|
|
383
|
+
py::set_arg_count_version_error(0);
|
|
384
|
+
return nullptr;
|
|
385
|
+
}
|
|
386
|
+
|
|
352
387
|
self->obj.Close();
|
|
353
388
|
Py_RETURN_NONE;
|
|
354
389
|
}
|
|
@@ -371,14 +406,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
371
406
|
|
|
372
407
|
if (arg_count == 1)
|
|
373
408
|
{
|
|
374
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"GetForLaunchUri", 1))
|
|
375
|
-
{
|
|
376
|
-
py::set_arg_count_version_error(1);
|
|
377
|
-
return nullptr;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
409
|
try
|
|
381
410
|
{
|
|
411
|
+
static std::optional<bool> is_overload_present{};
|
|
412
|
+
|
|
413
|
+
if (!is_overload_present.has_value())
|
|
414
|
+
{
|
|
415
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"GetForLaunchUri", 1);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if (!is_overload_present.value())
|
|
419
|
+
{
|
|
420
|
+
py::set_arg_count_version_error(1);
|
|
421
|
+
return nullptr;
|
|
422
|
+
}
|
|
423
|
+
|
|
382
424
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
383
425
|
|
|
384
426
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::GetForLaunchUri(param0));
|
|
@@ -402,14 +444,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
402
444
|
|
|
403
445
|
if (arg_count == 0)
|
|
404
446
|
{
|
|
405
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"IsSwitchSupported", 0))
|
|
406
|
-
{
|
|
407
|
-
py::set_arg_count_version_error(0);
|
|
408
|
-
return nullptr;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
447
|
try
|
|
412
448
|
{
|
|
449
|
+
static std::optional<bool> is_overload_present{};
|
|
450
|
+
|
|
451
|
+
if (!is_overload_present.has_value())
|
|
452
|
+
{
|
|
453
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"IsSwitchSupported", 0);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
if (!is_overload_present.value())
|
|
457
|
+
{
|
|
458
|
+
py::set_arg_count_version_error(0);
|
|
459
|
+
return nullptr;
|
|
460
|
+
}
|
|
461
|
+
|
|
413
462
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::IsSwitchSupported());
|
|
414
463
|
}
|
|
415
464
|
catch (...)
|
|
@@ -431,14 +480,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
431
480
|
|
|
432
481
|
if (arg_count == 0)
|
|
433
482
|
{
|
|
434
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"ReportSwitched", 0))
|
|
435
|
-
{
|
|
436
|
-
py::set_arg_count_version_error(0);
|
|
437
|
-
return nullptr;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
483
|
try
|
|
441
484
|
{
|
|
485
|
+
static std::optional<bool> is_overload_present{};
|
|
486
|
+
|
|
487
|
+
if (!is_overload_present.has_value())
|
|
488
|
+
{
|
|
489
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"ReportSwitched", 0);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
if (!is_overload_present.value())
|
|
493
|
+
{
|
|
494
|
+
py::set_arg_count_version_error(0);
|
|
495
|
+
return nullptr;
|
|
496
|
+
}
|
|
497
|
+
|
|
442
498
|
self->obj.ReportSwitched();
|
|
443
499
|
Py_RETURN_NONE;
|
|
444
500
|
}
|
|
@@ -457,14 +513,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
457
513
|
|
|
458
514
|
static PyObject* RemoteDesktopConnectionRemoteInfo_add_PerformLocalActionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
459
515
|
{
|
|
460
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested"))
|
|
461
|
-
{
|
|
462
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
463
|
-
return nullptr;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
516
|
try
|
|
467
517
|
{
|
|
518
|
+
static std::optional<bool> is_event_present{};
|
|
519
|
+
|
|
520
|
+
if (!is_event_present.has_value())
|
|
521
|
+
{
|
|
522
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested");
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
if (!is_event_present.value())
|
|
526
|
+
{
|
|
527
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
528
|
+
return nullptr;
|
|
529
|
+
}
|
|
530
|
+
|
|
468
531
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::System::RemoteDesktop::Provider::PerformLocalActionRequestedEventArgs>>(arg);
|
|
469
532
|
|
|
470
533
|
return py::convert(self->obj.PerformLocalActionRequested(param0));
|
|
@@ -478,14 +541,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
478
541
|
|
|
479
542
|
static PyObject* RemoteDesktopConnectionRemoteInfo_remove_PerformLocalActionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
480
543
|
{
|
|
481
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested"))
|
|
482
|
-
{
|
|
483
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
484
|
-
return nullptr;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
544
|
try
|
|
488
545
|
{
|
|
546
|
+
static std::optional<bool> is_event_present{};
|
|
547
|
+
|
|
548
|
+
if (!is_event_present.has_value())
|
|
549
|
+
{
|
|
550
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested");
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
if (!is_event_present.value())
|
|
554
|
+
{
|
|
555
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
556
|
+
return nullptr;
|
|
557
|
+
}
|
|
558
|
+
|
|
489
559
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
490
560
|
|
|
491
561
|
self->obj.PerformLocalActionRequested(param0);
|
|
@@ -500,14 +570,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
500
570
|
|
|
501
571
|
static PyObject* RemoteDesktopConnectionRemoteInfo_add_SwitchToLocalSessionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
502
572
|
{
|
|
503
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested"))
|
|
504
|
-
{
|
|
505
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
506
|
-
return nullptr;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
573
|
try
|
|
510
574
|
{
|
|
575
|
+
static std::optional<bool> is_event_present{};
|
|
576
|
+
|
|
577
|
+
if (!is_event_present.has_value())
|
|
578
|
+
{
|
|
579
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested");
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
if (!is_event_present.value())
|
|
583
|
+
{
|
|
584
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
585
|
+
return nullptr;
|
|
586
|
+
}
|
|
587
|
+
|
|
511
588
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
512
589
|
|
|
513
590
|
return py::convert(self->obj.SwitchToLocalSessionRequested(param0));
|
|
@@ -521,14 +598,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
521
598
|
|
|
522
599
|
static PyObject* RemoteDesktopConnectionRemoteInfo_remove_SwitchToLocalSessionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
523
600
|
{
|
|
524
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested"))
|
|
525
|
-
{
|
|
526
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
527
|
-
return nullptr;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
601
|
try
|
|
531
602
|
{
|
|
603
|
+
static std::optional<bool> is_event_present{};
|
|
604
|
+
|
|
605
|
+
if (!is_event_present.has_value())
|
|
606
|
+
{
|
|
607
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested");
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
if (!is_event_present.value())
|
|
611
|
+
{
|
|
612
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
613
|
+
return nullptr;
|
|
614
|
+
}
|
|
615
|
+
|
|
532
616
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
533
617
|
|
|
534
618
|
self->obj.SwitchToLocalSessionRequested(param0);
|
|
@@ -594,7 +678,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
594
678
|
{ "_assign_array_", _assign_array_RemoteDesktopConnectionRemoteInfo, METH_O | METH_STATIC, nullptr },
|
|
595
679
|
{ "_from", reinterpret_cast<PyCFunction>(_from_RemoteDesktopConnectionRemoteInfo), METH_O | METH_STATIC, nullptr },
|
|
596
680
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_RemoteDesktopConnectionRemoteInfo), METH_NOARGS, nullptr },
|
|
597
|
-
{ "__exit__",
|
|
681
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteDesktopConnectionRemoteInfo), METH_VARARGS, nullptr },
|
|
598
682
|
{ }
|
|
599
683
|
};
|
|
600
684
|
|
|
@@ -602,23 +686,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
602
686
|
{ }
|
|
603
687
|
};
|
|
604
688
|
|
|
605
|
-
static PyType_Slot _type_slots_RemoteDesktopConnectionRemoteInfo[] =
|
|
606
|
-
{
|
|
689
|
+
static PyType_Slot _type_slots_RemoteDesktopConnectionRemoteInfo[] = {
|
|
607
690
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionRemoteInfo) },
|
|
608
691
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionRemoteInfo) },
|
|
609
692
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionRemoteInfo) },
|
|
610
693
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionRemoteInfo) },
|
|
611
|
-
{ }
|
|
694
|
+
{ }
|
|
612
695
|
};
|
|
613
696
|
|
|
614
|
-
static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo =
|
|
615
|
-
{
|
|
697
|
+
static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo = {
|
|
616
698
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionRemoteInfo",
|
|
617
699
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo),
|
|
618
700
|
0,
|
|
619
701
|
Py_TPFLAGS_DEFAULT,
|
|
620
|
-
_type_slots_RemoteDesktopConnectionRemoteInfo
|
|
621
|
-
};
|
|
702
|
+
_type_slots_RemoteDesktopConnectionRemoteInfo};
|
|
622
703
|
|
|
623
704
|
static PyGetSetDef getset_RemoteDesktopConnectionRemoteInfo_Static[] = {
|
|
624
705
|
{ }
|
|
@@ -665,7 +746,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
665
746
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
666
747
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
667
748
|
|
|
668
|
-
winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo instance{
|
|
749
|
+
winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo instance{param0, param1};
|
|
669
750
|
return py::wrap(instance, type);
|
|
670
751
|
}
|
|
671
752
|
catch (...)
|
|
@@ -691,14 +772,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
691
772
|
|
|
692
773
|
static PyObject* RemoteDesktopInfo_get_DisplayName(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo* self, void* /*unused*/) noexcept
|
|
693
774
|
{
|
|
694
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"DisplayName"))
|
|
695
|
-
{
|
|
696
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
697
|
-
return nullptr;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
775
|
try
|
|
701
776
|
{
|
|
777
|
+
static std::optional<bool> is_property_present{};
|
|
778
|
+
|
|
779
|
+
if (!is_property_present.has_value())
|
|
780
|
+
{
|
|
781
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"DisplayName");
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
if (!is_property_present.value())
|
|
785
|
+
{
|
|
786
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
787
|
+
return nullptr;
|
|
788
|
+
}
|
|
789
|
+
|
|
702
790
|
return py::convert(self->obj.DisplayName());
|
|
703
791
|
}
|
|
704
792
|
catch (...)
|
|
@@ -710,14 +798,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
710
798
|
|
|
711
799
|
static PyObject* RemoteDesktopInfo_get_Id(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo* self, void* /*unused*/) noexcept
|
|
712
800
|
{
|
|
713
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"Id"))
|
|
714
|
-
{
|
|
715
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
716
|
-
return nullptr;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
801
|
try
|
|
720
802
|
{
|
|
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.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"Id");
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
if (!is_property_present.value())
|
|
811
|
+
{
|
|
812
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
813
|
+
return nullptr;
|
|
814
|
+
}
|
|
815
|
+
|
|
721
816
|
return py::convert(self->obj.Id());
|
|
722
817
|
}
|
|
723
818
|
catch (...)
|
|
@@ -763,23 +858,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
763
858
|
{ }
|
|
764
859
|
};
|
|
765
860
|
|
|
766
|
-
static PyType_Slot _type_slots_RemoteDesktopInfo[] =
|
|
767
|
-
{
|
|
861
|
+
static PyType_Slot _type_slots_RemoteDesktopInfo[] = {
|
|
768
862
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopInfo) },
|
|
769
863
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopInfo) },
|
|
770
864
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopInfo) },
|
|
771
865
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopInfo) },
|
|
772
|
-
{ }
|
|
866
|
+
{ }
|
|
773
867
|
};
|
|
774
868
|
|
|
775
|
-
static PyType_Spec type_spec_RemoteDesktopInfo =
|
|
776
|
-
{
|
|
869
|
+
static PyType_Spec type_spec_RemoteDesktopInfo = {
|
|
777
870
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopInfo",
|
|
778
871
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo),
|
|
779
872
|
0,
|
|
780
873
|
Py_TPFLAGS_DEFAULT,
|
|
781
|
-
_type_slots_RemoteDesktopInfo
|
|
782
|
-
};
|
|
874
|
+
_type_slots_RemoteDesktopInfo};
|
|
783
875
|
|
|
784
876
|
// ----- RemoteDesktopRegistrar class --------------------
|
|
785
877
|
|
|
@@ -796,14 +888,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
796
888
|
|
|
797
889
|
if (arg_count == 0)
|
|
798
890
|
{
|
|
799
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"IsSwitchToLocalSessionEnabled", 0))
|
|
800
|
-
{
|
|
801
|
-
py::set_arg_count_version_error(0);
|
|
802
|
-
return nullptr;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
891
|
try
|
|
806
892
|
{
|
|
893
|
+
static std::optional<bool> is_overload_present{};
|
|
894
|
+
|
|
895
|
+
if (!is_overload_present.has_value())
|
|
896
|
+
{
|
|
897
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"IsSwitchToLocalSessionEnabled", 0);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
if (!is_overload_present.value())
|
|
901
|
+
{
|
|
902
|
+
py::set_arg_count_version_error(0);
|
|
903
|
+
return nullptr;
|
|
904
|
+
}
|
|
905
|
+
|
|
807
906
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::IsSwitchToLocalSessionEnabled());
|
|
808
907
|
}
|
|
809
908
|
catch (...)
|
|
@@ -821,14 +920,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
821
920
|
|
|
822
921
|
static PyObject* RemoteDesktopRegistrar_get_DesktopInfos(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
823
922
|
{
|
|
824
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"DesktopInfos"))
|
|
825
|
-
{
|
|
826
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
827
|
-
return nullptr;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
923
|
try
|
|
831
924
|
{
|
|
925
|
+
static std::optional<bool> is_property_present{};
|
|
926
|
+
|
|
927
|
+
if (!is_property_present.has_value())
|
|
928
|
+
{
|
|
929
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"DesktopInfos");
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
if (!is_property_present.value())
|
|
933
|
+
{
|
|
934
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
935
|
+
return nullptr;
|
|
936
|
+
}
|
|
937
|
+
|
|
832
938
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::DesktopInfos());
|
|
833
939
|
}
|
|
834
940
|
catch (...)
|
|
@@ -846,22 +952,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
846
952
|
{ }
|
|
847
953
|
};
|
|
848
954
|
|
|
849
|
-
static PyType_Slot _type_slots_RemoteDesktopRegistrar[] =
|
|
850
|
-
{
|
|
955
|
+
static PyType_Slot _type_slots_RemoteDesktopRegistrar[] = {
|
|
851
956
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopRegistrar) },
|
|
852
957
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopRegistrar) },
|
|
853
958
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopRegistrar) },
|
|
854
|
-
{ }
|
|
959
|
+
{ }
|
|
855
960
|
};
|
|
856
961
|
|
|
857
|
-
static PyType_Spec type_spec_RemoteDesktopRegistrar =
|
|
858
|
-
{
|
|
962
|
+
static PyType_Spec type_spec_RemoteDesktopRegistrar = {
|
|
859
963
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopRegistrar",
|
|
860
964
|
0,
|
|
861
965
|
0,
|
|
862
966
|
Py_TPFLAGS_DEFAULT,
|
|
863
|
-
_type_slots_RemoteDesktopRegistrar
|
|
864
|
-
};
|
|
967
|
+
_type_slots_RemoteDesktopRegistrar};
|
|
865
968
|
|
|
866
969
|
static PyGetSetDef getset_RemoteDesktopRegistrar_Static[] = {
|
|
867
970
|
{ "desktop_infos", reinterpret_cast<getter>(RemoteDesktopRegistrar_get_DesktopInfos), nullptr, nullptr, nullptr },
|
|
@@ -891,20 +994,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
891
994
|
};
|
|
892
995
|
|
|
893
996
|
// ----- Windows.System.RemoteDesktop.Provider Initialization --------------------
|
|
894
|
-
PyDoc_STRVAR(module_doc, "Windows::System::RemoteDesktop::Provider");
|
|
895
997
|
|
|
998
|
+
PyDoc_STRVAR(module_doc, "Windows.System.RemoteDesktop.Provider");
|
|
896
999
|
|
|
897
|
-
static PyModuleDef module_def
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
1000
|
+
static PyModuleDef module_def = {
|
|
1001
|
+
PyModuleDef_HEAD_INIT,
|
|
1002
|
+
"_winrt_windows_system_remotedesktop_provider",
|
|
1003
|
+
module_doc,
|
|
1004
|
+
0,
|
|
1005
|
+
nullptr,
|
|
1006
|
+
nullptr,
|
|
1007
|
+
nullptr,
|
|
1008
|
+
nullptr,
|
|
1009
|
+
nullptr};
|
|
908
1010
|
} // py::cpp::Windows::System::RemoteDesktop::Provider
|
|
909
1011
|
|
|
910
1012
|
PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcept
|
|
@@ -936,7 +1038,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
936
1038
|
return nullptr;
|
|
937
1039
|
}
|
|
938
1040
|
|
|
939
|
-
|
|
1041
|
+
py::pytype_handle PerformLocalActionRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_PerformLocalActionRequestedEventArgs, object_bases.get(), nullptr)};
|
|
1042
|
+
if (!PerformLocalActionRequestedEventArgs_type)
|
|
940
1043
|
{
|
|
941
1044
|
return nullptr;
|
|
942
1045
|
}
|
|
@@ -947,7 +1050,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
947
1050
|
return nullptr;
|
|
948
1051
|
}
|
|
949
1052
|
|
|
950
|
-
|
|
1053
|
+
py::pytype_handle RemoteDesktopConnectionInfo_type{py::register_python_type(module.get(), &type_spec_RemoteDesktopConnectionInfo, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_RemoteDesktopConnectionInfo_Static.get()))};
|
|
1054
|
+
if (!RemoteDesktopConnectionInfo_type)
|
|
951
1055
|
{
|
|
952
1056
|
return nullptr;
|
|
953
1057
|
}
|
|
@@ -958,12 +1062,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
958
1062
|
return nullptr;
|
|
959
1063
|
}
|
|
960
1064
|
|
|
961
|
-
|
|
1065
|
+
py::pytype_handle RemoteDesktopConnectionRemoteInfo_type{py::register_python_type(module.get(), &type_spec_RemoteDesktopConnectionRemoteInfo, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_RemoteDesktopConnectionRemoteInfo_Static.get()))};
|
|
1066
|
+
if (!RemoteDesktopConnectionRemoteInfo_type)
|
|
962
1067
|
{
|
|
963
1068
|
return nullptr;
|
|
964
1069
|
}
|
|
965
1070
|
|
|
966
|
-
|
|
1071
|
+
py::pytype_handle RemoteDesktopInfo_type{py::register_python_type(module.get(), &type_spec_RemoteDesktopInfo, object_bases.get(), nullptr)};
|
|
1072
|
+
if (!RemoteDesktopInfo_type)
|
|
967
1073
|
{
|
|
968
1074
|
return nullptr;
|
|
969
1075
|
}
|
|
@@ -974,7 +1080,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
974
1080
|
return nullptr;
|
|
975
1081
|
}
|
|
976
1082
|
|
|
977
|
-
|
|
1083
|
+
py::pytype_handle RemoteDesktopRegistrar_type{py::register_python_type(module.get(), &type_spec_RemoteDesktopRegistrar, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_RemoteDesktopRegistrar_Static.get()))};
|
|
1084
|
+
if (!RemoteDesktopRegistrar_type)
|
|
978
1085
|
{
|
|
979
1086
|
return nullptr;
|
|
980
1087
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,9 +9,9 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.ui
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.ui as windows_ui
|
|
15
15
|
|
|
16
16
|
from winrt.windows.system.remotedesktop.provider import RemoteDesktopConnectionStatus, RemoteDesktopLocalAction
|
|
17
17
|
|
|
@@ -26,7 +26,7 @@ class PerformLocalActionRequestedEventArgs(winrt.system.Object):
|
|
|
26
26
|
|
|
27
27
|
@typing.final
|
|
28
28
|
class RemoteDesktopConnectionInfo_Static(type):
|
|
29
|
-
def get_for_launch_uri(cls, launch_uri: typing.Optional[
|
|
29
|
+
def get_for_launch_uri(cls, launch_uri: typing.Optional[windows_foundation.Uri], window_id: windows_ui.WindowId, /) -> typing.Optional[RemoteDesktopConnectionInfo]: ...
|
|
30
30
|
|
|
31
31
|
@typing.final
|
|
32
32
|
class RemoteDesktopConnectionInfo(winrt.system.Object, metaclass=RemoteDesktopConnectionInfo_Static):
|
|
@@ -38,7 +38,7 @@ class RemoteDesktopConnectionInfo(winrt.system.Object, metaclass=RemoteDesktopCo
|
|
|
38
38
|
|
|
39
39
|
@typing.final
|
|
40
40
|
class RemoteDesktopConnectionRemoteInfo_Static(type):
|
|
41
|
-
def get_for_launch_uri(cls, launch_uri: typing.Optional[
|
|
41
|
+
def get_for_launch_uri(cls, launch_uri: typing.Optional[windows_foundation.Uri], /) -> typing.Optional[RemoteDesktopConnectionRemoteInfo]: ...
|
|
42
42
|
def is_switch_supported(cls) -> bool: ...
|
|
43
43
|
|
|
44
44
|
@typing.final
|
|
@@ -49,16 +49,16 @@ class RemoteDesktopConnectionRemoteInfo(winrt.system.Object, metaclass=RemoteDes
|
|
|
49
49
|
def _from(obj: winrt.system.Object, /) -> RemoteDesktopConnectionRemoteInfo: ...
|
|
50
50
|
def close(self) -> None: ...
|
|
51
51
|
def report_switched(self) -> None: ...
|
|
52
|
-
def add_perform_local_action_requested(self, handler:
|
|
53
|
-
def remove_perform_local_action_requested(self, token:
|
|
54
|
-
def add_switch_to_local_session_requested(self, handler:
|
|
55
|
-
def remove_switch_to_local_session_requested(self, token:
|
|
52
|
+
def add_perform_local_action_requested(self, handler: windows_foundation.TypedEventHandler[RemoteDesktopConnectionRemoteInfo, PerformLocalActionRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
53
|
+
def remove_perform_local_action_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
54
|
+
def add_switch_to_local_session_requested(self, handler: windows_foundation.TypedEventHandler[RemoteDesktopConnectionRemoteInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
55
|
+
def remove_switch_to_local_session_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
56
56
|
|
|
57
57
|
@typing.final
|
|
58
58
|
class RemoteDesktopInfo(winrt.system.Object):
|
|
59
59
|
@staticmethod
|
|
60
60
|
def _from(obj: winrt.system.Object, /) -> RemoteDesktopInfo: ...
|
|
61
|
-
def __new__(cls: typing.Type[RemoteDesktopInfo], id: str, display_name: str) -> RemoteDesktopInfo
|
|
61
|
+
def __new__(cls: typing.Type[RemoteDesktopInfo], id: str, display_name: str) -> RemoteDesktopInfo: ...
|
|
62
62
|
@_property
|
|
63
63
|
def display_name(self) -> str: ...
|
|
64
64
|
@_property
|
|
@@ -68,10 +68,9 @@ class RemoteDesktopInfo(winrt.system.Object):
|
|
|
68
68
|
class RemoteDesktopRegistrar_Static(type):
|
|
69
69
|
def is_switch_to_local_session_enabled(cls) -> bool: ...
|
|
70
70
|
@_property
|
|
71
|
-
def desktop_infos(cls) -> typing.Optional[
|
|
71
|
+
def desktop_infos(cls) -> typing.Optional[windows_foundation_collections.IVector[RemoteDesktopInfo]]: ...
|
|
72
72
|
|
|
73
73
|
@typing.final
|
|
74
74
|
class RemoteDesktopRegistrar(winrt.system.Object, metaclass=RemoteDesktopRegistrar_Static):
|
|
75
|
-
|
|
76
|
-
def _from(obj: winrt.system.Object, /) -> RemoteDesktopRegistrar: ...
|
|
75
|
+
pass
|
|
77
76
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.RemoteDesktop.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.UI[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|