winrt-Microsoft.WindowsAppRuntime.Bootstrap 4!2.6.5__tar.gz → 4!2.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5/winrt_Microsoft.WindowsAppRuntime.Bootstrap.egg-info → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/PKG-INFO +3 -3
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/README.md +2 -2
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/interop.h +91 -8
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/pyproject.toml +1 -1
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/setup.py +7 -7
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/version_info.h +5 -5
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0/winrt_Microsoft.WindowsAppRuntime.Bootstrap.egg-info}/PKG-INFO +3 -3
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/LICENSE +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/LICENSE.Microsoft.WindowsAppSDK.txt +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/MANIFEST.in +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/py.Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap.cpp +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/requirements.txt +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/setup.cfg +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/winrt/_winrt_microsoft_windows_applicationmodel_dynamicdependency_bootstrap.pyi +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/winrt/microsoft/windows/applicationmodel/dynamicdependency/bootstrap/__init__.py +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/winrt/microsoft/windows/applicationmodel/dynamicdependency/bootstrap/py.typed +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/winrt_Microsoft.WindowsAppRuntime.Bootstrap.egg-info/SOURCES.txt +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/winrt_Microsoft.WindowsAppRuntime.Bootstrap.egg-info/dependency_links.txt +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/winrt_Microsoft.WindowsAppRuntime.Bootstrap.egg-info/requires.txt +0 -0
- {winrt_microsoft_windowsappruntime_bootstrap-4!2.6.5 → winrt_microsoft_windowsappruntime_bootstrap-4!2.7.0}/winrt_Microsoft.WindowsAppRuntime.Bootstrap.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Microsoft.WindowsAppRuntime.Bootstrap
|
|
3
|
-
Version: 4!2.
|
|
3
|
+
Version: 4!2.7.0
|
|
4
4
|
Summary: Finds the Windows App Runtime for an unpackaged app and loads it, as MddBootstrap.h does in C++. A packaged app does not need it.
|
|
5
5
|
License-Expression: MIT AND LicenseRef-Microsoft-WindowsAppSDK
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -37,9 +37,9 @@ Finds the Windows App Runtime for an unpackaged app and loads it, as `MddBootstr
|
|
|
37
37
|
|
|
38
38
|
This package provides the `winrt.microsoft.windows.applicationmodel.dynamicdependency.bootstrap` module.
|
|
39
39
|
|
|
40
|
-
It is built against version 2.
|
|
40
|
+
It is built against version 2.7.0 of the `Microsoft.WindowsAppSDK`
|
|
41
41
|
NuGet package and loads that release of the Windows App SDK unless told otherwise.
|
|
42
|
-
It carries `Microsoft.WindowsAppRuntime.Bootstrap.dll` from version 2.
|
|
42
|
+
It carries `Microsoft.WindowsAppRuntime.Bootstrap.dll` from version 2.7.0 of the
|
|
43
43
|
`Microsoft.WindowsAppSDK.Foundation` NuGet package.
|
|
44
44
|
|
|
45
45
|
```
|
|
@@ -11,9 +11,9 @@ Finds the Windows App Runtime for an unpackaged app and loads it, as `MddBootstr
|
|
|
11
11
|
|
|
12
12
|
This package provides the `winrt.microsoft.windows.applicationmodel.dynamicdependency.bootstrap` module.
|
|
13
13
|
|
|
14
|
-
It is built against version 2.
|
|
14
|
+
It is built against version 2.7.0 of the `Microsoft.WindowsAppSDK`
|
|
15
15
|
NuGet package and loads that release of the Windows App SDK unless told otherwise.
|
|
16
|
-
It carries `Microsoft.WindowsAppRuntime.Bootstrap.dll` from version 2.
|
|
16
|
+
It carries `Microsoft.WindowsAppRuntime.Bootstrap.dll` from version 2.7.0 of the
|
|
17
17
|
`Microsoft.WindowsAppSDK.Foundation` NuGet package.
|
|
18
18
|
|
|
19
19
|
```
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#include <oleauto.h>
|
|
25
25
|
|
|
26
26
|
#include <cstddef>
|
|
27
|
+
#include <utility>
|
|
27
28
|
|
|
28
29
|
// The version of the Python C API a module is compiled against: the stable
|
|
29
30
|
// ABI's where it is built for that, and otherwise that of the Python it is
|
|
@@ -65,6 +66,87 @@ namespace interop
|
|
|
65
66
|
PyThreadState* state;
|
|
66
67
|
};
|
|
67
68
|
|
|
69
|
+
/// Owns a reference to the COM interface @p I, or nothing, and releases it
|
|
70
|
+
/// when it goes out of scope.
|
|
71
|
+
template<typename I>
|
|
72
|
+
class com_ptr
|
|
73
|
+
{
|
|
74
|
+
public:
|
|
75
|
+
com_ptr() noexcept = default;
|
|
76
|
+
|
|
77
|
+
/// The reference to @p abi moves in.
|
|
78
|
+
explicit com_ptr(I* abi) noexcept : abi{abi}
|
|
79
|
+
{
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
com_ptr(com_ptr&& other) noexcept : abi{other.detach()}
|
|
83
|
+
{
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
com_ptr& operator=(com_ptr&& other) noexcept
|
|
87
|
+
{
|
|
88
|
+
if (this != &other)
|
|
89
|
+
{
|
|
90
|
+
release();
|
|
91
|
+
abi = other.detach();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return *this;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
~com_ptr() noexcept
|
|
98
|
+
{
|
|
99
|
+
release();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
explicit operator bool() const noexcept
|
|
103
|
+
{
|
|
104
|
+
return abi != nullptr;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
I* get() const noexcept
|
|
108
|
+
{
|
|
109
|
+
return abi;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
I* operator->() const noexcept
|
|
113
|
+
{
|
|
114
|
+
return abi;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/// Releases what this holds and returns where to put a new reference,
|
|
118
|
+
/// for an out parameter.
|
|
119
|
+
I** put() noexcept
|
|
120
|
+
{
|
|
121
|
+
release();
|
|
122
|
+
return &abi;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/// put(), for an out parameter that takes a void**, as one that comes
|
|
126
|
+
/// with an IID does.
|
|
127
|
+
void** put_void() noexcept
|
|
128
|
+
{
|
|
129
|
+
return reinterpret_cast<void**>(put());
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/// Gives up the reference, which the caller then owns.
|
|
133
|
+
I* detach() noexcept
|
|
134
|
+
{
|
|
135
|
+
return std::exchange(abi, nullptr);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
private:
|
|
139
|
+
void release() noexcept
|
|
140
|
+
{
|
|
141
|
+
if (auto const old = detach())
|
|
142
|
+
{
|
|
143
|
+
old->Release();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
I* abi{};
|
|
148
|
+
};
|
|
149
|
+
|
|
68
150
|
/// The destructor of an interface pointer capsule this module made, which
|
|
69
151
|
/// may hold the last reference to the object.
|
|
70
152
|
inline void release_interface(PyObject* capsule) noexcept
|
|
@@ -136,21 +218,22 @@ namespace interop
|
|
|
136
218
|
{
|
|
137
219
|
// The error info belongs to the thread and the next failure replaces
|
|
138
220
|
// it, so it is taken before anything else can fail.
|
|
139
|
-
IErrorInfo
|
|
140
|
-
if (GetErrorInfo(0,
|
|
221
|
+
com_ptr<IErrorInfo> info;
|
|
222
|
+
if (GetErrorInfo(0, info.put()) != S_OK)
|
|
141
223
|
{
|
|
142
|
-
|
|
224
|
+
// what a failed call left there is not a reference
|
|
225
|
+
info.detach();
|
|
143
226
|
}
|
|
144
227
|
|
|
145
|
-
return set_hresult_error(hr, info);
|
|
228
|
+
return set_hresult_error(hr, info.detach());
|
|
146
229
|
}
|
|
147
230
|
|
|
148
|
-
///
|
|
149
|
-
///
|
|
231
|
+
/// Puts in @p result the @p I interface of what the interface pointer
|
|
232
|
+
/// capsule @p capsule holds.
|
|
150
233
|
/// @returns false with a Python exception set when @p capsule is not one
|
|
151
234
|
/// or what it holds does not implement @p I.
|
|
152
235
|
template<typename I>
|
|
153
|
-
bool query_capsule(PyObject* capsule, I
|
|
236
|
+
bool query_capsule(PyObject* capsule, com_ptr<I>& result) noexcept
|
|
154
237
|
{
|
|
155
238
|
auto const abi = PyCapsule_GetPointer(capsule, interface_capsule_name);
|
|
156
239
|
if (!abi)
|
|
@@ -159,7 +242,7 @@ namespace interop
|
|
|
159
242
|
}
|
|
160
243
|
|
|
161
244
|
auto const hr = static_cast<IUnknown*>(abi)->QueryInterface(
|
|
162
|
-
__uuidof(I),
|
|
245
|
+
__uuidof(I), result.put_void());
|
|
163
246
|
if (FAILED(hr))
|
|
164
247
|
{
|
|
165
248
|
set_hresult_error(hr);
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Microsoft.WindowsAppRuntime.Bootstrap"
|
|
9
|
-
version = "4!2.
|
|
9
|
+
version = "4!2.7.0"
|
|
10
10
|
description = "Finds the Windows App Runtime for an unpackaged app and loads it, as MddBootstrap.h does in C++. A packaged app does not need it."
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
license = "MIT AND LicenseRef-Microsoft-WindowsAppSDK"
|
|
@@ -25,9 +25,9 @@ INCLUDE_DIRS: list[str] = []
|
|
|
25
25
|
# nuget.org serves it, what it has to hash to and where in it the headers are.
|
|
26
26
|
NUGET_PACKAGES = {
|
|
27
27
|
"WASDK_FOUNDATION_PATH": (
|
|
28
|
-
"Microsoft.WindowsAppSDK.Foundation.2.
|
|
29
|
-
"https://api.nuget.org/v3-flatcontainer/microsoft.windowsappsdk.foundation/2.
|
|
30
|
-
"
|
|
28
|
+
"Microsoft.WindowsAppSDK.Foundation.2.7.0",
|
|
29
|
+
"https://api.nuget.org/v3-flatcontainer/microsoft.windowsappsdk.foundation/2.7.0/microsoft.windowsappsdk.foundation.2.7.0.nupkg",
|
|
30
|
+
"4131660bda7476eef751ce134c9847b5a79e4051809bffbf9dd171f4246afdf8",
|
|
31
31
|
["include"],
|
|
32
32
|
),
|
|
33
33
|
}
|
|
@@ -120,8 +120,8 @@ def get_sbom() -> dict[str, object]:
|
|
|
120
120
|
"component": {
|
|
121
121
|
"type": "library",
|
|
122
122
|
"name": "winrt-Microsoft.WindowsAppRuntime.Bootstrap",
|
|
123
|
-
"version": "4!2.
|
|
124
|
-
"purl": "pkg:pypi/winrt-microsoft-windowsappruntime-bootstrap@4!2.
|
|
123
|
+
"version": "4!2.7.0",
|
|
124
|
+
"purl": "pkg:pypi/winrt-microsoft-windowsappruntime-bootstrap@4!2.7.0",
|
|
125
125
|
"licenses": [{"expression": "MIT"}],
|
|
126
126
|
"supplier": {"name": "PyWinRT"},
|
|
127
127
|
}
|
|
@@ -130,8 +130,8 @@ def get_sbom() -> dict[str, object]:
|
|
|
130
130
|
{
|
|
131
131
|
"type": "library",
|
|
132
132
|
"name": PAYLOAD_DLL_NAME,
|
|
133
|
-
"version": "2.
|
|
134
|
-
"purl": "pkg:nuget/Microsoft.WindowsAppSDK.Foundation@2.
|
|
133
|
+
"version": "2.7.0",
|
|
134
|
+
"purl": "pkg:nuget/Microsoft.WindowsAppSDK.Foundation@2.7.0",
|
|
135
135
|
"licenses": [{"license": {"name": PAYLOAD_LICENSE_ID}}],
|
|
136
136
|
"supplier": {"name": "Microsoft Corporation"},
|
|
137
137
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
//
|
|
3
3
|
// The Windows App SDK release this module is built for, as
|
|
4
|
-
// WindowsAppSDK-VersionInfo.h in Microsoft.WindowsAppSDK.Runtime 2.
|
|
4
|
+
// WindowsAppSDK-VersionInfo.h in Microsoft.WindowsAppSDK.Runtime 2.7.0
|
|
5
5
|
// defines it.
|
|
6
6
|
|
|
7
7
|
#pragma once
|
|
8
8
|
|
|
9
9
|
#define WINDOWSAPPSDK_RELEASE_MAJOR 2
|
|
10
|
-
#define WINDOWSAPPSDK_RELEASE_MINOR
|
|
11
|
-
#define WINDOWSAPPSDK_RELEASE_MAJORMINOR
|
|
10
|
+
#define WINDOWSAPPSDK_RELEASE_MINOR 7
|
|
11
|
+
#define WINDOWSAPPSDK_RELEASE_MAJORMINOR 0x00020007
|
|
12
12
|
#define WINDOWSAPPSDK_RELEASE_VERSION_TAG ""
|
|
13
13
|
#define WINDOWSAPPSDK_RELEASE_VERSION_TAG_W L""
|
|
14
|
-
#define WINDOWSAPPSDK_RUNTIME_VERSION_UINT64
|
|
15
|
-
#define WINDOWSAPPSDK_RUNTIME_VERSION_DOTQUADSTRING "2.
|
|
14
|
+
#define WINDOWSAPPSDK_RUNTIME_VERSION_UINT64 0x0002000700000000u
|
|
15
|
+
#define WINDOWSAPPSDK_RUNTIME_VERSION_DOTQUADSTRING "2.7.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Microsoft.WindowsAppRuntime.Bootstrap
|
|
3
|
-
Version: 4!2.
|
|
3
|
+
Version: 4!2.7.0
|
|
4
4
|
Summary: Finds the Windows App Runtime for an unpackaged app and loads it, as MddBootstrap.h does in C++. A packaged app does not need it.
|
|
5
5
|
License-Expression: MIT AND LicenseRef-Microsoft-WindowsAppSDK
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -37,9 +37,9 @@ Finds the Windows App Runtime for an unpackaged app and loads it, as `MddBootstr
|
|
|
37
37
|
|
|
38
38
|
This package provides the `winrt.microsoft.windows.applicationmodel.dynamicdependency.bootstrap` module.
|
|
39
39
|
|
|
40
|
-
It is built against version 2.
|
|
40
|
+
It is built against version 2.7.0 of the `Microsoft.WindowsAppSDK`
|
|
41
41
|
NuGet package and loads that release of the Windows App SDK unless told otherwise.
|
|
42
|
-
It carries `Microsoft.WindowsAppRuntime.Bootstrap.dll` from version 2.
|
|
42
|
+
It carries `Microsoft.WindowsAppRuntime.Bootstrap.dll` from version 2.7.0 of the
|
|
43
43
|
`Microsoft.WindowsAppSDK.Foundation` NuGet package.
|
|
44
44
|
|
|
45
45
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|