winrt-Windows.System.RemoteDesktop.Provider 2.0.1__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.
Files changed (20) hide show
  1. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/PKG-INFO +5 -5
  2. winrt_windows_system_remotedesktop_provider-2.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/py.Windows.System.RemoteDesktop.Provider.cpp +135 -152
  4. winrt_windows_system_remotedesktop_provider-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt/_winrt_windows_system_remotedesktop_provider.pyi +13 -14
  7. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt/windows/system/remotedesktop/provider/__init__.py +1 -1
  8. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/PKG-INFO +5 -5
  9. winrt_windows_system_remotedesktop_provider-2.1.0/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +6 -0
  10. winrt_windows_system_remotedesktop_provider-2.0.1/all-requirements.txt +0 -5
  11. winrt_windows_system_remotedesktop_provider-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_system_remotedesktop_provider-2.0.1/winrt_Windows.System.RemoteDesktop.Provider.egg-info/requires.txt +0 -6
  13. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/README.md +0 -0
  14. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/pyproject.toml +0 -0
  15. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/setup.cfg +0 -0
  16. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/setup.py +0 -0
  17. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt/windows/system/remotedesktop/provider/py.typed +0 -0
  18. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_system_remotedesktop_provider-2.0.1 → winrt_windows_system_remotedesktop_provider-2.1.0}/winrt_Windows.System.RemoteDesktop.Provider.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_system_remotedesktop_provider-2.0.1 → 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.1
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,11 +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.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.UI[all]==2.0.1; 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"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
4
+ winrt-Windows.Foundation.Collections[all]==2.1.0
5
+ winrt-Windows.UI[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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
 
@@ -149,14 +145,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
149
145
 
150
146
  if (arg_count == 1)
151
147
  {
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
148
  try
159
149
  {
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
+
160
156
  auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopLocalAction>(args, 0);
161
157
 
162
158
  self->obj.PerformLocalActionFromRemote(param0);
@@ -181,14 +177,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
181
177
 
182
178
  if (arg_count == 1)
183
179
  {
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
180
  try
191
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
+
192
188
  auto param0 = py::convert_to<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionStatus>(args, 0);
193
189
 
194
190
  self->obj.SetConnectionStatus(param0);
@@ -213,14 +209,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
213
209
 
214
210
  if (arg_count == 0)
215
211
  {
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
212
  try
223
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
+
224
220
  self->obj.SwitchToLocalSession();
225
221
  Py_RETURN_NONE;
226
222
  }
@@ -274,23 +270,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
274
270
  { }
275
271
  };
276
272
 
277
- static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] =
278
- {
273
+ static PyType_Slot _type_slots_RemoteDesktopConnectionInfo[] = {
279
274
  { Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionInfo) },
280
275
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionInfo) },
281
276
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionInfo) },
282
277
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionInfo) },
283
- { },
278
+ { }
284
279
  };
285
280
 
286
- static PyType_Spec type_spec_RemoteDesktopConnectionInfo =
287
- {
281
+ static PyType_Spec type_spec_RemoteDesktopConnectionInfo = {
288
282
  "winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionInfo",
289
283
  sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionInfo),
290
284
  0,
291
285
  Py_TPFLAGS_DEFAULT,
292
- _type_slots_RemoteDesktopConnectionInfo
293
- };
286
+ _type_slots_RemoteDesktopConnectionInfo};
294
287
 
295
288
  static PyGetSetDef getset_RemoteDesktopConnectionInfo_Static[] = {
296
289
  { }
@@ -341,14 +334,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
341
334
 
342
335
  if (arg_count == 0)
343
336
  {
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
337
  try
351
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
+
352
345
  self->obj.Close();
353
346
  Py_RETURN_NONE;
354
347
  }
@@ -371,14 +364,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
371
364
 
372
365
  if (arg_count == 1)
373
366
  {
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
367
  try
381
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
+
382
375
  auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
383
376
 
384
377
  return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::GetForLaunchUri(param0));
@@ -402,14 +395,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
402
395
 
403
396
  if (arg_count == 0)
404
397
  {
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
398
  try
412
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
+
413
406
  return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo::IsSwitchSupported());
414
407
  }
415
408
  catch (...)
@@ -431,14 +424,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
431
424
 
432
425
  if (arg_count == 0)
433
426
  {
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
427
  try
441
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
+
442
435
  self->obj.ReportSwitched();
443
436
  Py_RETURN_NONE;
444
437
  }
@@ -457,14 +450,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
457
450
 
458
451
  static PyObject* RemoteDesktopConnectionRemoteInfo_add_PerformLocalActionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
