winrt-Windows.System.RemoteDesktop.Provider 2.3.0__tar.gz → 3.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_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/PKG-INFO +8 -8
- winrt_windows_system_remotedesktop_provider-3.1.0/all-requirements.txt +5 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/py.Windows.System.RemoteDesktop.Provider.cpp +158 -89
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/pyproject.toml +4 -4
- winrt_windows_system_remotedesktop_provider-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/requirements.txt +2 -2
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/setup.py +1 -1
- winrt_windows_system_remotedesktop_provider-3.1.0/winrt/_winrt_windows_system_remotedesktop_provider.pyi +85 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/winrt/windows/system/remotedesktop/provider/__init__.py +8 -7
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/PKG-INFO +8 -8
- winrt_windows_system_remotedesktop_provider-3.1.0/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +6 -0
- winrt_windows_system_remotedesktop_provider-2.3.0/all-requirements.txt +0 -5
- winrt_windows_system_remotedesktop_provider-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_system_remotedesktop_provider-2.3.0/winrt/_winrt_windows_system_remotedesktop_provider.pyi +0 -76
- winrt_windows_system_remotedesktop_provider-2.3.0/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +0 -6
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/README.md +0 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/setup.cfg +0 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/winrt/windows/system/remotedesktop/provider/py.typed +0 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_remotedesktop_provider-2.3.0 → winrt_windows_system_remotedesktop_provider-3.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.RemoteDesktop.Provider
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.UI[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==3.1.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.RemoteDesktop.Provider.h"
|
|
4
4
|
|
|
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
38
38
|
return nullptr;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
return py::convert(
|
|
41
|
+
return py::convert([&]()
|
|
42
|
+
{
|
|
43
|
+
auto _gil = release_gil();
|
|
44
|
+
return self->obj.Action();
|
|
45
|
+
}());
|
|
42
46
|
}
|
|
43
47
|
catch (...)
|
|
44
48
|
{
|
|
@@ -74,21 +78,18 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
74
78
|
static PyMethodDef _methods_PerformLocalActionRequestedEventArgs[] = {
|
|
75
79
|
{ "_assign_array_", _assign_array_PerformLocalActionRequestedEventArgs, METH_O | METH_STATIC, nullptr },
|
|
76
80
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PerformLocalActionRequestedEventArgs), METH_O | METH_STATIC, nullptr },
|
|
77
|
-
{ }
|
|
78
|
-
};
|
|
81
|
+
{ }};
|
|
79
82
|
|
|
80
83
|
static PyGetSetDef _getset_PerformLocalActionRequestedEventArgs[] = {
|
|
81
84
|
{ "action", reinterpret_cast<getter>(PerformLocalActionRequestedEventArgs_get_Action), nullptr, nullptr, nullptr },
|
|
82
|
-
{ }
|
|
83
|
-
};
|
|
85
|
+
{ }};
|
|
84
86
|
|
|
85
87
|
static PyType_Slot _type_slots_PerformLocalActionRequestedEventArgs[] = {
|
|
86
88
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PerformLocalActionRequestedEventArgs) },
|
|
87
89
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PerformLocalActionRequestedEventArgs) },
|
|
88
90
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PerformLocalActionRequestedEventArgs) },
|
|
89
91
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PerformLocalActionRequestedEventArgs) },
|
|
90
|
-
{ }
|
|
91
|
-
};
|
|
92
|
+
{ }};
|
|
92
93
|
|
|
93
94
|
static PyType_Spec type_spec_PerformLocalActionRequestedEventArgs = {
|
|
94
95
|
"winrt._winrt_windows_system_remotedesktop_provider.PerformLocalActionRequestedEventArgs",
|
|
@@ -116,7 +117,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
116
117
|
|
|
117
118
|
static PyObject* RemoteDesktopConnectionInfo_GetForLaunchUri(PyObject* /*unused*/, PyObject* args) noexcept
|
|
118
119
|
{
|
|
119
|
-
auto arg_count =
|
|
120
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
120
121
|
|
|
121
122
|
if (arg_count == 2)
|
|
122
123
|
{
|
|
@@ -138,7 +139,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
138
139
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
139
140
|
auto param1 = py::convert_to<winrt::Windows::UI::WindowId>(args, 1);
|
|
140
141
|
|
|
141
|
-
return py::convert(
|
|
142
|
+
return py::convert([&]()
|
|
143
|
+
{
|
|
144
|
+
auto _gil = release_gil();
|
|
145
|
+
return winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo::GetForLaunchUri(param0, param1);
|
|
146
|
+
}());
|
|
142
147
|
}
|
|
143
148
|
catch (...)
|
|
144
149
|
{
|
|
@@ -155,7 +160,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
155
160
|
|
|
156
161
|
static PyObject* RemoteDesktopConnectionInfo_PerformLocalActionFromRemote(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo* self, PyObject* args) noexcept
|
|
157
162
|
{
|
|
158
|
-
auto arg_count =
|
|
163
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
159
164
|
|
|
160
165
|
if (arg_count == 1)
|
|
161
166
|
{
|
|
@@ -176,7 +181,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
176
181
|
|
|
177
182
|
auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopLocalAction>(args, 0);
|
|
178
183
|
|
|
179
|
-
|
|
184
|
+
{
|
|
185
|
+
auto _gil = release_gil();
|
|
186
|
+
self->obj.PerformLocalActionFromRemote(param0);
|
|
187
|
+
}
|
|
188
|
+
|
|
180
189
|
Py_RETURN_NONE;
|
|
181
190
|
}
|
|
182
191
|
catch (...)
|
|
@@ -194,7 +203,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
194
203
|
|
|
195
204
|
static PyObject* RemoteDesktopConnectionInfo_SetConnectionStatus(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo* self, PyObject* args) noexcept
|
|
196
205
|
{
|
|
197
|
-
auto arg_count =
|
|
206
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
198
207
|
|
|
199
208
|
if (arg_count == 1)
|
|
200
209
|
{
|
|
@@ -215,7 +224,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
215
224
|
|
|
216
225
|
auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionStatus>(args, 0);
|
|
217
226
|
|
|
218
|
-
|
|
227
|
+
{
|
|
228
|
+
auto _gil = release_gil();
|
|
229
|
+
self->obj.SetConnectionStatus(param0);
|
|
230
|
+
}
|
|
231
|
+
|
|
219
232
|
Py_RETURN_NONE;
|
|
220
233
|
}
|
|
221
234
|
catch (...)
|
|
@@ -233,7 +246,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
233
246
|
|
|
234
247
|
static PyObject* RemoteDesktopConnectionInfo_SwitchToLocalSession(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo* self, PyObject* args) noexcept
|
|
235
248
|
{
|
|
236
|
-
auto arg_count =
|
|
249
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
237
250
|
|
|
238
251
|
if (arg_count == 0)
|
|
239
252
|
{
|
|
@@ -252,7 +265,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
252
265
|
return nullptr;
|
|
253
266
|
}
|
|
254
267
|
|
|
255
|
-
|
|
268
|
+
{
|
|
269
|
+
auto _gil = release_gil();
|
|
270
|
+
self->obj.SwitchToLocalSession();
|
|
271
|
+
}
|
|
272
|
+
|
|
256
273
|
Py_RETURN_NONE;
|
|
257
274
|
}
|
|
258
275
|
catch (...)
|
|
@@ -298,20 +315,17 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
298
315
|
{ "switch_to_local_session", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionInfo_SwitchToLocalSession), METH_VARARGS, nullptr },
|
|
299
316
|
{ "_assign_array_", _assign_array_RemoteDesktopConnectionInfo, METH_O | METH_STATIC, nullptr },
|
|
300
317
|
{ "_from", reinterpret_cast<PyCFunction>(_from_RemoteDesktopConnectionInfo), METH_O | METH_STATIC, nullptr },
|
|
301
|
-
{ }
|
|
302
|
-
};
|
|
318
|
+
{ }};
|
|
303
319
|
|
|
304
320
|
static PyGetSetDef _getset_RemoteDesktopConnectionInfo[] = {
|
|
305
|
-
{ }
|
|
306
|
-
};
|
|
321
|
+
{ }};
|
|
307
322
|
|
|
308
323
|
static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] = {
|
|
309
324
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionInfo) },
|
|
310
325
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionInfo) },
|
|
311
326
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionInfo) },
|
|
312
327
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionInfo) },
|
|
313
|
-
{ }
|
|
314
|
-
};
|
|
328
|
+
{ }};
|
|
315
329
|
|
|
316
330
|
static PyType_Spec type_spec_RemoteDesktopConnectionInfo = {
|
|
317
331
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo",
|
|
@@ -321,13 +335,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
321
335
|
_type_slots_RemoteDesktopConnectionInfo};
|
|
322
336
|
|
|
323
337
|
static PyGetSetDef getset_RemoteDesktopConnectionInfo_Static[] = {
|
|
324
|
-
{ }
|
|
325
|
-
};
|
|
338
|
+
{ }};
|
|
326
339
|
|
|
327
340
|
static PyMethodDef methods_RemoteDesktopConnectionInfo_Static[] = {
|
|
328
341
|
{ "get_for_launch_uri", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionInfo_GetForLaunchUri), METH_VARARGS, nullptr },
|
|
329
|
-
{ }
|
|
330
|
-
};
|
|
342
|
+
{ }};
|
|
331
343
|
|
|
332
344
|
static PyType_Slot type_slots_RemoteDesktopConnectionInfo_Static[] =
|
|
333
345
|
{
|
|
@@ -337,14 +349,12 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
337
349
|
{ }
|
|
338
350
|
};
|
|
339
351
|
|
|
340
|
-
static PyType_Spec type_spec_RemoteDesktopConnectionInfo_Static =
|
|
341
|
-
{
|
|
352
|
+
static PyType_Spec type_spec_RemoteDesktopConnectionInfo_Static = {
|
|
342
353
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo_Static",
|
|
343
354
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
344
355
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
345
356
|
Py_TPFLAGS_DEFAULT,
|
|
346
|
-
type_slots_RemoteDesktopConnectionInfo_Static
|
|
347
|
-
};
|
|
357
|
+
type_slots_RemoteDesktopConnectionInfo_Static};
|
|
348
358
|
|
|
349
359
|
// ----- RemoteDesktopConnectionRemoteInfo class --------------------
|
|
350
360
|
|
|
@@ -365,7 +375,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
365
375
|
|
|
366
376
|
static PyObject* RemoteDesktopConnectionRemoteInfo_Close(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* args) noexcept
|
|
367
377
|
{
|
|
368
|
-
auto arg_count =
|
|
378
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
369
379
|
|
|
370
380
|
if (arg_count == 0)
|
|
371
381
|
{
|
|
@@ -384,7 +394,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
384
394
|
return nullptr;
|
|
385
395
|
}
|
|
386
396
|
|
|
387
|
-
|
|
397
|
+
{
|
|
398
|
+
auto _gil = release_gil();
|
|
399
|
+
self->obj.Close();
|
|
400
|
+
}
|
|
401
|
+
|
|
388
402
|
Py_RETURN_NONE;
|
|
389
403
|
}
|
|
390
404
|
catch (...)
|
|
@@ -402,7 +416,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
402
416
|
|
|
403
417
|
static PyObject* RemoteDesktopConnectionRemoteInfo_GetForLaunchUri(PyObject* /*unused*/, PyObject* args) noexcept
|
|
404
418
|
{
|
|
405
|
-
auto arg_count =
|
|
419
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
406
420
|
|
|
407
421
|
if (arg_count == 1)
|
|
408
422
|
{
|
|
@@ -423,7 +437,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
423
437
|
|
|
424
438
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
425
439
|
|
|
426
|
-
return py::convert(
|
|
440
|
+
return py::convert([&]()
|
|
441
|
+
{
|
|
442
|
+
auto _gil = release_gil();
|
|
443
|
+
return winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::GetForLaunchUri(param0);
|
|
444
|
+
}());
|
|
427
445
|
}
|
|
428
446
|
catch (...)
|
|
429
447
|
{
|
|
@@ -440,7 +458,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
440
458
|
|
|
441
459
|
static PyObject* RemoteDesktopConnectionRemoteInfo_IsSwitchSupported(PyObject* /*unused*/, PyObject* args) noexcept
|
|
442
460
|
{
|
|
443
|
-
auto arg_count =
|
|
461
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
444
462
|
|
|
445
463
|
if (arg_count == 0)
|
|
446
464
|
{
|
|
@@ -459,7 +477,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
459
477
|
return nullptr;
|
|
460
478
|
}
|
|
461
479
|
|
|
462
|
-
return py::convert(
|
|
480
|
+
return py::convert([&]()
|
|
481
|
+
{
|
|
482
|
+
auto _gil = release_gil();
|
|
483
|
+
return winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::IsSwitchSupported();
|
|
484
|
+
}());
|
|
463
485
|
}
|
|
464
486
|
catch (...)
|
|
465
487
|
{
|
|
@@ -476,7 +498,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
476
498
|
|
|
477
499
|
static PyObject* RemoteDesktopConnectionRemoteInfo_ReportSwitched(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* args) noexcept
|
|
478
500
|
{
|
|
479
|
-
auto arg_count =
|
|
501
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
480
502
|
|
|
481
503
|
if (arg_count == 0)
|
|
482
504
|
{
|
|
@@ -495,7 +517,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
495
517
|
return nullptr;
|
|
496
518
|
}
|
|
497
519
|
|
|
498
|
-
|
|
520
|
+
{
|
|
521
|
+
auto _gil = release_gil();
|
|
522
|
+
self->obj.ReportSwitched();
|
|
523
|
+
}
|
|
524
|
+
|
|
499
525
|
Py_RETURN_NONE;
|
|
500
526
|
}
|
|
501
527
|
catch (...)
|
|
@@ -530,7 +556,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
530
556
|
|
|
531
557
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::System::RemoteDesktop::Provider::PerformLocalActionRequestedEventArgs>>(arg);
|
|
532
558
|
|
|
533
|
-
return py::convert(
|
|
559
|
+
return py::convert([&]()
|
|
560
|
+
{
|
|
561
|
+
auto _gil = release_gil();
|
|
562
|
+
return self->obj.PerformLocalActionRequested(param0);
|
|
563
|
+
}());
|
|
534
564
|
}
|
|
535
565
|
catch (...)
|
|
536
566
|
{
|
|
@@ -558,7 +588,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
558
588
|
|
|
559
589
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
560
590
|
|
|
561
|
-
|
|
591
|
+
{
|
|
592
|
+
auto _gil = release_gil();
|
|
593
|
+
self->obj.PerformLocalActionRequested(param0);
|
|
594
|
+
}
|
|
595
|
+
|
|
562
596
|
Py_RETURN_NONE;
|
|
563
597
|
}
|
|
564
598
|
catch (...)
|
|
@@ -587,7 +621,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
587
621
|
|
|
588
622
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
589
623
|
|
|
590
|
-
return py::convert(
|
|
624
|
+
return py::convert([&]()
|
|
625
|
+
{
|
|
626
|
+
auto _gil = release_gil();
|
|
627
|
+
return self->obj.SwitchToLocalSessionRequested(param0);
|
|
628
|
+
}());
|
|
591
629
|
}
|
|
592
630
|
catch (...)
|
|
593
631
|
{
|
|
@@ -615,7 +653,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
615
653
|
|
|
616
654
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
617
655
|
|
|
618
|
-
|
|
656
|
+
{
|
|
657
|
+
auto _gil = release_gil();
|
|
658
|
+
self->obj.SwitchToLocalSessionRequested(param0);
|
|
659
|
+
}
|
|
660
|
+
|
|
619
661
|
Py_RETURN_NONE;
|
|
620
662
|
}
|
|
621
663
|
catch (...)
|
|
@@ -658,7 +700,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
658
700
|
{
|
|
659
701
|
try
|
|
660
702
|
{
|
|
661
|
-
|
|
703
|
+
{
|
|
704
|
+
auto _gil = py::release_gil();
|
|
705
|
+
self->obj.Close();
|
|
706
|
+
}
|
|
707
|
+
|
|
662
708
|
Py_RETURN_FALSE;
|
|
663
709
|
}
|
|
664
710
|
catch (...)
|
|
@@ -679,20 +725,17 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
679
725
|
{ "_from", reinterpret_cast<PyCFunction>(_from_RemoteDesktopConnectionRemoteInfo), METH_O | METH_STATIC, nullptr },
|
|
680
726
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_RemoteDesktopConnectionRemoteInfo), METH_NOARGS, nullptr },
|
|
681
727
|
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteDesktopConnectionRemoteInfo), METH_VARARGS, nullptr },
|
|
682
|
-
{ }
|
|
683
|
-
};
|
|
728
|
+
{ }};
|
|
684
729
|
|
|
685
730
|
static PyGetSetDef _getset_RemoteDesktopConnectionRemoteInfo[] = {
|
|
686
|
-
{ }
|
|
687
|
-
};
|
|
731
|
+
{ }};
|
|
688
732
|
|
|
689
733
|
static PyType_Slot _type_slots_RemoteDesktopConnectionRemoteInfo[] = {
|
|
690
734
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionRemoteInfo) },
|
|
691
735
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionRemoteInfo) },
|
|
692
736
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionRemoteInfo) },
|
|
693
737
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionRemoteInfo) },
|
|
694
|
-
{ }
|
|
695
|
-
};
|
|
738
|
+
{ }};
|
|
696
739
|
|
|
697
740
|
static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo = {
|
|
698
741
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionRemoteInfo",
|
|
@@ -702,14 +745,12 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
702
745
|
_type_slots_RemoteDesktopConnectionRemoteInfo};
|
|
703
746
|
|
|
704
747
|
static PyGetSetDef getset_RemoteDesktopConnectionRemoteInfo_Static[] = {
|
|
705
|
-
{ }
|
|
706
|
-
};
|
|
748
|
+
{ }};
|
|
707
749
|
|
|
708
750
|
static PyMethodDef methods_RemoteDesktopConnectionRemoteInfo_Static[] = {
|
|
709
751
|
{ "get_for_launch_uri", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionRemoteInfo_GetForLaunchUri), METH_VARARGS, nullptr },
|
|
710
752
|
{ "is_switch_supported", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionRemoteInfo_IsSwitchSupported), METH_VARARGS, nullptr },
|
|
711
|
-
{ }
|
|
712
|
-
};
|
|
753
|
+
{ }};
|
|
713
754
|
|
|
714
755
|
static PyType_Slot type_slots_RemoteDesktopConnectionRemoteInfo_Static[] =
|
|
715
756
|
{
|
|
@@ -719,26 +760,24 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
719
760
|
{ }
|
|
720
761
|
};
|
|
721
762
|
|
|
722
|
-
static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo_Static =
|
|
723
|
-
{
|
|
763
|
+
static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo_Static = {
|
|
724
764
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionRemoteInfo_Static",
|
|
725
765
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
726
766
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
727
767
|
Py_TPFLAGS_DEFAULT,
|
|
728
|
-
type_slots_RemoteDesktopConnectionRemoteInfo_Static
|
|
729
|
-
};
|
|
768
|
+
type_slots_RemoteDesktopConnectionRemoteInfo_Static};
|
|
730
769
|
|
|
731
770
|
// ----- RemoteDesktopInfo class --------------------
|
|
732
771
|
|
|
733
772
|
static PyObject* _new_RemoteDesktopInfo(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
734
773
|
{
|
|
735
|
-
if (kwds
|
|
774
|
+
if (kwds)
|
|
736
775
|
{
|
|
737
776
|
py::set_invalid_kwd_args_error();
|
|
738
777
|
return nullptr;
|
|
739
778
|
}
|
|
740
779
|
|
|
741
|
-
auto arg_count =
|
|
780
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
742
781
|
if (arg_count == 2)
|
|
743
782
|
{
|
|
744
783
|
try
|
|
@@ -787,7 +826,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
787
826
|
return nullptr;
|
|
788
827
|
}
|
|
789
828
|
|
|
790
|
-
return py::convert(
|
|
829
|
+
return py::convert([&]()
|
|
830
|
+
{
|
|
831
|
+
auto _gil = release_gil();
|
|
832
|
+
return self->obj.DisplayName();
|
|
833
|
+
}());
|
|
791
834
|
}
|
|
792
835
|
catch (...)
|
|
793
836
|
{
|
|
@@ -813,7 +856,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
813
856
|
return nullptr;
|
|
814
857
|
}
|
|
815
858
|
|
|
816
|
-
return py::convert(
|
|
859
|
+
return py::convert([&]()
|
|
860
|
+
{
|
|
861
|
+
auto _gil = release_gil();
|
|
862
|
+
return self->obj.Id();
|
|
863
|
+
}());
|
|
817
864
|
}
|
|
818
865
|
catch (...)
|
|
819
866
|
{
|
|
@@ -849,22 +896,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
849
896
|
static PyMethodDef _methods_RemoteDesktopInfo[] = {
|
|
850
897
|
{ "_assign_array_", _assign_array_RemoteDesktopInfo, METH_O | METH_STATIC, nullptr },
|
|
851
898
|
{ "_from", reinterpret_cast<PyCFunction>(_from_RemoteDesktopInfo), METH_O | METH_STATIC, nullptr },
|
|
852
|
-
{ }
|
|
853
|
-
};
|
|
899
|
+
{ }};
|
|
854
900
|
|
|
855
901
|
static PyGetSetDef _getset_RemoteDesktopInfo[] = {
|
|
856
902
|
{ "display_name", reinterpret_cast<getter>(RemoteDesktopInfo_get_DisplayName), nullptr, nullptr, nullptr },
|
|
857
903
|
{ "id", reinterpret_cast<getter>(RemoteDesktopInfo_get_Id), nullptr, nullptr, nullptr },
|
|
858
|
-
{ }
|
|
859
|
-
};
|
|
904
|
+
{ }};
|
|
860
905
|
|
|
861
906
|
static PyType_Slot _type_slots_RemoteDesktopInfo[] = {
|
|
862
907
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopInfo) },
|
|
863
908
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopInfo) },
|
|
864
909
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopInfo) },
|
|
865
910
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopInfo) },
|
|
866
|
-
{ }
|
|
867
|
-
};
|
|
911
|
+
{ }};
|
|
868
912
|
|
|
869
913
|
static PyType_Spec type_spec_RemoteDesktopInfo = {
|
|
870
914
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopInfo",
|
|
@@ -884,7 +928,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
884
928
|
|
|
885
929
|
static PyObject* RemoteDesktopRegistrar_IsSwitchToLocalSessionEnabled(PyObject* /*unused*/, PyObject* args) noexcept
|
|
886
930
|
{
|
|
887
|
-
auto arg_count =
|
|
931
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
888
932
|
|
|
889
933
|
if (arg_count == 0)
|
|
890
934
|
{
|
|
@@ -903,7 +947,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
903
947
|
return nullptr;
|
|
904
948
|
}
|
|
905
949
|
|
|
906
|
-
return py::convert(
|
|
950
|
+
return py::convert([&]()
|
|
951
|
+
{
|
|
952
|
+
auto _gil = release_gil();
|
|
953
|
+
return winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::IsSwitchToLocalSessionEnabled();
|
|
954
|
+
}());
|
|
907
955
|
}
|
|
908
956
|
catch (...)
|
|
909
957
|
{
|
|
@@ -935,7 +983,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
935
983
|
return nullptr;
|
|
936
984
|
}
|
|
937
985
|
|
|
938
|
-
return py::convert(
|
|
986
|
+
return py::convert([&]()
|
|
987
|
+
{
|
|
988
|
+
auto _gil = release_gil();
|
|
989
|
+
return winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::DesktopInfos();
|
|
990
|
+
}());
|
|
939
991
|
}
|
|
940
992
|
catch (...)
|
|
941
993
|
{
|
|
@@ -945,19 +997,16 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
945
997
|
}
|
|
946
998
|
|
|
947
999
|
static PyMethodDef _methods_RemoteDesktopRegistrar[] = {
|
|
948
|
-
{ }
|
|
949
|
-
};
|
|
1000
|
+
{ }};
|
|
950
1001
|
|
|
951
1002
|
static PyGetSetDef _getset_RemoteDesktopRegistrar[] = {
|
|
952
|
-
{ }
|
|
953
|
-
};
|
|
1003
|
+
{ }};
|
|
954
1004
|
|
|
955
1005
|
static PyType_Slot _type_slots_RemoteDesktopRegistrar[] = {
|
|
956
1006
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopRegistrar) },
|
|
957
1007
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopRegistrar) },
|
|
958
1008
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopRegistrar) },
|
|
959
|
-
{ }
|
|
960
|
-
};
|
|
1009
|
+
{ }};
|
|
961
1010
|
|
|
962
1011
|
static PyType_Spec type_spec_RemoteDesktopRegistrar = {
|
|
963
1012
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopRegistrar",
|
|
@@ -968,13 +1017,11 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
968
1017
|
|
|
969
1018
|
static PyGetSetDef getset_RemoteDesktopRegistrar_Static[] = {
|
|
970
1019
|
{ "desktop_infos", reinterpret_cast<getter>(RemoteDesktopRegistrar_get_DesktopInfos), nullptr, nullptr, nullptr },
|
|
971
|
-
{ }
|
|
972
|
-
};
|
|
1020
|
+
{ }};
|
|
973
1021
|
|
|
974
1022
|
static PyMethodDef methods_RemoteDesktopRegistrar_Static[] = {
|
|
975
1023
|
{ "is_switch_to_local_session_enabled", reinterpret_cast<PyCFunction>(RemoteDesktopRegistrar_IsSwitchToLocalSessionEnabled), METH_VARARGS, nullptr },
|
|
976
|
-
{ }
|
|
977
|
-
};
|
|
1024
|
+
{ }};
|
|
978
1025
|
|
|
979
1026
|
static PyType_Slot type_slots_RemoteDesktopRegistrar_Static[] =
|
|
980
1027
|
{
|
|
@@ -984,14 +1031,12 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
984
1031
|
{ }
|
|
985
1032
|
};
|
|
986
1033
|
|
|
987
|
-
static PyType_Spec type_spec_RemoteDesktopRegistrar_Static =
|
|
988
|
-
{
|
|
1034
|
+
static PyType_Spec type_spec_RemoteDesktopRegistrar_Static = {
|
|
989
1035
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopRegistrar_Static",
|
|
990
1036
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
991
1037
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
992
1038
|
Py_TPFLAGS_DEFAULT,
|
|
993
|
-
type_slots_RemoteDesktopRegistrar_Static
|
|
994
|
-
};
|
|
1039
|
+
type_slots_RemoteDesktopRegistrar_Static};
|
|
995
1040
|
|
|
996
1041
|
// ----- Windows.System.RemoteDesktop.Provider Initialization --------------------
|
|
997
1042
|
|
|
@@ -1025,6 +1070,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
1025
1070
|
return nullptr;
|
|
1026
1071
|
}
|
|
1027
1072
|
|
|
1073
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1074
|
+
if (!inspectable_meta_type)
|
|
1075
|
+
{
|
|
1076
|
+
return nullptr;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1028
1079
|
auto object_type = py::get_object_type();
|
|
1029
1080
|
if (!object_type)
|
|
1030
1081
|
{
|
|
@@ -1038,13 +1089,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
1038
1089
|
return nullptr;
|
|
1039
1090
|
}
|
|
1040
1091
|
|
|
1041
|
-
py::pytype_handle PerformLocalActionRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_PerformLocalActionRequestedEventArgs, object_bases.get(),
|
|
1092
|
+
py::pytype_handle PerformLocalActionRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_PerformLocalActionRequestedEventArgs, object_bases.get(), inspectable_meta_type)};
|
|
1042
1093
|
if (!PerformLocalActionRequestedEventArgs_type)
|
|
1043
1094
|
{
|
|
1044
1095
|
return nullptr;
|
|
1045
1096
|
}
|
|
1046
1097
|
|
|
1047
|
-
py::pyobj_handle
|
|
1098
|
+
py::pyobj_handle RemoteDesktopConnectionInfo_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1099
|
+
if (!RemoteDesktopConnectionInfo_Static_bases)
|
|
1100
|
+
{
|
|
1101
|
+
return nullptr;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
py::pyobj_handle type_RemoteDesktopConnectionInfo_Static{PyType_FromSpecWithBases(&type_spec_RemoteDesktopConnectionInfo_Static, RemoteDesktopConnectionInfo_Static_bases.get())};
|
|
1048
1105
|
if (!type_RemoteDesktopConnectionInfo_Static)
|
|
1049
1106
|
{
|
|
1050
1107
|
return nullptr;
|
|
@@ -1056,7 +1113,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
1056
1113
|
return nullptr;
|
|
1057
1114
|
}
|
|
1058
1115
|
|
|
1059
|
-
py::pyobj_handle
|
|
1116
|
+
py::pyobj_handle RemoteDesktopConnectionRemoteInfo_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1117
|
+
if (!RemoteDesktopConnectionRemoteInfo_Static_bases)
|
|
1118
|
+
{
|
|
1119
|
+
return nullptr;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
py::pyobj_handle type_RemoteDesktopConnectionRemoteInfo_Static{PyType_FromSpecWithBases(&type_spec_RemoteDesktopConnectionRemoteInfo_Static, RemoteDesktopConnectionRemoteInfo_Static_bases.get())};
|
|
1060
1123
|
if (!type_RemoteDesktopConnectionRemoteInfo_Static)
|
|
1061
1124
|
{
|
|
1062
1125
|
return nullptr;
|
|
@@ -1068,13 +1131,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcep
|
|
|
1068
1131
|
return nullptr;
|
|
1069
1132
|
}
|
|
1070
1133
|
|
|
1071
|
-
py::pytype_handle RemoteDesktopInfo_type{py::register_python_type(module.get(), &type_spec_RemoteDesktopInfo, object_bases.get(),
|
|
1134
|
+
py::pytype_handle RemoteDesktopInfo_type{py::register_python_type(module.get(), &type_spec_RemoteDesktopInfo, object_bases.get(), inspectable_meta_type)};
|
|
1072
1135
|
if (!RemoteDesktopInfo_type)
|
|
1073
1136
|
{
|
|
1074
1137
|
return nullptr;
|
|
1075
1138
|
}
|
|
1076
1139
|
|
|
1077
|
-
py::pyobj_handle
|
|
1140
|
+
py::pyobj_handle RemoteDesktopRegistrar_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1141
|
+
if (!RemoteDesktopRegistrar_Static_bases)
|
|
1142
|
+
{
|
|
1143
|
+
return nullptr;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
py::pyobj_handle type_RemoteDesktopRegistrar_Static{PyType_FromSpecWithBases(&type_spec_RemoteDesktopRegistrar_Static, RemoteDesktopRegistrar_Static_bases.get())};
|
|
1078
1147
|
if (!type_RemoteDesktopRegistrar_Static)
|
|
1079
1148
|
{
|
|
1080
1149
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.System.RemoteDesktop.Provider"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
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
|
+
|
|
16
|
+
from winrt.windows.system.remotedesktop.provider import RemoteDesktopConnectionStatus, RemoteDesktopLocalAction
|
|
17
|
+
|
|
18
|
+
Self = typing.TypeVar('Self')
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class PerformLocalActionRequestedEventArgs(winrt.system.Object):
|
|
22
|
+
# Windows.System.RemoteDesktop.Provider.RemoteDesktopLocalAction Windows.System.RemoteDesktop.Provider.PerformLocalActionRequestedEventArgs::get_Action()
|
|
23
|
+
@_property
|
|
24
|
+
def action(self) -> RemoteDesktopLocalAction: ...
|
|
25
|
+
|
|
26
|
+
@typing.final
|
|
27
|
+
class RemoteDesktopConnectionInfo_Static(winrt._winrt.IInspectable_Static):
|
|
28
|
+
# Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo::GetForLaunchUri(Windows.Foundation.Uri,Windows.UI.WindowId)
|
|
29
|
+
def get_for_launch_uri(cls, launch_uri: windows_foundation.Uri, window_id: typing.Union[windows_ui.WindowId, typing.Tuple[winrt.system.UInt64]], /) -> RemoteDesktopConnectionInfo: ...
|
|
30
|
+
|
|
31
|
+
@typing.final
|
|
32
|
+
class RemoteDesktopConnectionInfo(winrt.system.Object, metaclass=RemoteDesktopConnectionInfo_Static):
|
|
33
|
+
# System.Void Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo::PerformLocalActionFromRemote(Windows.System.RemoteDesktop.Provider.RemoteDesktopLocalAction)
|
|
34
|
+
def perform_local_action_from_remote(self, action: RemoteDesktopLocalAction, /) -> None: ...
|
|
35
|
+
# System.Void Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo::SetConnectionStatus(Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionStatus)
|
|
36
|
+
def set_connection_status(self, value: RemoteDesktopConnectionStatus, /) -> None: ...
|
|
37
|
+
# System.Void Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo::SwitchToLocalSession()
|
|
38
|
+
def switch_to_local_session(self) -> None: ...
|
|
39
|
+
|
|
40
|
+
@typing.final
|
|
41
|
+
class RemoteDesktopConnectionRemoteInfo_Static(winrt._winrt.IInspectable_Static):
|
|
42
|
+
# Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::GetForLaunchUri(Windows.Foundation.Uri)
|
|
43
|
+
def get_for_launch_uri(cls, launch_uri: windows_foundation.Uri, /) -> RemoteDesktopConnectionRemoteInfo: ...
|
|
44
|
+
# System.Boolean Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::IsSwitchSupported()
|
|
45
|
+
def is_switch_supported(cls) -> bool: ...
|
|
46
|
+
|
|
47
|
+
@typing.final
|
|
48
|
+
class RemoteDesktopConnectionRemoteInfo(winrt.system.Object, windows_foundation.IClosable, metaclass=RemoteDesktopConnectionRemoteInfo_Static):
|
|
49
|
+
def __enter__(self: Self) -> Self: ...
|
|
50
|
+
def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
|
|
51
|
+
# System.Void Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::Close()
|
|
52
|
+
def close(self) -> None: ...
|
|
53
|
+
# System.Void Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::ReportSwitched()
|
|
54
|
+
def report_switched(self) -> None: ...
|
|
55
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::add_PerformLocalActionRequested(Windows.Foundation.TypedEventHandler`2<Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo,Windows.System.RemoteDesktop.Provider.PerformLocalActionRequestedEventArgs>)
|
|
56
|
+
def add_perform_local_action_requested(self, handler: windows_foundation.TypedEventHandler[RemoteDesktopConnectionRemoteInfo, PerformLocalActionRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
57
|
+
# System.Void Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::remove_PerformLocalActionRequested(Windows.Foundation.EventRegistrationToken)
|
|
58
|
+
def remove_perform_local_action_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
59
|
+
# Windows.Foundation.EventRegistrationToken Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::add_SwitchToLocalSessionRequested(Windows.Foundation.TypedEventHandler`2<Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo,System.Object>)
|
|
60
|
+
def add_switch_to_local_session_requested(self, handler: windows_foundation.TypedEventHandler[RemoteDesktopConnectionRemoteInfo, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
|
|
61
|
+
# System.Void Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo::remove_SwitchToLocalSessionRequested(Windows.Foundation.EventRegistrationToken)
|
|
62
|
+
def remove_switch_to_local_session_requested(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
63
|
+
|
|
64
|
+
@typing.final
|
|
65
|
+
class RemoteDesktopInfo(winrt.system.Object):
|
|
66
|
+
def __new__(cls: typing.Type[Self], id: str, display_name: str) -> Self: ...
|
|
67
|
+
# System.String Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo::get_DisplayName()
|
|
68
|
+
@_property
|
|
69
|
+
def display_name(self) -> str: ...
|
|
70
|
+
# System.String Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo::get_Id()
|
|
71
|
+
@_property
|
|
72
|
+
def id(self) -> str: ...
|
|
73
|
+
|
|
74
|
+
@typing.final
|
|
75
|
+
class RemoteDesktopRegistrar_Static(winrt._winrt.IInspectable_Static):
|
|
76
|
+
# System.Boolean Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar::IsSwitchToLocalSessionEnabled()
|
|
77
|
+
def is_switch_to_local_session_enabled(cls) -> bool: ...
|
|
78
|
+
# Windows.Foundation.Collections.IVector`1<Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo> Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar::get_DesktopInfos()
|
|
79
|
+
@_property
|
|
80
|
+
def desktop_infos(cls) -> typing.MutableSequence[RemoteDesktopInfo]: ...
|
|
81
|
+
|
|
82
|
+
@typing.final
|
|
83
|
+
class RemoteDesktopRegistrar(winrt.system.Object, metaclass=RemoteDesktopRegistrar_Static):
|
|
84
|
+
pass
|
|
85
|
+
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_system_remotedesktop_provider import (
|
|
7
|
+
PerformLocalActionRequestedEventArgs,
|
|
8
|
+
RemoteDesktopConnectionInfo,
|
|
9
|
+
RemoteDesktopConnectionRemoteInfo,
|
|
10
|
+
RemoteDesktopInfo,
|
|
11
|
+
RemoteDesktopRegistrar,
|
|
12
|
+
)
|
|
7
13
|
|
|
8
14
|
__all__ = [
|
|
9
15
|
"RemoteDesktopConnectionStatus",
|
|
@@ -28,8 +34,3 @@ class RemoteDesktopLocalAction(enum.IntEnum):
|
|
|
28
34
|
SHOW_SYSTEM_ACCOUNT_SETTINGS = 3
|
|
29
35
|
SHOW_LOCAL_SETTINGS = 4
|
|
30
36
|
|
|
31
|
-
PerformLocalActionRequestedEventArgs = _winrt_windows_system_remotedesktop_provider.PerformLocalActionRequestedEventArgs
|
|
32
|
-
RemoteDesktopConnectionInfo = _winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo
|
|
33
|
-
RemoteDesktopConnectionRemoteInfo = _winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionRemoteInfo
|
|
34
|
-
RemoteDesktopInfo = _winrt_windows_system_remotedesktop_provider.RemoteDesktopInfo
|
|
35
|
-
RemoteDesktopRegistrar = _winrt_windows_system_remotedesktop_provider.RemoteDesktopRegistrar
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.System.RemoteDesktop.Provider
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.UI[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==3.1.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.3.0
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
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
|
-
|
|
16
|
-
from winrt.windows.system.remotedesktop.provider import RemoteDesktopConnectionStatus, RemoteDesktopLocalAction
|
|
17
|
-
|
|
18
|
-
Self = typing.TypeVar('Self')
|
|
19
|
-
|
|
20
|
-
@typing.final
|
|
21
|
-
class PerformLocalActionRequestedEventArgs(winrt.system.Object):
|
|
22
|
-
@staticmethod
|
|
23
|
-
def _from(obj: winrt.system.Object, /) -> PerformLocalActionRequestedEventArgs: ...
|
|
24
|
-
@_property
|
|
25
|
-
def action(self) -> RemoteDesktopLocalAction: ...
|
|
26
|
-
|
|
27
|
-
@typing.final
|
|
28
|
-
class RemoteDesktopConnectionInfo_Static(type):
|
|
29
|
-
def get_for_launch_uri(cls, launch_uri: typing.Optional[windows_foundation.Uri], window_id: windows_ui.WindowId, /) -> typing.Optional[RemoteDesktopConnectionInfo]: ...
|
|
30
|
-
|
|
31
|
-
@typing.final
|
|
32
|
-
class RemoteDesktopConnectionInfo(winrt.system.Object, metaclass=RemoteDesktopConnectionInfo_Static):
|
|
33
|
-
@staticmethod
|
|
34
|
-
def _from(obj: winrt.system.Object, /) -> RemoteDesktopConnectionInfo: ...
|
|
35
|
-
def perform_local_action_from_remote(self, action: RemoteDesktopLocalAction, /) -> None: ...
|
|
36
|
-
def set_connection_status(self, value: RemoteDesktopConnectionStatus, /) -> None: ...
|
|
37
|
-
def switch_to_local_session(self) -> None: ...
|
|
38
|
-
|
|
39
|
-
@typing.final
|
|
40
|
-
class RemoteDesktopConnectionRemoteInfo_Static(type):
|
|
41
|
-
def get_for_launch_uri(cls, launch_uri: typing.Optional[windows_foundation.Uri], /) -> typing.Optional[RemoteDesktopConnectionRemoteInfo]: ...
|
|
42
|
-
def is_switch_supported(cls) -> bool: ...
|
|
43
|
-
|
|
44
|
-
@typing.final
|
|
45
|
-
class RemoteDesktopConnectionRemoteInfo(winrt.system.Object, metaclass=RemoteDesktopConnectionRemoteInfo_Static):
|
|
46
|
-
def __enter__(self: Self) -> Self: ...
|
|
47
|
-
def __exit__(self, *args) -> None: ...
|
|
48
|
-
@staticmethod
|
|
49
|
-
def _from(obj: winrt.system.Object, /) -> RemoteDesktopConnectionRemoteInfo: ...
|
|
50
|
-
def close(self) -> None: ...
|
|
51
|
-
def report_switched(self) -> None: ...
|
|
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
|
-
|
|
57
|
-
@typing.final
|
|
58
|
-
class RemoteDesktopInfo(winrt.system.Object):
|
|
59
|
-
@staticmethod
|
|
60
|
-
def _from(obj: winrt.system.Object, /) -> RemoteDesktopInfo: ...
|
|
61
|
-
def __new__(cls: typing.Type[RemoteDesktopInfo], id: str, display_name: str) -> RemoteDesktopInfo: ...
|
|
62
|
-
@_property
|
|
63
|
-
def display_name(self) -> str: ...
|
|
64
|
-
@_property
|
|
65
|
-
def id(self) -> str: ...
|
|
66
|
-
|
|
67
|
-
@typing.final
|
|
68
|
-
class RemoteDesktopRegistrar_Static(type):
|
|
69
|
-
def is_switch_to_local_session_enabled(cls) -> bool: ...
|
|
70
|
-
@_property
|
|
71
|
-
def desktop_infos(cls) -> typing.Optional[windows_foundation_collections.IVector[RemoteDesktopInfo]]: ...
|
|
72
|
-
|
|
73
|
-
@typing.final
|
|
74
|
-
class RemoteDesktopRegistrar(winrt.system.Object, metaclass=RemoteDesktopRegistrar_Static):
|
|
75
|
-
pass
|
|
76
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|