winrt-Windows.System.RemoteDesktop.Provider 2.0.0b2__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/PKG-INFO +5 -1
- winrt_windows_system_remotedesktop_provider-2.1.0/all-requirements.txt +5 -0
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/py.Windows.System.RemoteDesktop.Provider.cpp +159 -143
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/pyproject.toml +2 -2
- winrt_windows_system_remotedesktop_provider-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/requirements.txt +2 -2
- winrt_windows_system_remotedesktop_provider-2.1.0/setup.py +31 -0
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt/_winrt_windows_system_remotedesktop_provider.pyi +14 -14
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt/windows/system/remotedesktop/provider/__init__.py +5 -1
- winrt_windows_system_remotedesktop_provider-2.1.0/winrt/windows/system/remotedesktop/provider/py.typed +0 -0
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/PKG-INFO +5 -1
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/SOURCES.txt +1 -0
- winrt_windows_system_remotedesktop_provider-2.1.0/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +6 -0
- winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2/all-requirements.txt +0 -5
- winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2/setup.py +0 -16
- winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +0 -6
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/README.md +0 -0
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.System.RemoteDesktop.Provider-2.0.0b2 → winrt_windows_system_remotedesktop_provider-2.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.RemoteDesktop.Provider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
7
6
|
{
|
|
8
7
|
// ----- PerformLocalActionRequestedEventArgs class --------------------
|
|
@@ -24,14 +23,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.PerformLocalActionRequestedEventArgs", L"Action"))
|
|
29
|
+
{
|
|
30
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
|
|
35
34
|
return py::convert(self->obj.Action());
|
|
36
35
|
}
|
|
37
36
|
catch (...)
|
|
@@ -76,23 +75,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
76
75
|
{ }
|
|
77
76
|
};
|
|
78
77
|
|
|
79
|
-
static PyType_Slot _type_slots_PerformLocalActionRequestedEventArgs[] =
|
|
80
|
-
{
|
|
78
|
+
static PyType_Slot _type_slots_PerformLocalActionRequestedEventArgs[] = {
|
|
81
79
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PerformLocalActionRequestedEventArgs) },
|
|
82
80
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PerformLocalActionRequestedEventArgs) },
|
|
83
81
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PerformLocalActionRequestedEventArgs) },
|
|
84
82
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PerformLocalActionRequestedEventArgs) },
|
|
85
|
-
{ }
|
|
83
|
+
{ }
|
|
86
84
|
};
|
|
87
85
|
|
|
88
|
-
static PyType_Spec type_spec_PerformLocalActionRequestedEventArgs =
|
|
89
|
-
{
|
|
86
|
+
static PyType_Spec type_spec_PerformLocalActionRequestedEventArgs = {
|
|
90
87
|
"winrt._winrt_windows_system_remotedesktop_provider.PerformLocalActionRequestedEventArgs",
|
|
91
88
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::PerformLocalActionRequestedEventArgs),
|
|
92
89
|
0,
|
|
93
90
|
Py_TPFLAGS_DEFAULT,
|
|
94
|
-
_type_slots_PerformLocalActionRequestedEventArgs
|
|
95
|
-
};
|
|
91
|
+
_type_slots_PerformLocalActionRequestedEventArgs};
|
|
96
92
|
|
|
97
93
|
// ----- RemoteDesktopConnectionInfo class --------------------
|
|
98
94
|
|
|
@@ -117,14 +113,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
117
113
|
|
|
118
114
|
if (arg_count == 2)
|
|
119
115
|
{
|
|
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
116
|
try
|
|
127
117
|
{
|
|
118
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"GetForLaunchUri", 2))
|
|
119
|
+
{
|
|
120
|
+
py::set_arg_count_version_error(2);
|
|
121
|
+
return nullptr;
|
|
122
|
+
}
|
|
123
|
+
|
|
128
124
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
129
125
|
auto param1 = py::convert_to<winrt::Windows::UI::WindowId>(args, 1);
|
|
130
126
|
|
|
@@ -143,20 +139,52 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
143
139
|
}
|
|
144
140
|
}
|
|
145
141
|
|
|
146
|
-
static PyObject*
|
|
142
|
+
static PyObject* RemoteDesktopConnectionInfo_PerformLocalActionFromRemote(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo* self, PyObject* args) noexcept
|
|
147
143
|
{
|
|
148
144
|
auto arg_count = PyTuple_Size(args);
|
|
149
145
|
|
|
150
146
|
if (arg_count == 1)
|
|
151
147
|
{
|
|
152
|
-
|
|
148
|
+
try
|
|
153
149
|
{
|
|
154
|
-
|
|
150
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"PerformLocalActionFromRemote", 1))
|
|
151
|
+
{
|
|
152
|
+
py::set_arg_count_version_error(1);
|
|
153
|
+
return nullptr;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopLocalAction>(args, 0);
|
|
157
|
+
|
|
158
|
+
self->obj.PerformLocalActionFromRemote(param0);
|
|
159
|
+
Py_RETURN_NONE;
|
|
160
|
+
}
|
|
161
|
+
catch (...)
|
|
162
|
+
{
|
|
163
|
+
py::to_PyErr();
|
|
155
164
|
return nullptr;
|
|
156
165
|
}
|
|
166
|
+
}
|
|
167
|
+
else
|
|
168
|
+
{
|
|
169
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
170
|
+
return nullptr;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
157
173
|
|
|
174
|
+
static PyObject* RemoteDesktopConnectionInfo_SetConnectionStatus(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo* self, PyObject* args) noexcept
|
|
175
|
+
{
|
|
176
|
+
auto arg_count = PyTuple_Size(args);
|
|
177
|
+
|
|
178
|
+
if (arg_count == 1)
|
|
179
|
+
{
|
|
158
180
|
try
|
|
159
181
|
{
|
|
182
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SetConnectionStatus", 1))
|
|
183
|
+
{
|
|
184
|
+
py::set_arg_count_version_error(1);
|
|
185
|
+
return nullptr;
|
|
186
|
+
}
|
|
187
|
+
|
|
160
188
|
auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionStatus>(args, 0);
|
|
161
189
|
|
|
162
190
|
self->obj.SetConnectionStatus(param0);
|
|
@@ -181,14 +209,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
181
209
|
|
|
182
210
|
if (arg_count == 0)
|
|
183
211
|
{
|
|
184
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SwitchToLocalSession", 0))
|
|
185
|
-
{
|
|
186
|
-
py::set_arg_count_version_error(0);
|
|
187
|
-
return nullptr;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
212
|
try
|
|
191
213
|
{
|
|
214
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionInfo", L"SwitchToLocalSession", 0))
|
|
215
|
+
{
|
|
216
|
+
py::set_arg_count_version_error(0);
|
|
217
|
+
return nullptr;
|
|
218
|
+
}
|
|
219
|
+
|
|
192
220
|
self->obj.SwitchToLocalSession();
|
|
193
221
|
Py_RETURN_NONE;
|
|
194
222
|
}
|
|
@@ -230,6 +258,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
230
258
|
}
|
|
231
259
|
|
|
232
260
|
static PyMethodDef _methods_RemoteDesktopConnectionInfo[] = {
|
|
261
|
+
{ "perform_local_action_from_remote", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionInfo_PerformLocalActionFromRemote), METH_VARARGS, nullptr },
|
|
233
262
|
{ "set_connection_status", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionInfo_SetConnectionStatus), METH_VARARGS, nullptr },
|
|
234
263
|
{ "switch_to_local_session", reinterpret_cast<PyCFunction>(RemoteDesktopConnectionInfo_SwitchToLocalSession), METH_VARARGS, nullptr },
|
|
235
264
|
{ "_assign_array_", _assign_array_RemoteDesktopConnectionInfo, METH_O | METH_STATIC, nullptr },
|
|
@@ -241,23 +270,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
241
270
|
{ }
|
|
242
271
|
};
|
|
243
272
|
|
|
244
|
-
static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] =
|
|
245
|
-
{
|
|
273
|
+
static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] = {
|
|
246
274
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionInfo) },
|
|
247
275
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionInfo) },
|
|
248
276
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionInfo) },
|
|
249
277
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionInfo) },
|
|
250
|
-
{ }
|
|
278
|
+
{ }
|
|
251
279
|
};
|
|
252
280
|
|
|
253
|
-
static PyType_Spec type_spec_RemoteDesktopConnectionInfo =
|
|
254
|
-
{
|
|
281
|
+
static PyType_Spec type_spec_RemoteDesktopConnectionInfo = {
|
|
255
282
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo",
|
|
256
283
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo),
|
|
257
284
|
0,
|
|
258
285
|
Py_TPFLAGS_DEFAULT,
|
|
259
|
-
_type_slots_RemoteDesktopConnectionInfo
|
|
260
|
-
};
|
|
286
|
+
_type_slots_RemoteDesktopConnectionInfo};
|
|
261
287
|
|
|
262
288
|
static PyGetSetDef getset_RemoteDesktopConnectionInfo_Static[] = {
|
|
263
289
|
{ }
|
|
@@ -308,14 +334,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
308
334
|
|
|
309
335
|
if (arg_count == 0)
|
|
310
336
|
{
|
|
311
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"Close", 0))
|
|
312
|
-
{
|
|
313
|
-
py::set_arg_count_version_error(0);
|
|
314
|
-
return nullptr;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
337
|
try
|
|
318
338
|
{
|
|
339
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"Close", 0))
|
|
340
|
+
{
|
|
341
|
+
py::set_arg_count_version_error(0);
|
|
342
|
+
return nullptr;
|
|
343
|
+
}
|
|
344
|
+
|
|
319
345
|
self->obj.Close();
|
|
320
346
|
Py_RETURN_NONE;
|
|
321
347
|
}
|
|
@@ -338,14 +364,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
338
364
|
|
|
339
365
|
if (arg_count == 1)
|
|
340
366
|
{
|
|
341
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"GetForLaunchUri", 1))
|
|
342
|
-
{
|
|
343
|
-
py::set_arg_count_version_error(1);
|
|
344
|
-
return nullptr;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
367
|
try
|
|
348
368
|
{
|
|
369
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"GetForLaunchUri", 1))
|
|
370
|
+
{
|
|
371
|
+
py::set_arg_count_version_error(1);
|
|
372
|
+
return nullptr;
|
|
373
|
+
}
|
|
374
|
+
|
|
349
375
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
350
376
|
|
|
351
377
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::GetForLaunchUri(param0));
|
|
@@ -369,14 +395,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
369
395
|
|
|
370
396
|
if (arg_count == 0)
|
|
371
397
|
{
|
|
372
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"IsSwitchSupported", 0))
|
|
373
|
-
{
|
|
374
|
-
py::set_arg_count_version_error(0);
|
|
375
|
-
return nullptr;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
398
|
try
|
|
379
399
|
{
|
|
400
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"IsSwitchSupported", 0))
|
|
401
|
+
{
|
|
402
|
+
py::set_arg_count_version_error(0);
|
|
403
|
+
return nullptr;
|
|
404
|
+
}
|
|
405
|
+
|
|
380
406
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::IsSwitchSupported());
|
|
381
407
|
}
|
|
382
408
|
catch (...)
|
|
@@ -398,14 +424,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
398
424
|
|
|
399
425
|
if (arg_count == 0)
|
|
400
426
|
{
|
|
401
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"ReportSwitched", 0))
|
|
402
|
-
{
|
|
403
|
-
py::set_arg_count_version_error(0);
|
|
404
|
-
return nullptr;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
427
|
try
|
|
408
428
|
{
|
|
429
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"ReportSwitched", 0))
|
|
430
|
+
{
|
|
431
|
+
py::set_arg_count_version_error(0);
|
|
432
|
+
return nullptr;
|
|
433
|
+
}
|
|
434
|
+
|
|
409
435
|
self->obj.ReportSwitched();
|
|
410
436
|
Py_RETURN_NONE;
|
|
411
437
|
}
|
|
@@ -424,14 +450,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
424
450
|
|
|
425
451
|
static PyObject* RemoteDesktopConnectionRemoteInfo_add_PerformLocalActionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
426
452
|
{
|
|
427
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested"))
|
|
428
|
-
{
|
|
429
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
430
|
-
return nullptr;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
453
|
try
|
|
434
454
|
{
|
|
455
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested"))
|
|
456
|
+
{
|
|
457
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
458
|
+
return nullptr;
|
|
459
|
+
}
|
|
460
|
+
|
|
435
461
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::System::RemoteDesktop::Provider::PerformLocalActionRequestedEventArgs>>(arg);
|
|
436
462
|
|
|
437
463
|
return py::convert(self->obj.PerformLocalActionRequested(param0));
|
|
@@ -445,14 +471,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
445
471
|
|
|
446
472
|
static PyObject* RemoteDesktopConnectionRemoteInfo_remove_PerformLocalActionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
447
473
|
{
|
|
448
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested"))
|
|
449
|
-
{
|
|
450
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
451
|
-
return nullptr;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
474
|
try
|
|
455
475
|
{
|
|
476
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"PerformLocalActionRequested"))
|
|
477
|
+
{
|
|
478
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
479
|
+
return nullptr;
|
|
480
|
+
}
|
|
481
|
+
|
|
456
482
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
457
483
|
|
|
458
484
|
self->obj.PerformLocalActionRequested(param0);
|
|
@@ -467,14 +493,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
467
493
|
|
|
468
494
|
static PyObject* RemoteDesktopConnectionRemoteInfo_add_SwitchToLocalSessionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
469
495
|
{
|
|
470
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested"))
|
|
471
|
-
{
|
|
472
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
473
|
-
return nullptr;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
496
|
try
|
|
477
497
|
{
|
|
498
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested"))
|
|
499
|
+
{
|
|
500
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
501
|
+
return nullptr;
|
|
502
|
+
}
|
|
503
|
+
|
|
478
504
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::Foundation::IInspectable>>(arg);
|
|
479
505
|
|
|
480
506
|
return py::convert(self->obj.SwitchToLocalSessionRequested(param0));
|
|
@@ -488,14 +514,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
488
514
|
|
|
489
515
|
static PyObject* RemoteDesktopConnectionRemoteInfo_remove_SwitchToLocalSessionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
|
|
490
516
|
{
|
|
491
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested"))
|
|
492
|
-
{
|
|
493
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
494
|
-
return nullptr;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
517
|
try
|
|
498
518
|
{
|
|
519
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopConnectionRemoteInfo", L"SwitchToLocalSessionRequested"))
|
|
520
|
+
{
|
|
521
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
522
|
+
return nullptr;
|
|
523
|
+
}
|
|
524
|
+
|
|
499
525
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
500
526
|
|
|
501
527
|
self->obj.SwitchToLocalSessionRequested(param0);
|
|
@@ -561,7 +587,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
561
587
|
{ "_assign_array_", _assign_array_RemoteDesktopConnectionRemoteInfo, METH_O | METH_STATIC, nullptr },
|
|
562
588
|
{ "_from", reinterpret_cast<PyCFunction>(_from_RemoteDesktopConnectionRemoteInfo), METH_O | METH_STATIC, nullptr },
|
|
563
589
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_RemoteDesktopConnectionRemoteInfo), METH_NOARGS, nullptr },
|
|
564
|
-
{ "__exit__",
|
|
590
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteDesktopConnectionRemoteInfo), METH_VARARGS, nullptr },
|
|
565
591
|
{ }
|
|
566
592
|
};
|
|
567
593
|
|
|
@@ -569,23 +595,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
569
595
|
{ }
|
|
570
596
|
};
|
|
571
597
|
|
|
572
|
-
static PyType_Slot _type_slots_RemoteDesktopConnectionRemoteInfo[] =
|
|
573
|
-
{
|
|
598
|
+
static PyType_Slot _type_slots_RemoteDesktopConnectionRemoteInfo[] = {
|
|
574
599
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionRemoteInfo) },
|
|
575
600
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionRemoteInfo) },
|
|
576
601
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionRemoteInfo) },
|
|
577
602
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionRemoteInfo) },
|
|
578
|
-
{ }
|
|
603
|
+
{ }
|
|
579
604
|
};
|
|
580
605
|
|
|
581
|
-
static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo =
|
|
582
|
-
{
|
|
606
|
+
static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo = {
|
|
583
607
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionRemoteInfo",
|
|
584
608
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo),
|
|
585
609
|
0,
|
|
586
610
|
Py_TPFLAGS_DEFAULT,
|
|
587
|
-
_type_slots_RemoteDesktopConnectionRemoteInfo
|
|
588
|
-
};
|
|
611
|
+
_type_slots_RemoteDesktopConnectionRemoteInfo};
|
|
589
612
|
|
|
590
613
|
static PyGetSetDef getset_RemoteDesktopConnectionRemoteInfo_Static[] = {
|
|
591
614
|
{ }
|
|
@@ -658,14 +681,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
658
681
|
|
|
659
682
|
static PyObject* RemoteDesktopInfo_get_DisplayName(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo* self, void* /*unused*/) noexcept
|
|
660
683
|
{
|
|
661
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"DisplayName"))
|
|
662
|
-
{
|
|
663
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
664
|
-
return nullptr;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
684
|
try
|
|
668
685
|
{
|
|
686
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"DisplayName"))
|
|
687
|
+
{
|
|
688
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
689
|
+
return nullptr;
|
|
690
|
+
}
|
|
691
|
+
|
|
669
692
|
return py::convert(self->obj.DisplayName());
|
|
670
693
|
}
|
|
671
694
|
catch (...)
|
|
@@ -677,14 +700,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
677
700
|
|
|
678
701
|
static PyObject* RemoteDesktopInfo_get_Id(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo* self, void* /*unused*/) noexcept
|
|
679
702
|
{
|
|
680
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"Id"))
|
|
681
|
-
{
|
|
682
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
683
|
-
return nullptr;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
703
|
try
|
|
687
704
|
{
|
|
705
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopInfo", L"Id"))
|
|
706
|
+
{
|
|
707
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
708
|
+
return nullptr;
|
|
709
|
+
}
|
|
710
|
+
|
|
688
711
|
return py::convert(self->obj.Id());
|
|
689
712
|
}
|
|
690
713
|
catch (...)
|
|
@@ -730,23 +753,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
730
753
|
{ }
|
|
731
754
|
};
|
|
732
755
|
|
|
733
|
-
static PyType_Slot _type_slots_RemoteDesktopInfo[] =
|
|
734
|
-
{
|
|
756
|
+
static PyType_Slot _type_slots_RemoteDesktopInfo[] = {
|
|
735
757
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopInfo) },
|
|
736
758
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopInfo) },
|
|
737
759
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopInfo) },
|
|
738
760
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopInfo) },
|
|
739
|
-
{ }
|
|
761
|
+
{ }
|
|
740
762
|
};
|
|
741
763
|
|
|
742
|
-
static PyType_Spec type_spec_RemoteDesktopInfo =
|
|
743
|
-
{
|
|
764
|
+
static PyType_Spec type_spec_RemoteDesktopInfo = {
|
|
744
765
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopInfo",
|
|
745
766
|
sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo),
|
|
746
767
|
0,
|
|
747
768
|
Py_TPFLAGS_DEFAULT,
|
|
748
|
-
_type_slots_RemoteDesktopInfo
|
|
749
|
-
};
|
|
769
|
+
_type_slots_RemoteDesktopInfo};
|
|
750
770
|
|
|
751
771
|
// ----- RemoteDesktopRegistrar class --------------------
|
|
752
772
|
|
|
@@ -763,14 +783,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
763
783
|
|
|
764
784
|
if (arg_count == 0)
|
|
765
785
|
{
|
|
766
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"IsSwitchToLocalSessionEnabled", 0))
|
|
767
|
-
{
|
|
768
|
-
py::set_arg_count_version_error(0);
|
|
769
|
-
return nullptr;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
786
|
try
|
|
773
787
|
{
|
|
788
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"IsSwitchToLocalSessionEnabled", 0))
|
|
789
|
+
{
|
|
790
|
+
py::set_arg_count_version_error(0);
|
|
791
|
+
return nullptr;
|
|
792
|
+
}
|
|
793
|
+
|
|
774
794
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::IsSwitchToLocalSessionEnabled());
|
|
775
795
|
}
|
|
776
796
|
catch (...)
|
|
@@ -788,14 +808,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
788
808
|
|
|
789
809
|
static PyObject* RemoteDesktopRegistrar_get_DesktopInfos(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
790
810
|
{
|
|
791
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"DesktopInfos"))
|
|
792
|
-
{
|
|
793
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
794
|
-
return nullptr;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
811
|
try
|
|
798
812
|
{
|
|
813
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Provider.RemoteDesktopRegistrar", L"DesktopInfos"))
|
|
814
|
+
{
|
|
815
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
816
|
+
return nullptr;
|
|
817
|
+
}
|
|
818
|
+
|
|
799
819
|
return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::DesktopInfos());
|
|
800
820
|
}
|
|
801
821
|
catch (...)
|
|
@@ -813,22 +833,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
813
833
|
{ }
|
|
814
834
|
};
|
|
815
835
|
|
|
816
|
-
static PyType_Slot _type_slots_RemoteDesktopRegistrar[] =
|
|
817
|
-
{
|
|
836
|
+
static PyType_Slot _type_slots_RemoteDesktopRegistrar[] = {
|
|
818
837
|
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopRegistrar) },
|
|
819
838
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopRegistrar) },
|
|
820
839
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopRegistrar) },
|
|
821
|
-
{ }
|
|
840
|
+
{ }
|
|
822
841
|
};
|
|
823
842
|
|
|
824
|
-
static PyType_Spec type_spec_RemoteDesktopRegistrar =
|
|
825
|
-
{
|
|
843
|
+
static PyType_Spec type_spec_RemoteDesktopRegistrar = {
|
|
826
844
|
"winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopRegistrar",
|
|
827
845
|
0,
|
|
828
846
|
0,
|
|
829
847
|
Py_TPFLAGS_DEFAULT,
|
|
830
|
-
_type_slots_RemoteDesktopRegistrar
|
|
831
|
-
};
|
|
848
|
+
_type_slots_RemoteDesktopRegistrar};
|
|
832
849
|
|
|
833
850
|
static PyGetSetDef getset_RemoteDesktopRegistrar_Static[] = {
|
|
834
851
|
{ "desktop_infos", reinterpret_cast<getter>(RemoteDesktopRegistrar_get_DesktopInfos), nullptr, nullptr, nullptr },
|
|
@@ -858,20 +875,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
|
|
|
858
875
|
};
|
|
859
876
|
|
|
860
877
|
// ----- Windows.System.RemoteDesktop.Provider Initialization --------------------
|
|
861
|
-
PyDoc_STRVAR(module_doc, "Windows::System::RemoteDesktop::Provider");
|
|
862
878
|
|
|
879
|
+
PyDoc_STRVAR(module_doc, "Windows.System.RemoteDesktop.Provider");
|
|
863
880
|
|
|
864
|
-
static PyModuleDef module_def
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
881
|
+
static PyModuleDef module_def = {
|
|
882
|
+
PyModuleDef_HEAD_INIT,
|
|
883
|
+
"_winrt_windows_system_remotedesktop_provider",
|
|
884
|
+
module_doc,
|
|
885
|
+
0,
|
|
886
|
+
nullptr,
|
|
887
|
+
nullptr,
|
|
888
|
+
nullptr,
|
|
889
|
+
nullptr,
|
|
890
|
+
nullptr};
|
|
875
891
|
} // py::cpp::Windows::System::RemoteDesktop::Provider
|
|
876
892
|
|
|
877
893
|
PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_system_remotedesktop_provider",
|
|
26
|
+
sources=["py.Windows.System.RemoteDesktop.Provider.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,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,18 +26,19 @@ 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):
|
|
33
33
|
@staticmethod
|
|
34
34
|
def _from(obj: winrt.system.Object, /) -> RemoteDesktopConnectionInfo: ...
|
|
35
|
+
def perform_local_action_from_remote(self, action: RemoteDesktopLocalAction, /) -> None: ...
|
|
35
36
|
def set_connection_status(self, value: RemoteDesktopConnectionStatus, /) -> None: ...
|
|
36
37
|
def switch_to_local_session(self) -> None: ...
|
|
37
38
|
|
|
38
39
|
@typing.final
|
|
39
40
|
class RemoteDesktopConnectionRemoteInfo_Static(type):
|
|
40
|
-
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]: ...
|
|
41
42
|
def is_switch_supported(cls) -> bool: ...
|
|
42
43
|
|
|
43
44
|
@typing.final
|
|
@@ -48,16 +49,16 @@ class RemoteDesktopConnectionRemoteInfo(winrt.system.Object, metaclass=RemoteDes
|
|
|
48
49
|
def _from(obj: winrt.system.Object, /) -> RemoteDesktopConnectionRemoteInfo: ...
|
|
49
50
|
def close(self) -> None: ...
|
|
50
51
|
def report_switched(self) -> None: ...
|
|
51
|
-
def add_perform_local_action_requested(self, handler:
|
|
52
|
-
def remove_perform_local_action_requested(self, token:
|
|
53
|
-
def add_switch_to_local_session_requested(self, handler:
|
|
54
|
-
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: ...
|
|
55
56
|
|
|
56
57
|
@typing.final
|
|
57
58
|
class RemoteDesktopInfo(winrt.system.Object):
|
|
58
59
|
@staticmethod
|
|
59
60
|
def _from(obj: winrt.system.Object, /) -> RemoteDesktopInfo: ...
|
|
60
|
-
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: ...
|
|
61
62
|
@_property
|
|
62
63
|
def display_name(self) -> str: ...
|
|
63
64
|
@_property
|
|
@@ -67,10 +68,9 @@ class RemoteDesktopInfo(winrt.system.Object):
|
|
|
67
68
|
class RemoteDesktopRegistrar_Static(type):
|
|
68
69
|
def is_switch_to_local_session_enabled(cls) -> bool: ...
|
|
69
70
|
@_property
|
|
70
|
-
def desktop_infos(cls) -> typing.Optional[
|
|
71
|
+
def desktop_infos(cls) -> typing.Optional[windows_foundation_collections.IVector[RemoteDesktopInfo]]: ...
|
|
71
72
|
|
|
72
73
|
@typing.final
|
|
73
74
|
class RemoteDesktopRegistrar(winrt.system.Object, metaclass=RemoteDesktopRegistrar_Static):
|
|
74
|
-
|
|
75
|
-
def _from(obj: winrt.system.Object, /) -> RemoteDesktopRegistrar: ...
|
|
75
|
+
pass
|
|
76
76
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
@@ -23,6 +23,10 @@ class RemoteDesktopConnectionStatus(enum.IntEnum):
|
|
|
23
23
|
|
|
24
24
|
class RemoteDesktopLocalAction(enum.IntEnum):
|
|
25
25
|
SHOW_BLUETOOTH_SETTINGS = 0
|
|
26
|
+
SHOW_SYSTEM_SOUND_SETTINGS = 1
|
|
27
|
+
SHOW_SYSTEM_DISPLAY_SETTINGS = 2
|
|
28
|
+
SHOW_SYSTEM_ACCOUNT_SETTINGS = 3
|
|
29
|
+
SHOW_LOCAL_SETTINGS = 4
|
|
26
30
|
|
|
27
31
|
PerformLocalActionRequestedEventArgs = _winrt_windows_system_remotedesktop_provider.PerformLocalActionRequestedEventArgs
|
|
28
32
|
RemoteDesktopConnectionInfo = _winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo
|
|
File without changes
|
|
@@ -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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_system_remotedesktop_provider.pyi
|
|
9
9
|
winrt/windows/system/remotedesktop/provider/__init__.py
|
|
10
|
+
winrt/windows/system/remotedesktop/provider/py.typed
|
|
10
11
|
winrt_Windows.System.RemoteDesktop.Provider.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.System.RemoteDesktop.Provider.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.System.RemoteDesktop.Provider.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_system_remotedesktop_provider",
|
|
10
|
-
sources=["py.Windows.System.RemoteDesktop.Provider.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|