459
452
  {
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
453
  try
467
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
+
468
461
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::System::RemoteDesktop::Provider::PerformLocalActionRequestedEventArgs>>(arg);
469
462
 
470
463
  return py::convert(self->obj.PerformLocalActionRequested(param0));
@@ -478,14 +471,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
478
471
 
479
472
  static PyObject* RemoteDesktopConnectionRemoteInfo_remove_PerformLocalActionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
480
473
  {
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
474
  try
488
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
+
489
482
  auto param0 = py::convert_to<winrt::event_token>(arg);
490
483
 
491
484
  self->obj.PerformLocalActionRequested(param0);
@@ -500,14 +493,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
500
493
 
501
494
  static PyObject* RemoteDesktopConnectionRemoteInfo_add_SwitchToLocalSessionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
502
495
  {
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
496
  try
510
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
+
511
504
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo, winrt::Windows::Foundation::IInspectable>>(arg);
512
505
 
513
506
  return py::convert(self->obj.SwitchToLocalSessionRequested(param0));
@@ -521,14 +514,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
521
514
 
522
515
  static PyObject* RemoteDesktopConnectionRemoteInfo_remove_SwitchToLocalSessionRequested(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo* self, PyObject* arg) noexcept
523
516
  {
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
517
  try
531
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
+
532
525
  auto param0 = py::convert_to<winrt::event_token>(arg);
533
526
 
534
527
  self->obj.SwitchToLocalSessionRequested(param0);
@@ -594,7 +587,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
594
587
  { "_assign_array_", _assign_array_RemoteDesktopConnectionRemoteInfo, METH_O | METH_STATIC, nullptr },
595
588
  { "_from", reinterpret_cast<PyCFunction>(_from_RemoteDesktopConnectionRemoteInfo), METH_O | METH_STATIC, nullptr },
596
589
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_RemoteDesktopConnectionRemoteInfo), METH_NOARGS, nullptr },
597
- { "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteDesktopConnectionRemoteInfo), METH_VARARGS, nullptr },
590
+ { "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteDesktopConnectionRemoteInfo), METH_VARARGS, nullptr },
598
591
  { }
599
592
  };
600
593
 
@@ -602,23 +595,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
602
595
  { }
603
596
  };
604
597
 
605
- static PyType_Slot _type_slots_RemoteDesktopConnectionRemoteInfo[] =
606
- {
598
+ static PyType_Slot _type_slots_RemoteDesktopConnectionRemoteInfo[] = {
607
599
  { Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopConnectionRemoteInfo) },
608
600
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopConnectionRemoteInfo) },
609
601
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopConnectionRemoteInfo) },
610
602
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopConnectionRemoteInfo) },
611
- { },
603
+ { }
612
604
  };
613
605
 
614
- static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo =
615
- {
606
+ static PyType_Spec type_spec_RemoteDesktopConnectionRemoteInfo = {
616
607
  "winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopConnectionRemoteInfo",
617
608
  sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopConnectionRemoteInfo),
618
609
  0,
619
610
  Py_TPFLAGS_DEFAULT,
620
- _type_slots_RemoteDesktopConnectionRemoteInfo
621
- };
611
+ _type_slots_RemoteDesktopConnectionRemoteInfo};
622
612
 
623
613
  static PyGetSetDef getset_RemoteDesktopConnectionRemoteInfo_Static[] = {
624
614
  { }
@@ -691,14 +681,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
691
681
 
692
682
  static PyObject* RemoteDesktopInfo_get_DisplayName(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo* self, void* /*unused*/) noexcept
693
683
  {
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
684
  try
701
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
+
702
692
  return py::convert(self->obj.DisplayName());
703
693
  }
704
694
  catch (...)
@@ -710,14 +700,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
710
700
 
711
701
  static PyObject* RemoteDesktopInfo_get_Id(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo* self, void* /*unused*/) noexcept
712
702
  {
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
703
  try
720
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
+
721
711
  return py::convert(self->obj.Id());
722
712
  }
723
713
  catch (...)
@@ -763,23 +753,20 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
763
753
  { }
764
754
  };
765
755
 
766
- static PyType_Slot _type_slots_RemoteDesktopInfo[] =
767
- {
756
+ static PyType_Slot _type_slots_RemoteDesktopInfo[] = {
768
757
  { Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopInfo) },
769
758
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteDesktopInfo) },
770
759
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopInfo) },
771
760
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopInfo) },
772
- { },
761
+ { }
773
762
  };
774
763
 
775
- static PyType_Spec type_spec_RemoteDesktopInfo =
776
- {
764
+ static PyType_Spec type_spec_RemoteDesktopInfo = {
777
765
  "winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopInfo",
778
766
  sizeof(py::wrapper::Windows::System::RemoteDesktop::Provider::RemoteDesktopInfo),
779
767
  0,
780
768
  Py_TPFLAGS_DEFAULT,
781
- _type_slots_RemoteDesktopInfo
782
- };
769
+ _type_slots_RemoteDesktopInfo};
783
770
 
