winrt-Windows.System.RemoteDesktop.Input 3.2.0__tar.gz → 4!10.0.28000.2705__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_input-4!10.0.28000.2705/.gitignore +5 -0
- winrt_windows_system_remotedesktop_input-4!10.0.28000.2705/LICENSE +22 -0
- winrt_windows_system_remotedesktop_input-4!10.0.28000.2705/PKG-INFO +44 -0
- winrt_windows_system_remotedesktop_input-4!10.0.28000.2705/README.md +17 -0
- winrt_windows_system_remotedesktop_input-4!10.0.28000.2705/pyproject.toml +56 -0
- winrt_windows_system_remotedesktop_input-4!10.0.28000.2705/winrt/windows/system/remotedesktop/input/__init__.py +17 -0
- winrt_windows_system_remotedesktop_input-4!10.0.28000.2705/winrt/windows/system/remotedesktop/input/__init__.pyi +55 -0
- winrt_windows_system_remotedesktop_input-4!10.0.28000.2705/winrt/windows/system/remotedesktop/input/_table.pywinrt.txt +83 -0
- winrt_windows_system_remotedesktop_input-3.2.0/PKG-INFO +0 -23
- winrt_windows_system_remotedesktop_input-3.2.0/README.md +0 -7
- winrt_windows_system_remotedesktop_input-3.2.0/py.Windows.System.RemoteDesktop.Input.cpp +0 -485
- winrt_windows_system_remotedesktop_input-3.2.0/pyproject.toml +0 -46
- winrt_windows_system_remotedesktop_input-3.2.0/pywinrt-version.txt +0 -1
- winrt_windows_system_remotedesktop_input-3.2.0/requirements.txt +0 -3
- winrt_windows_system_remotedesktop_input-3.2.0/setup.cfg +0 -4
- winrt_windows_system_remotedesktop_input-3.2.0/setup.py +0 -33
- winrt_windows_system_remotedesktop_input-3.2.0/winrt/_winrt_windows_system_remotedesktop_input.pyi +0 -43
- winrt_windows_system_remotedesktop_input-3.2.0/winrt/windows/system/remotedesktop/input/__init__.py +0 -30
- winrt_windows_system_remotedesktop_input-3.2.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/PKG-INFO +0 -23
- winrt_windows_system_remotedesktop_input-3.2.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/SOURCES.txt +0 -14
- winrt_windows_system_remotedesktop_input-3.2.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/dependency_links.txt +0 -1
- winrt_windows_system_remotedesktop_input-3.2.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/requires.txt +0 -1
- winrt_windows_system_remotedesktop_input-3.2.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/top_level.txt +0 -1
- {winrt_windows_system_remotedesktop_input-3.2.0 → winrt_windows_system_remotedesktop_input-4!10.0.28000.2705}/winrt/windows/system/remotedesktop/input/py.typed +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: winrt-Windows.System.RemoteDesktop.Input
|
|
3
|
+
Version: 4!10.0.28000.2705
|
|
4
|
+
Summary: PyWinRT projection of the Windows.System.RemoteDesktop.Input namespace
|
|
5
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
6
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: winrt-runtime<5,>=4.0.0
|
|
23
|
+
Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
|
|
24
|
+
Provides-Extra: all
|
|
25
|
+
Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
29
|
+
|
|
30
|
+
# winrt-Windows.System.RemoteDesktop.Input
|
|
31
|
+
|
|
32
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.RemoteDesktop.Input` namespace.
|
|
33
|
+
|
|
34
|
+
This package provides the `winrt.windows.system.remotedesktop.input` module.
|
|
35
|
+
|
|
36
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
37
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
pip install winrt-Windows.System.RemoteDesktop.Input
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
44
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.System.RemoteDesktop.Input
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.RemoteDesktop.Input` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.system.remotedesktop.input` module.
|
|
8
|
+
|
|
9
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
10
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
pip install winrt-Windows.System.RemoteDesktop.Input
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
17
|
+
each namespace your code imports from.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["hatchling", "winrt-table-compiler>=4.0.0,<5"]
|
|
5
|
+
build-backend = "hatchling.build"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.System.RemoteDesktop.Input"
|
|
9
|
+
version = "4!10.0.28000.2705"
|
|
10
|
+
description = "PyWinRT projection of the Windows.System.RemoteDesktop.Input namespace"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
license = "MIT"
|
|
13
|
+
license-files = ["LICENSE"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Operating System :: Microsoft :: Windows",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Programming Language :: Python :: 3.13",
|
|
20
|
+
"Programming Language :: Python :: 3.14",
|
|
21
|
+
"Programming Language :: Python :: 3.15",
|
|
22
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"Programming Language :: Python :: Free Threading :: 2 - Beta",
|
|
25
|
+
"Typing :: Typed",
|
|
26
|
+
]
|
|
27
|
+
requires-python = ">=3.11"
|
|
28
|
+
dependencies = [
|
|
29
|
+
"winrt-runtime>=4.0.0,<5",
|
|
30
|
+
"winrt-Windows.Foundation>=4!10.0.28000.2705",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.optional-dependencies]
|
|
34
|
+
all = [
|
|
35
|
+
"winrt-Windows.Foundation[all]>=4!10.0.28000.2705",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Documentation = "https://pywinrt.readthedocs.io"
|
|
40
|
+
Repository = "https://github.com/pywinrt/pywinrt"
|
|
41
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.sdist]
|
|
44
|
+
# The text form of the table is what the source distribution carries, and the
|
|
45
|
+
# compiled form is build output wherever it turns up. Hatchling reads no
|
|
46
|
+
# .gitignore above the package, so it has to be told about the latter.
|
|
47
|
+
only-include = ["winrt", "LICENSE", "README.md"]
|
|
48
|
+
exclude = ["**/_table.pywinrt"]
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.wheel]
|
|
51
|
+
packages = ["winrt"]
|
|
52
|
+
exclude = ["**/_table.pywinrt.txt"]
|
|
53
|
+
|
|
54
|
+
# winrt.table.build_hooks in winrt-table-compiler, which compiles each table
|
|
55
|
+
# the package carries and puts the result beside the __init__.py that loads it.
|
|
56
|
+
[tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import winrt.runtime._internals
|
|
6
|
+
import winrt.system
|
|
7
|
+
|
|
8
|
+
winrt.runtime._internals.load_projection(__spec__)
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"RemoteKeyEventAttributes",
|
|
12
|
+
"RemoteTextConnectionOptions",
|
|
13
|
+
"RemoteTextConnection",
|
|
14
|
+
"RemoteTextConnectionDataHandler",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
RemoteTextConnectionDataHandler = typing.Callable[[winrt.system.Array[winrt.system.UInt8]], bool]
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import types
|
|
5
|
+
import typing
|
|
6
|
+
import uuid as _uuid
|
|
7
|
+
from builtins import property as _property
|
|
8
|
+
|
|
9
|
+
import winrt.system
|
|
10
|
+
import winrt.windows.foundation as windows_foundation
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"RemoteKeyEventAttributes",
|
|
14
|
+
"RemoteTextConnectionOptions",
|
|
15
|
+
"RemoteTextConnection",
|
|
16
|
+
"RemoteTextConnectionDataHandler",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
class RemoteKeyEventAttributes(enum.IntFlag):
|
|
20
|
+
NONE = 0x0
|
|
21
|
+
KEY_UP = 0x1
|
|
22
|
+
REPEAT = 0x2
|
|
23
|
+
EXTENDED = 0x4
|
|
24
|
+
EXTENDED1 = 0x8
|
|
25
|
+
|
|
26
|
+
class RemoteTextConnectionOptions(enum.IntFlag):
|
|
27
|
+
NONE = 0x0
|
|
28
|
+
ENABLE_PREDICTED_KEY_REPORTING = 0x1
|
|
29
|
+
|
|
30
|
+
@typing.final
|
|
31
|
+
class RemoteTextConnection(windows_foundation.IClosable, winrt.system.Object):
|
|
32
|
+
def __enter__(self) -> typing.Self: ...
|
|
33
|
+
def __exit__(self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None: ...
|
|
34
|
+
@typing.overload
|
|
35
|
+
def __new__(cls, connection_id: _uuid.UUID, pdu_forwarder: RemoteTextConnectionDataHandler, options: RemoteTextConnectionOptions, /) -> typing.Self: ...
|
|
36
|
+
@typing.overload
|
|
37
|
+
def __new__(cls, connection_id: _uuid.UUID, pdu_forwarder: RemoteTextConnectionDataHandler, /) -> typing.Self: ...
|
|
38
|
+
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::Close()
|
|
39
|
+
def close(self) -> None: ...
|
|
40
|
+
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::RegisterThread(System.UInt32)
|
|
41
|
+
def register_thread(self, thread_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> None: ...
|
|
42
|
+
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::ReportDataReceived(System.Byte[])
|
|
43
|
+
def report_data_received(self, pdu_data: winrt.system.Array[winrt.system.UInt8] | winrt.system.ReadableBuffer, /) -> None: ...
|
|
44
|
+
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::ReportPredictedKeyEvent(System.UInt16,Windows.System.RemoteDesktop.Input.RemoteKeyEventAttributes)
|
|
45
|
+
def report_predicted_key_event(self, scan_code: winrt.system.UInt16 | typing.SupportsIndex, attributes: RemoteKeyEventAttributes, /) -> None: ...
|
|
46
|
+
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::UnregisterThread(System.UInt32)
|
|
47
|
+
def unregister_thread(self, thread_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> None: ...
|
|
48
|
+
# System.Boolean Windows.System.RemoteDesktop.Input.RemoteTextConnection::get_IsEnabled()
|
|
49
|
+
@_property
|
|
50
|
+
def is_enabled(self) -> bool: ...
|
|
51
|
+
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::put_IsEnabled(System.Boolean)
|
|
52
|
+
@is_enabled.setter
|
|
53
|
+
def is_enabled(self, value: bool) -> None: ...
|
|
54
|
+
|
|
55
|
+
type RemoteTextConnectionDataHandler = typing.Callable[[winrt.system.Array[winrt.system.UInt8]], bool]
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
format 4.0
|
|
2
|
+
census 2e30db26-66c8-4551-85b9-a537376d8f99 1
|
|
3
|
+
namespace Windows.System.RemoteDesktop.Input
|
|
4
|
+
|
|
5
|
+
interface Windows.System.RemoteDesktop.Input.IRemoteTextConnection
|
|
6
|
+
guid 4e7bb02a-183e-5e66-b5e4-3e6e5c570cf1
|
|
7
|
+
|
|
8
|
+
interface Windows.System.RemoteDesktop.Input.IRemoteTextConnection2
|
|
9
|
+
guid 05f99345-84c8-56c5-934f-73ea00f8c2d5
|
|
10
|
+
|
|
11
|
+
interface Windows.System.RemoteDesktop.Input.IRemoteTextConnectionFactory
|
|
12
|
+
guid 88e075c2-0cae-596c-850f-78d345cd728b
|
|
13
|
+
|
|
14
|
+
interface Windows.System.RemoteDesktop.Input.IRemoteTextConnectionFactory2
|
|
15
|
+
guid 9425c7d9-ed9b-5d00-99cc-b0b8dc9e4c60
|
|
16
|
+
|
|
17
|
+
enum Windows.System.RemoteDesktop.Input.RemoteKeyEventAttributes python_type flags_enum
|
|
18
|
+
py RemoteKeyEventAttributes
|
|
19
|
+
signature enum(Windows.System.RemoteDesktop.Input.RemoteKeyEventAttributes;u4)
|
|
20
|
+
constant NONE 0x0
|
|
21
|
+
constant KEY_UP 0x1
|
|
22
|
+
constant REPEAT 0x2
|
|
23
|
+
constant EXTENDED 0x4
|
|
24
|
+
constant EXTENDED1 0x8
|
|
25
|
+
|
|
26
|
+
class Windows.System.RemoteDesktop.Input.RemoteTextConnection python_type closeable
|
|
27
|
+
py RemoteTextConnection
|
|
28
|
+
signature rc(Windows.System.RemoteDesktop.Input.RemoteTextConnection;{4e7bb02a-183e-5e66-b5e4-3e6e5c570cf1})
|
|
29
|
+
default Windows.System.RemoteDesktop.Input.IRemoteTextConnection
|
|
30
|
+
requires Windows.System.RemoteDesktop.Input.IRemoteTextConnection
|
|
31
|
+
requires Windows.System.RemoteDesktop.Input.IRemoteTextConnection2
|
|
32
|
+
requires Windows.Foundation.IClosable
|
|
33
|
+
factory Windows.System.RemoteDesktop.Input.IRemoteTextConnectionFactory
|
|
34
|
+
factory Windows.System.RemoteDesktop.Input.IRemoteTextConnectionFactory2
|
|
35
|
+
constructor -
|
|
36
|
+
ctor .ctor slot=6 inputs=2 outputs=1 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnectionFactory shape=177
|
|
37
|
+
in guid name=connectionId
|
|
38
|
+
in delegate type=Windows.System.RemoteDesktop.Input.RemoteTextConnectionDataHandler name=pduForwarder
|
|
39
|
+
out class type=Windows.System.RemoteDesktop.Input.RemoteTextConnection return
|
|
40
|
+
ctor .ctor slot=6 inputs=3 outputs=1 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnectionFactory2 shape=231
|
|
41
|
+
in guid name=connectionId
|
|
42
|
+
in delegate type=Windows.System.RemoteDesktop.Input.RemoteTextConnectionDataHandler name=pduForwarder
|
|
43
|
+
in enum_u32 type=Windows.System.RemoteDesktop.Input.RemoteTextConnectionOptions name=options
|
|
44
|
+
out class type=Windows.System.RemoteDesktop.Input.RemoteTextConnection return
|
|
45
|
+
property is_enabled
|
|
46
|
+
get get_IsEnabled slot=6 inputs=0 outputs=1 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnection shape=4
|
|
47
|
+
out boolean return
|
|
48
|
+
put put_IsEnabled slot=7 inputs=1 outputs=0 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnection shape=4
|
|
49
|
+
in boolean name=value
|
|
50
|
+
method close
|
|
51
|
+
method Close slot=6 inputs=0 outputs=0 declaring=Windows.Foundation.IClosable shape=0 reverse=16 role=close
|
|
52
|
+
method register_thread
|
|
53
|
+
method RegisterThread slot=8 inputs=1 outputs=0 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnection shape=4
|
|
54
|
+
in uint32 name=threadId
|
|
55
|
+
method report_data_received
|
|
56
|
+
method ReportDataReceived slot=10 inputs=1 outputs=0 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnection shape=51
|
|
57
|
+
pass_array uint8 name=pduData
|
|
58
|
+
method report_predicted_key_event
|
|
59
|
+
method ReportPredictedKeyEvent slot=6 inputs=2 outputs=0 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnection2 shape=51
|
|
60
|
+
in uint16 name=scanCode
|
|
61
|
+
in enum_u32 type=Windows.System.RemoteDesktop.Input.RemoteKeyEventAttributes name=attributes
|
|
62
|
+
method unregister_thread
|
|
63
|
+
method UnregisterThread slot=9 inputs=1 outputs=0 declaring=Windows.System.RemoteDesktop.Input.IRemoteTextConnection shape=4
|
|
64
|
+
in uint32 name=threadId
|
|
65
|
+
|
|
66
|
+
delegate Windows.System.RemoteDesktop.Input.RemoteTextConnectionDataHandler python_type
|
|
67
|
+
py RemoteTextConnectionDataHandler
|
|
68
|
+
guid 099ffbc8-8bcb-41b5-b056-57e77021bf1b
|
|
69
|
+
signature delegate({099ffbc8-8bcb-41b5-b056-57e77021bf1b})
|
|
70
|
+
method -
|
|
71
|
+
method Invoke slot=3 inputs=1 outputs=1 shape=117 reverse=5
|
|
72
|
+
pass_array uint8 name=pduData
|
|
73
|
+
out boolean return
|
|
74
|
+
|
|
75
|
+
enum Windows.System.RemoteDesktop.Input.RemoteTextConnectionOptions python_type flags_enum
|
|
76
|
+
py RemoteTextConnectionOptions
|
|
77
|
+
signature enum(Windows.System.RemoteDesktop.Input.RemoteTextConnectionOptions;u4)
|
|
78
|
+
constant NONE 0x0
|
|
79
|
+
constant ENABLE_PREDICTED_KEY_REPORTING 0x1
|
|
80
|
+
|
|
81
|
+
interface Windows.Foundation.IClosable external
|
|
82
|
+
py winrt.windows.foundation._IClosable
|
|
83
|
+
guid 30d5a829-7fa4-4026-83bb-d75bae4ea99e
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.RemoteDesktop.Input
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
-
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
-
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
-
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: >=3.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.2.0
|
|
16
|
-
|
|
17
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
|
-
|
|
19
|
-
# winrt-Windows.System.RemoteDesktop.Input
|
|
20
|
-
|
|
21
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.RemoteDesktop.Input` namespace.
|
|
22
|
-
|
|
23
|
-
This package provides the `winrt.windows.system.remotedesktop.input` module.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
-
|
|
3
|
-
# winrt-Windows.System.RemoteDesktop.Input
|
|
4
|
-
|
|
5
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.RemoteDesktop.Input` namespace.
|
|
6
|
-
|
|
7
|
-
This package provides the `winrt.windows.system.remotedesktop.input` module.
|
|
@@ -1,485 +0,0 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
|
-
|
|
3
|
-
#include "py.Windows.System.RemoteDesktop.Input.h"
|
|
4
|
-
|
|
5
|
-
namespace py::cpp::Windows::System::RemoteDesktop::Input
|
|
6
|
-
{
|
|
7
|
-
// ----- RemoteTextConnection class --------------------
|
|
8
|
-
|
|
9
|
-
static PyObject* _new_RemoteTextConnection(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
10
|
-
{
|
|
11
|
-
if (kwds)
|
|
12
|
-
{
|
|
13
|
-
py::set_invalid_kwd_args_error();
|
|
14
|
-
return nullptr;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
18
|
-
if (arg_count == 3)
|
|
19
|
-
{
|
|
20
|
-
try
|
|
21
|
-
{
|
|
22
|
-
auto param0 = py::convert_to<winrt::guid>(args, 0);
|
|
23
|
-
auto param1 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnectionDataHandler>(args, 1);
|
|
24
|
-
auto param2 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnectionOptions>(args, 2);
|
|
25
|
-
|
|
26
|
-
winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection instance{param0, param1, param2};
|
|
27
|
-
return py::wrap(instance, type);
|
|
28
|
-
}
|
|
29
|
-
catch (...)
|
|
30
|
-
{
|
|
31
|
-
py::to_PyErr();
|
|
32
|
-
return nullptr;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else if (arg_count == 2)
|
|
36
|
-
{
|
|
37
|
-
try
|
|
38
|
-
{
|
|
39
|
-
auto param0 = py::convert_to<winrt::guid>(args, 0);
|
|
40
|
-
auto param1 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnectionDataHandler>(args, 1);
|
|
41
|
-
|
|
42
|
-
winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection instance{param0, param1};
|
|
43
|
-
return py::wrap(instance, type);
|
|
44
|
-
}
|
|
45
|
-
catch (...)
|
|
46
|
-
{
|
|
47
|
-
py::to_PyErr();
|
|
48
|
-
return nullptr;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
else
|
|
52
|
-
{
|
|
53
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
54
|
-
return nullptr;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
static void _dealloc_RemoteTextConnection(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self) noexcept
|
|
59
|
-
{
|
|
60
|
-
auto tp = Py_TYPE(self);
|
|
61
|
-
std::destroy_at(&self->obj);
|
|
62
|
-
tp->tp_free(self);
|
|
63
|
-
Py_DECREF(tp);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
static PyObject* RemoteTextConnection_Close(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* args) noexcept
|
|
67
|
-
{
|
|
68
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
69
|
-
|
|
70
|
-
if (arg_count == 0)
|
|
71
|
-
{
|
|
72
|
-
try
|
|
73
|
-
{
|
|
74
|
-
static std::optional<bool> is_overload_present{};
|
|
75
|
-
|
|
76
|
-
if (!is_overload_present.has_value())
|
|
77
|
-
{
|
|
78
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"Close", 0);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (!is_overload_present.value())
|
|
82
|
-
{
|
|
83
|
-
py::set_arg_count_version_error(0);
|
|
84
|
-
return nullptr;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
{
|
|
88
|
-
auto _gil = release_gil();
|
|
89
|
-
self->obj.Close();
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
Py_RETURN_NONE;
|
|
93
|
-
}
|
|
94
|
-
catch (...)
|
|
95
|
-
{
|
|
96
|
-
py::to_PyErr();
|
|
97
|
-
return nullptr;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
else
|
|
101
|
-
{
|
|
102
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
103
|
-
return nullptr;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
static PyObject* RemoteTextConnection_RegisterThread(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* args) noexcept
|
|
108
|
-
{
|
|
109
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
110
|
-
|
|
111
|
-
if (arg_count == 1)
|
|
112
|
-
{
|
|
113
|
-
try
|
|
114
|
-
{
|
|
115
|
-
static std::optional<bool> is_overload_present{};
|
|
116
|
-
|
|
117
|
-
if (!is_overload_present.has_value())
|
|
118
|
-
{
|
|
119
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"RegisterThread", 1);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (!is_overload_present.value())
|
|
123
|
-
{
|
|
124
|
-
py::set_arg_count_version_error(1);
|
|
125
|
-
return nullptr;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
129
|
-
|
|
130
|
-
{
|
|
131
|
-
auto _gil = release_gil();
|
|
132
|
-
self->obj.RegisterThread(param0);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
Py_RETURN_NONE;
|
|
136
|
-
}
|
|
137
|
-
catch (...)
|
|
138
|
-
{
|
|
139
|
-
py::to_PyErr();
|
|
140
|
-
return nullptr;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
else
|
|
144
|
-
{
|
|
145
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
146
|
-
return nullptr;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
static PyObject* RemoteTextConnection_ReportDataReceived(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* args) noexcept
|
|
151
|
-
{
|
|
152
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
153
|
-
|
|
154
|
-
if (arg_count == 1)
|
|
155
|
-
{
|
|
156
|
-
try
|
|
157
|
-
{
|
|
158
|
-
static std::optional<bool> is_overload_present{};
|
|
159
|
-
|
|
160
|
-
if (!is_overload_present.has_value())
|
|
161
|
-
{
|
|
162
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"ReportDataReceived", 1);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (!is_overload_present.value())
|
|
166
|
-
{
|
|
167
|
-
py::set_arg_count_version_error(1);
|
|
168
|
-
return nullptr;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
auto param0 = py::convert_to<py::pybuf_view<uint8_t, false>>(args, 0);
|
|
172
|
-
|
|
173
|
-
{
|
|
174
|
-
auto _gil = release_gil();
|
|
175
|
-
self->obj.ReportDataReceived(param0);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
Py_RETURN_NONE;
|
|
179
|
-
}
|
|
180
|
-
catch (...)
|
|
181
|
-
{
|
|
182
|
-
py::to_PyErr();
|
|
183
|
-
return nullptr;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
else
|
|
187
|
-
{
|
|
188
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
189
|
-
return nullptr;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
static PyObject* RemoteTextConnection_ReportPredictedKeyEvent(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* args) noexcept
|
|
194
|
-
{
|
|
195
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
196
|
-
|
|
197
|
-
if (arg_count == 2)
|
|
198
|
-
{
|
|
199
|
-
try
|
|
200
|
-
{
|
|
201
|
-
static std::optional<bool> is_overload_present{};
|
|
202
|
-
|
|
203
|
-
if (!is_overload_present.has_value())
|
|
204
|
-
{
|
|
205
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"ReportPredictedKeyEvent", 2);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
if (!is_overload_present.value())
|
|
209
|
-
{
|
|
210
|
-
py::set_arg_count_version_error(2);
|
|
211
|
-
return nullptr;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
auto param0 = py::convert_to<uint16_t>(args, 0);
|
|
215
|
-
auto param1 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteKeyEventAttributes>(args, 1);
|
|
216
|
-
|
|
217
|
-
{
|
|
218
|
-
auto _gil = release_gil();
|
|
219
|
-
self->obj.ReportPredictedKeyEvent(param0, param1);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
Py_RETURN_NONE;
|
|
223
|
-
}
|
|
224
|
-
catch (...)
|
|
225
|
-
{
|
|
226
|
-
py::to_PyErr();
|
|
227
|
-
return nullptr;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
else
|
|
231
|
-
{
|
|
232
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
233
|
-
return nullptr;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
static PyObject* RemoteTextConnection_UnregisterThread(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* args) noexcept
|
|
238
|
-
{
|
|
239
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
240
|
-
|
|
241
|
-
if (arg_count == 1)
|
|
242
|
-
{
|
|
243
|
-
try
|
|
244
|
-
{
|
|
245
|
-
static std::optional<bool> is_overload_present{};
|
|
246
|
-
|
|
247
|
-
if (!is_overload_present.has_value())
|
|
248
|
-
{
|
|
249
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"UnregisterThread", 1);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
if (!is_overload_present.value())
|
|
253
|
-
{
|
|
254
|
-
py::set_arg_count_version_error(1);
|
|
255
|
-
return nullptr;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
259
|
-
|
|
260
|
-
{
|
|
261
|
-
auto _gil = release_gil();
|
|
262
|
-
self->obj.UnregisterThread(param0);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
Py_RETURN_NONE;
|
|
266
|
-
}
|
|
267
|
-
catch (...)
|
|
268
|
-
{
|
|
269
|
-
py::to_PyErr();
|
|
270
|
-
return nullptr;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
else
|
|
274
|
-
{
|
|
275
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
276
|
-
return nullptr;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
static PyObject* RemoteTextConnection_get_IsEnabled(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, void* /*unused*/) noexcept
|
|
281
|
-
{
|
|
282
|
-
try
|
|
283
|
-
{
|
|
284
|
-
static std::optional<bool> is_property_present{};
|
|
285
|
-
|
|
286
|
-
if (!is_property_present.has_value())
|
|
287
|
-
{
|
|
288
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled");
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (!is_property_present.value())
|
|
292
|
-
{
|
|
293
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
294
|
-
return nullptr;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
return py::convert([&]()
|
|
298
|
-
{
|
|
299
|
-
auto _gil = release_gil();
|
|
300
|
-
return self->obj.IsEnabled();
|
|
301
|
-
}());
|
|
302
|
-
}
|
|
303
|
-
catch (...)
|
|
304
|
-
{
|
|
305
|
-
py::to_PyErr();
|
|
306
|
-
return nullptr;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
static int RemoteTextConnection_put_IsEnabled(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* arg, void* /*unused*/) noexcept
|
|
311
|
-
{
|
|
312
|
-
if (!arg)
|
|
313
|
-
{
|
|
314
|
-
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
315
|
-
return -1;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
try
|
|
319
|
-
{
|
|
320
|
-
static std::optional<bool> is_property_present{};
|
|
321
|
-
|
|
322
|
-
if (!is_property_present.has_value())
|
|
323
|
-
{
|
|
324
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled");
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
if (!is_property_present.value())
|
|
328
|
-
{
|
|
329
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
330
|
-
return -1;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
auto param0 = py::convert_to<bool>(arg);
|
|
334
|
-
|
|
335
|
-
{
|
|
336
|
-
auto _gil = release_gil();
|
|
337
|
-
self->obj.IsEnabled(param0);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
return 0;
|
|
341
|
-
}
|
|
342
|
-
catch (...)
|
|
343
|
-
{
|
|
344
|
-
py::to_PyErr();
|
|
345
|
-
return -1;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
static PyObject* _assign_array_RemoteTextConnection(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
350
|
-
{
|
|
351
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection>>();
|
|
352
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
353
|
-
{
|
|
354
|
-
return nullptr;
|
|
355
|
-
}
|
|
356
|
-
Py_RETURN_NONE;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
static PyObject* _from_RemoteTextConnection(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
360
|
-
{
|
|
361
|
-
try
|
|
362
|
-
{
|
|
363
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
364
|
-
return py::convert(return_value.as<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection>());
|
|
365
|
-
}
|
|
366
|
-
catch (...)
|
|
367
|
-
{
|
|
368
|
-
py::to_PyErr();
|
|
369
|
-
return nullptr;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
static PyObject* _enter_RemoteTextConnection(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* /*unused*/) noexcept
|
|
374
|
-
{
|
|
375
|
-
return Py_NewRef(self);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
static PyObject* _exit_RemoteTextConnection(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* /*unused*/) noexcept
|
|
379
|
-
{
|
|
380
|
-
try
|
|
381
|
-
{
|
|
382
|
-
{
|
|
383
|
-
auto _gil = py::release_gil();
|
|
384
|
-
self->obj.Close();
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
Py_RETURN_FALSE;
|
|
388
|
-
}
|
|
389
|
-
catch (...)
|
|
390
|
-
{
|
|
391
|
-
py::to_PyErr();
|
|
392
|
-
return nullptr;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
static PyMethodDef _methods_RemoteTextConnection[] = {
|
|
397
|
-
{ "close", reinterpret_cast<PyCFunction>(RemoteTextConnection_Close), METH_VARARGS, nullptr },
|
|
398
|
-
{ "register_thread", reinterpret_cast<PyCFunction>(RemoteTextConnection_RegisterThread), METH_VARARGS, nullptr },
|
|
399
|
-
{ "report_data_received", reinterpret_cast<PyCFunction>(RemoteTextConnection_ReportDataReceived), METH_VARARGS, nullptr },
|
|
400
|
-
{ "report_predicted_key_event", reinterpret_cast<PyCFunction>(RemoteTextConnection_ReportPredictedKeyEvent), METH_VARARGS, nullptr },
|
|
401
|
-
{ "unregister_thread", reinterpret_cast<PyCFunction>(RemoteTextConnection_UnregisterThread), METH_VARARGS, nullptr },
|
|
402
|
-
{ "_assign_array_", _assign_array_RemoteTextConnection, METH_O | METH_STATIC, nullptr },
|
|
403
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_RemoteTextConnection), METH_O | METH_STATIC, nullptr },
|
|
404
|
-
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_RemoteTextConnection), METH_NOARGS, nullptr },
|
|
405
|
-
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteTextConnection), METH_VARARGS, nullptr },
|
|
406
|
-
{ }};
|
|
407
|
-
|
|
408
|
-
static PyGetSetDef _getset_RemoteTextConnection[] = {
|
|
409
|
-
{ "is_enabled", reinterpret_cast<getter>(RemoteTextConnection_get_IsEnabled), reinterpret_cast<setter>(RemoteTextConnection_put_IsEnabled), nullptr, nullptr },
|
|
410
|
-
{ }};
|
|
411
|
-
|
|
412
|
-
static PyType_Slot _type_slots_RemoteTextConnection[] = {
|
|
413
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_RemoteTextConnection) },
|
|
414
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteTextConnection) },
|
|
415
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteTextConnection) },
|
|
416
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteTextConnection) },
|
|
417
|
-
{ }};
|
|
418
|
-
|
|
419
|
-
static PyType_Spec type_spec_RemoteTextConnection = {
|
|
420
|
-
"winrt._winrt_windows_system_remotedesktop_input.RemoteTextConnection",
|
|
421
|
-
sizeof(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection),
|
|
422
|
-
0,
|
|
423
|
-
Py_TPFLAGS_DEFAULT,
|
|
424
|
-
_type_slots_RemoteTextConnection};
|
|
425
|
-
|
|
426
|
-
// ----- Windows.System.RemoteDesktop.Input Initialization --------------------
|
|
427
|
-
|
|
428
|
-
PyDoc_STRVAR(module_doc, "Windows.System.RemoteDesktop.Input");
|
|
429
|
-
|
|
430
|
-
static PyModuleDef module_def = {
|
|
431
|
-
PyModuleDef_HEAD_INIT,
|
|
432
|
-
"_winrt_windows_system_remotedesktop_input",
|
|
433
|
-
module_doc,
|
|
434
|
-
0,
|
|
435
|
-
nullptr,
|
|
436
|
-
nullptr,
|
|
437
|
-
nullptr,
|
|
438
|
-
nullptr,
|
|
439
|
-
nullptr};
|
|
440
|
-
} // py::cpp::Windows::System::RemoteDesktop::Input
|
|
441
|
-
|
|
442
|
-
PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_input(void) noexcept
|
|
443
|
-
{
|
|
444
|
-
using namespace py::cpp::Windows::System::RemoteDesktop::Input;
|
|
445
|
-
|
|
446
|
-
if (py::import_winrt_runtime() == -1)
|
|
447
|
-
{
|
|
448
|
-
return nullptr;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
452
|
-
|
|
453
|
-
if (!module)
|
|
454
|
-
{
|
|
455
|
-
return nullptr;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
459
|
-
if (!inspectable_meta_type)
|
|
460
|
-
{
|
|
461
|
-
return nullptr;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
auto object_type = py::get_object_type();
|
|
465
|
-
if (!object_type)
|
|
466
|
-
{
|
|
467
|
-
return nullptr;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
471
|
-
|
|
472
|
-
if (!object_bases)
|
|
473
|
-
{
|
|
474
|
-
return nullptr;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
py::pytype_handle RemoteTextConnection_type{py::register_python_type(module.get(), &type_spec_RemoteTextConnection, object_bases.get(), inspectable_meta_type)};
|
|
478
|
-
if (!RemoteTextConnection_type)
|
|
479
|
-
{
|
|
480
|
-
return nullptr;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
return module.detach();
|
|
485
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
[build-system]
|
|
4
|
-
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
|
-
build-backend = "setuptools.build_meta"
|
|
6
|
-
|
|
7
|
-
[project]
|
|
8
|
-
name = "winrt-Windows.System.RemoteDesktop.Input"
|
|
9
|
-
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
-
readme = "README.md"
|
|
11
|
-
license = "MIT"
|
|
12
|
-
classifiers = [
|
|
13
|
-
"Operating System :: Microsoft :: Windows",
|
|
14
|
-
"Programming Language :: Python :: 3",
|
|
15
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
-
"Intended Audience :: Developers",
|
|
17
|
-
]
|
|
18
|
-
dynamic = ["version", "dependencies"]
|
|
19
|
-
requires-python = ">=3.9"
|
|
20
|
-
|
|
21
|
-
[project.urls]
|
|
22
|
-
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
23
|
-
Documentation = "https://pywinrt.readthedocs.io"
|
|
24
|
-
Repository = "https://github.com/pywinrt/pywinrt"
|
|
25
|
-
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
-
|
|
27
|
-
[tool.setuptools.dynamic]
|
|
28
|
-
version = { file = "pywinrt-version.txt" }
|
|
29
|
-
dependencies = { file = "requirements.txt" }
|
|
30
|
-
|
|
31
|
-
[tool.setuptools.package-data]
|
|
32
|
-
"*" = ["*.pyi", "py.typed"]
|
|
33
|
-
|
|
34
|
-
[tool.cibuildwheel]
|
|
35
|
-
# use local winrt-sdk build dependency
|
|
36
|
-
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
37
|
-
# don't install winrt-sdk from PyPI
|
|
38
|
-
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
-
before-build = "uv pip install setuptools"
|
|
40
|
-
# don't build for PyPy
|
|
41
|
-
skip = "pp*"
|
|
42
|
-
# suppress warnings about ARM64 testing
|
|
43
|
-
test-skip = "*-win_arm64"
|
|
44
|
-
|
|
45
|
-
[tool.cibuildwheel.windows]
|
|
46
|
-
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.2.0
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
# GCC 15 complains about some things that it didn't in the past
|
|
15
|
-
ext.extra_compile_args += ["-Wno-strict-aliasing", "-Wno-template-body"]
|
|
16
|
-
ext.extra_link_args = ["-loleaut32"]
|
|
17
|
-
else:
|
|
18
|
-
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
19
|
-
|
|
20
|
-
build_ext.build_extension(self, ext)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
setup(
|
|
24
|
-
cmdclass={"build_ext": build_ext_ex},
|
|
25
|
-
ext_modules=[
|
|
26
|
-
Extension(
|
|
27
|
-
"winrt._winrt_windows_system_remotedesktop_input",
|
|
28
|
-
sources=["py.Windows.System.RemoteDesktop.Input.cpp"],
|
|
29
|
-
include_dirs=get_include_dirs(),
|
|
30
|
-
libraries=["windowsapp"],
|
|
31
|
-
)
|
|
32
|
-
],
|
|
33
|
-
)
|
winrt_windows_system_remotedesktop_input-3.2.0/winrt/_winrt_windows_system_remotedesktop_input.pyi
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.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
|
-
|
|
14
|
-
from winrt.windows.system.remotedesktop.input import RemoteKeyEventAttributes, RemoteTextConnectionOptions
|
|
15
|
-
from winrt.windows.system.remotedesktop.input import RemoteTextConnectionDataHandler
|
|
16
|
-
|
|
17
|
-
Self = typing.TypeVar('Self')
|
|
18
|
-
|
|
19
|
-
@typing.final
|
|
20
|
-
class RemoteTextConnection(winrt.system.Object, windows_foundation.IClosable):
|
|
21
|
-
def __enter__(self: Self) -> Self: ...
|
|
22
|
-
def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
|
|
23
|
-
@typing.overload
|
|
24
|
-
def __new__(cls: typing.Type[Self], connection_id: _uuid.UUID, pdu_forwarder: RemoteTextConnectionDataHandler, options: RemoteTextConnectionOptions) -> Self: ...
|
|
25
|
-
@typing.overload
|
|
26
|
-
def __new__(cls: typing.Type[Self], connection_id: _uuid.UUID, pdu_forwarder: RemoteTextConnectionDataHandler) -> Self: ...
|
|
27
|
-
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::Close()
|
|
28
|
-
def close(self) -> None: ...
|
|
29
|
-
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::RegisterThread(System.UInt32)
|
|
30
|
-
def register_thread(self, thread_id: winrt.system.UInt32, /) -> None: ...
|
|
31
|
-
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::ReportDataReceived(System.Byte[])
|
|
32
|
-
def report_data_received(self, pdu_data: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> None: ...
|
|
33
|
-
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::ReportPredictedKeyEvent(System.UInt16,Windows.System.RemoteDesktop.Input.RemoteKeyEventAttributes)
|
|
34
|
-
def report_predicted_key_event(self, scan_code: winrt.system.UInt16, attributes: RemoteKeyEventAttributes, /) -> None: ...
|
|
35
|
-
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::UnregisterThread(System.UInt32)
|
|
36
|
-
def unregister_thread(self, thread_id: winrt.system.UInt32, /) -> None: ...
|
|
37
|
-
# System.Boolean Windows.System.RemoteDesktop.Input.RemoteTextConnection::get_IsEnabled()
|
|
38
|
-
@_property
|
|
39
|
-
def is_enabled(self) -> bool: ...
|
|
40
|
-
# System.Void Windows.System.RemoteDesktop.Input.RemoteTextConnection::put_IsEnabled(System.Boolean)
|
|
41
|
-
@is_enabled.setter
|
|
42
|
-
def is_enabled(self, value: bool) -> None: ...
|
|
43
|
-
|
winrt_windows_system_remotedesktop_input-3.2.0/winrt/windows/system/remotedesktop/input/__init__.py
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
|
-
|
|
3
|
-
import enum
|
|
4
|
-
import typing
|
|
5
|
-
import uuid as _uuid
|
|
6
|
-
|
|
7
|
-
import winrt.system
|
|
8
|
-
from winrt._winrt_windows_system_remotedesktop_input import (
|
|
9
|
-
RemoteTextConnection,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
__all__ = [
|
|
13
|
-
"RemoteKeyEventAttributes",
|
|
14
|
-
"RemoteTextConnectionOptions",
|
|
15
|
-
"RemoteTextConnection",
|
|
16
|
-
"RemoteTextConnectionDataHandler",
|
|
17
|
-
]
|
|
18
|
-
|
|
19
|
-
class RemoteKeyEventAttributes(enum.IntFlag):
|
|
20
|
-
NONE = 0x0
|
|
21
|
-
KEY_UP = 0x1
|
|
22
|
-
REPEAT = 0x2
|
|
23
|
-
EXTENDED = 0x4
|
|
24
|
-
EXTENDED1 = 0x8
|
|
25
|
-
|
|
26
|
-
class RemoteTextConnectionOptions(enum.IntFlag):
|
|
27
|
-
NONE = 0x0
|
|
28
|
-
ENABLE_PREDICTED_KEY_REPORTING = 0x1
|
|
29
|
-
|
|
30
|
-
RemoteTextConnectionDataHandler = typing.Callable[[winrt.system.Array[winrt.system.UInt8]], bool]
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.RemoteDesktop.Input
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
-
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
-
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
-
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: >=3.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.2.0
|
|
16
|
-
|
|
17
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
|
-
|
|
19
|
-
# winrt-Windows.System.RemoteDesktop.Input
|
|
20
|
-
|
|
21
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.RemoteDesktop.Input` namespace.
|
|
22
|
-
|
|
23
|
-
This package provides the `winrt.windows.system.remotedesktop.input` module.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
README.md
|
|
2
|
-
py.Windows.System.RemoteDesktop.Input.cpp
|
|
3
|
-
pyproject.toml
|
|
4
|
-
pywinrt-version.txt
|
|
5
|
-
requirements.txt
|
|
6
|
-
setup.py
|
|
7
|
-
winrt/_winrt_windows_system_remotedesktop_input.pyi
|
|
8
|
-
winrt/windows/system/remotedesktop/input/__init__.py
|
|
9
|
-
winrt/windows/system/remotedesktop/input/py.typed
|
|
10
|
-
winrt_Windows.System.RemoteDesktop.Input.egg-info/PKG-INFO
|
|
11
|
-
winrt_Windows.System.RemoteDesktop.Input.egg-info/SOURCES.txt
|
|
12
|
-
winrt_Windows.System.RemoteDesktop.Input.egg-info/dependency_links.txt
|
|
13
|
-
winrt_Windows.System.RemoteDesktop.Input.egg-info/requires.txt
|
|
14
|
-
winrt_Windows.System.RemoteDesktop.Input.egg-info/top_level.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt-runtime==3.2.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt
|