winrt-Windows.System.Inventory 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_inventory-4!10.0.28000.2705/.gitignore +5 -0
- winrt_windows_system_inventory-4!10.0.28000.2705/LICENSE +22 -0
- winrt_windows_system_inventory-4!10.0.28000.2705/PKG-INFO +46 -0
- winrt_windows_system_inventory-4!10.0.28000.2705/README.md +17 -0
- winrt_windows_system_inventory-4!10.0.28000.2705/pyproject.toml +58 -0
- {winrt_windows_system_inventory-3.2.0 → winrt_windows_system_inventory-4!10.0.28000.2705}/winrt/windows/system/inventory/__init__.py +4 -4
- winrt_windows_system_inventory-3.2.0/winrt/_winrt_windows_system_inventory.pyi → winrt_windows_system_inventory-4!10.0.28000.2705/winrt/windows/system/inventory/__init__.pyi +10 -11
- winrt_windows_system_inventory-4!10.0.28000.2705/winrt/windows/system/inventory/_table.pywinrt.txt +167 -0
- winrt_windows_system_inventory-3.2.0/PKG-INFO +0 -26
- winrt_windows_system_inventory-3.2.0/README.md +0 -7
- winrt_windows_system_inventory-3.2.0/all-requirements.txt +0 -4
- winrt_windows_system_inventory-3.2.0/py.Windows.System.Inventory.cpp +0 -386
- winrt_windows_system_inventory-3.2.0/pyproject.toml +0 -47
- winrt_windows_system_inventory-3.2.0/pywinrt-version.txt +0 -1
- winrt_windows_system_inventory-3.2.0/requirements.txt +0 -3
- winrt_windows_system_inventory-3.2.0/setup.cfg +0 -4
- winrt_windows_system_inventory-3.2.0/setup.py +0 -33
- winrt_windows_system_inventory-3.2.0/winrt_Windows.System.Inventory.egg-info/PKG-INFO +0 -26
- winrt_windows_system_inventory-3.2.0/winrt_Windows.System.Inventory.egg-info/SOURCES.txt +0 -15
- winrt_windows_system_inventory-3.2.0/winrt_Windows.System.Inventory.egg-info/dependency_links.txt +0 -1
- winrt_windows_system_inventory-3.2.0/winrt_Windows.System.Inventory.egg-info/requires.txt +0 -5
- winrt_windows_system_inventory-3.2.0/winrt_Windows.System.Inventory.egg-info/top_level.txt +0 -1
- {winrt_windows_system_inventory-3.2.0 → winrt_windows_system_inventory-4!10.0.28000.2705}/winrt/windows/system/inventory/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,46 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: winrt-Windows.System.Inventory
|
|
3
|
+
Version: 4!10.0.28000.2705
|
|
4
|
+
Summary: PyWinRT projection of the Windows.System.Inventory 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-collections>=4!10.0.28000.2705
|
|
24
|
+
Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
|
|
25
|
+
Provides-Extra: all
|
|
26
|
+
Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
|
|
27
|
+
Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
31
|
+
|
|
32
|
+
# winrt-Windows.System.Inventory
|
|
33
|
+
|
|
34
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.Inventory` namespace.
|
|
35
|
+
|
|
36
|
+
This package provides the `winrt.windows.system.inventory` module.
|
|
37
|
+
|
|
38
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
39
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
pip install winrt-Windows.System.Inventory
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
46
|
+
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.Inventory
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.Inventory` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.system.inventory` 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.Inventory
|
|
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,58 @@
|
|
|
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.Inventory"
|
|
9
|
+
version = "4!10.0.28000.2705"
|
|
10
|
+
description = "PyWinRT projection of the Windows.System.Inventory 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
|
+
"winrt-Windows.Foundation.Collections>=4!10.0.28000.2705",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
all = [
|
|
36
|
+
"winrt-Windows.Foundation[all]>=4!10.0.28000.2705",
|
|
37
|
+
"winrt-Windows.Foundation.Collections[all]>=4!10.0.28000.2705",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[project.urls]
|
|
41
|
+
Documentation = "https://pywinrt.readthedocs.io"
|
|
42
|
+
Repository = "https://github.com/pywinrt/pywinrt"
|
|
43
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
|
|
44
|
+
|
|
45
|
+
[tool.hatch.build.targets.sdist]
|
|
46
|
+
# The text form of the table is what the source distribution carries, and the
|
|
47
|
+
# compiled form is build output wherever it turns up. Hatchling reads no
|
|
48
|
+
# .gitignore above the package, so it has to be told about the latter.
|
|
49
|
+
only-include = ["winrt", "LICENSE", "README.md"]
|
|
50
|
+
exclude = ["**/_table.pywinrt"]
|
|
51
|
+
|
|
52
|
+
[tool.hatch.build.targets.wheel]
|
|
53
|
+
packages = ["winrt"]
|
|
54
|
+
exclude = ["**/_table.pywinrt.txt"]
|
|
55
|
+
|
|
56
|
+
# winrt.table.build_hooks in winrt-table-compiler, which compiles each table
|
|
57
|
+
# the package carries and puts the result beside the __init__.py that loads it.
|
|
58
|
+
[tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
2
|
|
|
3
|
+
import winrt.runtime._internals
|
|
3
4
|
import winrt.system
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
)
|
|
5
|
+
|
|
6
|
+
winrt.runtime._internals.load_projection(__spec__)
|
|
7
7
|
|
|
8
8
|
__all__ = [
|
|
9
9
|
"InstalledDesktopApp",
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
3
|
+
import collections.abc as _cabc
|
|
6
4
|
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
5
|
from builtins import property as _property
|
|
9
6
|
|
|
10
|
-
import winrt._winrt
|
|
11
7
|
import winrt.system
|
|
12
8
|
import winrt.windows.foundation as windows_foundation
|
|
13
9
|
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
__all__ = [
|
|
12
|
+
"InstalledDesktopApp",
|
|
13
|
+
]
|
|
16
14
|
|
|
17
15
|
@typing.final
|
|
18
|
-
class InstalledDesktopApp_Static(winrt.
|
|
16
|
+
class InstalledDesktopApp_Static(winrt.system.Object_Static):
|
|
19
17
|
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.System.Inventory.InstalledDesktopApp>> Windows.System.Inventory.InstalledDesktopApp::GetInventoryAsync()
|
|
20
|
-
def get_inventory_async(cls) -> windows_foundation.IAsyncOperation[
|
|
18
|
+
def get_inventory_async(cls) -> windows_foundation.IAsyncOperation[_cabc.Sequence[InstalledDesktopApp]]: ...
|
|
21
19
|
|
|
22
20
|
@typing.final
|
|
23
|
-
class InstalledDesktopApp(winrt.system.Object,
|
|
24
|
-
def
|
|
21
|
+
class InstalledDesktopApp(windows_foundation.IStringable, winrt.system.Object, metaclass=InstalledDesktopApp_Static):
|
|
22
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
23
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
25
24
|
# System.String Windows.System.Inventory.InstalledDesktopApp::ToString()
|
|
26
25
|
def to_string(self) -> str: ...
|
|
27
26
|
# System.String Windows.System.Inventory.InstalledDesktopApp::get_DisplayName()
|
winrt_windows_system_inventory-4!10.0.28000.2705/winrt/windows/system/inventory/_table.pywinrt.txt
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
format 4.0
|
|
2
|
+
census 2e30db26-66c8-4551-85b9-a537376d8f99 1
|
|
3
|
+
namespace Windows.System.Inventory
|
|
4
|
+
|
|
5
|
+
delegate Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> concrete
|
|
6
|
+
py winrt.windows.foundation.AsyncOperationCompletedHandler[IVectorView[InstalledDesktopApp]]
|
|
7
|
+
guid eb945c7c-7edd-565a-8bcc-82baf4ea17b6
|
|
8
|
+
signature pinterface({fcdcf02c-e5d8-4478-915a-4d90b74b83a5};pinterface({bbe1fa4c-b0e3-4583-baef-1f1b2e483e56};rc(Windows.System.Inventory.InstalledDesktopApp;{75eab8ed-c0bc-5364-4c28-166e0545167a})))
|
|
9
|
+
base Windows.Foundation.AsyncOperationCompletedHandler
|
|
10
|
+
argument Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>
|
|
11
|
+
method -
|
|
12
|
+
method Invoke slot=3 inputs=2 outputs=0 shape=51 reverse=4
|
|
13
|
+
in parameterized type=Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> name=asyncInfo
|
|
14
|
+
in enum32 type=Windows.Foundation.AsyncStatus name=asyncStatus
|
|
15
|
+
|
|
16
|
+
interface Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> concrete awaitable
|
|
17
|
+
py winrt.windows.foundation._IAsyncOperation[IVectorView[InstalledDesktopApp]]
|
|
18
|
+
guid 9ffdaf80-6d25-5e34-9886-2b5d541d8324
|
|
19
|
+
signature pinterface({9fc2b0bb-e446-44e2-aa61-9cab8f636af2};pinterface({bbe1fa4c-b0e3-4583-baef-1f1b2e483e56};rc(Windows.System.Inventory.InstalledDesktopApp;{75eab8ed-c0bc-5364-4c28-166e0545167a})))
|
|
20
|
+
base Windows.Foundation.IAsyncOperation
|
|
21
|
+
requires Windows.Foundation.IAsyncInfo
|
|
22
|
+
argument Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>
|
|
23
|
+
property completed
|
|
24
|
+
get get_Completed slot=7 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> shape=4 reverse=43 role=completed
|
|
25
|
+
out delegate type=Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> return
|
|
26
|
+
put put_Completed slot=6 inputs=1 outputs=0 declaring=Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> shape=4 reverse=22
|
|
27
|
+
in delegate type=Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> name=handler
|
|
28
|
+
property error_code
|
|
29
|
+
get get_ErrorCode slot=8 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncInfo shape=4 reverse=62
|
|
30
|
+
out hresult type=Windows.Foundation.HResult return
|
|
31
|
+
property id
|
|
32
|
+
get get_Id slot=6 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncInfo shape=4 reverse=22
|
|
33
|
+
out uint32 return
|
|
34
|
+
property status
|
|
35
|
+
get get_Status slot=7 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncInfo shape=4 reverse=43 role=status
|
|
36
|
+
out enum32 type=Windows.Foundation.AsyncStatus return
|
|
37
|
+
method cancel
|
|
38
|
+
method Cancel slot=9 inputs=0 outputs=0 declaring=Windows.Foundation.IAsyncInfo shape=0 reverse=93
|
|
39
|
+
method close
|
|
40
|
+
method Close slot=10 inputs=0 outputs=0 declaring=Windows.Foundation.IAsyncInfo shape=0 reverse=117
|
|
41
|
+
method get_results
|
|
42
|
+
method GetResults slot=8 inputs=0 outputs=1 declaring=Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> shape=4 reverse=62 role=get_results
|
|
43
|
+
out parameterized type=Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp> return
|
|
44
|
+
|
|
45
|
+
interface Windows.System.Inventory.IInstalledDesktopApp
|
|
46
|
+
guid 75eab8ed-c0bc-5364-4c28-166e0545167a
|
|
47
|
+
|
|
48
|
+
interface Windows.System.Inventory.IInstalledDesktopAppStatics
|
|
49
|
+
guid 264cf74e-21cd-5f9b-6056-7866ad72489a
|
|
50
|
+
|
|
51
|
+
interface Windows.Foundation.Collections.IIterable<Windows.System.Inventory.InstalledDesktopApp> concrete iterable
|
|
52
|
+
py winrt.windows.foundation.collections._IIterable[InstalledDesktopApp]
|
|
53
|
+
guid b64037f2-dc1a-57de-8b03-18a16f9ddbdf
|
|
54
|
+
signature pinterface({faa585ea-6214-4217-afda-7f46de5869b3};rc(Windows.System.Inventory.InstalledDesktopApp;{75eab8ed-c0bc-5364-4c28-166e0545167a}))
|
|
55
|
+
base Windows.Foundation.Collections.IIterable
|
|
56
|
+
argument Windows.System.Inventory.InstalledDesktopApp
|
|
57
|
+
method first
|
|
58
|
+
method First slot=6 inputs=0 outputs=1 declaring=Windows.Foundation.Collections.IIterable<Windows.System.Inventory.InstalledDesktopApp> shape=4 reverse=22 role=first
|
|
59
|
+
out parameterized type=Windows.Foundation.Collections.IIterator<Windows.System.Inventory.InstalledDesktopApp> return
|
|
60
|
+
|
|
61
|
+
interface Windows.Foundation.Collections.IIterator<Windows.System.Inventory.InstalledDesktopApp> concrete iterable iterator
|
|
62
|
+
py winrt.windows.foundation.collections._IIterator[InstalledDesktopApp]
|
|
63
|
+
guid af3da06d-0a82-5213-9cb5-f8d2da12fbe9
|
|
64
|
+
signature pinterface({6a79e863-4300-459a-9966-cbb660963ee1};rc(Windows.System.Inventory.InstalledDesktopApp;{75eab8ed-c0bc-5364-4c28-166e0545167a}))
|
|
65
|
+
base Windows.Foundation.Collections.IIterator
|
|
66
|
+
argument Windows.System.Inventory.InstalledDesktopApp
|
|
67
|
+
property current
|
|
68
|
+
get get_Current slot=6 inputs=0 outputs=1 declaring=Windows.Foundation.Collections.IIterator<Windows.System.Inventory.InstalledDesktopApp> shape=4 reverse=22 role=current
|
|
69
|
+
out class type=Windows.System.Inventory.InstalledDesktopApp return
|
|
70
|
+
property has_current
|
|
71
|
+
get get_HasCurrent slot=7 inputs=0 outputs=1 declaring=Windows.Foundation.Collections.IIterator<Windows.System.Inventory.InstalledDesktopApp> shape=4 reverse=43 role=has_current
|
|
72
|
+
out boolean return
|
|
73
|
+
method get_many
|
|
74
|
+
method GetMany slot=9 inputs=1 outputs=1 declaring=Windows.Foundation.Collections.IIterator<Windows.System.Inventory.InstalledDesktopApp> shape=117 reverse=101 role=get_many
|
|
75
|
+
fill_array class type=Windows.System.Inventory.InstalledDesktopApp name=items
|
|
76
|
+
out uint32 return
|
|
77
|
+
method move_next
|
|
78
|
+
method MoveNext slot=8 inputs=0 outputs=1 declaring=Windows.Foundation.Collections.IIterator<Windows.System.Inventory.InstalledDesktopApp> shape=4 reverse=62 role=move_next
|
|
79
|
+
out boolean return
|
|
80
|
+
|
|
81
|
+
interface Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp> concrete iterable sequence
|
|
82
|
+
py winrt.windows.foundation.collections._IVectorView[InstalledDesktopApp]
|
|
83
|
+
guid ba3a2146-42dd-5fa8-a7f0-36b6973803b5
|
|
84
|
+
signature pinterface({bbe1fa4c-b0e3-4583-baef-1f1b2e483e56};rc(Windows.System.Inventory.InstalledDesktopApp;{75eab8ed-c0bc-5364-4c28-166e0545167a}))
|
|
85
|
+
base Windows.Foundation.Collections.IVectorView
|
|
86
|
+
requires Windows.Foundation.Collections.IIterable<Windows.System.Inventory.InstalledDesktopApp>
|
|
87
|
+
argument Windows.System.Inventory.InstalledDesktopApp
|
|
88
|
+
property size
|
|
89
|
+
get get_Size slot=7 inputs=0 outputs=1 declaring=Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp> shape=4 reverse=43 role=size
|
|
90
|
+
out uint32 return
|
|
91
|
+
method first
|
|
92
|
+
method First slot=6 inputs=0 outputs=1 declaring=Windows.Foundation.Collections.IIterable<Windows.System.Inventory.InstalledDesktopApp> shape=4 reverse=22 role=first
|
|
93
|
+
out parameterized type=Windows.Foundation.Collections.IIterator<Windows.System.Inventory.InstalledDesktopApp> return
|
|
94
|
+
method get_at
|
|
95
|
+
method GetAt slot=6 inputs=1 outputs=1 declaring=Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp> shape=51 reverse=24 role=get_at
|
|
96
|
+
in uint32 name=index
|
|
97
|
+
out class type=Windows.System.Inventory.InstalledDesktopApp return
|
|
98
|
+
method get_many
|
|
99
|
+
method GetMany slot=9 inputs=2 outputs=1 declaring=Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp> shape=195 reverse=102 role=get_many
|
|
100
|
+
in uint32 name=startIndex
|
|
101
|
+
fill_array class type=Windows.System.Inventory.InstalledDesktopApp name=items
|
|
102
|
+
out uint32 return
|
|
103
|
+
method index_of
|
|
104
|
+
method IndexOf slot=8 inputs=1 outputs=2 declaring=Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp> shape=117 reverse=66 role=index_of
|
|
105
|
+
in class type=Windows.System.Inventory.InstalledDesktopApp name=value
|
|
106
|
+
out uint32 name=index
|
|
107
|
+
out boolean return
|
|
108
|
+
|
|
109
|
+
class Windows.System.Inventory.InstalledDesktopApp python_type stringable
|
|
110
|
+
py InstalledDesktopApp
|
|
111
|
+
signature rc(Windows.System.Inventory.InstalledDesktopApp;{75eab8ed-c0bc-5364-4c28-166e0545167a})
|
|
112
|
+
default Windows.System.Inventory.IInstalledDesktopApp
|
|
113
|
+
requires Windows.System.Inventory.IInstalledDesktopApp
|
|
114
|
+
requires Windows.Foundation.IStringable
|
|
115
|
+
factory Windows.System.Inventory.IInstalledDesktopAppStatics
|
|
116
|
+
property display_name
|
|
117
|
+
get get_DisplayName slot=7 inputs=0 outputs=1 declaring=Windows.System.Inventory.IInstalledDesktopApp shape=4
|
|
118
|
+
out string return
|
|
119
|
+
property display_version
|
|
120
|
+
get get_DisplayVersion slot=9 inputs=0 outputs=1 declaring=Windows.System.Inventory.IInstalledDesktopApp shape=4
|
|
121
|
+
out string return
|
|
122
|
+
property id
|
|
123
|
+
get get_Id slot=6 inputs=0 outputs=1 declaring=Windows.System.Inventory.IInstalledDesktopApp shape=4
|
|
124
|
+
out string return
|
|
125
|
+
property publisher
|
|
126
|
+
get get_Publisher slot=8 inputs=0 outputs=1 declaring=Windows.System.Inventory.IInstalledDesktopApp shape=4
|
|
127
|
+
out string return
|
|
128
|
+
method get_inventory_async static
|
|
129
|
+
method GetInventoryAsync slot=6 inputs=0 outputs=1 declaring=Windows.System.Inventory.IInstalledDesktopAppStatics shape=4 static
|
|
130
|
+
out parameterized type=Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.System.Inventory.InstalledDesktopApp>> return
|
|
131
|
+
method to_string
|
|
132
|
+
method ToString slot=6 inputs=0 outputs=1 declaring=Windows.Foundation.IStringable shape=4 reverse=22 role=to_string
|
|
133
|
+
out string return
|
|
134
|
+
|
|
135
|
+
delegate Windows.Foundation.AsyncOperationCompletedHandler external parameterized
|
|
136
|
+
py winrt.windows.foundation.AsyncOperationCompletedHandler
|
|
137
|
+
guid fcdcf02c-e5d8-4478-915a-4d90b74b83a5
|
|
138
|
+
|
|
139
|
+
enum Windows.Foundation.AsyncStatus external
|
|
140
|
+
py winrt.windows.foundation.AsyncStatus
|
|
141
|
+
|
|
142
|
+
struct Windows.Foundation.HResult external
|
|
143
|
+
py winrt.windows.foundation.HResult
|
|
144
|
+
|
|
145
|
+
interface Windows.Foundation.IAsyncInfo external
|
|
146
|
+
py winrt.windows.foundation._IAsyncInfo
|
|
147
|
+
guid 00000036-0000-0000-c000-000000000046
|
|
148
|
+
|
|
149
|
+
interface Windows.Foundation.IAsyncOperation external parameterized
|
|
150
|
+
py winrt.windows.foundation._IAsyncOperation
|
|
151
|
+
guid 9fc2b0bb-e446-44e2-aa61-9cab8f636af2
|
|
152
|
+
|
|
153
|
+
interface Windows.Foundation.IStringable external
|
|
154
|
+
py winrt.windows.foundation._IStringable
|
|
155
|
+
guid 96369f54-8eb6-48f0-abce-c1b211e627c3
|
|
156
|
+
|
|
157
|
+
interface Windows.Foundation.Collections.IIterable external parameterized
|
|
158
|
+
py winrt.windows.foundation.collections._IIterable
|
|
159
|
+
guid faa585ea-6214-4217-afda-7f46de5869b3
|
|
160
|
+
|
|
161
|
+
interface Windows.Foundation.Collections.IIterator external parameterized
|
|
162
|
+
py winrt.windows.foundation.collections._IIterator
|
|
163
|
+
guid 6a79e863-4300-459a-9966-cbb660963ee1
|
|
164
|
+
|
|
165
|
+
interface Windows.Foundation.Collections.IVectorView external parameterized
|
|
166
|
+
py winrt.windows.foundation.collections._IVectorView
|
|
167
|
+
guid bbe1fa4c-b0e3-4583-baef-1f1b2e483e56
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.Inventory
|
|
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
|
-
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
|
|
19
|
-
|
|
20
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
|
-
|
|
22
|
-
# winrt-Windows.System.Inventory
|
|
23
|
-
|
|
24
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Inventory` namespace.
|
|
25
|
-
|
|
26
|
-
This package provides the `winrt.windows.system.inventory` module.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
-
|
|
3
|
-
# winrt-Windows.System.Inventory
|
|
4
|
-
|
|
5
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Inventory` namespace.
|
|
6
|
-
|
|
7
|
-
This package provides the `winrt.windows.system.inventory` module.
|
|
@@ -1,386 +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.Inventory.h"
|
|
4
|
-
|
|
5
|
-
namespace py::cpp::Windows::System::Inventory
|
|
6
|
-
{
|
|
7
|
-
// ----- InstalledDesktopApp class --------------------
|
|
8
|
-
|
|
9
|
-
static PyObject* _new_InstalledDesktopApp(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
10
|
-
{
|
|
11
|
-
static_assert(py::py_type<winrt::Windows::System::Inventory::InstalledDesktopApp>::type_name);
|
|
12
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Inventory::InstalledDesktopApp>::type_name);
|
|
13
|
-
return nullptr;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
static void _dealloc_InstalledDesktopApp(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self) noexcept
|
|
17
|
-
{
|
|
18
|
-
auto tp = Py_TYPE(self);
|
|
19
|
-
std::destroy_at(&self->obj);
|
|
20
|
-
tp->tp_free(self);
|
|
21
|
-
Py_DECREF(tp);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
static PyObject* InstalledDesktopApp_GetInventoryAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
25
|
-
{
|
|
26
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
27
|
-
|
|
28
|
-
if (arg_count == 0)
|
|
29
|
-
{
|
|
30
|
-
try
|
|
31
|
-
{
|
|
32
|
-
static std::optional<bool> is_overload_present{};
|
|
33
|
-
|
|
34
|
-
if (!is_overload_present.has_value())
|
|
35
|
-
{
|
|
36
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"GetInventoryAsync", 0);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (!is_overload_present.value())
|
|
40
|
-
{
|
|
41
|
-
py::set_arg_count_version_error(0);
|
|
42
|
-
return nullptr;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return py::convert([&]()
|
|
46
|
-
{
|
|
47
|
-
auto _gil = release_gil();
|
|
48
|
-
return winrt::Windows::System::Inventory::InstalledDesktopApp::GetInventoryAsync();
|
|
49
|
-
}());
|
|
50
|
-
}
|
|
51
|
-
catch (...)
|
|
52
|
-
{
|
|
53
|
-
py::to_PyErr();
|
|
54
|
-
return nullptr;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
else
|
|
58
|
-
{
|
|
59
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
60
|
-
return nullptr;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
static PyObject* InstalledDesktopApp_ToString(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, PyObject* args) noexcept
|
|
65
|
-
{
|
|
66
|
-
auto arg_count = PyTuple_GET_SIZE(args);
|
|
67
|
-
|
|
68
|
-
if (arg_count == 0)
|
|
69
|
-
{
|
|
70
|
-
try
|
|
71
|
-
{
|
|
72
|
-
static std::optional<bool> is_overload_present{};
|
|
73
|
-
|
|
74
|
-
if (!is_overload_present.has_value())
|
|
75
|
-
{
|
|
76
|
-
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"ToString", 0);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if (!is_overload_present.value())
|
|
80
|
-
{
|
|
81
|
-
py::set_arg_count_version_error(0);
|
|
82
|
-
return nullptr;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return py::convert([&]()
|
|
86
|
-
{
|
|
87
|
-
auto _gil = release_gil();
|
|
88
|
-
return self->obj.ToString();
|
|
89
|
-
}());
|
|
90
|
-
}
|
|
91
|
-
catch (...)
|
|
92
|
-
{
|
|
93
|
-
py::to_PyErr();
|
|
94
|
-
return nullptr;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
else
|
|
98
|
-
{
|
|
99
|
-
py::set_invalid_arg_count_error(arg_count);
|
|
100
|
-
return nullptr;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
static PyObject* InstalledDesktopApp_get_DisplayName(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
105
|
-
{
|
|
106
|
-
try
|
|
107
|
-
{
|
|
108
|
-
static std::optional<bool> is_property_present{};
|
|
109
|
-
|
|
110
|
-
if (!is_property_present.has_value())
|
|
111
|
-
{
|
|
112
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayName");
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (!is_property_present.value())
|
|
116
|
-
{
|
|
117
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
118
|
-
return nullptr;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
return py::convert([&]()
|
|
122
|
-
{
|
|
123
|
-
auto _gil = release_gil();
|
|
124
|
-
return self->obj.DisplayName();
|
|
125
|
-
}());
|
|
126
|
-
}
|
|
127
|
-
catch (...)
|
|
128
|
-
{
|
|
129
|
-
py::to_PyErr();
|
|
130
|
-
return nullptr;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
static PyObject* InstalledDesktopApp_get_DisplayVersion(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
135
|
-
{
|
|
136
|
-
try
|
|
137
|
-
{
|
|
138
|
-
static std::optional<bool> is_property_present{};
|
|
139
|
-
|
|
140
|
-
if (!is_property_present.has_value())
|
|
141
|
-
{
|
|
142
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayVersion");
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
if (!is_property_present.value())
|
|
146
|
-
{
|
|
147
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
148
|
-
return nullptr;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return py::convert([&]()
|
|
152
|
-
{
|
|
153
|
-
auto _gil = release_gil();
|
|
154
|
-
return self->obj.DisplayVersion();
|
|
155
|
-
}());
|
|
156
|
-
}
|
|
157
|
-
catch (...)
|
|
158
|
-
{
|
|
159
|
-
py::to_PyErr();
|
|
160
|
-
return nullptr;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
static PyObject* InstalledDesktopApp_get_Id(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
165
|
-
{
|
|
166
|
-
try
|
|
167
|
-
{
|
|
168
|
-
static std::optional<bool> is_property_present{};
|
|
169
|
-
|
|
170
|
-
if (!is_property_present.has_value())
|
|
171
|
-
{
|
|
172
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Id");
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (!is_property_present.value())
|
|
176
|
-
{
|
|
177
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
178
|
-
return nullptr;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return py::convert([&]()
|
|
182
|
-
{
|
|
183
|
-
auto _gil = release_gil();
|
|
184
|
-
return self->obj.Id();
|
|
185
|
-
}());
|
|
186
|
-
}
|
|
187
|
-
catch (...)
|
|
188
|
-
{
|
|
189
|
-
py::to_PyErr();
|
|
190
|
-
return nullptr;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
static PyObject* InstalledDesktopApp_get_Publisher(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
195
|
-
{
|
|
196
|
-
try
|
|
197
|
-
{
|
|
198
|
-
static std::optional<bool> is_property_present{};
|
|
199
|
-
|
|
200
|
-
if (!is_property_present.has_value())
|
|
201
|
-
{
|
|
202
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Publisher");
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
if (!is_property_present.value())
|
|
206
|
-
{
|
|
207
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
208
|
-
return nullptr;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return py::convert([&]()
|
|
212
|
-
{
|
|
213
|
-
auto _gil = release_gil();
|
|
214
|
-
return self->obj.Publisher();
|
|
215
|
-
}());
|
|
216
|
-
}
|
|
217
|
-
catch (...)
|
|
218
|
-
{
|
|
219
|
-
py::to_PyErr();
|
|
220
|
-
return nullptr;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
static PyObject* _assign_array_InstalledDesktopApp(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
225
|
-
{
|
|
226
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::System::Inventory::InstalledDesktopApp>>();
|
|
227
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
228
|
-
{
|
|
229
|
-
return nullptr;
|
|
230
|
-
}
|
|
231
|
-
Py_RETURN_NONE;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
static PyObject* _from_InstalledDesktopApp(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
235
|
-
{
|
|
236
|
-
try
|
|
237
|
-
{
|
|
238
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
239
|
-
return py::convert(return_value.as<winrt::Windows::System::Inventory::InstalledDesktopApp>());
|
|
240
|
-
}
|
|
241
|
-
catch (...)
|
|
242
|
-
{
|
|
243
|
-
py::to_PyErr();
|
|
244
|
-
return nullptr;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
static PyObject* _str_InstalledDesktopApp(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self) noexcept
|
|
249
|
-
{
|
|
250
|
-
try
|
|
251
|
-
{
|
|
252
|
-
return py::convert([&]()
|
|
253
|
-
{
|
|
254
|
-
auto _gil = py::release_gil();
|
|
255
|
-
return self->obj.ToString();
|
|
256
|
-
}());
|
|
257
|
-
}
|
|
258
|
-
catch (...)
|
|
259
|
-
{
|
|
260
|
-
py::to_PyErr();
|
|
261
|
-
return nullptr;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
static PyMethodDef _methods_InstalledDesktopApp[] = {
|
|
266
|
-
{ "to_string", reinterpret_cast<PyCFunction>(InstalledDesktopApp_ToString), METH_VARARGS, nullptr },
|
|
267
|
-
{ "_assign_array_", _assign_array_InstalledDesktopApp, METH_O | METH_STATIC, nullptr },
|
|
268
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_InstalledDesktopApp), METH_O | METH_STATIC, nullptr },
|
|
269
|
-
{ }};
|
|
270
|
-
|
|
271
|
-
static PyGetSetDef _getset_InstalledDesktopApp[] = {
|
|
272
|
-
{ "display_name", reinterpret_cast<getter>(InstalledDesktopApp_get_DisplayName), nullptr, nullptr, nullptr },
|
|
273
|
-
{ "display_version", reinterpret_cast<getter>(InstalledDesktopApp_get_DisplayVersion), nullptr, nullptr, nullptr },
|
|
274
|
-
{ "id", reinterpret_cast<getter>(InstalledDesktopApp_get_Id), nullptr, nullptr, nullptr },
|
|
275
|
-
{ "publisher", reinterpret_cast<getter>(InstalledDesktopApp_get_Publisher), nullptr, nullptr, nullptr },
|
|
276
|
-
{ }};
|
|
277
|
-
|
|
278
|
-
static PyType_Slot _type_slots_InstalledDesktopApp[] = {
|
|
279
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_InstalledDesktopApp) },
|
|
280
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_InstalledDesktopApp) },
|
|
281
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_InstalledDesktopApp) },
|
|
282
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_InstalledDesktopApp) },
|
|
283
|
-
{ Py_tp_str, reinterpret_cast<void*>(_str_InstalledDesktopApp) },
|
|
284
|
-
{ }};
|
|
285
|
-
|
|
286
|
-
static PyType_Spec type_spec_InstalledDesktopApp = {
|
|
287
|
-
"winrt._winrt_windows_system_inventory.InstalledDesktopApp",
|
|
288
|
-
sizeof(py::wrapper::Windows::System::Inventory::InstalledDesktopApp),
|
|
289
|
-
0,
|
|
290
|
-
Py_TPFLAGS_DEFAULT,
|
|
291
|
-
_type_slots_InstalledDesktopApp};
|
|
292
|
-
|
|
293
|
-
static PyGetSetDef getset_InstalledDesktopApp_Static[] = {
|
|
294
|
-
{ }};
|
|
295
|
-
|
|
296
|
-
static PyMethodDef methods_InstalledDesktopApp_Static[] = {
|
|
297
|
-
{ "get_inventory_async", reinterpret_cast<PyCFunction>(InstalledDesktopApp_GetInventoryAsync), METH_VARARGS, nullptr },
|
|
298
|
-
{ }};
|
|
299
|
-
|
|
300
|
-
static PyType_Slot type_slots_InstalledDesktopApp_Static[] =
|
|
301
|
-
{
|
|
302
|
-
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
303
|
-
{ Py_tp_getset, reinterpret_cast<void*>(getset_InstalledDesktopApp_Static) },
|
|
304
|
-
{ Py_tp_methods, reinterpret_cast<void*>(methods_InstalledDesktopApp_Static) },
|
|
305
|
-
{ }
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
static PyType_Spec type_spec_InstalledDesktopApp_Static = {
|
|
309
|
-
"winrt._winrt_windows_system_inventory.InstalledDesktopApp_Static",
|
|
310
|
-
static_cast<int>(PyType_Type.tp_basicsize),
|
|
311
|
-
static_cast<int>(PyType_Type.tp_itemsize),
|
|
312
|
-
Py_TPFLAGS_DEFAULT,
|
|
313
|
-
type_slots_InstalledDesktopApp_Static};
|
|
314
|
-
|
|
315
|
-
// ----- Windows.System.Inventory Initialization --------------------
|
|
316
|
-
|
|
317
|
-
PyDoc_STRVAR(module_doc, "Windows.System.Inventory");
|
|
318
|
-
|
|
319
|
-
static PyModuleDef module_def = {
|
|
320
|
-
PyModuleDef_HEAD_INIT,
|
|
321
|
-
"_winrt_windows_system_inventory",
|
|
322
|
-
module_doc,
|
|
323
|
-
0,
|
|
324
|
-
nullptr,
|
|
325
|
-
nullptr,
|
|
326
|
-
nullptr,
|
|
327
|
-
nullptr,
|
|
328
|
-
nullptr};
|
|
329
|
-
} // py::cpp::Windows::System::Inventory
|
|
330
|
-
|
|
331
|
-
PyMODINIT_FUNC PyInit__winrt_windows_system_inventory(void) noexcept
|
|
332
|
-
{
|
|
333
|
-
using namespace py::cpp::Windows::System::Inventory;
|
|
334
|
-
|
|
335
|
-
if (py::import_winrt_runtime() == -1)
|
|
336
|
-
{
|
|
337
|
-
return nullptr;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
341
|
-
|
|
342
|
-
if (!module)
|
|
343
|
-
{
|
|
344
|
-
return nullptr;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
348
|
-
if (!inspectable_meta_type)
|
|
349
|
-
{
|
|
350
|
-
return nullptr;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
auto object_type = py::get_object_type();
|
|
354
|
-
if (!object_type)
|
|
355
|
-
{
|
|
356
|
-
return nullptr;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
360
|
-
|
|
361
|
-
if (!object_bases)
|
|
362
|
-
{
|
|
363
|
-
return nullptr;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
py::pyobj_handle InstalledDesktopApp_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
367
|
-
if (!InstalledDesktopApp_Static_bases)
|
|
368
|
-
{
|
|
369
|
-
return nullptr;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
py::pyobj_handle type_InstalledDesktopApp_Static{PyType_FromSpecWithBases(&type_spec_InstalledDesktopApp_Static, InstalledDesktopApp_Static_bases.get())};
|
|
373
|
-
if (!type_InstalledDesktopApp_Static)
|
|
374
|
-
{
|
|
375
|
-
return nullptr;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
py::pytype_handle InstalledDesktopApp_type{py::register_python_type(module.get(), &type_spec_InstalledDesktopApp, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_InstalledDesktopApp_Static.get()))};
|
|
379
|
-
if (!InstalledDesktopApp_type)
|
|
380
|
-
{
|
|
381
|
-
return nullptr;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
return module.detach();
|
|
386
|
-
}
|
|
@@ -1,47 +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.Inventory"
|
|
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", "optional-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
|
-
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
-
|
|
32
|
-
[tool.setuptools.package-data]
|
|
33
|
-
"*" = ["*.pyi", "py.typed"]
|
|
34
|
-
|
|
35
|
-
[tool.cibuildwheel]
|
|
36
|
-
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
|
-
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
-
before-build = "uv pip install setuptools"
|
|
41
|
-
# don't build for PyPy
|
|
42
|
-
skip = "pp*"
|
|
43
|
-
# suppress warnings about ARM64 testing
|
|
44
|
-
test-skip = "*-win_arm64"
|
|
45
|
-
|
|
46
|
-
[tool.cibuildwheel.windows]
|
|
47
|
-
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_inventory",
|
|
28
|
-
sources=["py.Windows.System.Inventory.cpp"],
|
|
29
|
-
include_dirs=get_include_dirs(),
|
|
30
|
-
libraries=["windowsapp"],
|
|
31
|
-
)
|
|
32
|
-
],
|
|
33
|
-
)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.Inventory
|
|
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
|
-
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
|
|
19
|
-
|
|
20
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
|
-
|
|
22
|
-
# winrt-Windows.System.Inventory
|
|
23
|
-
|
|
24
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Inventory` namespace.
|
|
25
|
-
|
|
26
|
-
This package provides the `winrt.windows.system.inventory` module.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
README.md
|
|
2
|
-
all-requirements.txt
|
|
3
|
-
py.Windows.System.Inventory.cpp
|
|
4
|
-
pyproject.toml
|
|
5
|
-
pywinrt-version.txt
|
|
6
|
-
requirements.txt
|
|
7
|
-
setup.py
|
|
8
|
-
winrt/_winrt_windows_system_inventory.pyi
|
|
9
|
-
winrt/windows/system/inventory/__init__.py
|
|
10
|
-
winrt/windows/system/inventory/py.typed
|
|
11
|
-
winrt_Windows.System.Inventory.egg-info/PKG-INFO
|
|
12
|
-
winrt_Windows.System.Inventory.egg-info/SOURCES.txt
|
|
13
|
-
winrt_Windows.System.Inventory.egg-info/dependency_links.txt
|
|
14
|
-
winrt_Windows.System.Inventory.egg-info/requires.txt
|
|
15
|
-
winrt_Windows.System.Inventory.egg-info/top_level.txt
|
winrt_windows_system_inventory-3.2.0/winrt_Windows.System.Inventory.egg-info/dependency_links.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt
|