784
771
  // ----- RemoteDesktopRegistrar class --------------------
785
772
 
@@ -796,14 +783,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
796
783
 
797
784
  if (arg_count == 0)
798
785
  {
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
786
  try
806
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
+
807
794
  return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::IsSwitchToLocalSessionEnabled());
808
795
  }
809
796
  catch (...)
@@ -821,14 +808,14 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
821
808
 
822
809
  static PyObject* RemoteDesktopRegistrar_get_DesktopInfos(PyObject* /*unused*/, void* /*unused*/) noexcept
823
810
  {
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
811
  try
831
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
+
832
819
  return py::convert(winrt::Windows::System::RemoteDesktop::Provider::RemoteDesktopRegistrar::DesktopInfos());
833
820
  }
834
821
  catch (...)
@@ -846,22 +833,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
846
833
  { }
847
834
  };
848
835
 
849
- static PyType_Slot _type_slots_RemoteDesktopRegistrar[] =
850
- {
836
+ static PyType_Slot _type_slots_RemoteDesktopRegistrar[] = {
851
837
  { Py_tp_new, reinterpret_cast<void*>(_new_RemoteDesktopRegistrar) },
852
838
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteDesktopRegistrar) },
853
839
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteDesktopRegistrar) },
854
- { },
840
+ { }
855
841
  };
856
842
 
857
- static PyType_Spec type_spec_RemoteDesktopRegistrar =
858
- {
843
+ static PyType_Spec type_spec_RemoteDesktopRegistrar = {
859
844
  "winrt._winrt_windows_system_remotedesktop_provider.RemoteDesktopRegistrar",
860
845
  0,
861
846
  0,
862
847
  Py_TPFLAGS_DEFAULT,
863
- _type_slots_RemoteDesktopRegistrar
864
- };
848
+ _type_slots_RemoteDesktopRegistrar};
865
849
 
866
850
  static PyGetSetDef getset_RemoteDesktopRegistrar_Static[] = {
867
851
  { "desktop_infos", reinterpret_cast<getter>(RemoteDesktopRegistrar_get_DesktopInfos), nullptr, nullptr, nullptr },
@@ -891,20 +875,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Provider
891
875
  };
892
876
 
893
877
  // ----- Windows.System.RemoteDesktop.Provider Initialization --------------------
894
- PyDoc_STRVAR(module_doc, "Windows::System::RemoteDesktop::Provider");
895
878
 
879
+ PyDoc_STRVAR(module_doc, "Windows.System.RemoteDesktop.Provider");
896
880
 
897
- static PyModuleDef module_def
898
- = {PyModuleDef_HEAD_INIT,
899
- "_winrt_windows_system_remotedesktop_provider",
900
- module_doc,
901
- 0,
902
- nullptr,
903
- nullptr,
904
- nullptr,
905
- nullptr,
906
- nullptr};
907
-
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};
908
891
  } // py::cpp::Windows::System::RemoteDesktop::Provider
909
892
 
910
893
  PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_provider(void) noexcept
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.1.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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,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[winrt.windows.foundation.Uri], window_id: winrt.windows.ui.WindowId, /) -> typing.Optional[RemoteDesktopConnectionInfo]: ...
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[winrt.windows.foundation.Uri], /) -> typing.Optional[RemoteDesktopConnectionRemoteInfo]: ...
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: winrt.windows.foundation.TypedEventHandler[RemoteDesktopConnectionRemoteInfo, PerformLocalActionRequestedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
53
- def remove_perform_local_action_requested(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
54
- def add_switch_to_local_session_requested(self, handler: winrt.windows.foundation.TypedEventHandler[RemoteDesktopConnectionRemoteInfo, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
55
- def remove_switch_to_local_session_requested(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> 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
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[winrt.windows.foundation.collections.IVector[RemoteDesktopInfo]]: ...
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
- @staticmethod
76
- def _from(obj: winrt.system.Object, /) -> RemoteDesktopRegistrar: ...
75
+ pass
77
76
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.RemoteDesktop.Provider
3
- Version: 2.0.1
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,11 +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.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.UI[all]==2.0.1; 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"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.Foundation.Collections[all]==2.1.0
6
+ winrt-Windows.UI[all]==2.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Foundation[all]==2.0.1
4
- winrt-Windows.Foundation.Collections[all]==2.0.1
5
- winrt-Windows.UI[all]==2.0.1
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.1
6
- winrt-Windows.UI[all]==2.0.1