Skip to content

Commit 2ae1a52

Browse files
authored
Update Windows Runtime metadata (#3729)
1 parent 9728178 commit 2ae1a52

62 files changed

Lines changed: 6550 additions & 7236 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
4 KB
Binary file not shown.

crates/libs/bindgen/default/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ like [ILSpy](https://github.com/icsharpcode/ILSpy).
1515
## `Windows.winmd`
1616

1717
- Source: <https://www.nuget.org/packages/Microsoft.Windows.SDK.Contracts>
18-
- Version: `10.0.26100.1742`
18+
- Version: `10.0.26100.4948`
1919

2020
The `Windows.winmd` file was created by merging the .winmd files from the last nuget package as follows:
2121

crates/libs/windows/Cargo.toml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ docs = []
3939
std = ["windows-collections/std", "windows-core/std", "windows-future/std", "windows-numerics/std"]
4040
# generated features
4141
AI = ["Foundation"]
42+
AI_Actions = ["AI"]
43+
AI_Actions_Hosting = ["AI_Actions"]
44+
AI_Actions_Provider = ["AI_Actions"]
45+
AI_Agents = ["AI"]
46+
AI_Agents_Mcp = ["AI_Agents"]
4247
AI_MachineLearning = ["AI"]
4348
ApplicationModel = ["Foundation"]
4449
ApplicationModel_Activation = ["ApplicationModel"]
@@ -147,8 +152,6 @@ Devices_Usb = ["Devices"]
147152
Devices_WiFi = ["Devices"]
148153
Devices_WiFiDirect = ["Devices"]
149154
Devices_WiFiDirect_Services = ["Devices_WiFiDirect"]
150-
Embedded = ["Foundation"]
151-
Embedded_DeviceLockdown = ["Embedded"]
152155
Foundation = []
153156
Foundation_Collections = ["Foundation"]
154157
Foundation_Diagnostics = ["Foundation"]
@@ -183,6 +186,7 @@ Graphics_Printing = ["Graphics"]
183186
Graphics_Printing_OptionDetails = ["Graphics_Printing"]
184187
Graphics_Printing_PrintSupport = ["Graphics_Printing"]
185188
Graphics_Printing_PrintTicket = ["Graphics_Printing"]
189+
Graphics_Printing_ProtectedPrint = ["Graphics_Printing"]
186190
Graphics_Printing_Workflow = ["Graphics_Printing"]
187191
Graphics_Printing3D = ["Graphics"]
188192
Management = ["Foundation"]
@@ -245,30 +249,6 @@ Perception_People = ["Perception"]
245249
Perception_Spatial = ["Perception"]
246250
Perception_Spatial_Preview = ["Perception_Spatial"]
247251
Perception_Spatial_Surfaces = ["Perception_Spatial"]
248-
Phone = ["Foundation"]
249-
Phone_ApplicationModel = ["Phone"]
250-
Phone_Devices = ["Phone"]
251-
Phone_Devices_Notification = ["Phone_Devices"]
252-
Phone_Devices_Power = ["Phone_Devices"]
253-
Phone_Management = ["Phone"]
254-
Phone_Management_Deployment = ["Phone_Management"]
255-
Phone_Media = ["Phone"]
256-
Phone_Media_Devices = ["Phone_Media"]
257-
Phone_Notification = ["Phone"]
258-
Phone_Notification_Management = ["Phone_Notification"]
259-
Phone_PersonalInformation = ["Phone"]
260-
Phone_PersonalInformation_Provisioning = ["Phone_PersonalInformation"]
261-
Phone_Speech = ["Phone"]
262-
Phone_Speech_Recognition = ["Phone_Speech"]
263-
Phone_StartScreen = ["Phone"]
264-
Phone_System = ["Phone"]
265-
Phone_System_Power = ["Phone_System"]
266-
Phone_System_Profile = ["Phone_System"]
267-
Phone_System_UserProfile = ["Phone_System"]
268-
Phone_System_UserProfile_GameServices = ["Phone_System_UserProfile"]
269-
Phone_System_UserProfile_GameServices_Core = ["Phone_System_UserProfile_GameServices"]
270-
Phone_UI = ["Phone"]
271-
Phone_UI_Input = ["Phone_UI"]
272252
Security = ["Foundation"]
273253
Security_Authentication = ["Security"]
274254
Security_Authentication_Identity = ["Security_Authentication"]
@@ -347,6 +327,7 @@ UI_Input_Inking_Core = ["UI_Input_Inking"]
347327
UI_Input_Inking_Preview = ["UI_Input_Inking"]
348328
UI_Input_Preview = ["UI_Input"]
349329
UI_Input_Preview_Injection = ["UI_Input_Preview"]
330+
UI_Input_Preview_Text = ["UI_Input_Preview"]
350331
UI_Input_Spatial = ["UI_Input"]
351332
UI_Notifications = ["UI"]
352333
UI_Notifications_Management = ["UI_Notifications"]
@@ -361,7 +342,6 @@ UI_UIAutomation_Core = ["UI_UIAutomation"]
361342
UI_ViewManagement = ["UI"]
362343
UI_ViewManagement_Core = ["UI_ViewManagement"]
363344
UI_WebUI = ["UI"]
364-
UI_WebUI_Core = ["UI_WebUI"]
365345
UI_WindowManagement = ["UI"]
366346
UI_WindowManagement_Preview = ["UI_WindowManagement"]
367347
Wdk = ["Win32_Foundation"]

crates/libs/windows/features.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

crates/libs/windows/src/Windows/AI/Actions/Hosting/mod.rs

Lines changed: 497 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
windows_core::imp::define_interface!(IActionFeedbackHandler, IActionFeedbackHandler_Vtbl, 0xa3fc3c51_a8c6_52c8_ad77_37bf3e2b565c);
2+
impl windows_core::RuntimeType for IActionFeedbackHandler {
3+
const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::<Self>();
4+
}
5+
windows_core::imp::interface_hierarchy!(IActionFeedbackHandler, windows_core::IUnknown, windows_core::IInspectable);
6+
impl IActionFeedbackHandler {
7+
pub fn ProcessFeedbackAsync<P0, P1>(&self, context: P0, feedback: P1) -> windows_core::Result<windows_future::IAsyncAction>
8+
where
9+
P0: windows_core::Param<super::ActionInvocationContext>,
10+
P1: windows_core::Param<super::ActionFeedback>,
11+
{
12+
let this = self;
13+
unsafe {
14+
let mut result__ = core::mem::zeroed();
15+
(windows_core::Interface::vtable(this).ProcessFeedbackAsync)(windows_core::Interface::as_raw(this), context.param().abi(), feedback.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__))
16+
}
17+
}
18+
}
19+
impl windows_core::RuntimeName for IActionFeedbackHandler {
20+
const NAME: &'static str = "Windows.AI.Actions.Provider.IActionFeedbackHandler";
21+
}
22+
pub trait IActionFeedbackHandler_Impl: windows_core::IUnknownImpl {
23+
fn ProcessFeedbackAsync(&self, context: windows_core::Ref<super::ActionInvocationContext>, feedback: windows_core::Ref<super::ActionFeedback>) -> windows_core::Result<windows_future::IAsyncAction>;
24+
}
25+
impl IActionFeedbackHandler_Vtbl {
26+
pub const fn new<Identity: IActionFeedbackHandler_Impl, const OFFSET: isize>() -> Self {
27+
unsafe extern "system" fn ProcessFeedbackAsync<Identity: IActionFeedbackHandler_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, feedback: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT {
28+
unsafe {
29+
let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity);
30+
match IActionFeedbackHandler_Impl::ProcessFeedbackAsync(this, core::mem::transmute_copy(&context), core::mem::transmute_copy(&feedback)) {
31+
Ok(ok__) => {
32+
result__.write(core::mem::transmute_copy(&ok__));
33+
core::mem::forget(ok__);
34+
windows_core::HRESULT(0)
35+
}
36+
Err(err) => err.into(),
37+
}
38+
}
39+
}
40+
Self {
41+
base__: windows_core::IInspectable_Vtbl::new::<Identity, IActionFeedbackHandler, OFFSET>(),
42+
ProcessFeedbackAsync: ProcessFeedbackAsync::<Identity, OFFSET>,
43+
}
44+
}
45+
pub fn matches(iid: &windows_core::GUID) -> bool {
46+
iid == &<IActionFeedbackHandler as windows_core::Interface>::IID
47+
}
48+
}
49+
#[repr(C)]
50+
#[doc(hidden)]
51+
pub struct IActionFeedbackHandler_Vtbl {
52+
pub base__: windows_core::IInspectable_Vtbl,
53+
pub ProcessFeedbackAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
54+
}
55+
windows_core::imp::define_interface!(IActionProvider, IActionProvider_Vtbl, 0x62906c47_3d07_55f1_aefa_1522505afbbe);
56+
impl windows_core::RuntimeType for IActionProvider {
57+
const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::<Self>();
58+
}
59+
windows_core::imp::interface_hierarchy!(IActionProvider, windows_core::IUnknown, windows_core::IInspectable);
60+
impl IActionProvider {
61+
pub fn InvokeAsync<P0>(&self, context: P0) -> windows_core::Result<windows_future::IAsyncAction>
62+
where
63+
P0: windows_core::Param<super::ActionInvocationContext>,
64+
{
65+
let this = self;
66+
unsafe {
67+
let mut result__ = core::mem::zeroed();
68+
(windows_core::Interface::vtable(this).InvokeAsync)(windows_core::Interface::as_raw(this), context.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__))
69+
}
70+
}
71+
}
72+
impl windows_core::RuntimeName for IActionProvider {
73+
const NAME: &'static str = "Windows.AI.Actions.Provider.IActionProvider";
74+
}
75+
pub trait IActionProvider_Impl: windows_core::IUnknownImpl {
76+
fn InvokeAsync(&self, context: windows_core::Ref<super::ActionInvocationContext>) -> windows_core::Result<windows_future::IAsyncAction>;
77+
}
78+
impl IActionProvider_Vtbl {
79+
pub const fn new<Identity: IActionProvider_Impl, const OFFSET: isize>() -> Self {
80+
unsafe extern "system" fn InvokeAsync<Identity: IActionProvider_Impl, const OFFSET: isize>(this: *mut core::ffi::c_void, context: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT {
81+
unsafe {
82+
let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity);
83+
match IActionProvider_Impl::InvokeAsync(this, core::mem::transmute_copy(&context)) {
84+
Ok(ok__) => {
85+
result__.write(core::mem::transmute_copy(&ok__));
86+
core::mem::forget(ok__);
87+
windows_core::HRESULT(0)
88+
}
89+
Err(err) => err.into(),
90+
}
91+
}
92+
}
93+
Self { base__: windows_core::IInspectable_Vtbl::new::<Identity, IActionProvider, OFFSET>(), InvokeAsync: InvokeAsync::<Identity, OFFSET> }
94+
}
95+
pub fn matches(iid: &windows_core::GUID) -> bool {
96+
iid == &<IActionProvider as windows_core::Interface>::IID
97+
}
98+
}
99+
#[repr(C)]
100+
#[doc(hidden)]
101+
pub struct IActionProvider_Vtbl {
102+
pub base__: windows_core::IInspectable_Vtbl,
103+
pub InvokeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT,
104+
}

0 commit comments

Comments
 (0)