From b4fc6976ab44792b77ea870fe62b584b22010bcd Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 08:23:49 -0600 Subject: [PATCH 1/8] bindgen --- crates/libs/bindgen/src/type_map.rs | 8 ++++--- crates/libs/bindgen/src/types/class.rs | 4 ++-- crates/libs/bindgen/src/types/cpp_const.rs | 2 +- crates/libs/bindgen/src/types/cpp_delegate.rs | 2 +- crates/libs/bindgen/src/types/cpp_fn.rs | 2 +- .../libs/bindgen/src/types/cpp_interface.rs | 6 ++--- crates/libs/bindgen/src/types/cpp_method.rs | 2 +- crates/libs/bindgen/src/types/cpp_struct.rs | 2 +- crates/libs/bindgen/src/types/delegate.rs | 2 +- crates/libs/bindgen/src/types/interface.rs | 6 ++--- crates/libs/bindgen/src/types/method.rs | 2 +- crates/libs/bindgen/src/writer/cfg.rs | 23 +++++++++++++++---- 12 files changed, 38 insertions(+), 23 deletions(-) diff --git a/crates/libs/bindgen/src/type_map.rs b/crates/libs/bindgen/src/type_map.rs index 6703246a07f..e6e7fea2e0f 100644 --- a/crates/libs/bindgen/src/type_map.rs +++ b/crates/libs/bindgen/src/type_map.rs @@ -40,7 +40,7 @@ impl TypeMap { ty.combine(&mut item_dependencies); } - if item_dependencies.excluded(filter) { + if item_dependencies.excluded(filter, references) { continue; } @@ -101,7 +101,9 @@ impl TypeMap { }) } - fn excluded(&self, filter: &Filter) -> bool { - self.0.iter().any(|(tn, _)| filter.excludes_type_name(*tn)) + fn excluded(&self, filter: &Filter, references: &References) -> bool { + self.0 + .iter() + .any(|(tn, _)| filter.excludes_type_name(*tn) && references.contains(*tn).is_none()) } } diff --git a/crates/libs/bindgen/src/types/class.rs b/crates/libs/bindgen/src/types/class.rs index 45f8c15914b..bc8d27dfdd8 100644 --- a/crates/libs/bindgen/src/types/class.rs +++ b/crates/libs/bindgen/src/types/class.rs @@ -15,7 +15,7 @@ impl Class { return (Cfg::default(), quote! {}); } - let cfg = Cfg::new(self.def, &self.dependencies()); + let cfg = Cfg::new(self.def, &self.dependencies(), writer); let tokens = cfg.write(writer, false); (cfg, tokens) } @@ -90,7 +90,7 @@ impl Class { let interface_type = interface.write_name(writer); let cfg = if writer.config.package { - class_cfg.difference(interface.def, &interface.dependencies()).write(writer, false) + class_cfg.difference(interface.def, &interface.dependencies(), writer).write(writer, false) } else { quote! {} }; diff --git a/crates/libs/bindgen/src/types/cpp_const.rs b/crates/libs/bindgen/src/types/cpp_const.rs index 049855df52f..bfb676911de 100644 --- a/crates/libs/bindgen/src/types/cpp_const.rs +++ b/crates/libs/bindgen/src/types/cpp_const.rs @@ -32,7 +32,7 @@ impl CppConst { return quote! {}; } - Cfg::new(self.field, &self.dependencies()).write(writer, false) + Cfg::new(self.field, &self.dependencies(), writer).write(writer, false) } pub fn write(&self, writer: &Writer) -> TokenStream { diff --git a/crates/libs/bindgen/src/types/cpp_delegate.rs b/crates/libs/bindgen/src/types/cpp_delegate.rs index abaf87dc4d0..91a87b062c8 100644 --- a/crates/libs/bindgen/src/types/cpp_delegate.rs +++ b/crates/libs/bindgen/src/types/cpp_delegate.rs @@ -38,7 +38,7 @@ impl CppDelegate { return quote! {}; } - Cfg::new(self.def, &self.dependencies()).write(writer, false) + Cfg::new(self.def, &self.dependencies(), writer).write(writer, false) } pub fn write(&self, writer: &Writer) -> TokenStream { diff --git a/crates/libs/bindgen/src/types/cpp_fn.rs b/crates/libs/bindgen/src/types/cpp_fn.rs index 613581b213f..783cc9a1c8a 100644 --- a/crates/libs/bindgen/src/types/cpp_fn.rs +++ b/crates/libs/bindgen/src/types/cpp_fn.rs @@ -65,7 +65,7 @@ impl CppFn { return quote! {}; } - Cfg::new(self.method, &self.dependencies()).write(writer, false) + Cfg::new(self.method, &self.dependencies(), writer).write(writer, false) } pub fn write(&self, writer: &Writer) -> TokenStream { diff --git a/crates/libs/bindgen/src/types/cpp_interface.rs b/crates/libs/bindgen/src/types/cpp_interface.rs index df2dd22d991..6b0f5a1f2e8 100644 --- a/crates/libs/bindgen/src/types/cpp_interface.rs +++ b/crates/libs/bindgen/src/types/cpp_interface.rs @@ -49,7 +49,7 @@ impl CppInterface { return (Cfg::default(), quote! {}); } - let cfg = Cfg::new(self.def, &self.dependencies()); + let cfg = Cfg::new(self.def, &self.dependencies(), writer); let tokens = cfg.write(writer, false); (cfg, tokens) } @@ -83,7 +83,7 @@ impl CppInterface { let methods = methods.iter().map(|method| match method { CppMethodOrName::Method(method) => { - let method_cfg = class_cfg.difference(method.def, &method.dependencies); + let method_cfg = class_cfg.difference(method.def, &method.dependencies, writer); let yes = method_cfg.write(writer, false); let name = names.add(method.def); @@ -238,7 +238,7 @@ impl CppInterface { } }); - Cfg::new(self.def, &dependencies).write(writer, false) + Cfg::new(self.def, &dependencies, writer).write(writer, false) } else { quote! {} }; diff --git a/crates/libs/bindgen/src/types/cpp_method.rs b/crates/libs/bindgen/src/types/cpp_method.rs index 0ae668c0b98..c531a72b963 100644 --- a/crates/libs/bindgen/src/types/cpp_method.rs +++ b/crates/libs/bindgen/src/types/cpp_method.rs @@ -212,7 +212,7 @@ impl CppMethod { } parent - .difference(self.def, &self.dependencies) + .difference(self.def, &self.dependencies, writer) .write(writer, not) } diff --git a/crates/libs/bindgen/src/types/cpp_struct.rs b/crates/libs/bindgen/src/types/cpp_struct.rs index 2f2882c8643..a717dfbd8b5 100644 --- a/crates/libs/bindgen/src/types/cpp_struct.rs +++ b/crates/libs/bindgen/src/types/cpp_struct.rs @@ -51,7 +51,7 @@ impl CppStruct { return quote! {}; } - Cfg::new(self.def, &self.dependencies()).write(writer, false) + Cfg::new(self.def, &self.dependencies(), writer).write(writer, false) } pub fn write(&self, writer: &Writer) -> TokenStream { diff --git a/crates/libs/bindgen/src/types/delegate.rs b/crates/libs/bindgen/src/types/delegate.rs index 02ff43a0d44..00fe4ef75d9 100644 --- a/crates/libs/bindgen/src/types/delegate.rs +++ b/crates/libs/bindgen/src/types/delegate.rs @@ -16,7 +16,7 @@ impl Delegate { return quote! {}; } - Cfg::new(self.def, &self.dependencies()).write(writer, false) + Cfg::new(self.def, &self.dependencies(), writer).write(writer, false) } pub fn write(&self, writer: &Writer) -> TokenStream { diff --git a/crates/libs/bindgen/src/types/interface.rs b/crates/libs/bindgen/src/types/interface.rs index 381f0bd548e..e49315afc55 100644 --- a/crates/libs/bindgen/src/types/interface.rs +++ b/crates/libs/bindgen/src/types/interface.rs @@ -72,7 +72,7 @@ impl Interface { return (Cfg::default(), quote! {}); } - let cfg = Cfg::new(self.def, &self.dependencies()); + let cfg = Cfg::new(self.def, &self.dependencies(), writer); let tokens = cfg.write(writer, false); (cfg, tokens) } @@ -102,7 +102,7 @@ impl Interface { let name = virtual_names.add(method.def); let vtbl = method.write_abi(writer, false); - let method_cfg = class_cfg.difference(method.def, &method.dependencies); + let method_cfg = class_cfg.difference(method.def, &method.dependencies, writer); let yes = method_cfg.write(writer, false); if yes.is_empty() { @@ -352,7 +352,7 @@ impl Interface { .iter() .for_each(|interface| combine(interface, &mut dependencies, writer)); - Cfg::new(self.def, &dependencies).write(writer, false) + Cfg::new(self.def, &dependencies, writer).write(writer, false) } else { quote! {} }; diff --git a/crates/libs/bindgen/src/types/method.rs b/crates/libs/bindgen/src/types/method.rs index 42fb2295e5f..f22d14a5aff 100644 --- a/crates/libs/bindgen/src/types/method.rs +++ b/crates/libs/bindgen/src/types/method.rs @@ -26,7 +26,7 @@ impl Method { } parent - .difference(self.def, &self.dependencies) + .difference(self.def, &self.dependencies, writer) .write(writer, not) } diff --git a/crates/libs/bindgen/src/writer/cfg.rs b/crates/libs/bindgen/src/writer/cfg.rs index e59969a88a9..401c7778dc8 100644 --- a/crates/libs/bindgen/src/writer/cfg.rs +++ b/crates/libs/bindgen/src/writer/cfg.rs @@ -38,9 +38,17 @@ pub struct Cfg { } impl Cfg { - pub fn new(row: R, dependencies: &TypeMap) -> Self { - let features: BTreeSet<&'static str> = - dependencies.keys().map(|tn| tn.namespace()).collect(); + pub fn new(row: R, dependencies: &TypeMap, writer: &Writer) -> Self { + let features: BTreeSet<&'static str> = dependencies + .keys() + .filter_map(|tn| { + if writer.config.types.contains_key(tn) { + Some(tn.namespace()) + } else { + None + } + }) + .collect(); Self { features, @@ -48,8 +56,13 @@ impl Cfg { } } - pub fn difference(&self, row: R, dependencies: &TypeMap) -> Self { - let mut difference = Self::new(row, dependencies); + pub fn difference( + &self, + row: R, + dependencies: &TypeMap, + writer: &Writer, + ) -> Self { + let mut difference = Self::new(row, dependencies, writer); for feature in &self.features { difference.features.remove(feature); From e08a7e8bafbf103fa6019a75c8046078a4a00b52 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 08:32:19 -0600 Subject: [PATCH 2/8] collections --- crates/libs/collections/Cargo.toml | 25 + crates/libs/collections/license-apache-2.0 | 201 ++ crates/libs/collections/license-mit | 21 + crates/libs/collections/readme.md | 51 + crates/libs/collections/src/bindings.rs | 1971 ++++++++++++++++++++ crates/libs/collections/src/iterable.rs | 94 + crates/libs/collections/src/lib.rs | 13 + crates/libs/collections/src/map_view.rs | 171 ++ crates/libs/collections/src/vector_view.rs | 131 ++ 9 files changed, 2678 insertions(+) create mode 100644 crates/libs/collections/Cargo.toml create mode 100644 crates/libs/collections/license-apache-2.0 create mode 100644 crates/libs/collections/license-mit create mode 100644 crates/libs/collections/readme.md create mode 100644 crates/libs/collections/src/bindings.rs create mode 100644 crates/libs/collections/src/iterable.rs create mode 100644 crates/libs/collections/src/lib.rs create mode 100644 crates/libs/collections/src/map_view.rs create mode 100644 crates/libs/collections/src/vector_view.rs diff --git a/crates/libs/collections/Cargo.toml b/crates/libs/collections/Cargo.toml new file mode 100644 index 00000000000..bd03ba802e3 --- /dev/null +++ b/crates/libs/collections/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "windows-collections" +version = "0.1.0" +edition = "2021" +rust-version = "1.74" +license = "MIT OR Apache-2.0" +description = "Windows collection types" +repository = "https://github.com/microsoft/windows-rs" +readme = "readme.md" + +[lints] +workspace = true + +[package.metadata.docs.rs] +default-target = "x86_64-pc-windows-msvc" +targets = [] + +[dependencies.windows-core] +version = "0.59.0" +path = "../core" +default-features = false + +[features] +default = ["std"] +std = [] diff --git a/crates/libs/collections/license-apache-2.0 b/crates/libs/collections/license-apache-2.0 new file mode 100644 index 00000000000..b5ed4ecec27 --- /dev/null +++ b/crates/libs/collections/license-apache-2.0 @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) Microsoft Corporation. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/crates/libs/collections/license-mit b/crates/libs/collections/license-mit new file mode 100644 index 00000000000..9e841e7a26e --- /dev/null +++ b/crates/libs/collections/license-mit @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/crates/libs/collections/readme.md b/crates/libs/collections/readme.md new file mode 100644 index 00000000000..96d7fdd211a --- /dev/null +++ b/crates/libs/collections/readme.md @@ -0,0 +1,51 @@ +## Windows collection types + +The [windows-collections](https://crates.io/crates/windows-collections) crate provides stock collection support for Windows APIs + +* [Getting started](https://kennykerr.ca/rust-getting-started/) +* [Samples](https://github.com/microsoft/windows-rs/tree/master/crates/samples) +* [Releases](https://github.com/microsoft/windows-rs/releases) + +Start by adding the following to your Cargo.toml file: + +```toml +[dependencies.windows-collections] +version = "0.1" +``` + +Use the Windows collection types as needed: + +```rust +use windows_collections::*; + +let numbers = IIterable::::from(vec![1, 2, 3]); + +for value in numbers { + println!("{value}"); +} +``` + +Naturally, the Windows collection types work with other Windows crates: + +```rust +use windows_collections::*; +use windows_result::*; +use windows_strings::*; + +fn main() -> Result<()> { + let greetings = + IVectorView::::from(vec![HSTRING::from("hello"), HSTRING::from("world")]); + + for value in greetings { + println!("{value}"); + } + + let map = std::collections::BTreeMap::from([("one".into(), 1), ("two".into(), 2)]); + let map = IMapView::::from(map); + + assert_eq!(map.Lookup(h!("one"))?, 1); + assert_eq!(map.Lookup(h!("two"))?, 2); + + Ok(()) +} +``` diff --git a/crates/libs/collections/src/bindings.rs b/crates/libs/collections/src/bindings.rs new file mode 100644 index 00000000000..05ab4ad137f --- /dev/null +++ b/crates/libs/collections/src/bindings.rs @@ -0,0 +1,1971 @@ +#![allow( + non_snake_case, + non_upper_case_globals, + non_camel_case_types, + dead_code, + clippy::all +)] + +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IIterable(windows_core::IUnknown, core::marker::PhantomData) +where + T: windows_core::RuntimeType + 'static; +impl windows_core::imp::CanInto + for IIterable +{ +} +impl windows_core::imp::CanInto + for IIterable +{ +} +unsafe impl windows_core::Interface for IIterable { + type Vtable = IIterable_Vtbl; + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); +} +impl windows_core::RuntimeType for IIterable { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new() + .push_slice(b"pinterface({faa585ea-6214-4217-afda-7f46de5869b3}") + .push_slice(b";") + .push_other(T::SIGNATURE) + .push_slice(b")"); +} +impl IIterable { + pub fn First(&self) -> windows_core::Result> { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).First)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +impl windows_core::RuntimeName for IIterable { + const NAME: &'static str = "Windows.Foundation.Collections.IIterable"; +} +pub trait IIterable_Impl: windows_core::IUnknownImpl +where + T: windows_core::RuntimeType + 'static, +{ + fn First(&self) -> windows_core::Result>; +} +impl IIterable_Vtbl { + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn First< + T: windows_core::RuntimeType + 'static, + Identity: IIterable_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IIterable_Impl::First(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + First: First::, + T: core::marker::PhantomData::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == & as windows_core::Interface>::IID + } +} +#[repr(C)] +pub struct IIterable_Vtbl +where + T: windows_core::RuntimeType + 'static, +{ + pub base__: windows_core::IInspectable_Vtbl, + pub First: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + T: core::marker::PhantomData, +} +impl IntoIterator for IIterable { + type Item = T; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + IntoIterator::into_iter(&self) + } +} +impl IntoIterator for &IIterable { + type Item = T; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + self.First().unwrap() + } +} +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IIterator(windows_core::IUnknown, core::marker::PhantomData) +where + T: windows_core::RuntimeType + 'static; +impl windows_core::imp::CanInto + for IIterator +{ +} +impl windows_core::imp::CanInto + for IIterator +{ +} +unsafe impl windows_core::Interface for IIterator { + type Vtable = IIterator_Vtbl; + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); +} +impl windows_core::RuntimeType for IIterator { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new() + .push_slice(b"pinterface({6a79e863-4300-459a-9966-cbb660963ee1}") + .push_slice(b";") + .push_other(T::SIGNATURE) + .push_slice(b")"); +} +impl IIterator { + pub fn Current(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Current)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn HasCurrent(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).HasCurrent)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .map(|| result__) + } + } + pub fn MoveNext(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).MoveNext)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .map(|| result__) + } + } + pub fn GetMany( + &self, + items: &mut [>::Default], + ) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetMany)( + windows_core::Interface::as_raw(this), + items.len().try_into().unwrap(), + core::mem::transmute_copy(&items), + &mut result__, + ) + .map(|| result__) + } + } +} +impl windows_core::RuntimeName for IIterator { + const NAME: &'static str = "Windows.Foundation.Collections.IIterator"; +} +pub trait IIterator_Impl: windows_core::IUnknownImpl +where + T: windows_core::RuntimeType + 'static, +{ + fn Current(&self) -> windows_core::Result; + fn HasCurrent(&self) -> windows_core::Result; + fn MoveNext(&self) -> windows_core::Result; + fn GetMany( + &self, + items: &mut [>::Default], + ) -> windows_core::Result; +} +impl IIterator_Vtbl { + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn Current< + T: windows_core::RuntimeType + 'static, + Identity: IIterator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IIterator_Impl::Current(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn HasCurrent< + T: windows_core::RuntimeType + 'static, + Identity: IIterator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut bool, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IIterator_Impl::HasCurrent(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn MoveNext< + T: windows_core::RuntimeType + 'static, + Identity: IIterator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut bool, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IIterator_Impl::MoveNext(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetMany< + T: windows_core::RuntimeType + 'static, + Identity: IIterator_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + items_array_size: u32, + items: *mut T, + result__: *mut u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IIterator_Impl::GetMany( + this, + core::slice::from_raw_parts_mut( + core::mem::transmute_copy(&items), + items_array_size as usize, + ), + ) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + Current: Current::, + HasCurrent: HasCurrent::, + MoveNext: MoveNext::, + GetMany: GetMany::, + T: core::marker::PhantomData::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == & as windows_core::Interface>::IID + } +} +#[repr(C)] +pub struct IIterator_Vtbl +where + T: windows_core::RuntimeType + 'static, +{ + pub base__: windows_core::IInspectable_Vtbl, + pub Current: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, + pub HasCurrent: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + pub MoveNext: + unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + pub GetMany: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut T, + *mut u32, + ) -> windows_core::HRESULT, + T: core::marker::PhantomData, +} +impl Iterator for IIterator { + type Item = T; + fn next(&mut self) -> Option { + let result = if self.HasCurrent().unwrap_or(false) { + self.Current().ok() + } else { + None + }; + if result.is_some() { + self.MoveNext().ok()?; + } + result + } +} +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IKeyValuePair( + windows_core::IUnknown, + core::marker::PhantomData, + core::marker::PhantomData, +) +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static; +impl + windows_core::imp::CanInto for IKeyValuePair +{ +} +impl + windows_core::imp::CanInto for IKeyValuePair +{ +} +unsafe impl + windows_core::Interface for IKeyValuePair +{ + type Vtable = IKeyValuePair_Vtbl; + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); +} +impl + windows_core::RuntimeType for IKeyValuePair +{ + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new() + .push_slice(b"pinterface({02b51929-c1c4-4a7e-8940-0312b5c18500}") + .push_slice(b";") + .push_other(K::SIGNATURE) + .push_slice(b";") + .push_other(V::SIGNATURE) + .push_slice(b")"); +} +impl + IKeyValuePair +{ + pub fn Key(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Key)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn Value(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Value)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +impl + windows_core::RuntimeName for IKeyValuePair +{ + const NAME: &'static str = "Windows.Foundation.Collections.IKeyValuePair"; +} +pub trait IKeyValuePair_Impl: windows_core::IUnknownImpl +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, +{ + fn Key(&self) -> windows_core::Result; + fn Value(&self) -> windows_core::Result; +} +impl + IKeyValuePair_Vtbl +{ + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn Key< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IKeyValuePair_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IKeyValuePair_Impl::Key(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Value< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IKeyValuePair_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IKeyValuePair_Impl::Value(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + Key: Key::, + Value: Value::, + K: core::marker::PhantomData::, + V: core::marker::PhantomData::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == & as windows_core::Interface>::IID + } +} +#[repr(C)] +pub struct IKeyValuePair_Vtbl +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, +{ + pub base__: windows_core::IInspectable_Vtbl, + pub Key: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, + pub Value: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, + K: core::marker::PhantomData, + V: core::marker::PhantomData, +} +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IMap( + windows_core::IUnknown, + core::marker::PhantomData, + core::marker::PhantomData, +) +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static; +impl + windows_core::imp::CanInto for IMap +{ +} +impl + windows_core::imp::CanInto for IMap +{ +} +unsafe impl + windows_core::Interface for IMap +{ + type Vtable = IMap_Vtbl; + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); +} +impl + windows_core::RuntimeType for IMap +{ + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new() + .push_slice(b"pinterface({3c2925fe-8519-45c1-aa79-197b6718c1c1}") + .push_slice(b";") + .push_other(K::SIGNATURE) + .push_slice(b";") + .push_other(V::SIGNATURE) + .push_slice(b")"); +} +impl + windows_core::imp::CanInto>> for IMap +{ + const QUERY: bool = true; +} +impl IMap { + pub fn Lookup(&self, key: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Lookup)( + windows_core::Interface::as_raw(this), + key.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn Size(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Size)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .map(|| result__) + } + } + pub fn HasKey(&self, key: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).HasKey)( + windows_core::Interface::as_raw(this), + key.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub fn GetView(&self) -> windows_core::Result> { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetView)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn Insert(&self, key: P0, value: P1) -> windows_core::Result + where + P0: windows_core::Param, + P1: windows_core::Param, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Insert)( + windows_core::Interface::as_raw(this), + key.param().abi(), + value.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub fn Remove(&self, key: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).Remove)( + windows_core::Interface::as_raw(this), + key.param().abi(), + ) + .ok() + } + } + pub fn Clear(&self) -> windows_core::Result<()> { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)) + .ok() + } + } + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).First)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +impl IntoIterator + for IMap +{ + type Item = IKeyValuePair; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + IntoIterator::into_iter(&self) + } +} +impl IntoIterator + for &IMap +{ + type Item = IKeyValuePair; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + self.First().unwrap() + } +} +impl + windows_core::RuntimeName for IMap +{ + const NAME: &'static str = "Windows.Foundation.Collections.IMap"; +} +pub trait IMap_Impl: IIterable_Impl> +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, +{ + fn Lookup(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; + fn Size(&self) -> windows_core::Result; + fn HasKey(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; + fn GetView(&self) -> windows_core::Result>; + fn Insert( + &self, + key: windows_core::Ref<'_, K>, + value: windows_core::Ref<'_, V>, + ) -> windows_core::Result; + fn Remove(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result<()>; + fn Clear(&self) -> windows_core::Result<()>; +} +impl + IMap_Vtbl +{ + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn Lookup< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMap_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + key: windows_core::AbiType, + result__: *mut windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMap_Impl::Lookup(this, core::mem::transmute_copy(&key)) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Size< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMap_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMap_Impl::Size(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn HasKey< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMap_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + key: windows_core::AbiType, + result__: *mut bool, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMap_Impl::HasKey(this, core::mem::transmute_copy(&key)) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetView< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMap_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMap_Impl::GetView(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Insert< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMap_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + key: windows_core::AbiType, + value: windows_core::AbiType, + result__: *mut bool, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMap_Impl::Insert( + this, + core::mem::transmute_copy(&key), + core::mem::transmute_copy(&value), + ) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Remove< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMap_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + key: windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IMap_Impl::Remove(this, core::mem::transmute_copy(&key)).into() + } + } + unsafe extern "system" fn Clear< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMap_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IMap_Impl::Clear(this).into() + } + } + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + Lookup: Lookup::, + Size: Size::, + HasKey: HasKey::, + GetView: GetView::, + Insert: Insert::, + Remove: Remove::, + Clear: Clear::, + K: core::marker::PhantomData::, + V: core::marker::PhantomData::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == & as windows_core::Interface>::IID + } +} +#[repr(C)] +pub struct IMap_Vtbl +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, +{ + pub base__: windows_core::IInspectable_Vtbl, + pub Lookup: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, + pub HasKey: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + *mut bool, + ) -> windows_core::HRESULT, + pub GetView: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub Insert: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + windows_core::AbiType, + *mut bool, + ) -> windows_core::HRESULT, + pub Remove: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + ) -> windows_core::HRESULT, + pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + K: core::marker::PhantomData, + V: core::marker::PhantomData, +} +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IMapView( + windows_core::IUnknown, + core::marker::PhantomData, + core::marker::PhantomData, +) +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static; +impl + windows_core::imp::CanInto for IMapView +{ +} +impl + windows_core::imp::CanInto for IMapView +{ +} +unsafe impl + windows_core::Interface for IMapView +{ + type Vtable = IMapView_Vtbl; + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); +} +impl + windows_core::RuntimeType for IMapView +{ + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new() + .push_slice(b"pinterface({e480ce40-a338-4ada-adcf-272272e48cb9}") + .push_slice(b";") + .push_other(K::SIGNATURE) + .push_slice(b";") + .push_other(V::SIGNATURE) + .push_slice(b")"); +} +impl + windows_core::imp::CanInto>> for IMapView +{ + const QUERY: bool = true; +} +impl + IMapView +{ + pub fn Lookup(&self, key: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Lookup)( + windows_core::Interface::as_raw(this), + key.param().abi(), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn Size(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Size)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .map(|| result__) + } + } + pub fn HasKey(&self, key: P0) -> windows_core::Result + where + P0: windows_core::Param, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).HasKey)( + windows_core::Interface::as_raw(this), + key.param().abi(), + &mut result__, + ) + .map(|| result__) + } + } + pub fn Split( + &self, + first: &mut Option>, + second: &mut Option>, + ) -> windows_core::Result<()> { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).Split)( + windows_core::Interface::as_raw(this), + first as *mut _ as _, + second as *mut _ as _, + ) + .ok() + } + } + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).First)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +impl IntoIterator + for IMapView +{ + type Item = IKeyValuePair; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + IntoIterator::into_iter(&self) + } +} +impl IntoIterator + for &IMapView +{ + type Item = IKeyValuePair; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + self.First().unwrap() + } +} +impl + windows_core::RuntimeName for IMapView +{ + const NAME: &'static str = "Windows.Foundation.Collections.IMapView"; +} +pub trait IMapView_Impl: IIterable_Impl> +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, +{ + fn Lookup(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; + fn Size(&self) -> windows_core::Result; + fn HasKey(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; + fn Split( + &self, + first: windows_core::OutRef<'_, IMapView>, + second: windows_core::OutRef<'_, IMapView>, + ) -> windows_core::Result<()>; +} +impl + IMapView_Vtbl +{ + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn Lookup< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMapView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + key: windows_core::AbiType, + result__: *mut windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMapView_Impl::Lookup(this, core::mem::transmute_copy(&key)) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Size< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMapView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMapView_Impl::Size(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn HasKey< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMapView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + key: windows_core::AbiType, + result__: *mut bool, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IMapView_Impl::HasKey(this, core::mem::transmute_copy(&key)) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Split< + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, + Identity: IMapView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + first: *mut *mut core::ffi::c_void, + second: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IMapView_Impl::Split( + this, + core::mem::transmute_copy(&first), + core::mem::transmute_copy(&second), + ) + .into() + } + } + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + Lookup: Lookup::, + Size: Size::, + HasKey: HasKey::, + Split: Split::, + K: core::marker::PhantomData::, + V: core::marker::PhantomData::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == & as windows_core::Interface>::IID + } +} +#[repr(C)] +pub struct IMapView_Vtbl +where + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, +{ + pub base__: windows_core::IInspectable_Vtbl, + pub Lookup: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, + pub HasKey: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + *mut bool, + ) -> windows_core::HRESULT, + pub Split: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + K: core::marker::PhantomData, + V: core::marker::PhantomData, +} +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IVector(windows_core::IUnknown, core::marker::PhantomData) +where + T: windows_core::RuntimeType + 'static; +impl windows_core::imp::CanInto + for IVector +{ +} +impl windows_core::imp::CanInto + for IVector +{ +} +unsafe impl windows_core::Interface for IVector { + type Vtable = IVector_Vtbl; + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); +} +impl windows_core::RuntimeType for IVector { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new() + .push_slice(b"pinterface({913337e9-11a1-4345-a3a2-4e7f956e222d}") + .push_slice(b";") + .push_other(T::SIGNATURE) + .push_slice(b")"); +} +impl windows_core::imp::CanInto> + for IVector +{ + const QUERY: bool = true; +} +impl IVector { + pub fn GetAt(&self, index: u32) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetAt)( + windows_core::Interface::as_raw(this), + index, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn Size(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Size)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .map(|| result__) + } + } + pub fn GetView(&self) -> windows_core::Result> { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetView)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result + where + P0: windows_core::Param, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).IndexOf)( + windows_core::Interface::as_raw(this), + value.param().abi(), + index, + &mut result__, + ) + .map(|| result__) + } + } + pub fn SetAt(&self, index: u32, value: P1) -> windows_core::Result<()> + where + P1: windows_core::Param, + { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).SetAt)( + windows_core::Interface::as_raw(this), + index, + value.param().abi(), + ) + .ok() + } + } + pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> + where + P1: windows_core::Param, + { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).InsertAt)( + windows_core::Interface::as_raw(this), + index, + value.param().abi(), + ) + .ok() + } + } + pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).RemoveAt)( + windows_core::Interface::as_raw(this), + index, + ) + .ok() + } + } + pub fn Append(&self, value: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).Append)( + windows_core::Interface::as_raw(this), + value.param().abi(), + ) + .ok() + } + } + pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw( + this, + )) + .ok() + } + } + pub fn Clear(&self) -> windows_core::Result<()> { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)) + .ok() + } + } + pub fn GetMany( + &self, + startindex: u32, + items: &mut [>::Default], + ) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetMany)( + windows_core::Interface::as_raw(this), + startindex, + items.len().try_into().unwrap(), + core::mem::transmute_copy(&items), + &mut result__, + ) + .map(|| result__) + } + } + pub fn ReplaceAll( + &self, + items: &[>::Default], + ) -> windows_core::Result<()> { + let this = self; + unsafe { + (windows_core::Interface::vtable(this).ReplaceAll)( + windows_core::Interface::as_raw(this), + items.len().try_into().unwrap(), + core::mem::transmute(items.as_ptr()), + ) + .ok() + } + } + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).First)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +impl IntoIterator for IVector { + type Item = T; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + IntoIterator::into_iter(&self) + } +} +impl IntoIterator for &IVector { + type Item = T; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + self.First().unwrap() + } +} +impl windows_core::RuntimeName for IVector { + const NAME: &'static str = "Windows.Foundation.Collections.IVector"; +} +pub trait IVector_Impl: IIterable_Impl +where + T: windows_core::RuntimeType + 'static, +{ + fn GetAt(&self, index: u32) -> windows_core::Result; + fn Size(&self) -> windows_core::Result; + fn GetView(&self) -> windows_core::Result>; + fn IndexOf( + &self, + value: windows_core::Ref<'_, T>, + index: &mut u32, + ) -> windows_core::Result; + fn SetAt(&self, index: u32, value: windows_core::Ref<'_, T>) -> windows_core::Result<()>; + fn InsertAt(&self, index: u32, value: windows_core::Ref<'_, T>) -> windows_core::Result<()>; + fn RemoveAt(&self, index: u32) -> windows_core::Result<()>; + fn Append(&self, value: windows_core::Ref<'_, T>) -> windows_core::Result<()>; + fn RemoveAtEnd(&self) -> windows_core::Result<()>; + fn Clear(&self) -> windows_core::Result<()>; + fn GetMany( + &self, + startIndex: u32, + items: &mut [>::Default], + ) -> windows_core::Result; + fn ReplaceAll( + &self, + items: &[>::Default], + ) -> windows_core::Result<()>; +} +impl IVector_Vtbl { + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn GetAt< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + index: u32, + result__: *mut windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVector_Impl::GetAt(this, index) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Size< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVector_Impl::Size(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetView< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVector_Impl::GetView(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn IndexOf< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + value: windows_core::AbiType, + index: *mut u32, + result__: *mut bool, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVector_Impl::IndexOf( + this, + core::mem::transmute_copy(&value), + core::mem::transmute_copy(&index), + ) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn SetAt< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + index: u32, + value: windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IVector_Impl::SetAt(this, index, core::mem::transmute_copy(&value)).into() + } + } + unsafe extern "system" fn InsertAt< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + index: u32, + value: windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IVector_Impl::InsertAt(this, index, core::mem::transmute_copy(&value)).into() + } + } + unsafe extern "system" fn RemoveAt< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + index: u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IVector_Impl::RemoveAt(this, index).into() + } + } + unsafe extern "system" fn Append< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + value: windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IVector_Impl::Append(this, core::mem::transmute_copy(&value)).into() + } + } + unsafe extern "system" fn RemoveAtEnd< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IVector_Impl::RemoveAtEnd(this).into() + } + } + unsafe extern "system" fn Clear< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IVector_Impl::Clear(this).into() + } + } + unsafe extern "system" fn GetMany< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + startindex: u32, + items_array_size: u32, + items: *mut T, + result__: *mut u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVector_Impl::GetMany( + this, + startindex, + core::slice::from_raw_parts_mut( + core::mem::transmute_copy(&items), + items_array_size as usize, + ), + ) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn ReplaceAll< + T: windows_core::RuntimeType + 'static, + Identity: IVector_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + items_array_size: u32, + items: *const T, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + IVector_Impl::ReplaceAll( + this, + core::slice::from_raw_parts( + core::mem::transmute_copy(&items), + items_array_size as usize, + ), + ) + .into() + } + } + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + GetAt: GetAt::, + Size: Size::, + GetView: GetView::, + IndexOf: IndexOf::, + SetAt: SetAt::, + InsertAt: InsertAt::, + RemoveAt: RemoveAt::, + Append: Append::, + RemoveAtEnd: RemoveAtEnd::, + Clear: Clear::, + GetMany: GetMany::, + ReplaceAll: ReplaceAll::, + T: core::marker::PhantomData::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == & as windows_core::Interface>::IID + } +} +#[repr(C)] +pub struct IVector_Vtbl +where + T: windows_core::RuntimeType + 'static, +{ + pub base__: windows_core::IInspectable_Vtbl, + pub GetAt: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, + pub GetView: unsafe extern "system" fn( + *mut core::ffi::c_void, + *mut *mut core::ffi::c_void, + ) -> windows_core::HRESULT, + pub IndexOf: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + *mut u32, + *mut bool, + ) -> windows_core::HRESULT, + pub SetAt: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + windows_core::AbiType, + ) -> windows_core::HRESULT, + pub InsertAt: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + windows_core::AbiType, + ) -> windows_core::HRESULT, + pub RemoveAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, + pub Append: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + ) -> windows_core::HRESULT, + pub RemoveAtEnd: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + pub GetMany: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + u32, + *mut T, + *mut u32, + ) -> windows_core::HRESULT, + pub ReplaceAll: + unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const T) -> windows_core::HRESULT, + T: core::marker::PhantomData, +} +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IVectorView(windows_core::IUnknown, core::marker::PhantomData) +where + T: windows_core::RuntimeType + 'static; +impl windows_core::imp::CanInto + for IVectorView +{ +} +impl windows_core::imp::CanInto + for IVectorView +{ +} +unsafe impl windows_core::Interface for IVectorView { + type Vtable = IVectorView_Vtbl; + const IID: windows_core::GUID = + windows_core::GUID::from_signature(::SIGNATURE); +} +impl windows_core::RuntimeType for IVectorView { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new() + .push_slice(b"pinterface({bbe1fa4c-b0e3-4583-baef-1f1b2e483e56}") + .push_slice(b";") + .push_other(T::SIGNATURE) + .push_slice(b")"); +} +impl windows_core::imp::CanInto> + for IVectorView +{ + const QUERY: bool = true; +} +impl IVectorView { + pub fn GetAt(&self, index: u32) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetAt)( + windows_core::Interface::as_raw(this), + index, + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } + pub fn Size(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Size)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .map(|| result__) + } + } + pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result + where + P0: windows_core::Param, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).IndexOf)( + windows_core::Interface::as_raw(this), + value.param().abi(), + index, + &mut result__, + ) + .map(|| result__) + } + } + pub fn GetMany( + &self, + startindex: u32, + items: &mut [>::Default], + ) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetMany)( + windows_core::Interface::as_raw(this), + startindex, + items.len().try_into().unwrap(), + core::mem::transmute_copy(&items), + &mut result__, + ) + .map(|| result__) + } + } + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).First)( + windows_core::Interface::as_raw(this), + &mut result__, + ) + .and_then(|| windows_core::Type::from_abi(result__)) + } + } +} +impl IntoIterator for IVectorView { + type Item = T; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + IntoIterator::into_iter(&self) + } +} +impl IntoIterator for &IVectorView { + type Item = T; + type IntoIter = IIterator; + fn into_iter(self) -> Self::IntoIter { + self.First().unwrap() + } +} +impl windows_core::RuntimeName for IVectorView { + const NAME: &'static str = "Windows.Foundation.Collections.IVectorView"; +} +pub trait IVectorView_Impl: IIterable_Impl +where + T: windows_core::RuntimeType + 'static, +{ + fn GetAt(&self, index: u32) -> windows_core::Result; + fn Size(&self) -> windows_core::Result; + fn IndexOf( + &self, + value: windows_core::Ref<'_, T>, + index: &mut u32, + ) -> windows_core::Result; + fn GetMany( + &self, + startIndex: u32, + items: &mut [>::Default], + ) -> windows_core::Result; +} +impl IVectorView_Vtbl { + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn GetAt< + T: windows_core::RuntimeType + 'static, + Identity: IVectorView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + index: u32, + result__: *mut windows_core::AbiType, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVectorView_Impl::GetAt(this, index) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + core::mem::forget(ok__); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn Size< + T: windows_core::RuntimeType + 'static, + Identity: IVectorView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + result__: *mut u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVectorView_Impl::Size(this) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn IndexOf< + T: windows_core::RuntimeType + 'static, + Identity: IVectorView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + value: windows_core::AbiType, + index: *mut u32, + result__: *mut bool, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVectorView_Impl::IndexOf( + this, + core::mem::transmute_copy(&value), + core::mem::transmute_copy(&index), + ) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + unsafe extern "system" fn GetMany< + T: windows_core::RuntimeType + 'static, + Identity: IVectorView_Impl, + const OFFSET: isize, + >( + this: *mut core::ffi::c_void, + startindex: u32, + items_array_size: u32, + items: *mut T, + result__: *mut u32, + ) -> windows_core::HRESULT { + unsafe { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match IVectorView_Impl::GetMany( + this, + startindex, + core::slice::from_raw_parts_mut( + core::mem::transmute_copy(&items), + items_array_size as usize, + ), + ) { + Ok(ok__) => { + result__.write(core::mem::transmute_copy(&ok__)); + windows_core::HRESULT(0) + } + Err(err) => err.into(), + } + } + } + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + GetAt: GetAt::, + Size: Size::, + IndexOf: IndexOf::, + GetMany: GetMany::, + T: core::marker::PhantomData::, + } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == & as windows_core::Interface>::IID + } +} +#[repr(C)] +pub struct IVectorView_Vtbl +where + T: windows_core::RuntimeType + 'static, +{ + pub base__: windows_core::IInspectable_Vtbl, + pub GetAt: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + *mut windows_core::AbiType, + ) -> windows_core::HRESULT, + pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, + pub IndexOf: unsafe extern "system" fn( + *mut core::ffi::c_void, + windows_core::AbiType, + *mut u32, + *mut bool, + ) -> windows_core::HRESULT, + pub GetMany: unsafe extern "system" fn( + *mut core::ffi::c_void, + u32, + u32, + *mut T, + *mut u32, + ) -> windows_core::HRESULT, + T: core::marker::PhantomData, +} diff --git a/crates/libs/collections/src/iterable.rs b/crates/libs/collections/src/iterable.rs new file mode 100644 index 00000000000..461a12fcda7 --- /dev/null +++ b/crates/libs/collections/src/iterable.rs @@ -0,0 +1,94 @@ +use super::*; +use windows_core::*; + +#[implement(IIterable)] +struct StockIterable +where + T: RuntimeType + 'static, + T::Default: Clone, +{ + values: Vec, +} + +impl IIterable_Impl for StockIterable_Impl +where + T: RuntimeType, + T::Default: Clone, +{ + fn First(&self) -> Result> { + Ok(ComObject::new(StockIterator { + owner: self.to_object(), + current: 0.into(), + }) + .into_interface()) + } +} + +#[implement(IIterator)] +struct StockIterator +where + T: RuntimeType + 'static, + T::Default: Clone, +{ + owner: ComObject>, + current: std::sync::atomic::AtomicUsize, +} + +impl IIterator_Impl for StockIterator_Impl +where + T: RuntimeType, + T::Default: Clone, +{ + fn Current(&self) -> Result { + let owner: &StockIterable = &self.owner; + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + + if self.owner.values.len() > current { + T::from_default(&owner.values[current]) + } else { + Err(Error::from(imp::E_BOUNDS)) + } + } + + fn HasCurrent(&self) -> Result { + let owner: &StockIterable = &self.owner; + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + + Ok(owner.values.len() > current) + } + + fn MoveNext(&self) -> Result { + let owner: &StockIterable = &self.owner; + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + + if current < owner.values.len() { + self.current + .fetch_add(1, std::sync::atomic::Ordering::Relaxed); + } + + Ok(owner.values.len() > current + 1) + } + + fn GetMany(&self, values: &mut [T::Default]) -> Result { + let owner: &StockIterable = &self.owner; + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + let actual = std::cmp::min(owner.values.len() - current, values.len()); + let (values, _) = values.split_at_mut(actual); + values.clone_from_slice(&owner.values[current..current + actual]); + + self.current + .fetch_add(actual, std::sync::atomic::Ordering::Relaxed); + + Ok(actual as u32) + } +} + +impl From> for IIterable +where + T: RuntimeType, + T::Default: Clone, +{ + fn from(values: Vec) -> Self { + ComObject::new(StockIterable { values }).into_interface() + } +} diff --git a/crates/libs/collections/src/lib.rs b/crates/libs/collections/src/lib.rs new file mode 100644 index 00000000000..a8660c54dde --- /dev/null +++ b/crates/libs/collections/src/lib.rs @@ -0,0 +1,13 @@ +#![doc = include_str!("../readme.md")] +#![allow(missing_docs)] +#![cfg_attr(all(not(feature = "std")), no_std)] + +mod bindings; +pub use bindings::*; + +#[cfg(feature = "std")] +mod iterable; +#[cfg(feature = "std")] +mod map_view; +#[cfg(feature = "std")] +mod vector_view; diff --git a/crates/libs/collections/src/map_view.rs b/crates/libs/collections/src/map_view.rs new file mode 100644 index 00000000000..d526fad5c56 --- /dev/null +++ b/crates/libs/collections/src/map_view.rs @@ -0,0 +1,171 @@ +use super::*; +use windows_core::*; + +#[implement(IMapView, IIterable>)] +struct StockMapView +where + K: RuntimeType + 'static, + V: RuntimeType + 'static, + K::Default: Clone + Ord, + V::Default: Clone, +{ + map: std::collections::BTreeMap, +} + +impl IIterable_Impl> for StockMapView_Impl +where + K: RuntimeType, + V: RuntimeType, + K::Default: Clone + Ord, + V::Default: Clone, +{ + fn First(&self) -> Result>> { + Ok(ComObject::new(StockMapViewIterator:: { + _owner: self.to_object(), + current: std::sync::RwLock::new(self.map.iter()), + }) + .into_interface()) + } +} + +impl IMapView_Impl for StockMapView_Impl +where + K: RuntimeType, + V: RuntimeType, + K::Default: Clone + Ord, + V::Default: Clone, +{ + fn Lookup(&self, key: Ref<'_, K>) -> Result { + let value = self + .map + .get(&*key) + .ok_or_else(|| Error::from(imp::E_BOUNDS))?; + + V::from_default(value) + } + + fn Size(&self) -> Result { + Ok(self.map.len().try_into()?) + } + + fn HasKey(&self, key: Ref<'_, K>) -> Result { + Ok(self.map.contains_key(&*key)) + } + + fn Split( + &self, + first: OutRef<'_, IMapView>, + second: OutRef<'_, IMapView>, + ) -> Result<()> { + _ = first.write(None); + _ = second.write(None); + Ok(()) + } +} + +#[implement(IIterator>)] +struct StockMapViewIterator<'a, K, V> +where + K: RuntimeType + 'static, + V: RuntimeType + 'static, + K::Default: Clone + Ord, + V::Default: Clone, +{ + _owner: ComObject>, + current: std::sync::RwLock>, +} + +impl IIterator_Impl> for StockMapViewIterator_Impl<'_, K, V> +where + K: RuntimeType, + V: RuntimeType, + K::Default: Clone + Ord, + V::Default: Clone, +{ + fn Current(&self) -> Result> { + let mut current = self.current.read().unwrap().clone().peekable(); + + if let Some((key, value)) = current.peek() { + Ok(ComObject::new(StockKeyValuePair { + key: (*key).clone(), + value: (*value).clone(), + }) + .into_interface()) + } else { + Err(Error::from(imp::E_BOUNDS)) + } + } + + fn HasCurrent(&self) -> Result { + let mut current = self.current.read().unwrap().clone().peekable(); + Ok(current.peek().is_some()) + } + + fn MoveNext(&self) -> Result { + let mut current = self.current.write().unwrap(); + current.next(); + Ok(current.clone().peekable().peek().is_some()) + } + + fn GetMany(&self, pairs: &mut [Option>]) -> Result { + let mut current = self.current.write().unwrap(); + let mut actual = 0; + + for pair in pairs { + if let Some((key, value)) = current.next() { + *pair = Some( + ComObject::new(StockKeyValuePair { + key: (*key).clone(), + value: (*value).clone(), + }) + .into_interface(), + ); + actual += 1; + } else { + break; + } + } + + Ok(actual) + } +} + +#[implement(IKeyValuePair)] +struct StockKeyValuePair +where + K: RuntimeType + 'static, + V: RuntimeType + 'static, + K::Default: Clone, + V::Default: Clone, +{ + key: K::Default, + value: V::Default, +} + +impl IKeyValuePair_Impl for StockKeyValuePair_Impl +where + K: RuntimeType, + V: RuntimeType, + K::Default: Clone, + V::Default: Clone, +{ + fn Key(&self) -> Result { + K::from_default(&self.key) + } + + fn Value(&self) -> Result { + V::from_default(&self.value) + } +} + +impl From> for IMapView +where + K: RuntimeType, + V: RuntimeType, + K::Default: Clone + Ord, + V::Default: Clone, +{ + fn from(map: std::collections::BTreeMap) -> Self { + StockMapView { map }.into() + } +} diff --git a/crates/libs/collections/src/vector_view.rs b/crates/libs/collections/src/vector_view.rs new file mode 100644 index 00000000000..a039e99d9f9 --- /dev/null +++ b/crates/libs/collections/src/vector_view.rs @@ -0,0 +1,131 @@ +use super::*; +use windows_core::*; + +#[implement(IVectorView, IIterable)] +struct StockVectorView +where + T: RuntimeType + 'static, + T::Default: Clone + PartialEq, +{ + values: Vec, +} + +impl IIterable_Impl for StockVectorView_Impl +where + T: RuntimeType, + T::Default: Clone + PartialEq, +{ + fn First(&self) -> Result> { + Ok(ComObject::new(StockVectorViewIterator { + owner: self.to_object(), + current: 0.into(), + }) + .into_interface()) + } +} + +impl IVectorView_Impl for StockVectorView_Impl +where + T: RuntimeType, + T::Default: Clone + PartialEq, +{ + fn GetAt(&self, index: u32) -> Result { + let item = self + .values + .get(index as usize) + .ok_or_else(|| Error::from(imp::E_BOUNDS))?; + + T::from_default(item) + } + + fn Size(&self) -> Result { + Ok(self.values.len().try_into()?) + } + + fn IndexOf(&self, value: Ref<'_, T>, result: &mut u32) -> Result { + match self.values.iter().position(|element| element == &*value) { + Some(index) => { + *result = index as u32; + Ok(true) + } + None => Ok(false), + } + } + + fn GetMany(&self, current: u32, values: &mut [T::Default]) -> Result { + let current = current as usize; + + if current >= self.values.len() { + return Ok(0); + } + + let actual = std::cmp::min(self.values.len() - current, values.len()); + let (values, _) = values.split_at_mut(actual); + values.clone_from_slice(&self.values[current..current + actual]); + Ok(actual as u32) + } +} + +#[implement(IIterator)] +struct StockVectorViewIterator +where + T: RuntimeType + 'static, + T::Default: Clone + PartialEq, +{ + owner: ComObject>, + current: std::sync::atomic::AtomicUsize, +} + +impl IIterator_Impl for StockVectorViewIterator_Impl +where + T: RuntimeType, + T::Default: Clone + PartialEq, +{ + fn Current(&self) -> Result { + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + + if let Some(item) = self.owner.values.get(current) { + T::from_default(item) + } else { + Err(Error::from(imp::E_BOUNDS)) + } + } + + fn HasCurrent(&self) -> Result { + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + Ok(self.owner.values.len() > current) + } + + fn MoveNext(&self) -> Result { + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + + if current < self.owner.values.len() { + self.current + .fetch_add(1, std::sync::atomic::Ordering::Relaxed); + } + + Ok(self.owner.values.len() > current + 1) + } + + fn GetMany(&self, values: &mut [T::Default]) -> Result { + let current = self.current.load(std::sync::atomic::Ordering::Relaxed); + let actual = std::cmp::min(self.owner.values.len() - current, values.len()); + let (values, _) = values.split_at_mut(actual); + values.clone_from_slice(&self.owner.values[current..current + actual]); + + self.current + .fetch_add(actual, std::sync::atomic::Ordering::Relaxed); + + Ok(actual as u32) + } +} + +impl From> for IVectorView +where + T: RuntimeType, + T::Default: Clone + PartialEq, +{ + fn from(values: Vec) -> Self { + ComObject::new(StockVectorView { values }).into_interface() + } +} From f967bc9678b70de6c464e25d05a2a27c079986eb Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 08:32:47 -0600 Subject: [PATCH 3/8] windows --- crates/libs/windows/Cargo.toml | 5 + .../src/Windows/AI/MachineLearning/mod.rs | 477 +---- .../ApplicationModel/Activation/mod.rs | 52 +- .../ApplicationModel/AppExtensions/mod.rs | 24 +- .../ApplicationModel/AppService/mod.rs | 6 +- .../Appointments/DataProvider/mod.rs | 12 +- .../ApplicationModel/Appointments/mod.rs | 114 +- .../ApplicationModel/Background/mod.rs | 42 +- .../src/Windows/ApplicationModel/Calls/mod.rs | 120 +- .../src/Windows/ApplicationModel/Chat/mod.rs | 138 +- .../CommunicationBlocking/mod.rs | 12 +- .../ApplicationModel/Contacts/Provider/mod.rs | 14 +- .../Windows/ApplicationModel/Contacts/mod.rs | 242 +-- .../ConversationalAgent/mod.rs | 108 +- .../src/Windows/ApplicationModel/Core/mod.rs | 6 +- .../DataTransfer/ShareTarget/mod.rs | 20 +- .../ApplicationModel/DataTransfer/mod.rs | 164 +- .../Email/DataProvider/mod.rs | 32 +- .../src/Windows/ApplicationModel/Email/mod.rs | 130 +- .../ApplicationModel/LockScreen/mod.rs | 12 +- .../ApplicationModel/PackageExtensions/mod.rs | 24 +- .../ApplicationModel/Payments/Provider/mod.rs | 6 +- .../Windows/ApplicationModel/Payments/mod.rs | 142 +- .../ApplicationModel/Resources/Core/mod.rs | 363 +--- .../Resources/Management/mod.rs | 18 +- .../Windows/ApplicationModel/Search/mod.rs | 38 +- .../ApplicationModel/UserActivities/mod.rs | 24 +- .../UserDataAccounts/Provider/mod.rs | 6 +- .../UserDataAccounts/SystemAccess/mod.rs | 8 +- .../ApplicationModel/UserDataAccounts/mod.rs | 60 +- .../ApplicationModel/UserDataTasks/mod.rs | 12 +- .../ApplicationModel/VoiceCommands/mod.rs | 36 +- .../ApplicationModel/Wallet/System/mod.rs | 6 +- .../Windows/ApplicationModel/Wallet/mod.rs | 36 +- .../src/Windows/ApplicationModel/mod.rs | 110 +- .../libs/windows/src/Windows/Data/Json/mod.rs | 131 +- .../libs/windows/src/Windows/Data/Text/mod.rs | 116 +- .../windows/src/Windows/Data/Xml/Dom/mod.rs | 166 +- .../src/Windows/Devices/Adc/Provider/mod.rs | 11 +- .../windows/src/Windows/Devices/Adc/mod.rs | 8 +- .../Devices/Bluetooth/Advertisement/mod.rs | 36 +- .../Devices/Bluetooth/Background/mod.rs | 22 +- .../Bluetooth/GenericAttributeProfile/mod.rs | 118 +- .../Windows/Devices/Bluetooth/Rfcomm/mod.rs | 30 +- .../src/Windows/Devices/Bluetooth/mod.rs | 24 +- .../src/Windows/Devices/Display/Core/mod.rs | 130 +- .../Windows/Devices/Enumeration/Pnp/mod.rs | 71 +- .../src/Windows/Devices/Enumeration/mod.rs | 145 +- .../Devices/Geolocation/Geofencing/mod.rs | 12 +- .../src/Windows/Devices/Geolocation/mod.rs | 60 +- .../src/Windows/Devices/Gpio/Provider/mod.rs | 11 +- .../windows/src/Windows/Devices/Gpio/mod.rs | 14 +- .../src/Windows/Devices/Haptics/mod.rs | 12 +- .../Devices/HumanInterfaceDevice/mod.rs | 36 +- .../src/Windows/Devices/I2c/Provider/mod.rs | 11 +- .../windows/src/Windows/Devices/I2c/mod.rs | 8 +- .../src/Windows/Devices/Input/Preview/mod.rs | 22 +- .../windows/src/Windows/Devices/Input/mod.rs | 12 +- .../src/Windows/Devices/Lights/Effects/mod.rs | 44 +- .../Devices/PointOfService/Provider/mod.rs | 12 +- .../src/Windows/Devices/PointOfService/mod.rs | 202 +- .../windows/src/Windows/Devices/Power/mod.rs | 6 +- .../src/Windows/Devices/Printers/mod.rs | 266 +-- .../src/Windows/Devices/Pwm/Provider/mod.rs | 11 +- .../windows/src/Windows/Devices/Pwm/mod.rs | 8 +- .../windows/src/Windows/Devices/Radios/mod.rs | 6 +- .../src/Windows/Devices/Scanners/mod.rs | 8 +- .../src/Windows/Devices/Sensors/Custom/mod.rs | 6 +- .../src/Windows/Devices/Sensors/mod.rs | 144 +- .../src/Windows/Devices/SmartCards/mod.rs | 124 +- .../windows/src/Windows/Devices/Sms/mod.rs | 117 +- .../src/Windows/Devices/Spi/Provider/mod.rs | 11 +- .../windows/src/Windows/Devices/Spi/mod.rs | 14 +- .../windows/src/Windows/Devices/Usb/mod.rs | 78 +- .../windows/src/Windows/Devices/WiFi/mod.rs | 18 +- .../Devices/WiFiDirect/Services/mod.rs | 34 +- .../src/Windows/Devices/WiFiDirect/mod.rs | 48 +- .../Windows/Embedded/DeviceLockdown/mod.rs | 6 +- .../src/Windows/Foundation/Collections/mod.rs | 1832 ++++------------- .../windows/src/Windows/Foundation/mod.rs | 39 +- .../src/Windows/Gaming/Input/Preview/mod.rs | 22 +- .../windows/src/Windows/Gaming/Input/mod.rs | 52 +- .../Gaming/Preview/GamesEnumeration/mod.rs | 47 +- .../Windows/Gaming/XboxLive/Storage/mod.rs | 52 +- .../Windows/Globalization/Collation/mod.rs | 35 +- .../Globalization/DateTimeFormatting/mod.rs | 36 +- .../Globalization/NumberFormatting/mod.rs | 59 +- .../windows/src/Windows/Globalization/mod.rs | 76 +- .../src/Windows/Graphics/Capture/mod.rs | 6 +- .../src/Windows/Graphics/Display/Core/mod.rs | 6 +- .../src/Windows/Graphics/Display/mod.rs | 6 +- .../src/Windows/Graphics/Holographic/mod.rs | 50 +- .../src/Windows/Graphics/Imaging/mod.rs | 96 +- .../Graphics/Printing/OptionDetails/mod.rs | 56 +- .../Graphics/Printing/PrintSupport/mod.rs | 18 +- .../Graphics/Printing/PrintTicket/mod.rs | 6 +- .../Windows/Graphics/Printing/Workflow/mod.rs | 52 +- .../src/Windows/Graphics/Printing/mod.rs | 26 +- .../src/Windows/Graphics/Printing3D/mod.rs | 138 +- .../src/Windows/Management/Deployment/mod.rs | 506 ++--- .../src/Windows/Management/Setup/mod.rs | 12 +- .../src/Windows/Management/Update/mod.rs | 30 +- .../windows/src/Windows/Management/mod.rs | 18 +- .../src/Windows/Media/AppRecording/mod.rs | 20 +- .../windows/src/Windows/Media/Audio/mod.rs | 110 +- .../src/Windows/Media/Capture/Frames/mod.rs | 42 +- .../windows/src/Windows/Media/Capture/mod.rs | 96 +- .../windows/src/Windows/Media/Casting/mod.rs | 6 +- .../Windows/Media/ContentRestrictions/mod.rs | 12 +- .../windows/src/Windows/Media/Control/mod.rs | 12 +- .../windows/src/Windows/Media/Core/mod.rs | 136 +- .../src/Windows/Media/Devices/Core/mod.rs | 6 +- .../windows/src/Windows/Media/Devices/mod.rs | 128 +- .../src/Windows/Media/DialProtocol/mod.rs | 18 +- .../windows/src/Windows/Media/Editing/mod.rs | 82 +- .../windows/src/Windows/Media/Effects/mod.rs | 40 +- .../src/Windows/Media/FaceAnalysis/mod.rs | 38 +- .../windows/src/Windows/Media/Import/mod.rs | 66 +- .../src/Windows/Media/MediaProperties/mod.rs | 95 +- .../windows/src/Windows/Media/Miracast/mod.rs | 12 +- .../libs/windows/src/Windows/Media/Ocr/mod.rs | 20 +- .../windows/src/Windows/Media/PlayTo/mod.rs | 6 +- .../windows/src/Windows/Media/Playback/mod.rs | 214 +- .../src/Windows/Media/Playlists/mod.rs | 8 +- .../Windows/Media/Protection/PlayReady/mod.rs | 173 +- .../src/Windows/Media/Protection/mod.rs | 6 +- .../Windows/Media/SpeechRecognition/mod.rs | 70 +- .../src/Windows/Media/SpeechSynthesis/mod.rs | 15 +- .../Windows/Media/Streaming/Adaptive/mod.rs | 6 +- crates/libs/windows/src/Windows/Media/mod.rs | 23 +- .../Networking/BackgroundTransfer/mod.rs | 116 +- .../Windows/Networking/Connectivity/mod.rs | 80 +- .../Networking/NetworkOperators/mod.rs | 284 +-- .../src/Windows/Networking/Proximity/mod.rs | 12 +- .../Networking/PushNotifications/mod.rs | 6 +- .../Networking/ServiceDiscovery/Dnssd/mod.rs | 35 +- .../src/Windows/Networking/Sockets/mod.rs | 159 +- .../windows/src/Windows/Networking/Vpn/mod.rs | 379 +--- .../src/Windows/Networking/XboxLive/mod.rs | 48 +- .../Perception/Spatial/Surfaces/mod.rs | 36 +- .../src/Windows/Perception/Spatial/mod.rs | 22 +- .../Phone/Management/Deployment/mod.rs | 44 +- .../Phone/Notification/Management/mod.rs | 42 +- .../PersonalInformation/Provisioning/mod.rs | 14 +- .../Windows/Phone/PersonalInformation/mod.rs | 62 +- .../Authentication/Identity/Core/mod.rs | 30 +- .../Security/Authentication/Identity/mod.rs | 6 +- .../Security/Authentication/OnlineId/mod.rs | 12 +- .../Security/Authentication/Web/Core/mod.rs | 58 +- .../Authentication/Web/Provider/mod.rs | 121 +- .../Authorization/AppCapabilityAccess/mod.rs | 18 +- .../src/Windows/Security/Credentials/mod.rs | 54 +- .../Security/Cryptography/Certificates/mod.rs | 188 +- .../Windows/Security/Cryptography/Core/mod.rs | 6 +- .../Windows/Security/EnterpriseData/mod.rs | 58 +- .../src/Windows/Security/Isolation/mod.rs | 102 +- .../src/Windows/Services/Maps/Guidance/mod.rs | 30 +- .../Windows/Services/Maps/LocalSearch/mod.rs | 12 +- .../Windows/Services/Maps/OfflineMaps/mod.rs | 6 +- .../windows/src/Windows/Services/Maps/mod.rs | 82 +- .../windows/src/Windows/Services/Store/mod.rs | 214 +- .../Windows/Services/TargetedContent/mod.rs | 88 +- .../src/Windows/Storage/AccessCache/mod.rs | 39 +- .../src/Windows/Storage/BulkAccess/mod.rs | 71 +- .../src/Windows/Storage/FileProperties/mod.rs | 147 +- .../Windows/Storage/Pickers/Provider/mod.rs | 12 +- .../src/Windows/Storage/Pickers/mod.rs | 136 +- .../src/Windows/Storage/Provider/mod.rs | 86 +- .../windows/src/Windows/Storage/Search/mod.rs | 236 +-- .../libs/windows/src/Windows/Storage/mod.rs | 223 +- .../System/Diagnostics/DevicePortal/mod.rs | 6 +- .../System/Diagnostics/TraceReporting/mod.rs | 18 +- .../src/Windows/System/Diagnostics/mod.rs | 18 +- .../src/Windows/System/Inventory/mod.rs | 6 +- .../windows/src/Windows/System/Profile/mod.rs | 22 +- .../System/RemoteDesktop/Provider/mod.rs | 6 +- .../src/Windows/System/RemoteSystems/mod.rs | 52 +- .../windows/src/Windows/System/Update/mod.rs | 12 +- .../src/Windows/System/UserProfile/mod.rs | 95 +- crates/libs/windows/src/Windows/System/mod.rs | 162 +- .../src/Windows/UI/ApplicationSettings/mod.rs | 34 +- .../src/Windows/UI/Composition/Desktop/mod.rs | 2 - .../UI/Composition/Interactions/mod.rs | 111 +- .../src/Windows/UI/Composition/Scenes/mod.rs | 144 +- .../windows/src/Windows/UI/Composition/mod.rs | 568 +---- .../Windows/UI/Core/AnimationMetrics/mod.rs | 6 +- .../libs/windows/src/Windows/UI/Core/mod.rs | 24 +- .../Windows/UI/Input/Inking/Analysis/mod.rs | 138 +- .../src/Windows/UI/Input/Inking/Core/mod.rs | 12 +- .../src/Windows/UI/Input/Inking/mod.rs | 169 +- .../Windows/UI/Input/Preview/Injection/mod.rs | 18 +- .../src/Windows/UI/Input/Spatial/mod.rs | 8 +- .../libs/windows/src/Windows/UI/Input/mod.rs | 36 +- .../UI/Notifications/Management/mod.rs | 6 +- .../src/Windows/UI/Notifications/mod.rs | 92 +- .../libs/windows/src/Windows/UI/Popups/mod.rs | 12 +- .../libs/windows/src/Windows/UI/Shell/mod.rs | 51 +- .../windows/src/Windows/UI/StartScreen/mod.rs | 30 +- .../windows/src/Windows/UI/Text/Core/mod.rs | 6 +- .../src/Windows/UI/ViewManagement/Core/mod.rs | 30 +- .../src/Windows/UI/ViewManagement/mod.rs | 8 +- .../libs/windows/src/Windows/UI/WebUI/mod.rs | 14 +- .../src/Windows/UI/WindowManagement/mod.rs | 44 +- .../windows/src/Windows/Web/AtomPub/mod.rs | 42 +- .../src/Windows/Web/Http/Diagnostics/mod.rs | 12 +- .../src/Windows/Web/Http/Filters/mod.rs | 24 +- .../src/Windows/Web/Http/Headers/mod.rs | 839 +++----- .../libs/windows/src/Windows/Web/Http/mod.rs | 150 +- .../src/Windows/Web/Syndication/mod.rs | 142 +- .../windows/src/Windows/Web/UI/Interop/mod.rs | 12 +- crates/libs/windows/src/Windows/Web/UI/mod.rs | 22 +- .../libs/windows/src/extensions/Foundation.rs | 2 - .../src/extensions/Foundation/Collections.rs | 3 - .../Foundation/Collections/Iterable.rs | 87 - .../Foundation/Collections/MapView.rs | 148 -- .../Foundation/Collections/VectorView.rs | 116 -- 216 files changed, 4126 insertions(+), 12531 deletions(-) delete mode 100644 crates/libs/windows/src/extensions/Foundation/Collections.rs delete mode 100644 crates/libs/windows/src/extensions/Foundation/Collections/Iterable.rs delete mode 100644 crates/libs/windows/src/extensions/Foundation/Collections/MapView.rs delete mode 100644 crates/libs/windows/src/extensions/Foundation/Collections/VectorView.rs diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml index c19221eaebf..a8a5e67995d 100644 --- a/crates/libs/windows/Cargo.toml +++ b/crates/libs/windows/Cargo.toml @@ -35,6 +35,11 @@ default-features = false version = "0.1.0" path = "../link" +[dependencies.windows-collections] +version = "0.1.0" +path = "../collections" +default-features = false + [features] default = ["std"] docs = [] diff --git a/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs b/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs index beb25a44eee..6ec9f95e919 100644 --- a/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs +++ b/crates/libs/windows/src/Windows/AI/MachineLearning/mod.rs @@ -61,18 +61,9 @@ pub struct ILearningModel_Vtbl { pub Domain: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Version: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Metadata: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Metadata: usize, - #[cfg(feature = "Foundation_Collections")] pub InputFeatures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InputFeatures: usize, - #[cfg(feature = "Foundation_Collections")] pub OutputFeatures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OutputFeatures: usize, } windows_core::imp::define_interface!(ILearningModelBinding, ILearningModelBinding_Vtbl, 0xea312f20_168f_4f8c_94fe_2e7ac31b4aa8); impl windows_core::RuntimeType for ILearningModelBinding { @@ -95,10 +86,7 @@ impl windows_core::RuntimeType for ILearningModelBindingFactory { #[repr(C)] pub struct ILearningModelBindingFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateFromSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromSession: usize, } windows_core::imp::define_interface!(ILearningModelDevice, ILearningModelDevice_Vtbl, 0xf5c2c8fe_3f56_4a8c_ac5f_fdb92d8b8252); impl windows_core::RuntimeType for ILearningModelDevice { @@ -147,10 +135,7 @@ pub struct ILearningModelEvaluationResult_Vtbl { pub CorrelationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ErrorStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub Succeeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Outputs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Outputs: usize, } windows_core::imp::define_interface!(ILearningModelFeatureDescriptor, ILearningModelFeatureDescriptor_Vtbl, 0xbc08cf7c_6ed0_4004_97ba_b9a2eecd2b4f); impl windows_core::RuntimeType for ILearningModelFeatureDescriptor { @@ -347,22 +332,10 @@ pub struct ILearningModelSession_Vtbl { pub EvaluationProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] EvaluationProperties: usize, - #[cfg(feature = "Foundation_Collections")] pub EvaluateAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - EvaluateAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub EvaluateFeaturesAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - EvaluateFeaturesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub Evaluate: 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, - #[cfg(not(feature = "Foundation_Collections"))] - Evaluate: usize, - #[cfg(feature = "Foundation_Collections")] pub EvaluateFeatures: 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, - #[cfg(not(feature = "Foundation_Collections"))] - EvaluateFeatures: usize, } windows_core::imp::define_interface!(ILearningModelSessionFactory, ILearningModelSessionFactory_Vtbl, 0x0f6b881d_1c9b_47b6_bfe0_f1cf62a67579); impl windows_core::RuntimeType for ILearningModelSessionFactory { @@ -479,8 +452,7 @@ impl ITensor { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -495,16 +467,13 @@ impl ITensor { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ITensor { const NAME: &'static str = "Windows.AI.MachineLearning.ITensor"; } -#[cfg(feature = "Foundation_Collections")] pub trait ITensor_Impl: ILearningModelFeatureValue_Impl { fn TensorKind(&self) -> windows_core::Result; - fn Shape(&self) -> windows_core::Result>; + fn Shape(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl ITensor_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn TensorKind(this: *mut core::ffi::c_void, result__: *mut TensorKind) -> windows_core::HRESULT { @@ -546,10 +515,7 @@ impl ITensor_Vtbl { pub struct ITensor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TensorKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TensorKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Shape: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Shape: usize, } windows_core::imp::define_interface!(ITensorBoolean, ITensorBoolean_Vtbl, 0x50f311ed_29e9_4a5c_a44d_8fc512584eed); impl windows_core::RuntimeType for ITensorBoolean { @@ -558,10 +524,7 @@ impl windows_core::RuntimeType for ITensorBoolean { #[repr(C)] pub struct ITensorBoolean_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorBooleanStatics, ITensorBooleanStatics_Vtbl, 0x2796862c_2357_49a7_b476_d0aa3dfe6866); impl windows_core::RuntimeType for ITensorBooleanStatics { @@ -571,18 +534,9 @@ impl windows_core::RuntimeType for ITensorBooleanStatics { pub struct ITensorBooleanStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorBooleanStatics2, ITensorBooleanStatics2_Vtbl, 0xa3a4a501_6a2d_52d7_b04b_c435baee0115); impl windows_core::RuntimeType for ITensorBooleanStatics2 { @@ -604,10 +558,7 @@ impl windows_core::RuntimeType for ITensorDouble { #[repr(C)] pub struct ITensorDouble_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorDoubleStatics, ITensorDoubleStatics_Vtbl, 0xa86693c5_9538_44e7_a3ca_5df374a5a70c); impl windows_core::RuntimeType for ITensorDoubleStatics { @@ -617,18 +568,9 @@ impl windows_core::RuntimeType for ITensorDoubleStatics { pub struct ITensorDoubleStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const f64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorDoubleStatics2, ITensorDoubleStatics2_Vtbl, 0x93a570de_5e9a_5094_85c8_592c655e68ac); impl windows_core::RuntimeType for ITensorDoubleStatics2 { @@ -651,10 +593,7 @@ impl windows_core::RuntimeType for ITensorFeatureDescriptor { pub struct ITensorFeatureDescriptor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TensorKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TensorKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Shape: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Shape: usize, } windows_core::imp::define_interface!(ITensorFloat, ITensorFloat_Vtbl, 0xf2282d82_aa02_42c8_a0c8_df1efc9676e1); impl windows_core::RuntimeType for ITensorFloat { @@ -663,10 +602,7 @@ impl windows_core::RuntimeType for ITensorFloat { #[repr(C)] pub struct ITensorFloat_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorFloat16Bit, ITensorFloat16Bit_Vtbl, 0x0ab994fc_5b89_4c3c_b5e4_5282a5316c0a); impl windows_core::RuntimeType for ITensorFloat16Bit { @@ -675,10 +611,7 @@ impl windows_core::RuntimeType for ITensorFloat16Bit { #[repr(C)] pub struct ITensorFloat16Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorFloat16BitStatics, ITensorFloat16BitStatics_Vtbl, 0xa52db6f5_318a_44d4_820b_0cdc7054a84a); impl windows_core::RuntimeType for ITensorFloat16BitStatics { @@ -688,18 +621,9 @@ impl windows_core::RuntimeType for ITensorFloat16BitStatics { pub struct ITensorFloat16BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const f32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorFloat16BitStatics2, ITensorFloat16BitStatics2_Vtbl, 0x68545726_2dc7_51bf_b470_0b344cc2a1bc); impl windows_core::RuntimeType for ITensorFloat16BitStatics2 { @@ -722,18 +646,9 @@ impl windows_core::RuntimeType for ITensorFloatStatics { pub struct ITensorFloatStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const f32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorFloatStatics2, ITensorFloatStatics2_Vtbl, 0x24610bc1_5e44_5713_b281_8f4ad4d555e8); impl windows_core::RuntimeType for ITensorFloatStatics2 { @@ -755,10 +670,7 @@ impl windows_core::RuntimeType for ITensorInt16Bit { #[repr(C)] pub struct ITensorInt16Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorInt16BitStatics, ITensorInt16BitStatics_Vtbl, 0x98646293_266e_4b1a_821f_e60d70898b91); impl windows_core::RuntimeType for ITensorInt16BitStatics { @@ -768,18 +680,9 @@ impl windows_core::RuntimeType for ITensorInt16BitStatics { pub struct ITensorInt16BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const i16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorInt16BitStatics2, ITensorInt16BitStatics2_Vtbl, 0x0cd70cf4_696c_5e5f_95d8_5ebf9670148b); impl windows_core::RuntimeType for ITensorInt16BitStatics2 { @@ -801,10 +704,7 @@ impl windows_core::RuntimeType for ITensorInt32Bit { #[repr(C)] pub struct ITensorInt32Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorInt32BitStatics, ITensorInt32BitStatics_Vtbl, 0x6539864b_52fa_4e35_907c_834cac417b50); impl windows_core::RuntimeType for ITensorInt32BitStatics { @@ -814,18 +714,9 @@ impl windows_core::RuntimeType for ITensorInt32BitStatics { pub struct ITensorInt32BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorInt32BitStatics2, ITensorInt32BitStatics2_Vtbl, 0x7c4b079a_e956_5ce0_a3bd_157d9d79b5ec); impl windows_core::RuntimeType for ITensorInt32BitStatics2 { @@ -847,10 +738,7 @@ impl windows_core::RuntimeType for ITensorInt64Bit { #[repr(C)] pub struct ITensorInt64Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorInt64BitStatics, ITensorInt64BitStatics_Vtbl, 0x9648ad9d_1198_4d74_9517_783ab62b9cc2); impl windows_core::RuntimeType for ITensorInt64BitStatics { @@ -860,18 +748,9 @@ impl windows_core::RuntimeType for ITensorInt64BitStatics { pub struct ITensorInt64BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const i64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorInt64BitStatics2, ITensorInt64BitStatics2_Vtbl, 0x6d3d9dcb_ff40_5ec2_89fe_084e2b6bc6db); impl windows_core::RuntimeType for ITensorInt64BitStatics2 { @@ -893,10 +772,7 @@ impl windows_core::RuntimeType for ITensorInt8Bit { #[repr(C)] pub struct ITensorInt8Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorInt8BitStatics, ITensorInt8BitStatics_Vtbl, 0xb1a12284_095c_4c76_a661_ac4cee1f3e8b); impl windows_core::RuntimeType for ITensorInt8BitStatics { @@ -906,18 +782,9 @@ impl windows_core::RuntimeType for ITensorInt8BitStatics { pub struct ITensorInt8BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorInt8BitStatics2, ITensorInt8BitStatics2_Vtbl, 0xc0d59637_c468_56fb_9535_c052bdb93dc0); impl windows_core::RuntimeType for ITensorInt8BitStatics2 { @@ -939,10 +806,7 @@ impl windows_core::RuntimeType for ITensorString { #[repr(C)] pub struct ITensorString_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorStringStatics, ITensorStringStatics_Vtbl, 0x83623324_cf26_4f17_a2d4_20ef8d097d53); impl windows_core::RuntimeType for ITensorStringStatics { @@ -952,18 +816,9 @@ impl windows_core::RuntimeType for ITensorStringStatics { pub struct ITensorStringStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const windows_core::HSTRING, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorStringStatics2, ITensorStringStatics2_Vtbl, 0x9e355ed0_c8e2_5254_9137_0193a3668fd8); impl windows_core::RuntimeType for ITensorStringStatics2 { @@ -981,10 +836,7 @@ impl windows_core::RuntimeType for ITensorUInt16Bit { #[repr(C)] pub struct ITensorUInt16Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorUInt16BitStatics, ITensorUInt16BitStatics_Vtbl, 0x5df745dd_028a_481a_a27c_c7e6435e52dd); impl windows_core::RuntimeType for ITensorUInt16BitStatics { @@ -994,18 +846,9 @@ impl windows_core::RuntimeType for ITensorUInt16BitStatics { pub struct ITensorUInt16BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorUInt16BitStatics2, ITensorUInt16BitStatics2_Vtbl, 0x8af40c64_d69f_5315_9348_490877bbd642); impl windows_core::RuntimeType for ITensorUInt16BitStatics2 { @@ -1027,10 +870,7 @@ impl windows_core::RuntimeType for ITensorUInt32Bit { #[repr(C)] pub struct ITensorUInt32Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorUInt32BitStatics, ITensorUInt32BitStatics_Vtbl, 0x417c3837_e773_4378_8e7f_0cc33dbea697); impl windows_core::RuntimeType for ITensorUInt32BitStatics { @@ -1040,18 +880,9 @@ impl windows_core::RuntimeType for ITensorUInt32BitStatics { pub struct ITensorUInt32BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorUInt32BitStatics2, ITensorUInt32BitStatics2_Vtbl, 0xef1a1f1c_314e_569d_b496_5c8447d20cd2); impl windows_core::RuntimeType for ITensorUInt32BitStatics2 { @@ -1073,10 +904,7 @@ impl windows_core::RuntimeType for ITensorUInt64Bit { #[repr(C)] pub struct ITensorUInt64Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorUInt64BitStatics, ITensorUInt64BitStatics_Vtbl, 0x7a7e20eb_242f_47cb_a9c6_f602ecfbfee4); impl windows_core::RuntimeType for ITensorUInt64BitStatics { @@ -1086,18 +914,9 @@ impl windows_core::RuntimeType for ITensorUInt64BitStatics { pub struct ITensorUInt64BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const u64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorUInt64BitStatics2, ITensorUInt64BitStatics2_Vtbl, 0x085a687d_67e1_5b1e_b232_4fabe9ca20b3); impl windows_core::RuntimeType for ITensorUInt64BitStatics2 { @@ -1119,10 +938,7 @@ impl windows_core::RuntimeType for ITensorUInt8Bit { #[repr(C)] pub struct ITensorUInt8Bit_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAsVectorView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsVectorView: usize, } windows_core::imp::define_interface!(ITensorUInt8BitStatics, ITensorUInt8BitStatics_Vtbl, 0x05f67583_bc24_4220_8a41_2dcd8c5ed33c); impl windows_core::RuntimeType for ITensorUInt8BitStatics { @@ -1132,18 +948,9 @@ impl windows_core::RuntimeType for ITensorUInt8BitStatics { pub struct ITensorUInt8BitStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Create2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create2: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIterable: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIterable: usize, } windows_core::imp::define_interface!(ITensorUInt8BitStatics2, ITensorUInt8BitStatics2_Vtbl, 0x2ba042d6_373e_5a3a_a2fc_a6c41bd52789); impl windows_core::RuntimeType for ITensorUInt8BitStatics2 { @@ -1335,24 +1142,21 @@ impl LearningModel { (windows_core::Interface::vtable(this).Version)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Metadata(&self) -> windows_core::Result> { + pub fn Metadata(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Metadata)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn InputFeatures(&self) -> windows_core::Result> { + pub fn InputFeatures(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InputFeatures)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OutputFeatures(&self) -> windows_core::Result> { + pub fn OutputFeatures(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1454,18 +1258,14 @@ impl windows_core::RuntimeName for LearningModel { } unsafe impl Send for LearningModel {} unsafe impl Sync for LearningModel {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct LearningModelBinding(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(LearningModelBinding, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( LearningModelBinding , super::super::Foundation::Collections:: IIterable < super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , super::super::Foundation::Collections:: IMapView < windows_core::HSTRING , windows_core::IInspectable > ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( LearningModelBinding , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMapView < windows_core::HSTRING , windows_core::IInspectable > ); impl LearningModelBinding { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1478,6 +1278,7 @@ impl LearningModelBinding { let this = self; unsafe { (windows_core::Interface::vtable(this).Bind)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), value.param().abi()).ok() } } + #[cfg(feature = "Foundation_Collections")] pub fn BindWithProperties(&self, name: &windows_core::HSTRING, value: P1, props: P2) -> windows_core::Result<()> where P1: windows_core::Param, @@ -1500,28 +1301,28 @@ impl LearningModelBinding { }) } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Split)(windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } fn ILearningModelBindingFactory windows_core::Result>(callback: F) -> windows_core::Result { @@ -1529,35 +1330,28 @@ impl LearningModelBinding { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for LearningModelBinding { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for LearningModelBinding { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for LearningModelBinding { const NAME: &'static str = "Windows.AI.MachineLearning.LearningModelBinding"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for LearningModelBinding {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for LearningModelBinding {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for LearningModelBinding { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &LearningModelBinding { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1662,8 +1456,7 @@ impl LearningModelEvaluationResult { (windows_core::Interface::vtable(this).Succeeded)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Outputs(&self) -> windows_core::Result> { + pub fn Outputs(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1744,7 +1537,6 @@ impl LearningModelSession { (windows_core::Interface::vtable(this).EvaluationProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn EvaluateAsync(&self, bindings: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, @@ -1755,10 +1547,9 @@ impl LearningModelSession { (windows_core::Interface::vtable(this).EvaluateAsync)(windows_core::Interface::as_raw(this), bindings.param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn EvaluateFeaturesAsync(&self, features: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1766,7 +1557,6 @@ impl LearningModelSession { (windows_core::Interface::vtable(this).EvaluateFeaturesAsync)(windows_core::Interface::as_raw(this), features.param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Evaluate(&self, bindings: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result where P0: windows_core::Param, @@ -1777,10 +1567,9 @@ impl LearningModelSession { (windows_core::Interface::vtable(this).Evaluate)(windows_core::Interface::as_raw(this), bindings.param().abi(), core::mem::transmute_copy(correlationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn EvaluateFeatures(&self, features: P0, correlationid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2036,16 +1825,14 @@ impl TensorBoolean { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2058,31 +1845,28 @@ impl TensorBoolean { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[bool]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorBooleanStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2157,16 +1941,14 @@ impl TensorDouble { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2179,31 +1961,28 @@ impl TensorDouble { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f64]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorDoubleStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2288,8 +2067,7 @@ impl TensorFeatureDescriptor { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2340,16 +2118,14 @@ impl TensorFloat { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2362,31 +2138,28 @@ impl TensorFloat { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f32]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorFloatStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2461,16 +2234,14 @@ impl TensorFloat16Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2483,31 +2254,28 @@ impl TensorFloat16Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[f32]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorFloat16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2582,16 +2350,14 @@ impl TensorInt16Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2604,31 +2370,28 @@ impl TensorInt16Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i16]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2703,16 +2466,14 @@ impl TensorInt32Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2725,31 +2486,28 @@ impl TensorInt32Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i32]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt32BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2824,16 +2582,14 @@ impl TensorInt64Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2846,31 +2602,28 @@ impl TensorInt64Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[i64]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt64BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2945,16 +2698,14 @@ impl TensorInt8Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2967,31 +2718,28 @@ impl TensorInt8Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u8]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorInt8BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3093,16 +2841,14 @@ impl TensorString { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3115,31 +2861,28 @@ impl TensorString { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[windows_core::HSTRING]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), core::mem::transmute(data.as_ptr()), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorStringStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3204,16 +2947,14 @@ impl TensorUInt16Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3226,31 +2967,28 @@ impl TensorUInt16Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u16]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt16BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3325,16 +3063,14 @@ impl TensorUInt32Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3347,31 +3083,28 @@ impl TensorUInt32Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u32]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt32BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3446,16 +3179,14 @@ impl TensorUInt64Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3468,31 +3199,28 @@ impl TensorUInt64Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u64]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt64BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3567,16 +3295,14 @@ impl TensorUInt8Bit { (windows_core::Interface::vtable(this).TensorKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Shape(&self) -> windows_core::Result> { + pub fn Shape(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Shape)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsVectorView(&self) -> windows_core::Result> { + pub fn GetAsVectorView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3589,31 +3315,28 @@ impl TensorUInt8Bit { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Create2(shape: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create2)(windows_core::Interface::as_raw(this), shape.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromArray(shape: P0, data: &[u8]) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromArray)(windows_core::Interface::as_raw(this), shape.param().abi(), data.len().try_into().unwrap(), data.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIterable(shape: P0, data: P1) -> windows_core::Result where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { Self::ITensorUInt8BitStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs index cd036d47073..edb58b669e6 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs @@ -1409,8 +1409,8 @@ impl FileActivatedEventArgs { (windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1570,8 +1570,8 @@ impl FileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).ContinuationData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4248,8 +4248,8 @@ impl windows_core::RuntimeType for IFileActivatedEventArgs { windows_core::imp::interface_hierarchy!(IFileActivatedEventArgs, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(IFileActivatedEventArgs, IActivatedEventArgs); impl IFileActivatedEventArgs { - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4285,16 +4285,16 @@ impl IFileActivatedEventArgs { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] +#[cfg(feature = "Storage")] impl windows_core::RuntimeName for IFileActivatedEventArgs { const NAME: &'static str = "Windows.ApplicationModel.Activation.IFileActivatedEventArgs"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] +#[cfg(feature = "Storage")] pub trait IFileActivatedEventArgs_Impl: IActivatedEventArgs_Impl { - fn Files(&self) -> windows_core::Result>; + fn Files(&self) -> windows_core::Result>; fn Verb(&self) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] +#[cfg(feature = "Storage")] impl IFileActivatedEventArgs_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Files(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -4336,9 +4336,9 @@ impl IFileActivatedEventArgs_Vtbl { #[repr(C)] pub struct IFileActivatedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub Files: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] Files: usize, pub Verb: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4449,8 +4449,8 @@ impl IFileActivatedEventArgsWithNeighboringFiles { (windows_core::Interface::vtable(this).SplashScreen)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage")] + pub fn Files(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4465,15 +4465,15 @@ impl IFileActivatedEventArgsWithNeighboringFiles { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] +#[cfg(feature = "Storage_Search")] impl windows_core::RuntimeName for IFileActivatedEventArgsWithNeighboringFiles { const NAME: &'static str = "Windows.ApplicationModel.Activation.IFileActivatedEventArgsWithNeighboringFiles"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] +#[cfg(feature = "Storage_Search")] pub trait IFileActivatedEventArgsWithNeighboringFiles_Impl: IActivatedEventArgs_Impl + IFileActivatedEventArgs_Impl { fn NeighboringFilesQuery(&self) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] +#[cfg(feature = "Storage_Search")] impl IFileActivatedEventArgsWithNeighboringFiles_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn NeighboringFilesQuery(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -4645,8 +4645,8 @@ windows_core::imp::interface_hierarchy!(IFileOpenPickerContinuationEventArgs, wi windows_core::imp::required_hierarchy!(IFileOpenPickerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl IFileOpenPickerContinuationEventArgs { - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4689,7 +4689,7 @@ impl windows_core::RuntimeName for IFileOpenPickerContinuationEventArgs { } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] pub trait IFileOpenPickerContinuationEventArgs_Impl: IActivatedEventArgs_Impl + IContinuationActivatedEventArgs_Impl { - fn Files(&self) -> windows_core::Result>; + fn Files(&self) -> windows_core::Result>; } #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] impl IFileOpenPickerContinuationEventArgs_Vtbl { @@ -4717,9 +4717,9 @@ impl IFileOpenPickerContinuationEventArgs_Vtbl { #[repr(C)] pub struct IFileOpenPickerContinuationEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub Files: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] Files: usize, } windows_core::imp::define_interface!(IFileSavePickerActivatedEventArgs, IFileSavePickerActivatedEventArgs_Vtbl, 0x81c19cf1_74e6_4387_82eb_bb8fd64b4346); @@ -6379,9 +6379,9 @@ impl windows_core::RuntimeType for ITileActivatedInfo { #[repr(C)] pub struct ITileActivatedInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Notifications"))] + #[cfg(feature = "UI_Notifications")] pub RecentlyShownNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Notifications")))] + #[cfg(not(feature = "UI_Notifications"))] RecentlyShownNotifications: usize, } windows_core::imp::define_interface!(IToastNotificationActivatedEventArgs, IToastNotificationActivatedEventArgs_Vtbl, 0x92a86f82_5290_431d_be85_c4aaeeb8685f); @@ -7937,8 +7937,8 @@ unsafe impl Sync for StartupTaskActivatedEventArgs {} pub struct TileActivatedInfo(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(TileActivatedInfo, windows_core::IUnknown, windows_core::IInspectable); impl TileActivatedInfo { - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Notifications"))] - pub fn RecentlyShownNotifications(&self) -> windows_core::Result> { + #[cfg(feature = "UI_Notifications")] + pub fn RecentlyShownNotifications(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs index 34d97b76cb3..e1ea0df6df7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/AppExtensions/mod.rs @@ -102,8 +102,7 @@ unsafe impl Sync for AppExtension {} pub struct AppExtensionCatalog(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AppExtensionCatalog, windows_core::IUnknown, windows_core::IInspectable); impl AppExtensionCatalog { - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync(&self) -> windows_core::Result>> { + pub fn FindAllAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -187,8 +186,7 @@ impl AppExtensionCatalog { let this = self; unsafe { (windows_core::Interface::vtable(this).RemovePackageStatusChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAll(&self) -> windows_core::Result> { + pub fn FindAll(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -235,8 +233,7 @@ impl AppExtensionPackageInstalledEventArgs { (windows_core::Interface::vtable(this).Package)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Extensions(&self) -> windows_core::Result> { + pub fn Extensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -339,8 +336,7 @@ impl AppExtensionPackageUpdatedEventArgs { (windows_core::Interface::vtable(this).Package)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Extensions(&self) -> windows_core::Result> { + pub fn Extensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -446,10 +442,7 @@ impl windows_core::RuntimeType for IAppExtensionCatalog { #[repr(C)] pub struct IAppExtensionCatalog_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, pub RequestRemovePackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PackageInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemovePackageInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -469,10 +462,7 @@ impl windows_core::RuntimeType for IAppExtensionCatalog2 { #[repr(C)] pub struct IAppExtensionCatalog2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAll: usize, } windows_core::imp::define_interface!(IAppExtensionCatalogStatics, IAppExtensionCatalogStatics_Vtbl, 0x3c36668a_5f18_4f0b_9ce5_cab61d196f11); impl windows_core::RuntimeType for IAppExtensionCatalogStatics { @@ -492,10 +482,7 @@ pub struct IAppExtensionPackageInstalledEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AppExtensionName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Package: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Extensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Extensions: usize, } windows_core::imp::define_interface!(IAppExtensionPackageStatusChangedEventArgs, IAppExtensionPackageStatusChangedEventArgs_Vtbl, 0x1ce17433_1153_44fd_87b1_8ae1050303df); impl windows_core::RuntimeType for IAppExtensionPackageStatusChangedEventArgs { @@ -526,10 +513,7 @@ pub struct IAppExtensionPackageUpdatedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AppExtensionName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Package: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Extensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Extensions: usize, } windows_core::imp::define_interface!(IAppExtensionPackageUpdatingEventArgs, IAppExtensionPackageUpdatingEventArgs_Vtbl, 0x7ed59329_1a65_4800_a700_b321009e306a); impl windows_core::RuntimeType for IAppExtensionPackageUpdatingEventArgs { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs index 20c7084db97..c623fe57d87 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/AppService/mod.rs @@ -1,7 +1,6 @@ pub struct AppServiceCatalog; impl AppServiceCatalog { - #[cfg(feature = "Foundation_Collections")] - pub fn FindAppServiceProvidersAsync(appservicename: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindAppServiceProvidersAsync(appservicename: &windows_core::HSTRING) -> windows_core::Result>> { Self::IAppServiceCatalogStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAppServiceProvidersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -432,10 +431,7 @@ impl windows_core::RuntimeType for IAppServiceCatalogStatics { #[repr(C)] pub struct IAppServiceCatalogStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAppServiceProvidersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAppServiceProvidersAsync: usize, } windows_core::imp::define_interface!(IAppServiceClosedEventArgs, IAppServiceClosedEventArgs_Vtbl, 0xde6016f6_cb03_4d35_ac8d_cc6303239731); impl windows_core::RuntimeType for IAppServiceClosedEventArgs { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs index f7e213b2b72..3e10c1ab640 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/DataProvider/mod.rs @@ -130,8 +130,7 @@ impl AppointmentCalendarCreateOrUpdateAppointmentRequest { (windows_core::Interface::vtable(this).NotifyInvitees)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ChangedProperties(&self) -> windows_core::Result> { + pub fn ChangedProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -226,8 +225,7 @@ impl AppointmentCalendarForwardMeetingRequest { (windows_core::Interface::vtable(this).AppointmentOriginalStartTime)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Invitees(&self) -> windows_core::Result> { + pub fn Invitees(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -778,10 +776,7 @@ pub struct IAppointmentCalendarCreateOrUpdateAppointmentRequest_Vtbl { pub AppointmentCalendarLocalId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Appointment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NotifyInvitees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ChangedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ChangedProperties: usize, pub ReportCompletedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -805,10 +800,7 @@ pub struct IAppointmentCalendarForwardMeetingRequest_Vtbl { pub AppointmentCalendarLocalId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AppointmentLocalId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AppointmentOriginalStartTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Invitees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Invitees: usize, pub Subject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ForwardHeader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Comment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs index 8ba2a850513..d09d8cbc33b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Appointments/mod.rs @@ -97,8 +97,7 @@ impl Appointment { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOrganizer)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Invitees(&self) -> windows_core::Result> { + pub fn Invitees(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -421,16 +420,14 @@ impl AppointmentCalendar { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSummaryCardView)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAppointmentsAsync(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> windows_core::Result>> { + pub fn FindAppointmentsAsync(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAppointmentsAsync)(windows_core::Interface::as_raw(this), rangestart, rangelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAppointmentsAsyncWithOptions(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, options: P2) -> windows_core::Result>> + pub fn FindAppointmentsAsyncWithOptions(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, options: P2) -> windows_core::Result>> where P2: windows_core::Param, { @@ -440,24 +437,21 @@ impl AppointmentCalendar { (windows_core::Interface::vtable(this).FindAppointmentsAsyncWithOptions)(windows_core::Interface::as_raw(this), rangestart, rangelength, options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindExceptionsFromMasterAsync(&self, masterlocalid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindExceptionsFromMasterAsync(&self, masterlocalid: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindExceptionsFromMasterAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(masterlocalid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllInstancesAsync(&self, masterlocalid: &windows_core::HSTRING, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> windows_core::Result>> { + pub fn FindAllInstancesAsync(&self, masterlocalid: &windows_core::HSTRING, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllInstancesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(masterlocalid), rangestart, rangelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllInstancesAsyncWithOptions(&self, masterlocalid: &windows_core::HSTRING, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, poptions: P3) -> windows_core::Result>> + pub fn FindAllInstancesAsyncWithOptions(&self, masterlocalid: &windows_core::HSTRING, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, poptions: P3) -> windows_core::Result>> where P3: windows_core::Param, { @@ -481,16 +475,14 @@ impl AppointmentCalendar { (windows_core::Interface::vtable(this).GetAppointmentInstanceAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localid), instancestarttime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindUnexpandedAppointmentsAsync(&self) -> windows_core::Result>> { + pub fn FindUnexpandedAppointmentsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindUnexpandedAppointmentsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindUnexpandedAppointmentsAsyncWithOptions(&self, options: P0) -> windows_core::Result>> + pub fn FindUnexpandedAppointmentsAsyncWithOptions(&self, options: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -669,11 +661,10 @@ impl AppointmentCalendar { (windows_core::Interface::vtable(this).TryCancelMeetingAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), notifyinvitees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn TryForwardMeetingAsync(&self, meeting: P0, invitees: P1, subject: &windows_core::HSTRING, forwardheader: &windows_core::HSTRING, comment: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -963,8 +954,7 @@ impl AppointmentException { (windows_core::Interface::vtable(this).Appointment)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExceptionProperties(&self) -> windows_core::Result> { + pub fn ExceptionProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1541,8 +1531,7 @@ impl AppointmentProperties { (windows_core::Interface::vtable(this).Invitees)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn DefaultProperties() -> windows_core::Result> { + pub fn DefaultProperties() -> windows_core::Result> { Self::IAppointmentPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DefaultProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1792,32 +1781,28 @@ impl AppointmentStore { (windows_core::Interface::vtable(this).GetAppointmentInstanceAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(localid), instancestarttime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAppointmentCalendarsAsync(&self) -> windows_core::Result>> { + pub fn FindAppointmentCalendarsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAppointmentCalendarsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAppointmentCalendarsAsyncWithOptions(&self, options: FindAppointmentCalendarsOptions) -> windows_core::Result>> { + pub fn FindAppointmentCalendarsAsyncWithOptions(&self, options: FindAppointmentCalendarsOptions) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAppointmentCalendarsAsyncWithOptions)(windows_core::Interface::as_raw(this), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAppointmentsAsync(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> windows_core::Result>> { + pub fn FindAppointmentsAsync(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAppointmentsAsync)(windows_core::Interface::as_raw(this), rangestart, rangelength, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAppointmentsAsyncWithOptions(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, options: P2) -> windows_core::Result>> + pub fn FindAppointmentsAsyncWithOptions(&self, rangestart: super::super::Foundation::DateTime, rangelength: super::super::Foundation::TimeSpan, options: P2) -> windows_core::Result>> where P2: windows_core::Param, { @@ -1928,8 +1913,7 @@ impl AppointmentStore { (windows_core::Interface::vtable(this).ShowEditNewAppointmentAsync)(windows_core::Interface::as_raw(this), appointment.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindLocalIdsFromRoamingIdAsync(&self, roamingid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindLocalIdsFromRoamingIdAsync(&self, roamingid: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2035,8 +2019,7 @@ unsafe impl Sync for AppointmentStoreChange {} pub struct AppointmentStoreChangeReader(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AppointmentStoreChangeReader, windows_core::IUnknown, windows_core::IInspectable); impl AppointmentStoreChangeReader { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2276,16 +2259,14 @@ impl FindAppointmentsOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn CalendarIds(&self) -> windows_core::Result> { + pub fn CalendarIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CalendarIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FetchProperties(&self) -> windows_core::Result> { + pub fn FetchProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2348,10 +2329,7 @@ pub struct IAppointment_Vtbl { pub SetReminder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Organizer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetOrganizer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Invitees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Invitees: usize, pub Recurrence: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRecurrence: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub BusyStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppointmentBusyStatus) -> windows_core::HRESULT, @@ -2426,36 +2404,15 @@ pub struct IAppointmentCalendar_Vtbl { pub SourceDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SummaryCardView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppointmentSummaryCardView) -> windows_core::HRESULT, pub SetSummaryCardView: unsafe extern "system" fn(*mut core::ffi::c_void, AppointmentSummaryCardView) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAppointmentsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAppointmentsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAppointmentsAsyncWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAppointmentsAsyncWithOptions: usize, - #[cfg(feature = "Foundation_Collections")] pub FindExceptionsFromMasterAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindExceptionsFromMasterAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllInstancesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllInstancesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllInstancesAsyncWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllInstancesAsyncWithOptions: usize, pub GetAppointmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAppointmentInstanceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindUnexpandedAppointmentsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindUnexpandedAppointmentsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindUnexpandedAppointmentsAsyncWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindUnexpandedAppointmentsAsyncWithOptions: usize, pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteAppointmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2494,10 +2451,7 @@ pub struct IAppointmentCalendar2_Vtbl { pub SetMustNofityInvitees: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub TryCreateOrUpdateAppointmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryCancelMeetingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TryForwardMeetingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryForwardMeetingAsync: usize, pub TryProposeNewTimeForMeetingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryUpdateMeetingResponseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, AppointmentParticipantResponse, *mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2553,10 +2507,7 @@ impl windows_core::RuntimeType for IAppointmentException { pub struct IAppointmentException_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Appointment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ExceptionProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExceptionProperties: usize, pub IsDeleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAppointmentInvitee, IAppointmentInvitee_Vtbl, 0x13bf0796_9842_495b_b0e7_ef8f79c0701d); @@ -2794,10 +2745,7 @@ pub struct IAppointmentPropertiesStatics_Vtbl { pub Recurrence: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Uri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Invitees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DefaultProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DefaultProperties: usize, } windows_core::imp::define_interface!(IAppointmentPropertiesStatics2, IAppointmentPropertiesStatics2_Vtbl, 0xdffc434b_b017_45dd_8af5_d163d10801bb); impl windows_core::RuntimeType for IAppointmentPropertiesStatics2 { @@ -2866,22 +2814,10 @@ pub struct IAppointmentStore_Vtbl { pub GetAppointmentCalendarAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAppointmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAppointmentInstanceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAppointmentCalendarsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAppointmentCalendarsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAppointmentCalendarsAsyncWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, FindAppointmentCalendarsOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAppointmentCalendarsAsyncWithOptions: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAppointmentsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAppointmentsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAppointmentsAsyncWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAppointmentsAsyncWithOptions: usize, pub FindConflictAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FindConflictAsyncWithInstanceStart: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MoveAppointmentAsync: 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, @@ -2899,10 +2835,7 @@ pub struct IAppointmentStore_Vtbl { pub ShowAppointmentDetailsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowAppointmentDetailsWithDateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowEditNewAppointmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindLocalIdsFromRoamingIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindLocalIdsFromRoamingIdAsync: usize, } windows_core::imp::define_interface!(IAppointmentStore2, IAppointmentStore2_Vtbl, 0x25c48c20_1c41_424f_8084_67c1cfe0a854); impl windows_core::RuntimeType for IAppointmentStore2 { @@ -2950,10 +2883,7 @@ impl windows_core::RuntimeType for IAppointmentStoreChangeReader { #[repr(C)] pub struct IAppointmentStoreChangeReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, pub AcceptChanges: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AcceptChangesThrough: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -3010,14 +2940,8 @@ impl windows_core::RuntimeType for IFindAppointmentsOptions { #[repr(C)] pub struct IFindAppointmentsOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CalendarIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CalendarIds: usize, - #[cfg(feature = "Foundation_Collections")] pub FetchProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FetchProperties: usize, pub IncludeHidden: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIncludeHidden: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub MaxCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs index cbed32ab7e1..de81f6e9f7b 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs @@ -4,8 +4,8 @@ pub struct ActivitySensorTrigger(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ActivitySensorTrigger, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(ActivitySensorTrigger, IBackgroundTrigger); impl ActivitySensorTrigger { - #[cfg(all(feature = "Devices_Sensors", feature = "Foundation_Collections"))] - pub fn SubscribedActivities(&self) -> windows_core::Result> { + #[cfg(feature = "Devices_Sensors")] + pub fn SubscribedActivities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -19,8 +19,8 @@ impl ActivitySensorTrigger { (windows_core::Interface::vtable(this).ReportInterval)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Devices_Sensors", feature = "Foundation_Collections"))] - pub fn SupportedActivities(&self) -> windows_core::Result> { + #[cfg(feature = "Devices_Sensors")] + pub fn SupportedActivities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -969,15 +969,13 @@ impl BackgroundTaskRegistration { (windows_core::Interface::vtable(this).AppEnergyUsePredictionContribution)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllTasks() -> windows_core::Result> { + pub fn AllTasks() -> windows_core::Result> { Self::IBackgroundTaskRegistrationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllTasks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn AllTaskGroups() -> windows_core::Result> { + pub fn AllTaskGroups() -> windows_core::Result> { Self::IBackgroundTaskRegistrationStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllTaskGroups)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1044,8 +1042,7 @@ impl BackgroundTaskRegistrationGroup { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveBackgroundActivated)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllTasks(&self) -> windows_core::Result> { + pub fn AllTasks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2070,14 +2067,14 @@ impl windows_core::RuntimeType for IActivitySensorTrigger { #[repr(C)] pub struct IActivitySensorTrigger_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Sensors", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Sensors")] pub SubscribedActivities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Sensors", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Sensors"))] SubscribedActivities: usize, pub ReportInterval: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(all(feature = "Devices_Sensors", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Sensors")] pub SupportedActivities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Sensors", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Sensors"))] SupportedActivities: usize, pub MinimumReportInterval: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } @@ -3175,10 +3172,7 @@ pub struct IBackgroundTaskRegistrationGroup_Vtbl { #[cfg(not(feature = "ApplicationModel_Activation"))] BackgroundActivated: usize, pub RemoveBackgroundActivated: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AllTasks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllTasks: usize, } windows_core::imp::define_interface!(IBackgroundTaskRegistrationGroupFactory, IBackgroundTaskRegistrationGroupFactory_Vtbl, 0x83d92b69_44cf_4631_9740_03c7d8741bc5); impl windows_core::RuntimeType for IBackgroundTaskRegistrationGroupFactory { @@ -3197,10 +3191,7 @@ impl windows_core::RuntimeType for IBackgroundTaskRegistrationStatics { #[repr(C)] pub struct IBackgroundTaskRegistrationStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AllTasks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllTasks: usize, } windows_core::imp::define_interface!(IBackgroundTaskRegistrationStatics2, IBackgroundTaskRegistrationStatics2_Vtbl, 0x174b671e_b20d_4fa9_ad9a_e93ad6c71e01); impl windows_core::RuntimeType for IBackgroundTaskRegistrationStatics2 { @@ -3209,10 +3200,7 @@ impl windows_core::RuntimeType for IBackgroundTaskRegistrationStatics2 { #[repr(C)] pub struct IBackgroundTaskRegistrationStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AllTaskGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllTaskGroups: usize, pub GetTaskGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IBackgroundTrigger, IBackgroundTrigger_Vtbl, 0x84b3a058_6027_4b87_9790_bdf3f757dbd7); @@ -3864,9 +3852,9 @@ pub struct IStorageLibraryContentChangedTriggerStatics_Vtbl { pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage"))] Create: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub CreateFromLibraries: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] CreateFromLibraries: usize, } windows_core::imp::define_interface!(ISystemCondition, ISystemCondition_Vtbl, 0xc15fb476_89c5_420b_abd3_fb3030472128); @@ -4734,10 +4722,10 @@ impl StorageLibraryContentChangedTrigger { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), storagelibrary.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub fn CreateFromLibraries(storagelibraries: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IStorageLibraryContentChangedTriggerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs index 7c3c96de229..42f67b16c2d 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs @@ -69,18 +69,16 @@ impl AcceptedVoipPhoneCallOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMedia)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { + pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AssociatedDeviceIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(associateddeviceids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IAcceptedVoipPhoneCallOptionsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -171,18 +169,16 @@ impl AppInitiatedVoipPhoneCallOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMedia)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { + pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AssociatedDeviceIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(associateddeviceids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IAppInitiatedVoipPhoneCallOptionsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -354,10 +350,7 @@ pub struct IAcceptedVoipPhoneCallOptions_Vtbl { pub SetServiceName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Media: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VoipPhoneCallMedia) -> windows_core::HRESULT, pub SetMedia: unsafe extern "system" fn(*mut core::ffi::c_void, VoipPhoneCallMedia) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AssociatedDeviceIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AssociatedDeviceIds: usize, } windows_core::imp::define_interface!(IAcceptedVoipPhoneCallOptionsFactory, IAcceptedVoipPhoneCallOptionsFactory_Vtbl, 0x6cf8a79b_acc1_54ce_a75d_cc78d17690c8); impl windows_core::RuntimeType for IAcceptedVoipPhoneCallOptionsFactory { @@ -366,10 +359,7 @@ impl windows_core::RuntimeType for IAcceptedVoipPhoneCallOptionsFactory { #[repr(C)] pub struct IAcceptedVoipPhoneCallOptionsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(IAppInitiatedVoipPhoneCallOptions, IAppInitiatedVoipPhoneCallOptions_Vtbl, 0x86bebf63_ff5a_57fd_84c6_2d2cf18302f8); impl windows_core::RuntimeType for IAppInitiatedVoipPhoneCallOptions { @@ -388,10 +378,7 @@ pub struct IAppInitiatedVoipPhoneCallOptions_Vtbl { pub SetServiceName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Media: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VoipPhoneCallMedia) -> windows_core::HRESULT, pub SetMedia: unsafe extern "system" fn(*mut core::ffi::c_void, VoipPhoneCallMedia) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AssociatedDeviceIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AssociatedDeviceIds: usize, } windows_core::imp::define_interface!(IAppInitiatedVoipPhoneCallOptionsFactory, IAppInitiatedVoipPhoneCallOptionsFactory_Vtbl, 0xca46c30c_f779_5f3b_8ebc_a635e7f652b5); impl windows_core::RuntimeType for IAppInitiatedVoipPhoneCallOptionsFactory { @@ -400,10 +387,7 @@ impl windows_core::RuntimeType for IAppInitiatedVoipPhoneCallOptionsFactory { #[repr(C)] pub struct IAppInitiatedVoipPhoneCallOptionsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(ICallAnswerEventArgs, ICallAnswerEventArgs_Vtbl, 0xfd789617_2dd7_4c8c_b2bd_95d17a5bb733); impl windows_core::RuntimeType for ICallAnswerEventArgs { @@ -470,10 +454,7 @@ pub struct IIncomingVoipPhoneCallOptions_Vtbl { pub SetRingTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub ContactRemoteId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetContactRemoteId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AssociatedDeviceIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AssociatedDeviceIds: usize, } windows_core::imp::define_interface!(IIncomingVoipPhoneCallOptionsFactory, IIncomingVoipPhoneCallOptionsFactory_Vtbl, 0x74062de4_08f0_5649_bd80_89ea87185c78); impl windows_core::RuntimeType for IIncomingVoipPhoneCallOptionsFactory { @@ -482,10 +463,7 @@ impl windows_core::RuntimeType for IIncomingVoipPhoneCallOptionsFactory { #[repr(C)] pub struct IIncomingVoipPhoneCallOptionsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(ILockScreenCallEndCallDeferral, ILockScreenCallEndCallDeferral_Vtbl, 0x2dd7ed0d_98ed_4041_9632_50ff812b773f); impl windows_core::RuntimeType for ILockScreenCallEndCallDeferral { @@ -545,10 +523,7 @@ pub struct IOutgoingVoipPhoneCallOptions_Vtbl { pub SetServiceName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Media: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VoipPhoneCallMedia) -> windows_core::HRESULT, pub SetMedia: unsafe extern "system" fn(*mut core::ffi::c_void, VoipPhoneCallMedia) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AssociatedDeviceIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AssociatedDeviceIds: usize, } windows_core::imp::define_interface!(IOutgoingVoipPhoneCallOptionsFactory, IOutgoingVoipPhoneCallOptionsFactory_Vtbl, 0x2ea2c6f4_0b7a_5789_9d33_fe3271fdefa8); impl windows_core::RuntimeType for IOutgoingVoipPhoneCallOptionsFactory { @@ -557,10 +532,7 @@ impl windows_core::RuntimeType for IOutgoingVoipPhoneCallOptionsFactory { #[repr(C)] pub struct IOutgoingVoipPhoneCallOptionsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(IPhoneCall, IPhoneCall_Vtbl, 0xc14ed0f8_c17d_59d2_9628_66e545b6cd21); impl windows_core::RuntimeType for IPhoneCall { @@ -611,10 +583,7 @@ pub struct IPhoneCallBlockingStatics_Vtbl { pub SetBlockUnknownNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub BlockPrivateNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetBlockPrivateNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetCallBlockingListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetCallBlockingListAsync: usize, } windows_core::imp::define_interface!(IPhoneCallHistoryEntry, IPhoneCallHistoryEntry_Vtbl, 0xfab0e129_32a4_4b85_83d1_f90d8c23a857); impl windows_core::RuntimeType for IPhoneCallHistoryEntry { @@ -692,10 +661,7 @@ pub struct IPhoneCallHistoryEntryQueryOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub DesiredMedia: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PhoneCallHistoryEntryQueryDesiredMedia) -> windows_core::HRESULT, pub SetDesiredMedia: unsafe extern "system" fn(*mut core::ffi::c_void, PhoneCallHistoryEntryQueryDesiredMedia) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SourceIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SourceIds: usize, } windows_core::imp::define_interface!(IPhoneCallHistoryEntryReader, IPhoneCallHistoryEntryReader_Vtbl, 0x61ece4be_8d86_479f_8404_a9846920fee6); impl windows_core::RuntimeType for IPhoneCallHistoryEntryReader { @@ -704,10 +670,7 @@ impl windows_core::RuntimeType for IPhoneCallHistoryEntryReader { #[repr(C)] pub struct IPhoneCallHistoryEntryReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, } windows_core::imp::define_interface!(IPhoneCallHistoryManagerForUser, IPhoneCallHistoryManagerForUser_Vtbl, 0xd925c523_f55f_4353_9db4_0205a5265a55); impl windows_core::RuntimeType for IPhoneCallHistoryManagerForUser { @@ -755,25 +718,13 @@ pub struct IPhoneCallHistoryStore_Vtbl { pub GetEntryReaderWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SaveEntryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteEntryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DeleteEntriesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeleteEntriesAsync: usize, pub MarkEntryAsSeenAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MarkEntriesAsSeenAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MarkEntriesAsSeenAsync: usize, pub GetUnseenCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MarkAllAsSeenAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSourcesUnseenCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSourcesUnseenCountAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub MarkSourcesAsSeenAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MarkSourcesAsSeenAsync: usize, } windows_core::imp::define_interface!(IPhoneCallInfo, IPhoneCallInfo_Vtbl, 0x22b42577_3e4d_5dc6_89c2_469fe5ffc189); impl windows_core::RuntimeType for IPhoneCallInfo { @@ -858,10 +809,7 @@ impl windows_core::RuntimeType for IPhoneCallsResult { pub struct IPhoneCallsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OperationStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PhoneLineOperationStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AllActivePhoneCalls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllActivePhoneCalls: usize, } windows_core::imp::define_interface!(IPhoneDialOptions, IPhoneDialOptions_Vtbl, 0xb639c4b8_f06f_36cb_a863_823742b5f2d4); impl windows_core::RuntimeType for IPhoneDialOptions { @@ -969,10 +917,7 @@ impl windows_core::RuntimeType for IPhoneLineConfiguration { pub struct IPhoneLineConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsVideoCallingEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ExtendedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExtendedProperties: usize, } windows_core::imp::define_interface!(IPhoneLineDialResult, IPhoneLineDialResult_Vtbl, 0xe825a30a_5c7f_546f_b918_3ad2fe70fb34); impl windows_core::RuntimeType for IPhoneLineDialResult { @@ -1219,20 +1164,11 @@ impl windows_core::RuntimeType for IVoipPhoneCall4 { pub struct IVoipPhoneCall4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsUsingAssociatedDevicesList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub NotifyCallActiveOnDevices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NotifyCallActiveOnDevices: usize, pub AddAssociatedCallControlDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveAssociatedCallControlDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetAssociatedCallControlDevices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetAssociatedCallControlDevices: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAssociatedCallControlDevices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAssociatedCallControlDevices: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -1376,18 +1312,16 @@ impl IncomingVoipPhoneCallOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetContactRemoteId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { + pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AssociatedDeviceIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(associateddeviceids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIncomingVoipPhoneCallOptionsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1607,18 +1541,16 @@ impl OutgoingVoipPhoneCallOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMedia)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { + pub fn AssociatedDeviceIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AssociatedDeviceIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(associateddeviceids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IOutgoingVoipPhoneCallOptionsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1928,10 +1860,9 @@ impl PhoneCallBlocking { pub fn SetBlockPrivateNumbers(value: bool) -> windows_core::Result<()> { Self::IPhoneCallBlockingStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetBlockPrivateNumbers)(windows_core::Interface::as_raw(this), value).ok() }) } - #[cfg(feature = "Foundation_Collections")] pub fn SetCallBlockingListAsync(phonenumberlist: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IPhoneCallBlockingStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2357,8 +2288,7 @@ impl PhoneCallHistoryEntryQueryOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDesiredMedia)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SourceIds(&self) -> windows_core::Result> { + pub fn SourceIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2396,8 +2326,7 @@ impl windows_core::RuntimeType for PhoneCallHistoryEntryRawAddressKind { pub struct PhoneCallHistoryEntryReader(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PhoneCallHistoryEntryReader, windows_core::IUnknown, windows_core::IInspectable); impl PhoneCallHistoryEntryReader { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2542,10 +2471,9 @@ impl PhoneCallHistoryStore { (windows_core::Interface::vtable(this).DeleteEntryAsync)(windows_core::Interface::as_raw(this), callhistoryentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn DeleteEntriesAsync(&self, callhistoryentries: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2563,10 +2491,9 @@ impl PhoneCallHistoryStore { (windows_core::Interface::vtable(this).MarkEntryAsSeenAsync)(windows_core::Interface::as_raw(this), callhistoryentry.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn MarkEntriesAsSeenAsync(&self, callhistoryentries: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2588,10 +2515,9 @@ impl PhoneCallHistoryStore { (windows_core::Interface::vtable(this).MarkAllAsSeenAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetSourcesUnseenCountAsync(&self, sourceids: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2599,10 +2525,9 @@ impl PhoneCallHistoryStore { (windows_core::Interface::vtable(this).GetSourcesUnseenCountAsync)(windows_core::Interface::as_raw(this), sourceids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn MarkSourcesAsSeenAsync(&self, sourceids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2886,8 +2811,7 @@ impl PhoneCallsResult { (windows_core::Interface::vtable(this).OperationStatus)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllActivePhoneCalls(&self) -> windows_core::Result> { + pub fn AllActivePhoneCalls(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3258,8 +3182,7 @@ impl PhoneLineConfiguration { (windows_core::Interface::vtable(this).IsVideoCallingEnabled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExtendedProperties(&self) -> windows_core::Result> { + pub fn ExtendedProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4104,10 +4027,9 @@ impl VoipPhoneCall { (windows_core::Interface::vtable(this).IsUsingAssociatedDevicesList)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn NotifyCallActiveOnDevices(&self, associateddeviceids: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).NotifyCallActiveOnDevices)(windows_core::Interface::as_raw(this), associateddeviceids.param().abi()).ok() } @@ -4120,16 +4042,14 @@ impl VoipPhoneCall { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAssociatedCallControlDevice)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn SetAssociatedCallControlDevices(&self, associateddeviceids: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAssociatedCallControlDevices)(windows_core::Interface::as_raw(this), associateddeviceids.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAssociatedCallControlDevices(&self) -> windows_core::Result> { + pub fn GetAssociatedCallControlDevices(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs index 6d9f7e891b8..9cdd43681aa 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Chat/mod.rs @@ -138,8 +138,7 @@ impl ChatConversation { (windows_core::Interface::vtable(this).MostRecentMessageId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Participants(&self) -> windows_core::Result> { + pub fn Participants(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -246,16 +245,14 @@ unsafe impl Sync for ChatConversation {} pub struct ChatConversationReader(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ChatConversationReader, windows_core::IUnknown, windows_core::IInspectable); impl ChatConversationReader { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ReadBatchAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchWithCountAsync(&self, count: i32) -> windows_core::Result>> { + pub fn ReadBatchWithCountAsync(&self, count: i32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -320,8 +317,7 @@ impl ChatConversationThreadingInfo { let this = self; unsafe { (windows_core::Interface::vtable(this).SetConversationId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Participants(&self) -> windows_core::Result> { + pub fn Participants(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -400,8 +396,7 @@ impl ChatMessage { (windows_core::Interface::vtable(this).ItemKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Attachments(&self) -> windows_core::Result> { + pub fn Attachments(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -468,16 +463,14 @@ impl ChatMessage { (windows_core::Interface::vtable(this).NetworkTimestamp)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Recipients(&self) -> windows_core::Result> { + pub fn Recipients(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Recipients)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RecipientSendStatuses(&self) -> windows_core::Result> { + pub fn RecipientSendStatuses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -657,8 +650,7 @@ impl ChatMessage { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetThreadingInfo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RecipientsDeliveryInfos(&self) -> windows_core::Result> { + pub fn RecipientsDeliveryInfos(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -879,8 +871,7 @@ impl ChatMessageChangeReader { let this = self; unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoacknowledge.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1027,8 +1018,7 @@ impl ChatMessageManager { (windows_core::Interface::vtable(this).GetTransportAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(transportid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTransportsAsync() -> windows_core::Result>> { + pub fn GetTransportsAsync() -> windows_core::Result>> { Self::IChatMessageManagerStatic(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetTransportsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1147,16 +1137,14 @@ impl windows_core::RuntimeType for ChatMessageOperatorKind { pub struct ChatMessageReader(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ChatMessageReader, windows_core::IUnknown, windows_core::IInspectable); impl ChatMessageReader { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ReadBatchAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchWithCountAsync(&self, count: i32) -> windows_core::Result>> { + pub fn ReadBatchWithCountAsync(&self, count: i32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1296,10 +1284,9 @@ impl ChatMessageStore { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveMessageChanged)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ForwardMessageAsync(&self, localchatmessageid: &windows_core::HSTRING, addresses: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1314,10 +1301,9 @@ impl ChatMessageStore { (windows_core::Interface::vtable(this).GetConversationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(conversationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetConversationForTransportsAsync(&self, conversationid: &windows_core::HSTRING, transportids: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1342,10 +1328,9 @@ impl ChatMessageStore { (windows_core::Interface::vtable(this).GetConversationReader)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetConversationForTransportsReader(&self, transportids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1367,10 +1352,9 @@ impl ChatMessageStore { (windows_core::Interface::vtable(this).GetUnseenCountAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetUnseenCountForTransportsReaderAsync(&self, transportids: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1385,10 +1369,9 @@ impl ChatMessageStore { (windows_core::Interface::vtable(this).MarkAsSeenAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn MarkAsSeenForTransportsAsync(&self, transportids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1597,8 +1580,7 @@ impl ChatMessageTransportConfiguration { (windows_core::Interface::vtable(this).SupportedVideoFormat)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExtendedProperties(&self) -> windows_core::Result> { + pub fn ExtendedProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1858,16 +1840,14 @@ impl windows_core::RuntimeType for ChatRestoreHistorySpan { pub struct ChatSearchReader(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ChatSearchReader, windows_core::IUnknown, windows_core::IInspectable); impl ChatSearchReader { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ReadBatchAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchWithCountAsync(&self, count: i32) -> windows_core::Result>> { + pub fn ReadBatchWithCountAsync(&self, count: i32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2093,10 +2073,7 @@ pub struct IChatConversation_Vtbl { pub IsConversationMuted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsConversationMuted: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub MostRecentMessageId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Participants: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Participants: usize, pub ThreadingInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMessageReader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2125,14 +2102,8 @@ impl windows_core::RuntimeType for IChatConversationReader { #[repr(C)] pub struct IChatConversationReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchWithCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchWithCountAsync: usize, } windows_core::imp::define_interface!(IChatConversationThreadingInfo, IChatConversationThreadingInfo_Vtbl, 0x331c21dc_7a07_4422_a32c_24be7c6dab24); impl windows_core::RuntimeType for IChatConversationThreadingInfo { @@ -2147,10 +2118,7 @@ pub struct IChatConversationThreadingInfo_Vtbl { pub SetCustom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConversationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetConversationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Participants: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Participants: usize, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ChatConversationThreadingKind) -> windows_core::HRESULT, pub SetKind: unsafe extern "system" fn(*mut core::ffi::c_void, ChatConversationThreadingKind) -> windows_core::HRESULT, } @@ -2206,10 +2174,7 @@ impl windows_core::RuntimeType for IChatMessage { #[repr(C)] pub struct IChatMessage_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Attachments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Attachments: usize, pub Body: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBody: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub From: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2219,14 +2184,8 @@ pub struct IChatMessage_Vtbl { pub IsRead: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub LocalTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub NetworkTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Recipients: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Recipients: usize, - #[cfg(feature = "Foundation_Collections")] pub RecipientSendStatuses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RecipientSendStatuses: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ChatMessageStatus) -> windows_core::HRESULT, pub Subject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TransportFriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2267,10 +2226,7 @@ pub struct IChatMessage2_Vtbl { pub SetShouldSuppressNotification: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub ThreadingInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetThreadingInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RecipientsDeliveryInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RecipientsDeliveryInfos: usize, } windows_core::imp::define_interface!(IChatMessage3, IChatMessage3_Vtbl, 0x74eb2fb0_3ba7_459f_8e0b_e8af0febd9ad); impl windows_core::RuntimeType for IChatMessage3 { @@ -2373,10 +2329,7 @@ pub struct IChatMessageChangeReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AcceptChanges: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AcceptChangesThrough: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, } windows_core::imp::define_interface!(IChatMessageChangeTracker, IChatMessageChangeTracker_Vtbl, 0x60b7f066_70a0_5224_508c_242ef7c1d06f); impl windows_core::RuntimeType for IChatMessageChangeTracker { @@ -2424,10 +2377,7 @@ impl windows_core::RuntimeType for IChatMessageManagerStatic { #[repr(C)] pub struct IChatMessageManagerStatic_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetTransportsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTransportsAsync: usize, pub RequestStoreAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowComposeSmsMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowSmsSettings: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2469,10 +2419,7 @@ impl windows_core::RuntimeType for IChatMessageReader { #[repr(C)] pub struct IChatMessageReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, } windows_core::imp::define_interface!(IChatMessageReader2, IChatMessageReader2_Vtbl, 0x89643683_64bb_470d_9df4_0de8be1a05bf); impl windows_core::RuntimeType for IChatMessageReader2 { @@ -2481,10 +2428,7 @@ impl windows_core::RuntimeType for IChatMessageReader2 { #[repr(C)] pub struct IChatMessageReader2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchWithCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchWithCountAsync: usize, } windows_core::imp::define_interface!(IChatMessageStore, IChatMessageStore_Vtbl, 0x31f2fd01_ccf6_580b_4976_0a07dd5d3b47); impl windows_core::RuntimeType for IChatMessageStore { @@ -2513,32 +2457,17 @@ impl windows_core::RuntimeType for IChatMessageStore2 { #[repr(C)] pub struct IChatMessageStore2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ForwardMessageAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - ForwardMessageAsync: usize, pub GetConversationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetConversationForTransportsAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - GetConversationForTransportsAsync: usize, pub GetConversationFromThreadingInfoAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetConversationReader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetConversationForTransportsReader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetConversationForTransportsReader: usize, pub GetMessageByRemoteIdAsync: 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, pub GetUnseenCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetUnseenCountForTransportsReaderAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUnseenCountForTransportsReaderAsync: usize, pub MarkAsSeenAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MarkAsSeenForTransportsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MarkAsSeenForTransportsAsync: usize, pub GetSearchReader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SaveMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryCancelDownloadMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2602,10 +2531,7 @@ pub struct IChatMessageTransportConfiguration_Vtbl { pub SupportedVideoFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_MediaProperties"))] SupportedVideoFormat: usize, - #[cfg(feature = "Foundation_Collections")] pub ExtendedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExtendedProperties: usize, } windows_core::imp::define_interface!(IChatMessageValidationResult, IChatMessageValidationResult_Vtbl, 0x25e93a03_28ec_5889_569b_7e486b126f18); impl windows_core::RuntimeType for IChatMessageValidationResult { @@ -2655,14 +2581,8 @@ impl windows_core::RuntimeType for IChatSearchReader { #[repr(C)] pub struct IChatSearchReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchWithCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchWithCountAsync: usize, } windows_core::imp::define_interface!(IChatSyncConfiguration, IChatSyncConfiguration_Vtbl, 0x09f869b2_69f4_4aff_82b6_06992ff402d2); impl windows_core::RuntimeType for IChatSyncConfiguration { @@ -2707,10 +2627,7 @@ pub struct IRcsEndUserMessage_Vtbl { pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Text: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsPinRequired: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Actions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Actions: usize, pub SendResponseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SendResponseWithPinAsync: 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, } @@ -2761,10 +2678,7 @@ impl windows_core::RuntimeType for IRcsManagerStatics { pub struct IRcsManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetEndUserMessageManager: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetTransportsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTransportsAsync: usize, pub GetTransportAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub LeaveConversationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2794,10 +2708,7 @@ impl windows_core::RuntimeType for IRcsTransport { #[repr(C)] pub struct IRcsTransport_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ExtendedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExtendedProperties: usize, pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub TransportFriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TransportId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2865,8 +2776,7 @@ impl RcsEndUserMessage { (windows_core::Interface::vtable(this).IsPinRequired)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Actions(&self) -> windows_core::Result> { + pub fn Actions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3035,8 +2945,7 @@ impl RcsManager { (windows_core::Interface::vtable(this).GetEndUserMessageManager)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTransportsAsync() -> windows_core::Result>> { + pub fn GetTransportsAsync() -> windows_core::Result>> { Self::IRcsManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetTransportsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3126,8 +3035,7 @@ unsafe impl Sync for RcsServiceKindSupportedChangedEventArgs {} pub struct RcsTransport(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(RcsTransport, windows_core::IUnknown, windows_core::IInspectable); impl RcsTransport { - #[cfg(feature = "Foundation_Collections")] - pub fn ExtendedProperties(&self) -> windows_core::Result> { + pub fn ExtendedProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs index f80c3e7ece9..afa9d107f03 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/CommunicationBlocking/mod.rs @@ -12,20 +12,18 @@ impl CommunicationBlockingAccessManager { (windows_core::Interface::vtable(this).IsBlockedNumberAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(number), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn ShowBlockNumbersUI(phonenumbers: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ICommunicationBlockingAccessManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ShowBlockNumbersUI)(windows_core::Interface::as_raw(this), phonenumbers.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] pub fn ShowUnblockNumbersUI(phonenumbers: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ICommunicationBlockingAccessManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -84,14 +82,8 @@ pub struct ICommunicationBlockingAccessManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsBlockingActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsBlockedNumberAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ShowBlockNumbersUI: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ShowBlockNumbersUI: usize, - #[cfg(feature = "Foundation_Collections")] pub ShowUnblockNumbersUI: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ShowUnblockNumbersUI: usize, pub ShowBlockedCallsUI: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowBlockedMessagesUI: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs index 6723178e78b..c195dc19360 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs @@ -39,8 +39,8 @@ impl ContactPickerUI { (windows_core::Interface::vtable(this).ContainsContact)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn DesiredFields(&self) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn DesiredFields(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -78,8 +78,7 @@ impl ContactPickerUI { (windows_core::Interface::vtable(this).AddContact)(windows_core::Interface::as_raw(this), contact.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DesiredFieldsWithContactFieldType(&self) -> windows_core::Result> { + pub fn DesiredFieldsWithContactFieldType(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -133,9 +132,9 @@ pub struct IContactPickerUI_Vtbl { AddContact: usize, pub RemoveContact: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ContainsContact: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub DesiredFields: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] DesiredFields: usize, pub SelectionMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::ContactSelectionMode) -> windows_core::HRESULT, pub ContactRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -149,10 +148,7 @@ impl windows_core::RuntimeType for IContactPickerUI2 { pub struct IContactPickerUI2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AddContact: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut AddContactResult) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DesiredFieldsWithContactFieldType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DesiredFieldsWithContactFieldType: usize, } windows_core::imp::define_interface!(IContactRemovedEventArgs, IContactRemovedEventArgs_Vtbl, 0x6f354338_3302_4d13_ad8d_adcc0ff9e47c); impl windows_core::RuntimeType for IContactRemovedEventArgs { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs index f84f18a2807..146a87e85e2 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs @@ -7,8 +7,7 @@ pub mod Provider; pub struct AggregateContactManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AggregateContactManager, windows_core::IUnknown, windows_core::IInspectable); impl AggregateContactManager { - #[cfg(feature = "Foundation_Collections")] - pub fn FindRawContactsAsync(&self, contact: P0) -> windows_core::Result>> + pub fn FindRawContactsAsync(&self, contact: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -109,8 +108,7 @@ impl Contact { let this = self; unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Fields(&self) -> windows_core::Result> { + pub fn Fields(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -139,72 +137,63 @@ impl Contact { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetNotes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Phones(&self) -> windows_core::Result> { + pub fn Phones(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Phones)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Emails(&self) -> windows_core::Result> { + pub fn Emails(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Emails)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Addresses(&self) -> windows_core::Result> { + pub fn Addresses(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Addresses)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ConnectedServiceAccounts(&self) -> windows_core::Result> { + pub fn ConnectedServiceAccounts(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ConnectedServiceAccounts)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ImportantDates(&self) -> windows_core::Result> { + pub fn ImportantDates(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ImportantDates)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DataSuppliers(&self) -> windows_core::Result> { + pub fn DataSuppliers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DataSuppliers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn JobInfo(&self) -> windows_core::Result> { + pub fn JobInfo(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).JobInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SignificantOthers(&self) -> windows_core::Result> { + pub fn SignificantOthers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SignificantOthers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Websites(&self) -> windows_core::Result> { + pub fn Websites(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -734,16 +723,14 @@ impl ContactAnnotationList { (windows_core::Interface::vtable(this).GetAnnotationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(annotationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAnnotationsByRemoteIdAsync(&self, remoteid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindAnnotationsByRemoteIdAsync(&self, remoteid: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAnnotationsByRemoteIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(remoteid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAnnotationsAsync(&self) -> windows_core::Result>> { + pub fn FindAnnotationsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -829,24 +816,21 @@ impl core::ops::Not for ContactAnnotationOperations { pub struct ContactAnnotationStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ContactAnnotationStore, windows_core::IUnknown, windows_core::IInspectable); impl ContactAnnotationStore { - #[cfg(feature = "Foundation_Collections")] - pub fn FindContactIdsByEmailAsync(&self, emailaddress: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindContactIdsByEmailAsync(&self, emailaddress: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindContactIdsByEmailAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(emailaddress), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindContactIdsByPhoneNumberAsync(&self, phonenumber: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindContactIdsByPhoneNumberAsync(&self, phonenumber: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindContactIdsByPhoneNumberAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(phonenumber), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAnnotationsForContactAsync(&self, contact: P0) -> windows_core::Result>> + pub fn FindAnnotationsForContactAsync(&self, contact: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -887,16 +871,14 @@ impl ContactAnnotationStore { (windows_core::Interface::vtable(this).GetAnnotationListAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(annotationlistid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAnnotationListsAsync(&self) -> windows_core::Result>> { + pub fn FindAnnotationListsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAnnotationListsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAnnotationsForContactListAsync(&self, contactlistid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindAnnotationsForContactListAsync(&self, contactlistid: &windows_core::HSTRING) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -934,8 +916,7 @@ impl windows_core::RuntimeType for ContactAnnotationStoreAccessType { pub struct ContactBatch(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ContactBatch, windows_core::IUnknown, windows_core::IInspectable); impl ContactBatch { - #[cfg(feature = "Foundation_Collections")] - pub fn Contacts(&self) -> windows_core::Result> { + pub fn Contacts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1054,8 +1035,7 @@ impl ContactCardOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetInitialTabKind)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServerSearchContactListIds(&self) -> windows_core::Result> { + pub fn ServerSearchContactListIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1140,8 +1120,7 @@ impl ContactChangeReader { let this = self; unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoaccept.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1722,48 +1701,42 @@ impl ContactInformation { (windows_core::Interface::vtable(this).GetThumbnailAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Emails(&self) -> windows_core::Result> { + pub fn Emails(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Emails)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PhoneNumbers(&self) -> windows_core::Result> { + pub fn PhoneNumbers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PhoneNumbers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Locations(&self) -> windows_core::Result> { + pub fn Locations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Locations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn InstantMessages(&self) -> windows_core::Result> { + pub fn InstantMessages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InstantMessages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CustomFields(&self) -> windows_core::Result> { + pub fn CustomFields(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CustomFields)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn QueryCustomFields(&self, customname: &windows_core::HSTRING) -> windows_core::Result> { + pub fn QueryCustomFields(&self, customname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3221,8 +3194,8 @@ impl ContactMatchReason { (windows_core::Interface::vtable(this).Field)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Data_Text", feature = "Foundation_Collections"))] - pub fn Segments(&self) -> windows_core::Result> { + #[cfg(feature = "Data_Text")] + pub fn Segments(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3512,8 +3485,7 @@ impl ContactPicker { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSelectionMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn DesiredFields(&self) -> windows_core::Result> { + pub fn DesiredFields(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3527,16 +3499,14 @@ impl ContactPicker { (windows_core::Interface::vtable(this).PickSingleContactAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PickMultipleContactsAsync(&self) -> windows_core::Result>> { + pub fn PickMultipleContactsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PickMultipleContactsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DesiredFieldsWithContactFieldType(&self) -> windows_core::Result> { + pub fn DesiredFieldsWithContactFieldType(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3550,8 +3520,7 @@ impl ContactPicker { (windows_core::Interface::vtable(this).PickContactAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PickContactsAsync(&self) -> windows_core::Result>> { + pub fn PickContactsAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3664,8 +3633,7 @@ impl ContactQueryOptions { (windows_core::Interface::vtable(this).TextSearch)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ContactListIds(&self) -> windows_core::Result> { + pub fn ContactListIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3705,8 +3673,7 @@ impl ContactQueryOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDesiredOperations)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AnnotationListIds(&self) -> windows_core::Result> { + pub fn AnnotationListIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3867,8 +3834,7 @@ impl ContactReader { (windows_core::Interface::vtable(this).ReadBatchAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMatchingPropertiesWithMatchReason(&self, contact: P0) -> windows_core::Result> + pub fn GetMatchingPropertiesWithMatchReason(&self, contact: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -3984,16 +3950,14 @@ unsafe impl Sync for ContactSignificantOther {} pub struct ContactStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ContactStore, windows_core::IUnknown, windows_core::IInspectable); impl ContactStore { - #[cfg(feature = "Foundation_Collections")] - pub fn FindContactsAsync(&self) -> windows_core::Result>> { + pub fn FindContactsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindContactsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindContactsWithSearchTextAsync(&self, searchtext: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindContactsWithSearchTextAsync(&self, searchtext: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4035,8 +3999,7 @@ impl ContactStore { (windows_core::Interface::vtable(this).AggregateContactManager)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindContactListsAsync(&self) -> windows_core::Result>> { + pub fn FindContactListsAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4245,10 +4208,7 @@ impl windows_core::RuntimeType for IAggregateContactManager { #[repr(C)] pub struct IAggregateContactManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindRawContactsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindRawContactsAsync: usize, pub TryLinkContactsAsync: 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, pub UnlinkRawContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TrySetPreferredSourceForPictureAsync: 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, @@ -4279,10 +4239,7 @@ pub struct IContact_Vtbl { pub SetThumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] SetThumbnail: usize, - #[cfg(feature = "Foundation_Collections")] pub Fields: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Fields: usize, } windows_core::imp::define_interface!(IContact2, IContact2_Vtbl, 0xf312f365_bb77_4c94_802d_8328cee40c08); impl windows_core::RuntimeType for IContact2 { @@ -4295,42 +4252,15 @@ pub struct IContact2_Vtbl { pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Notes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetNotes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Phones: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Phones: usize, - #[cfg(feature = "Foundation_Collections")] pub Emails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Emails: usize, - #[cfg(feature = "Foundation_Collections")] pub Addresses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Addresses: usize, - #[cfg(feature = "Foundation_Collections")] pub ConnectedServiceAccounts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConnectedServiceAccounts: usize, - #[cfg(feature = "Foundation_Collections")] pub ImportantDates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ImportantDates: usize, - #[cfg(feature = "Foundation_Collections")] pub DataSuppliers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DataSuppliers: usize, - #[cfg(feature = "Foundation_Collections")] pub JobInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - JobInfo: usize, - #[cfg(feature = "Foundation_Collections")] pub SignificantOthers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SignificantOthers: usize, - #[cfg(feature = "Foundation_Collections")] pub Websites: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Websites: usize, #[cfg(feature = "Foundation_Collections")] pub ProviderProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] @@ -4445,14 +4375,8 @@ pub struct IContactAnnotationList_Vtbl { pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TrySaveAnnotationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAnnotationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAnnotationsByRemoteIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAnnotationsByRemoteIdAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAnnotationsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAnnotationsAsync: usize, pub DeleteAnnotationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IContactAnnotationStore, IContactAnnotationStore_Vtbl, 0x23acf4aa_7a77_457d_8203_987f4b31af09); @@ -4462,26 +4386,14 @@ impl windows_core::RuntimeType for IContactAnnotationStore { #[repr(C)] pub struct IContactAnnotationStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindContactIdsByEmailAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindContactIdsByEmailAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindContactIdsByPhoneNumberAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindContactIdsByPhoneNumberAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAnnotationsForContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAnnotationsForContactAsync: usize, pub DisableAnnotationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateAnnotationListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateAnnotationListInAccountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAnnotationListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAnnotationListsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAnnotationListsAsync: usize, } windows_core::imp::define_interface!(IContactAnnotationStore2, IContactAnnotationStore2_Vtbl, 0x7ede23fd_61e7_4967_8ec5_bdf280a24063); impl windows_core::RuntimeType for IContactAnnotationStore2 { @@ -4490,10 +4402,7 @@ impl windows_core::RuntimeType for IContactAnnotationStore2 { #[repr(C)] pub struct IContactAnnotationStore2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAnnotationsForContactListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAnnotationsForContactListAsync: usize, } windows_core::imp::define_interface!(IContactBatch, IContactBatch_Vtbl, 0x35d1972d_bfce_46bb_93f8_a5b06ec5e201); impl windows_core::RuntimeType for IContactBatch { @@ -4502,10 +4411,7 @@ impl windows_core::RuntimeType for IContactBatch { #[repr(C)] pub struct IContactBatch_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Contacts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Contacts: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ContactBatchStatus) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IContactCardDelayedDataLoader, IContactCardDelayedDataLoader_Vtbl, 0xb60af902_1546_434d_869c_6e3520760ef3); @@ -4536,10 +4442,7 @@ impl windows_core::RuntimeType for IContactCardOptions2 { #[repr(C)] pub struct IContactCardOptions2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ServerSearchContactListIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServerSearchContactListIds: usize, } windows_core::imp::define_interface!(IContactChange, IContactChange_Vtbl, 0x951d4b10_6a59_4720_a4e1_363d98c135d5); impl windows_core::RuntimeType for IContactChange { @@ -4560,10 +4463,7 @@ pub struct IContactChangeReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AcceptChanges: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AcceptChangesThrough: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, } windows_core::imp::define_interface!(IContactChangeTracker, IContactChangeTracker_Vtbl, 0x6e992952_309b_404d_9712_b37bd30278aa); impl windows_core::RuntimeType for IContactChangeTracker { @@ -4878,30 +4778,12 @@ pub struct IContactInformation_Vtbl { pub GetThumbnailAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] GetThumbnailAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub Emails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Emails: usize, - #[cfg(feature = "Foundation_Collections")] pub PhoneNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PhoneNumbers: usize, - #[cfg(feature = "Foundation_Collections")] pub Locations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Locations: usize, - #[cfg(feature = "Foundation_Collections")] pub InstantMessages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InstantMessages: usize, - #[cfg(feature = "Foundation_Collections")] pub CustomFields: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CustomFields: usize, - #[cfg(feature = "Foundation_Collections")] pub QueryCustomFields: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - QueryCustomFields: usize, } windows_core::imp::define_interface!(IContactInstantMessageField, IContactInstantMessageField_Vtbl, 0xcce33b37_0d85_41fa_b43d_da599c3eb009); impl windows_core::RuntimeType for IContactInstantMessageField { @@ -5445,9 +5327,9 @@ impl windows_core::RuntimeType for IContactMatchReason { pub struct IContactMatchReason_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Field: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ContactMatchReasonKind) -> windows_core::HRESULT, - #[cfg(all(feature = "Data_Text", feature = "Foundation_Collections"))] + #[cfg(feature = "Data_Text")] pub Segments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Data_Text", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Data_Text"))] Segments: usize, pub Text: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -5540,15 +5422,9 @@ pub struct IContactPicker_Vtbl { pub SetCommitButtonText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SelectionMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ContactSelectionMode) -> windows_core::HRESULT, pub SetSelectionMode: unsafe extern "system" fn(*mut core::ffi::c_void, ContactSelectionMode) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DesiredFields: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DesiredFields: usize, pub PickSingleContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PickMultipleContactsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PickMultipleContactsAsync: usize, } windows_core::imp::define_interface!(IContactPicker2, IContactPicker2_Vtbl, 0xb35011cf_5cef_4d24_aa0c_340c5208725d); impl windows_core::RuntimeType for IContactPicker2 { @@ -5557,15 +5433,9 @@ impl windows_core::RuntimeType for IContactPicker2 { #[repr(C)] pub struct IContactPicker2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DesiredFieldsWithContactFieldType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DesiredFieldsWithContactFieldType: usize, pub PickContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PickContactsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PickContactsAsync: usize, } windows_core::imp::define_interface!(IContactPicker3, IContactPicker3_Vtbl, 0x0e723315_b243_4bed_8516_22b1a7ac0ace); impl windows_core::RuntimeType for IContactPicker3 { @@ -5600,20 +5470,14 @@ impl windows_core::RuntimeType for IContactQueryOptions { pub struct IContactQueryOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TextSearch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ContactListIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ContactListIds: usize, pub IncludeContactsFromHiddenLists: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIncludeContactsFromHiddenLists: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub DesiredFields: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ContactQueryDesiredFields) -> windows_core::HRESULT, pub SetDesiredFields: unsafe extern "system" fn(*mut core::ffi::c_void, ContactQueryDesiredFields) -> windows_core::HRESULT, pub DesiredOperations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ContactAnnotationOperations) -> windows_core::HRESULT, pub SetDesiredOperations: unsafe extern "system" fn(*mut core::ffi::c_void, ContactAnnotationOperations) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AnnotationListIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AnnotationListIds: usize, } windows_core::imp::define_interface!(IContactQueryOptionsFactory, IContactQueryOptionsFactory_Vtbl, 0x543fba47_8ce7_46cb_9dac_9aa42a1bc8e2); impl windows_core::RuntimeType for IContactQueryOptionsFactory { @@ -5647,10 +5511,7 @@ impl windows_core::RuntimeType for IContactReader { pub struct IContactReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetMatchingPropertiesWithMatchReason: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMatchingPropertiesWithMatchReason: usize, } windows_core::imp::define_interface!(IContactSignificantOther, IContactSignificantOther_Vtbl, 0x8873b5ab_c5fb_46d8_93fe_da3ff1934054); impl windows_core::RuntimeType for IContactSignificantOther { @@ -5681,14 +5542,8 @@ impl windows_core::RuntimeType for IContactStore { #[repr(C)] pub struct IContactStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindContactsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindContactsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindContactsWithSearchTextAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindContactsWithSearchTextAsync: usize, pub GetContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IContactStore2, IContactStore2_Vtbl, 0x18ce1c22_ebd5_4bfb_b690_5f4f27c4f0e8); @@ -5702,10 +5557,7 @@ pub struct IContactStore2_Vtbl { pub ContactChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveContactChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub AggregateContactManager: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindContactListsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindContactListsAsync: usize, pub GetContactListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateContactListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMeContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5792,10 +5644,7 @@ impl windows_core::RuntimeType for IPinnedContactIdsQueryResult { #[repr(C)] pub struct IPinnedContactIdsQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ContactIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ContactIds: usize, } windows_core::imp::define_interface!(IPinnedContactManager, IPinnedContactManager_Vtbl, 0xfcbc740c_e1d6_45c3_b8b6_a35604e167a0); impl windows_core::RuntimeType for IPinnedContactManager { @@ -5811,10 +5660,7 @@ pub struct IPinnedContactManager_Vtbl { pub IsPinSurfaceSupported: unsafe extern "system" fn(*mut core::ffi::c_void, PinnedContactSurface, *mut bool) -> windows_core::HRESULT, pub IsContactPinned: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PinnedContactSurface, *mut bool) -> windows_core::HRESULT, pub RequestPinContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PinnedContactSurface, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RequestPinContactsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PinnedContactSurface, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestPinContactsAsync: usize, pub RequestUnpinContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PinnedContactSurface, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SignalContactActivity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPinnedContactIdsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5887,8 +5733,7 @@ impl windows_core::RuntimeName for KnownContactField { pub struct PinnedContactIdsQueryResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PinnedContactIdsQueryResult, windows_core::IUnknown, windows_core::IInspectable); impl PinnedContactIdsQueryResult { - #[cfg(feature = "Foundation_Collections")] - pub fn ContactIds(&self) -> windows_core::Result> { + pub fn ContactIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5948,10 +5793,9 @@ impl PinnedContactManager { (windows_core::Interface::vtable(this).RequestPinContactAsync)(windows_core::Interface::as_raw(this), contact.param().abi(), surface, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestPinContactsAsync(&self, contacts: P0, surface: PinnedContactSurface) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs index 58776f62bfb..395cacf6a1d 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/ConversationalAgent/mod.rs @@ -385,40 +385,35 @@ impl ActivationSignalDetector { (windows_core::Interface::vtable(this).CanCreateConfigurations)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModelDataTypes(&self) -> windows_core::Result> { + pub fn SupportedModelDataTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedModelDataTypes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedTrainingDataFormats(&self) -> windows_core::Result> { + pub fn SupportedTrainingDataFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedTrainingDataFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedPowerStates(&self) -> windows_core::Result> { + pub fn SupportedPowerStates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedPowerStates)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedModelIdsForSignalId(&self, signalid: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetSupportedModelIdsForSignalId(&self, signalid: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSupportedModelIdsForSignalId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(signalid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedModelIdsForSignalIdAsync(&self, signalid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn GetSupportedModelIdsForSignalIdAsync(&self, signalid: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -436,16 +431,14 @@ impl ActivationSignalDetector { (windows_core::Interface::vtable(this).CreateConfigurationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(signalid), core::mem::transmute_copy(modelid), core::mem::transmute_copy(displayname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetConfigurations(&self) -> windows_core::Result> { + pub fn GetConfigurations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetConfigurations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetConfigurationsAsync(&self) -> windows_core::Result>> { + pub fn GetConfigurationsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -477,16 +470,14 @@ impl ActivationSignalDetector { (windows_core::Interface::vtable(this).RemoveConfigurationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(signalid), core::mem::transmute_copy(modelid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAvailableModelIdsForSignalIdAsync(&self, signalid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn GetAvailableModelIdsForSignalIdAsync(&self, signalid: &windows_core::HSTRING) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAvailableModelIdsForSignalIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(signalid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAvailableModelIdsForSignalId(&self, signalid: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetAvailableModelIdsForSignalId(&self, signalid: &windows_core::HSTRING) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -602,32 +593,28 @@ impl windows_core::RuntimeType for ConversationalAgentActivationResult { pub struct ConversationalAgentDetectorManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ConversationalAgentDetectorManager, windows_core::IUnknown, windows_core::IInspectable); impl ConversationalAgentDetectorManager { - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllActivationSignalDetectors(&self) -> windows_core::Result> { + pub fn GetAllActivationSignalDetectors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAllActivationSignalDetectors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllActivationSignalDetectorsAsync(&self) -> windows_core::Result>> { + pub fn GetAllActivationSignalDetectorsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAllActivationSignalDetectorsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetActivationSignalDetectors(&self, kind: ActivationSignalDetectorKind) -> windows_core::Result> { + pub fn GetActivationSignalDetectors(&self, kind: ActivationSignalDetectorKind) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetActivationSignalDetectors)(windows_core::Interface::as_raw(this), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetActivationSignalDetectorsAsync(&self, kind: ActivationSignalDetectorKind) -> windows_core::Result>> { + pub fn GetActivationSignalDetectorsAsync(&self, kind: ActivationSignalDetectorKind) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -913,16 +900,14 @@ impl ConversationalAgentSession { (windows_core::Interface::vtable(this).SetSignalModelId)(windows_core::Interface::as_raw(this), signalmodelid, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedSignalModelIdsAsync(&self) -> windows_core::Result>> { + pub fn GetSupportedSignalModelIdsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSupportedSignalModelIdsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedSignalModelIds(&self) -> windows_core::Result> { + pub fn GetSupportedSignalModelIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -954,16 +939,14 @@ impl ConversationalAgentSession { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSupportLockScreenActivation)(windows_core::Interface::as_raw(this), lockscreenactivationsupported).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMissingPrerequisites(&self) -> windows_core::Result> { + pub fn GetMissingPrerequisites(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMissingPrerequisites)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMissingPrerequisitesAsync(&self) -> windows_core::Result>> { + pub fn GetMissingPrerequisitesAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1293,8 +1276,7 @@ impl DetectionConfigurationAvailabilityInfo { (windows_core::Interface::vtable(this).HasLockScreenPermission)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn UnavailableSystemResources(&self) -> windows_core::Result> { + pub fn UnavailableSystemResources(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1424,36 +1406,15 @@ pub struct IActivationSignalDetector_Vtbl { pub ProviderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ActivationSignalDetectorKind) -> windows_core::HRESULT, pub CanCreateConfigurations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedModelDataTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModelDataTypes: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedTrainingDataFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedTrainingDataFormats: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedPowerStates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedPowerStates: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedModelIdsForSignalId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedModelIdsForSignalId: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedModelIdsForSignalIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedModelIdsForSignalIdAsync: usize, pub CreateConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateConfigurationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetConfigurations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetConfigurations: usize, - #[cfg(feature = "Foundation_Collections")] pub GetConfigurationsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetConfigurationsAsync: usize, pub GetConfiguration: 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, pub GetConfigurationAsync: 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, pub RemoveConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1466,14 +1427,8 @@ impl windows_core::RuntimeType for IActivationSignalDetector2 { #[repr(C)] pub struct IActivationSignalDetector2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAvailableModelIdsForSignalIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAvailableModelIdsForSignalIdAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAvailableModelIdsForSignalId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAvailableModelIdsForSignalId: usize, pub CreateConfigurationWithResultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateConfigurationWithResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveConfigurationWithResultAsync: 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, @@ -1487,22 +1442,10 @@ impl windows_core::RuntimeType for IConversationalAgentDetectorManager { #[repr(C)] pub struct IConversationalAgentDetectorManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAllActivationSignalDetectors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllActivationSignalDetectors: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAllActivationSignalDetectorsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllActivationSignalDetectorsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetActivationSignalDetectors: unsafe extern "system" fn(*mut core::ffi::c_void, ActivationSignalDetectorKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetActivationSignalDetectors: usize, - #[cfg(feature = "Foundation_Collections")] pub GetActivationSignalDetectorsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, ActivationSignalDetectorKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetActivationSignalDetectorsAsync: usize, } windows_core::imp::define_interface!(IConversationalAgentDetectorManager2, IConversationalAgentDetectorManager2_Vtbl, 0x84610f31_d7f3_52fe_9311_c9eb4e3eb30a); impl windows_core::RuntimeType for IConversationalAgentDetectorManager2 { @@ -1568,14 +1511,8 @@ pub struct IConversationalAgentSession_Vtbl { pub GetSignalModelId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetSignalModelIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSignalModelId: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedSignalModelIdsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedSignalModelIdsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedSignalModelIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedSignalModelIds: usize, } windows_core::imp::define_interface!(IConversationalAgentSession2, IConversationalAgentSession2_Vtbl, 0xa7a9fbf9_ac78_57ff_9596_acc7a1c9a607); impl windows_core::RuntimeType for IConversationalAgentSession2 { @@ -1588,14 +1525,8 @@ pub struct IConversationalAgentSession2_Vtbl { pub RequestActivation: unsafe extern "system" fn(*mut core::ffi::c_void, ConversationalAgentActivationKind, *mut ConversationalAgentActivationResult) -> windows_core::HRESULT, pub SetSupportLockScreenActivationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSupportLockScreenActivation: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetMissingPrerequisites: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMissingPrerequisites: usize, - #[cfg(feature = "Foundation_Collections")] pub GetMissingPrerequisitesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMissingPrerequisitesAsync: usize, } windows_core::imp::define_interface!(IConversationalAgentSessionInterruptedEventArgs, IConversationalAgentSessionInterruptedEventArgs_Vtbl, 0x9766591f_f63d_5d3e_9bf2_bd0760552686); impl windows_core::RuntimeType for IConversationalAgentSessionInterruptedEventArgs { @@ -1690,10 +1621,7 @@ impl windows_core::RuntimeType for IDetectionConfigurationAvailabilityInfo2 { #[repr(C)] pub struct IDetectionConfigurationAvailabilityInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub UnavailableSystemResources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UnavailableSystemResources: usize, } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs index f11a90a0f7a..d9fc60ddf72 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Core/mod.rs @@ -216,8 +216,7 @@ impl CoreApplication { pub fn DecrementApplicationUseCount() -> windows_core::Result<()> { Self::ICoreApplicationUseCount(|this| unsafe { (windows_core::Interface::vtable(this).DecrementApplicationUseCount)(windows_core::Interface::as_raw(this)).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Views() -> windows_core::Result> { + pub fn Views() -> windows_core::Result> { Self::ICoreImmersiveApplication(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Views)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -771,10 +770,7 @@ impl windows_core::RuntimeType for ICoreImmersiveApplication { #[repr(C)] pub struct ICoreImmersiveApplication_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Views: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Views: usize, pub CreateNewView: 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, pub MainView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs index ea60db4f351..9f89190bd24 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/ShareTarget/mod.rs @@ -17,14 +17,8 @@ pub struct IQuickLink_Vtbl { SetThumbnail: usize, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedDataFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedDataFormats: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedFileTypes: usize, } windows_core::imp::define_interface!(IShareOperation, IShareOperation_Vtbl, 0x2246bab8_d0f8_41c1_a82a_4137db6504fb); impl windows_core::RuntimeType for IShareOperation { @@ -59,9 +53,9 @@ impl windows_core::RuntimeType for IShareOperation3 { #[repr(C)] pub struct IShareOperation3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Contacts")] pub Contacts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Contacts"))] Contacts: usize, } #[repr(transparent)] @@ -114,16 +108,14 @@ impl QuickLink { let this = self; unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedDataFormats(&self) -> windows_core::Result> { + pub fn SupportedDataFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedDataFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedFileTypes(&self) -> windows_core::Result> { + pub fn SupportedFileTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -195,8 +187,8 @@ impl ShareOperation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).DismissUI)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] - pub fn Contacts(&self) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel_Contacts")] + pub fn Contacts(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs index 5ca50a4b65e..e8d12558e3a 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs @@ -168,16 +168,14 @@ impl ClipboardContentOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsAllowedInHistory)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RoamingFormats(&self) -> windows_core::Result> { + pub fn RoamingFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RoamingFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn HistoryFormats(&self) -> windows_core::Result> { + pub fn HistoryFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -265,8 +263,7 @@ impl ClipboardHistoryItemsResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -319,7 +316,6 @@ impl DataPackage { (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = self; unsafe { @@ -396,8 +392,8 @@ impl DataPackage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetHtmlFormat)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn ResourceMap(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn ResourceMap(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -416,18 +412,18 @@ impl DataPackage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBitmap)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub fn SetStorageItemsReadOnly(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetStorageItemsReadOnly)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub fn SetStorageItems(&self, value: P0, readonly: bool) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetStorageItems)(windows_core::Interface::as_raw(this), value.param().abi(), readonly).ok() } @@ -535,15 +531,11 @@ impl core::ops::Not for DataPackageOperation { Self(self.0.not()) } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct DataPackagePropertySet(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(DataPackagePropertySet, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( DataPackagePropertySet , super::super::Foundation::Collections:: IIterable < super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , super::super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( DataPackagePropertySet , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > ); impl DataPackagePropertySet { pub fn Title(&self) -> windows_core::Result { let this = self; @@ -583,7 +575,7 @@ impl DataPackagePropertySet { let this = self; unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - pub fn FileTypes(&self) -> windows_core::Result> { + pub fn FileTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -705,36 +697,36 @@ impl DataPackagePropertySet { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetContentSourceUserActivityJson)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -744,63 +736,52 @@ impl DataPackagePropertySet { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for DataPackagePropertySet { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for DataPackagePropertySet { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for DataPackagePropertySet { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackagePropertySet"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for DataPackagePropertySet {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for DataPackagePropertySet {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for DataPackagePropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &DataPackagePropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct DataPackagePropertySetView(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(DataPackagePropertySetView, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( DataPackagePropertySetView , super::super::Foundation::Collections:: IIterable < super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , super::super::Foundation::Collections:: IMapView < windows_core::HSTRING , windows_core::IInspectable > ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( DataPackagePropertySetView , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMapView < windows_core::HSTRING , windows_core::IInspectable > ); impl DataPackagePropertySetView { pub fn Title(&self) -> windows_core::Result { let this = self; @@ -824,7 +805,7 @@ impl DataPackagePropertySetView { (windows_core::Interface::vtable(this).Thumbnail)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn FileTypes(&self) -> windows_core::Result> { + pub fn FileTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -903,68 +884,61 @@ impl DataPackagePropertySetView { (windows_core::Interface::vtable(this).IsFromRoamingClipboard)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Split)(windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for DataPackagePropertySetView { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for DataPackagePropertySetView { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for DataPackagePropertySetView { const NAME: &'static str = "Windows.ApplicationModel.DataTransfer.DataPackagePropertySetView"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for DataPackagePropertySetView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for DataPackagePropertySetView {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for DataPackagePropertySetView { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &DataPackagePropertySetView { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -974,7 +948,6 @@ impl IntoIterator for &DataPackagePropertySetView { pub struct DataPackageView(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DataPackageView, windows_core::IUnknown, windows_core::IInspectable); impl DataPackageView { - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = self; unsafe { @@ -993,8 +966,7 @@ impl DataPackageView { let this = self; unsafe { (windows_core::Interface::vtable(this).ReportOperationCompleted)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AvailableFormats(&self) -> windows_core::Result> { + pub fn AvailableFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1044,8 +1016,8 @@ impl DataPackageView { (windows_core::Interface::vtable(this).GetHtmlFormatAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetResourceMapAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetResourceMapAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1067,8 +1039,8 @@ impl DataPackageView { (windows_core::Interface::vtable(this).GetBitmapAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] - pub fn GetStorageItemsAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage")] + pub fn GetStorageItemsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1487,14 +1459,8 @@ pub struct IClipboardContentOptions_Vtbl { pub SetIsRoamable: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub IsAllowedInHistory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsAllowedInHistory: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RoamingFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RoamingFormats: usize, - #[cfg(feature = "Foundation_Collections")] pub HistoryFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - HistoryFormats: usize, } windows_core::imp::define_interface!(IClipboardHistoryChangedEventArgs, IClipboardHistoryChangedEventArgs_Vtbl, 0xc0be453f_8ea2_53ce_9aba_8d2212573452); impl windows_core::RuntimeType for IClipboardHistoryChangedEventArgs { @@ -1523,10 +1489,7 @@ impl windows_core::RuntimeType for IClipboardHistoryItemsResult { pub struct IClipboardHistoryItemsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ClipboardHistoryItemsResultStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Items: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, } windows_core::imp::define_interface!(IClipboardStatics, IClipboardStatics_Vtbl, 0xc627e291_34e2_4963_8eed_93cbb0ea3d70); impl windows_core::RuntimeType for IClipboardStatics { @@ -1571,10 +1534,7 @@ impl windows_core::RuntimeType for IDataPackage { pub struct IDataPackage_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub RequestedOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DataPackageOperation) -> windows_core::HRESULT, pub SetRequestedOperation: unsafe extern "system" fn(*mut core::ffi::c_void, DataPackageOperation) -> windows_core::HRESULT, pub OperationCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -1589,22 +1549,22 @@ pub struct IDataPackage_Vtbl { #[cfg(not(feature = "deprecated"))] SetUri: usize, pub SetHtmlFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ResourceMap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ResourceMap: usize, pub SetRtf: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] pub SetBitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] SetBitmap: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub SetStorageItemsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] SetStorageItemsReadOnly: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub SetStorageItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] SetStorageItems: usize, } windows_core::imp::define_interface!(IDataPackage2, IDataPackage2_Vtbl, 0x041c1fe9_2409_45e1_a538_4c53eeee04a7); @@ -1637,13 +1597,10 @@ pub struct IDataPackage4_Vtbl { pub ShareCanceled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveShareCanceled: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IDataPackagePropertySet, IDataPackagePropertySet_Vtbl, 0xcd1c93eb_4c4c_443a_a8d3_f5c241e91689); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IDataPackagePropertySet { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IDataPackagePropertySet_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -1728,10 +1685,7 @@ pub struct IDataPackagePropertySetView_Vtbl { pub Thumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] Thumbnail: usize, - #[cfg(feature = "Foundation_Collections")] pub FileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FileTypes: usize, pub ApplicationName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ApplicationListingUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1788,16 +1742,10 @@ impl windows_core::RuntimeType for IDataPackageView { #[repr(C)] pub struct IDataPackageView_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub RequestedOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DataPackageOperation) -> windows_core::HRESULT, pub ReportOperationCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, DataPackageOperation) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AvailableFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AvailableFormats: usize, pub Contains: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub GetDataAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTextAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1807,18 +1755,18 @@ pub struct IDataPackageView_Vtbl { #[cfg(not(feature = "deprecated"))] GetUriAsync: usize, pub GetHtmlFormatAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetResourceMapAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetResourceMapAsync: usize, pub GetRtfAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] pub GetBitmapAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] GetBitmapAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub GetStorageItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] GetStorageItemsAsync: usize, } windows_core::imp::define_interface!(IDataPackageView2, IDataPackageView2_Vtbl, 0x40ecba95_2450_4c1d_b6b4_ed45463dee9c); @@ -2048,10 +1996,7 @@ impl windows_core::RuntimeType for IShareProvidersRequestedEventArgs { #[repr(C)] pub struct IShareProvidersRequestedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Providers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Providers: usize, pub Data: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2389,8 +2334,7 @@ unsafe impl Sync for ShareProviderOperation {} pub struct ShareProvidersRequestedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ShareProvidersRequestedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl ShareProvidersRequestedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Providers(&self) -> windows_core::Result> { + pub fn Providers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs index 01fd5c32203..d796b4a965f 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Email/DataProvider/mod.rs @@ -681,8 +681,7 @@ impl EmailMailboxForwardMeetingRequest { (windows_core::Interface::vtable(this).EmailMessageId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Recipients(&self) -> windows_core::Result> { + pub fn Recipients(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1067,18 +1066,16 @@ impl EmailMailboxResolveRecipientsRequest { (windows_core::Interface::vtable(this).EmailMailboxId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Recipients(&self) -> windows_core::Result> { + pub fn Recipients(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Recipients)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ReportCompletedAsync(&self, resolutionresults: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1514,18 +1511,17 @@ impl EmailMailboxValidateCertificatesRequest { (windows_core::Interface::vtable(this).EmailMailboxId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn Certificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn Certificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Certificates)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ReportCompletedAsync(&self, validationstatuses: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1754,10 +1750,7 @@ pub struct IEmailMailboxForwardMeetingRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub EmailMailboxId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EmailMessageId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Recipients: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Recipients: usize, pub Subject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ForwardHeaderType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::EmailMessageBodyKind) -> windows_core::HRESULT, pub ForwardHeader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1855,14 +1848,8 @@ impl windows_core::RuntimeType for IEmailMailboxResolveRecipientsRequest { pub struct IEmailMailboxResolveRecipientsRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub EmailMailboxId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Recipients: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Recipients: usize, - #[cfg(feature = "Foundation_Collections")] pub ReportCompletedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReportCompletedAsync: usize, pub ReportFailedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IEmailMailboxResolveRecipientsRequestEventArgs, IEmailMailboxResolveRecipientsRequestEventArgs_Vtbl, 0x260f9e02_b2cf_40f8_8c28_e3ed43b1e89a); @@ -1978,14 +1965,11 @@ impl windows_core::RuntimeType for IEmailMailboxValidateCertificatesRequest { pub struct IEmailMailboxValidateCertificatesRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub EmailMailboxId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub Certificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] Certificates: usize, - #[cfg(feature = "Foundation_Collections")] pub ReportCompletedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReportCompletedAsync: usize, pub ReportFailedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IEmailMailboxValidateCertificatesRequestEventArgs, IEmailMailboxValidateCertificatesRequestEventArgs_Vtbl, 0x2583bf17_02ff_49fe_a73c_03f37566c691); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs index 8cfaead2362..3951776fa77 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Email/mod.rs @@ -307,16 +307,14 @@ impl EmailConversation { (windows_core::Interface::vtable(this).UnreadMessageCount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindMessagesAsync(&self) -> windows_core::Result>> { + pub fn FindMessagesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindMessagesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindMessagesWithCountAsync(&self, count: u32) -> windows_core::Result>> { + pub fn FindMessagesWithCountAsync(&self, count: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -341,8 +339,7 @@ unsafe impl Sync for EmailConversation {} pub struct EmailConversationBatch(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(EmailConversationBatch, windows_core::IUnknown, windows_core::IInspectable); impl EmailConversationBatch { - #[cfg(feature = "Foundation_Collections")] - pub fn Conversations(&self) -> windows_core::Result> { + pub fn Conversations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -500,8 +497,7 @@ impl EmailFolder { (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindChildFoldersAsync(&self) -> windows_core::Result>> { + pub fn FindChildFoldersAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -969,8 +965,7 @@ impl EmailMailbox { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMailAddress)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn MailAddressAliases(&self) -> windows_core::Result> { + pub fn MailAddressAliases(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1217,11 +1212,10 @@ impl EmailMailbox { (windows_core::Interface::vtable(this).TryUpdateMeetingResponseAsync)(windows_core::Interface::as_raw(this), meeting.param().abi(), response, core::mem::transmute_copy(subject), core::mem::transmute_copy(comment), sendupdate, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn TryForwardMeetingAsync(&self, meeting: P0, recipients: P1, subject: &windows_core::HSTRING, forwardheadertype: EmailMessageBodyKind, forwardheader: &windows_core::HSTRING, comment: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -1301,10 +1295,9 @@ impl EmailMailbox { (windows_core::Interface::vtable(this).NetworkId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ResolveRecipientsAsync(&self, recipients: P0) -> windows_core::Result>> + pub fn ResolveRecipientsAsync(&self, recipients: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1312,10 +1305,10 @@ impl EmailMailbox { (windows_core::Interface::vtable(this).ResolveRecipientsAsync)(windows_core::Interface::as_raw(this), recipients.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ValidateCertificatesAsync(&self, certificates: P0) -> windows_core::Result>> + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ValidateCertificatesAsync(&self, certificates: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1772,8 +1765,7 @@ impl EmailMailboxChange { (windows_core::Interface::vtable(this).ChangeType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MailboxActions(&self) -> windows_core::Result> { + pub fn MailboxActions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1823,8 +1815,7 @@ impl EmailMailboxChangeReader { let this = self; unsafe { (windows_core::Interface::vtable(this).AcceptChangesThrough)(windows_core::Interface::as_raw(this), lastchangetoacknowledge.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2597,32 +2588,28 @@ impl EmailMessage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBody)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn To(&self) -> windows_core::Result> { + pub fn To(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).To)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CC(&self) -> windows_core::Result> { + pub fn CC(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CC)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Bcc(&self) -> windows_core::Result> { + pub fn Bcc(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Bcc)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Attachments(&self) -> windows_core::Result> { + pub fn Attachments(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2937,8 +2924,7 @@ impl EmailMessage { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSmimeKind)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReplyTo(&self) -> windows_core::Result> { + pub fn ReplyTo(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2977,8 +2963,7 @@ unsafe impl Sync for EmailMessage {} pub struct EmailMessageBatch(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(EmailMessageBatch, windows_core::IUnknown, windows_core::IInspectable); impl EmailMessageBatch { - #[cfg(feature = "Foundation_Collections")] - pub fn Messages(&self) -> windows_core::Result> { + pub fn Messages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3157,8 +3142,7 @@ impl EmailQueryOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetKind)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FolderIds(&self) -> windows_core::Result> { + pub fn FolderIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3415,8 +3399,8 @@ impl EmailRecipientResolutionResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn PublicKeys(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn PublicKeys(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3427,10 +3411,10 @@ impl EmailRecipientResolutionResult { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetStatus)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub fn SetPublicKeys(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetPublicKeys)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -3490,8 +3474,7 @@ impl windows_core::RuntimeType for EmailSpecialFolderKind { pub struct EmailStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(EmailStore, windows_core::IUnknown, windows_core::IInspectable); impl EmailStore { - #[cfg(feature = "Foundation_Collections")] - pub fn FindMailboxesAsync(&self) -> windows_core::Result>> { + pub fn FindMailboxesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3701,14 +3684,8 @@ pub struct IEmailConversation_Vtbl { pub LatestSender: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Subject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UnreadMessageCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindMessagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindMessagesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindMessagesWithCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindMessagesWithCountAsync: usize, } windows_core::imp::define_interface!(IEmailConversationBatch, IEmailConversationBatch_Vtbl, 0xb8c1ab81_01c5_432a_9df1_fe85d98a279a); impl windows_core::RuntimeType for IEmailConversationBatch { @@ -3717,10 +3694,7 @@ impl windows_core::RuntimeType for IEmailConversationBatch { #[repr(C)] pub struct IEmailConversationBatch_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Conversations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Conversations: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailBatchStatus) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IEmailConversationReader, IEmailConversationReader_Vtbl, 0xb4630f82_2875_44c8_9b8c_85beb3a3c653); @@ -3753,10 +3727,7 @@ pub struct IEmailFolder_Vtbl { pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailSpecialFolderKind) -> windows_core::HRESULT, pub CreateFolderAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindChildFoldersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindChildFoldersAsync: usize, pub GetConversationReader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetConversationReaderWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3860,10 +3831,7 @@ pub struct IEmailMailbox_Vtbl { pub IsDataEncryptedUnderLock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub MailAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMailAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MailAddressAliases: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MailAddressAliases: usize, pub OtherAppReadAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailMailboxOtherAppReadAccess) -> windows_core::HRESULT, pub SetOtherAppReadAccess: unsafe extern "system" fn(*mut core::ffi::c_void, EmailMailboxOtherAppReadAccess) -> windows_core::HRESULT, pub OtherAppWriteAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailMailboxOtherAppWriteAccess) -> windows_core::HRESULT, @@ -3897,10 +3865,7 @@ pub struct IEmailMailbox_Vtbl { pub DownloadAttachmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateResponseMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, EmailMessageResponseKind, *mut core::ffi::c_void, EmailMessageBodyKind, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryUpdateMeetingResponseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, EmailMeetingResponseType, *mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TryForwardMeetingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, EmailMessageBodyKind, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryForwardMeetingAsync: usize, pub TryProposeNewTimeForMeetingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MailboxChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveMailboxChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -3926,13 +3891,10 @@ impl windows_core::RuntimeType for IEmailMailbox3 { #[repr(C)] pub struct IEmailMailbox3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ResolveRecipientsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResolveRecipientsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ValidateCertificatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ValidateCertificatesAsync: usize, pub TryEmptyFolderAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryCreateFolderAsync: 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, @@ -4057,10 +4019,7 @@ impl windows_core::RuntimeType for IEmailMailboxChange { pub struct IEmailMailboxChange_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ChangeType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailMailboxChangeType) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MailboxActions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MailboxActions: usize, pub Message: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Folder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4073,10 +4032,7 @@ pub struct IEmailMailboxChangeReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AcceptChanges: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub AcceptChangesThrough: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, } windows_core::imp::define_interface!(IEmailMailboxChangeTracker, IEmailMailboxChangeTracker_Vtbl, 0x7ae48638_5166_42b7_8882_fd21c92bdd4b); impl windows_core::RuntimeType for IEmailMailboxChangeTracker { @@ -4283,22 +4239,10 @@ pub struct IEmailMessage_Vtbl { pub SetSubject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Body: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBody: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub To: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - To: usize, - #[cfg(feature = "Foundation_Collections")] pub CC: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CC: usize, - #[cfg(feature = "Foundation_Collections")] pub Bcc: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Bcc: usize, - #[cfg(feature = "Foundation_Collections")] pub Attachments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Attachments: usize, } windows_core::imp::define_interface!(IEmailMessage2, IEmailMessage2_Vtbl, 0xfdc8248b_9f1a_44db_bd3c_65c384770f86); impl windows_core::RuntimeType for IEmailMessage2 { @@ -4384,10 +4328,7 @@ impl windows_core::RuntimeType for IEmailMessage4 { #[repr(C)] pub struct IEmailMessage4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReplyTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReplyTo: usize, pub SentRepresenting: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSentRepresenting: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4398,10 +4339,7 @@ impl windows_core::RuntimeType for IEmailMessageBatch { #[repr(C)] pub struct IEmailMessageBatch_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Messages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Messages: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailBatchStatus) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IEmailMessageReader, IEmailMessageReader_Vtbl, 0x2f4abe9f_6213_4a85_a3b0_f92d1a839d19); @@ -4427,10 +4365,7 @@ pub struct IEmailQueryOptions_Vtbl { pub SetSortProperty: unsafe extern "system" fn(*mut core::ffi::c_void, EmailQuerySortProperty) -> windows_core::HRESULT, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailQueryKind) -> windows_core::HRESULT, pub SetKind: unsafe extern "system" fn(*mut core::ffi::c_void, EmailQueryKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FolderIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FolderIds: usize, } windows_core::imp::define_interface!(IEmailQueryOptionsFactory, IEmailQueryOptionsFactory_Vtbl, 0x88f1a1b8_78ab_4ee8_b4e3_046d6e2fe5e2); impl windows_core::RuntimeType for IEmailQueryOptionsFactory { @@ -4486,9 +4421,9 @@ impl windows_core::RuntimeType for IEmailRecipientResolutionResult { pub struct IEmailRecipientResolutionResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut EmailRecipientResolutionStatus) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub PublicKeys: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] PublicKeys: usize, } windows_core::imp::define_interface!(IEmailRecipientResolutionResult2, IEmailRecipientResolutionResult2_Vtbl, 0x5e420bb6_ce5b_4bde_b9d4_e16da0b09fca); @@ -4499,9 +4434,9 @@ impl windows_core::RuntimeType for IEmailRecipientResolutionResult2 { pub struct IEmailRecipientResolutionResult2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SetStatus: unsafe extern "system" fn(*mut core::ffi::c_void, EmailRecipientResolutionStatus) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub SetPublicKeys: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] SetPublicKeys: usize, } windows_core::imp::define_interface!(IEmailStore, IEmailStore_Vtbl, 0xf803226e_9137_4f8b_a470_279ac3058eb6); @@ -4511,10 +4446,7 @@ impl windows_core::RuntimeType for IEmailStore { #[repr(C)] pub struct IEmailStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindMailboxesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindMailboxesAsync: usize, pub GetConversationReader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetConversationReaderWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMessageReader: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs index 570e8346c07..9c1759f90a0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/LockScreen/mod.rs @@ -52,16 +52,10 @@ pub struct ILockScreenInfo_Vtbl { LockScreenImage: usize, pub BadgesChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveBadgesChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Badges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Badges: usize, pub DetailTextChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveDetailTextChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DetailText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DetailText: usize, pub AlarmIconChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveAlarmIconChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -227,8 +221,7 @@ impl LockScreenInfo { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveBadgesChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Badges(&self) -> windows_core::Result> { + pub fn Badges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -249,8 +242,7 @@ impl LockScreenInfo { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveDetailTextChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn DetailText(&self) -> windows_core::Result> { + pub fn DetailText(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs index 8d8745ba267..504e6c5c0d0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/PackageExtensions/mod.rs @@ -34,14 +34,8 @@ impl windows_core::RuntimeType for IPackageExtensionCatalog { #[repr(C)] pub struct IPackageExtensionCatalog_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAll: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, pub RequestRemovePackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PackageInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemovePackageInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -72,10 +66,7 @@ pub struct IPackageExtensionPackageInstalledEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PackageExtensionName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Package: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Extensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Extensions: usize, } windows_core::imp::define_interface!(IPackageExtensionPackageStatusChangedEventArgs, IPackageExtensionPackageStatusChangedEventArgs_Vtbl, 0xb8fee20a_680d_5942_876c_5de12df1083c); impl windows_core::RuntimeType for IPackageExtensionPackageStatusChangedEventArgs { @@ -106,10 +97,7 @@ pub struct IPackageExtensionPackageUpdatedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PackageExtensionName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Package: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Extensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Extensions: usize, } windows_core::imp::define_interface!(IPackageExtensionPackageUpdatingEventArgs, IPackageExtensionPackageUpdatingEventArgs_Vtbl, 0x27ae2ce1_a1d3_532e_8e7e_8b43782fce09); impl windows_core::RuntimeType for IPackageExtensionPackageUpdatingEventArgs { @@ -211,16 +199,14 @@ unsafe impl Sync for PackageExtension {} pub struct PackageExtensionCatalog(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PackageExtensionCatalog, windows_core::IUnknown, windows_core::IInspectable); impl PackageExtensionCatalog { - #[cfg(feature = "Foundation_Collections")] - pub fn FindAll(&self) -> windows_core::Result> { + pub fn FindAll(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAll)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync(&self) -> windows_core::Result>> { + pub fn FindAllAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -346,8 +332,7 @@ impl PackageExtensionPackageInstalledEventArgs { (windows_core::Interface::vtable(this).Package)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Extensions(&self) -> windows_core::Result> { + pub fn Extensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -450,8 +435,7 @@ impl PackageExtensionPackageUpdatedEventArgs { (windows_core::Interface::vtable(this).Package)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Extensions(&self) -> windows_core::Result> { + pub fn Extensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs index 5f707a8c733..0ffe9d5a928 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/Provider/mod.rs @@ -15,10 +15,7 @@ impl windows_core::RuntimeType for IPaymentAppManager { #[repr(C)] pub struct IPaymentAppManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RegisterAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterAsync: usize, pub UnregisterAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPaymentAppManagerStatics, IPaymentAppManagerStatics_Vtbl, 0xa341ac28_fc89_4406_b4d9_34e7fe79dfb6); @@ -104,10 +101,9 @@ unsafe impl Sync for PaymentAppCanMakePaymentTriggerDetails {} pub struct PaymentAppManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PaymentAppManager, windows_core::IUnknown, windows_core::IInspectable); impl PaymentAppManager { - #[cfg(feature = "Foundation_Collections")] pub fn RegisterAsync(&self, supportedpaymentmethodids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs index a57b576edc8..e379a9f4255 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs @@ -9,14 +9,8 @@ pub struct IPaymentAddress_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Country: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCountry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AddressLines: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddressLines: usize, - #[cfg(feature = "Foundation_Collections")] pub SetAddressLines: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetAddressLines: usize, pub Region: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub City: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -91,30 +85,12 @@ pub struct IPaymentDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Total: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTotal: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DisplayItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DisplayItems: usize, - #[cfg(feature = "Foundation_Collections")] pub SetDisplayItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetDisplayItems: usize, - #[cfg(feature = "Foundation_Collections")] pub ShippingOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ShippingOptions: usize, - #[cfg(feature = "Foundation_Collections")] pub SetShippingOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetShippingOptions: usize, - #[cfg(feature = "Foundation_Collections")] pub Modifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Modifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub SetModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetModifiers: usize, } windows_core::imp::define_interface!(IPaymentDetailsFactory, IPaymentDetailsFactory_Vtbl, 0xcfe8afee_c0ea_4ca1_8bc7_6de67b1f3763); impl windows_core::RuntimeType for IPaymentDetailsFactory { @@ -124,10 +100,7 @@ impl windows_core::RuntimeType for IPaymentDetailsFactory { pub struct IPaymentDetailsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateWithDisplayItems: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithDisplayItems: usize, } windows_core::imp::define_interface!(IPaymentDetailsModifier, IPaymentDetailsModifier_Vtbl, 0xbe1c7d65_4323_41d7_b305_dfcb765f69de); impl windows_core::RuntimeType for IPaymentDetailsModifier { @@ -137,15 +110,9 @@ impl windows_core::RuntimeType for IPaymentDetailsModifier { pub struct IPaymentDetailsModifier_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub JsonData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedMethodIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedMethodIds: usize, pub Total: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AdditionalDisplayItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AdditionalDisplayItems: usize, } windows_core::imp::define_interface!(IPaymentDetailsModifierFactory, IPaymentDetailsModifierFactory_Vtbl, 0x79005286_54de_429c_9e4f_5dce6e10ebce); impl windows_core::RuntimeType for IPaymentDetailsModifierFactory { @@ -154,18 +121,9 @@ impl windows_core::RuntimeType for IPaymentDetailsModifierFactory { #[repr(C)] pub struct IPaymentDetailsModifierFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: 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, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithAdditionalDisplayItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithAdditionalDisplayItems: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithAdditionalDisplayItemsAndJsonData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithAdditionalDisplayItemsAndJsonData: usize, } windows_core::imp::define_interface!(IPaymentItem, IPaymentItem_Vtbl, 0x685ac88b_79b2_4b76_9e03_a876223dfe72); impl windows_core::RuntimeType for IPaymentItem { @@ -197,10 +155,7 @@ impl windows_core::RuntimeType for IPaymentMediator { #[repr(C)] pub struct IPaymentMediator_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedMethodIdsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedMethodIdsAsync: usize, pub SubmitPaymentRequestAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SubmitPaymentRequestWithChangeHandlerAsync: 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, } @@ -239,10 +194,7 @@ impl windows_core::RuntimeType for IPaymentMethodData { #[repr(C)] pub struct IPaymentMethodData_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedMethodIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedMethodIds: usize, pub JsonData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPaymentMethodDataFactory, IPaymentMethodDataFactory_Vtbl, 0x8addd27f_9baa_4a82_8342_a8210992a36b); @@ -252,14 +204,8 @@ impl windows_core::RuntimeType for IPaymentMethodDataFactory { #[repr(C)] pub struct IPaymentMethodDataFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithJsonData: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithJsonData: usize, } windows_core::imp::define_interface!(IPaymentOptions, IPaymentOptions_Vtbl, 0xaaa30854_1f2b_4365_8251_01b58915a5bc); impl windows_core::RuntimeType for IPaymentOptions { @@ -288,10 +234,7 @@ pub struct IPaymentRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MerchantInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Details: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MethodData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MethodData: usize, pub Options: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPaymentRequest2, IPaymentRequest2_Vtbl, 0xb63ccfb5_5998_493e_a04c_67048a50f141); @@ -346,18 +289,9 @@ impl windows_core::RuntimeType for IPaymentRequestFactory { #[repr(C)] pub struct IPaymentRequestFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: 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, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithMerchantInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithMerchantInfo: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithMerchantInfoAndOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithMerchantInfoAndOptions: usize, } windows_core::imp::define_interface!(IPaymentRequestFactory2, IPaymentRequestFactory2_Vtbl, 0xe6ce1325_a506_4372_b7ef_1a031d5662d1); impl windows_core::RuntimeType for IPaymentRequestFactory2 { @@ -366,10 +300,7 @@ impl windows_core::RuntimeType for IPaymentRequestFactory2 { #[repr(C)] pub struct IPaymentRequestFactory2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateWithMerchantInfoOptionsAndId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithMerchantInfoOptionsAndId: usize, } windows_core::imp::define_interface!(IPaymentRequestSubmitResult, IPaymentRequestSubmitResult_Vtbl, 0x7b9c3912_30f2_4e90_b249_8ce7d78ffe56); impl windows_core::RuntimeType for IPaymentRequestSubmitResult { @@ -466,18 +397,16 @@ impl PaymentAddress { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCountry)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AddressLines(&self) -> windows_core::Result> { + pub fn AddressLines(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AddressLines)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetAddressLines(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAddressLines)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -748,50 +677,44 @@ impl PaymentDetails { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTotal)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn DisplayItems(&self) -> windows_core::Result> { + pub fn DisplayItems(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DisplayItems)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetDisplayItems(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayItems)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ShippingOptions(&self) -> windows_core::Result> { + pub fn ShippingOptions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ShippingOptions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetShippingOptions(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetShippingOptions)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Modifiers(&self) -> windows_core::Result> { + pub fn Modifiers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Modifiers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetModifiers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetModifiers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -805,11 +728,10 @@ impl PaymentDetails { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), total.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithDisplayItems(total: P0, displayitems: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPaymentDetailsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -845,8 +767,7 @@ impl PaymentDetailsModifier { (windows_core::Interface::vtable(this).JsonData)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedMethodIds(&self) -> windows_core::Result> { + pub fn SupportedMethodIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -860,18 +781,16 @@ impl PaymentDetailsModifier { (windows_core::Interface::vtable(this).Total)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AdditionalDisplayItems(&self) -> windows_core::Result> { + pub fn AdditionalDisplayItems(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AdditionalDisplayItems)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(supportedmethodids: P0, total: P1) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, { Self::IPaymentDetailsModifierFactory(|this| unsafe { @@ -879,24 +798,22 @@ impl PaymentDetailsModifier { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), total.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAdditionalDisplayItems(supportedmethodids: P0, total: P1, additionaldisplayitems: P2) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateWithAdditionalDisplayItems)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), total.param().abi(), additionaldisplayitems.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAdditionalDisplayItemsAndJsonData(supportedmethodids: P0, total: P1, additionaldisplayitems: P2, jsondata: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IPaymentDetailsModifierFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -999,8 +916,7 @@ impl PaymentMediator { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedMethodIdsAsync(&self) -> windows_core::Result>> { + pub fn GetSupportedMethodIdsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1108,8 +1024,7 @@ unsafe impl Sync for PaymentMerchantInfo {} pub struct PaymentMethodData(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PaymentMethodData, windows_core::IUnknown, windows_core::IInspectable); impl PaymentMethodData { - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedMethodIds(&self) -> windows_core::Result> { + pub fn SupportedMethodIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1123,20 +1038,18 @@ impl PaymentMethodData { (windows_core::Interface::vtable(this).JsonData)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(supportedmethodids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IPaymentMethodDataFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), supportedmethodids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithJsonData(supportedmethodids: P0, jsondata: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IPaymentMethodDataFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1273,8 +1186,7 @@ impl PaymentRequest { (windows_core::Interface::vtable(this).Details)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MethodData(&self) -> windows_core::Result> { + pub fn MethodData(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1295,22 +1207,20 @@ impl PaymentRequest { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(details: P0, methoddata: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPaymentRequestFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), details.param().abi(), methoddata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithMerchantInfo(details: P0, methoddata: P1, merchantinfo: P2) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, { Self::IPaymentRequestFactory(|this| unsafe { @@ -1318,11 +1228,10 @@ impl PaymentRequest { (windows_core::Interface::vtable(this).CreateWithMerchantInfo)(windows_core::Interface::as_raw(this), details.param().abi(), methoddata.param().abi(), merchantinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithMerchantInfoAndOptions(details: P0, methoddata: P1, merchantinfo: P2, options: P3) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, P3: windows_core::Param, { @@ -1331,11 +1240,10 @@ impl PaymentRequest { (windows_core::Interface::vtable(this).CreateWithMerchantInfoAndOptions)(windows_core::Interface::as_raw(this), details.param().abi(), methoddata.param().abi(), merchantinfo.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithMerchantInfoOptionsAndId(details: P0, methoddata: P1, merchantinfo: P2, options: P3, id: &windows_core::HSTRING) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, P3: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs index 51a2de982c1..62c9c295470 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Core/mod.rs @@ -6,20 +6,11 @@ impl windows_core::RuntimeType for INamedResource { pub struct INamedResource_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Uri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Candidates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Candidates: usize, pub Resolve: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ResolveForContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ResolveAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResolveAll: usize, - #[cfg(feature = "Foundation_Collections")] pub ResolveAllForContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResolveAllForContext: usize, } windows_core::imp::define_interface!(IResourceCandidate, IResourceCandidate_Vtbl, 0xaf5207d9_c433_4764_b3fd_8fa6bfbcbadc); impl windows_core::RuntimeType for IResourceCandidate { @@ -28,10 +19,7 @@ impl windows_core::RuntimeType for IResourceCandidate { #[repr(C)] pub struct IResourceCandidate_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Qualifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Qualifiers: usize, pub IsMatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsMatchAsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -75,23 +63,11 @@ pub struct IResourceContext_Vtbl { #[cfg(not(feature = "Foundation_Collections"))] QualifierValues: usize, pub Reset: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ResetQualifierValues: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResetQualifierValues: usize, - #[cfg(feature = "Foundation_Collections")] pub OverrideToMatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OverrideToMatch: usize, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, - #[cfg(feature = "Foundation_Collections")] pub SetLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetLanguages: usize, } windows_core::imp::define_interface!(IResourceContextStatics, IResourceContextStatics_Vtbl, 0x98be9d6c_6338_4b31_99df_b2b442f17149); impl windows_core::RuntimeType for IResourceContextStatics { @@ -100,10 +76,7 @@ impl windows_core::RuntimeType for IResourceContextStatics { #[repr(C)] pub struct IResourceContextStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateMatchingContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateMatchingContext: usize, } windows_core::imp::define_interface!(IResourceContextStatics2, IResourceContextStatics2_Vtbl, 0x41f752ef_12af_41b9_ab36_b1eb4b512460); impl windows_core::RuntimeType for IResourceContextStatics2 { @@ -115,10 +88,7 @@ pub struct IResourceContextStatics2_Vtbl { pub GetForCurrentView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetGlobalQualifierValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ResetGlobalQualifierValues: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ResetGlobalQualifierValuesForSpecifiedQualifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResetGlobalQualifierValuesForSpecifiedQualifiers: usize, pub GetForViewIndependentUse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IResourceContextStatics3, IResourceContextStatics3_Vtbl, 0x20cf492c_af0f_450b_9da6_106dd0c29a39); @@ -149,22 +119,16 @@ impl windows_core::RuntimeType for IResourceManager { #[repr(C)] pub struct IResourceManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub MainResourceMap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MainResourceMap: usize, - #[cfg(feature = "Foundation_Collections")] pub AllResourceMaps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllResourceMaps: usize, pub DefaultContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub LoadPriFiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] LoadPriFiles: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub UnloadPriFiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] UnloadPriFiles: usize, } windows_core::imp::define_interface!(IResourceManager2, IResourceManager2_Vtbl, 0x9d66fe6c_a4d7_4c23_9e85_675f304c252d); @@ -174,14 +138,8 @@ impl windows_core::RuntimeType for IResourceManager2 { #[repr(C)] pub struct IResourceManager2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAllNamedResourcesForPackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, ResourceLayoutInfo, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllNamedResourcesForPackage: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAllSubtreesForPackage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, ResourceLayoutInfo, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllSubtreesForPackage: usize, } windows_core::imp::define_interface!(IResourceManagerStatics, IResourceManagerStatics_Vtbl, 0x1cc0fdfc_69ee_4e43_9901_47f12687baf7); impl windows_core::RuntimeType for IResourceManagerStatics { @@ -193,13 +151,10 @@ pub struct IResourceManagerStatics_Vtbl { pub Current: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsResourceReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IResourceMap, IResourceMap_Vtbl, 0x72284824_db8c_42f8_b08c_53ff357dad82); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IResourceMap { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IResourceMap_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -233,8 +188,7 @@ impl NamedResource { (windows_core::Interface::vtable(this).Uri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Candidates(&self) -> windows_core::Result> { + pub fn Candidates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -258,16 +212,14 @@ impl NamedResource { (windows_core::Interface::vtable(this).ResolveForContext)(windows_core::Interface::as_raw(this), resourcecontext.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ResolveAll(&self) -> windows_core::Result> { + pub fn ResolveAll(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ResolveAll)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ResolveAllForContext(&self, resourcecontext: P0) -> windows_core::Result> + pub fn ResolveAllForContext(&self, resourcecontext: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -295,8 +247,7 @@ unsafe impl Sync for NamedResource {} pub struct ResourceCandidate(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ResourceCandidate, windows_core::IUnknown, windows_core::IInspectable); impl ResourceCandidate { - #[cfg(feature = "Foundation_Collections")] - pub fn Qualifiers(&self) -> windows_core::Result> { + pub fn Qualifiers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -388,18 +339,14 @@ impl windows_core::TypeKind for ResourceCandidateKind { impl windows_core::RuntimeType for ResourceCandidateKind { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Resources.Core.ResourceCandidateKind;i4)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceCandidateVectorView(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(ResourceCandidateVectorView, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(ResourceCandidateVectorView, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(ResourceCandidateVectorView, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(ResourceCandidateVectorView, windows_collections::IIterable); impl ResourceCandidateVectorView { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -437,35 +384,28 @@ impl ResourceCandidateVectorView { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceCandidateVectorView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceCandidateVectorView { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceCandidateVectorView { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceCandidateVectorView"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceCandidateVectorView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceCandidateVectorView {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for ResourceCandidateVectorView { type Item = ResourceCandidate; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ResourceCandidateVectorView { type Item = ResourceCandidate; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -494,18 +434,16 @@ impl ResourceContext { let this = self; unsafe { (windows_core::Interface::vtable(this).Reset)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ResetQualifierValues(&self, qualifiernames: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).ResetQualifierValues)(windows_core::Interface::as_raw(this), qualifiernames.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn OverrideToMatch(&self, result: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).OverrideToMatch)(windows_core::Interface::as_raw(this), result.param().abi()).ok() } @@ -517,26 +455,23 @@ impl ResourceContext { (windows_core::Interface::vtable(this).Clone)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Languages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetLanguages(&self, languages: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLanguages)(windows_core::Interface::as_raw(this), languages.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateMatchingContext(result: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IResourceContextStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -555,10 +490,9 @@ impl ResourceContext { pub fn ResetGlobalQualifierValues() -> windows_core::Result<()> { Self::IResourceContextStatics2(|this| unsafe { (windows_core::Interface::vtable(this).ResetGlobalQualifierValues)(windows_core::Interface::as_raw(this)).ok() }) } - #[cfg(feature = "Foundation_Collections")] pub fn ResetGlobalQualifierValuesForSpecifiedQualifiers(qualifiernames: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IResourceContextStatics2(|this| unsafe { (windows_core::Interface::vtable(this).ResetGlobalQualifierValuesForSpecifiedQualifiers)(windows_core::Interface::as_raw(this), qualifiernames.param().abi()).ok() }) } @@ -610,18 +544,14 @@ impl windows_core::RuntimeName for ResourceContext { } unsafe impl Send for ResourceContext {} unsafe impl Sync for ResourceContext {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceContextLanguagesVectorView(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(ResourceContextLanguagesVectorView, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(ResourceContextLanguagesVectorView, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(ResourceContextLanguagesVectorView, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(ResourceContextLanguagesVectorView, windows_collections::IIterable); impl ResourceContextLanguagesVectorView { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -656,35 +586,28 @@ impl ResourceContextLanguagesVectorView { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceContextLanguagesVectorView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceContextLanguagesVectorView { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceContextLanguagesVectorView { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceContextLanguagesVectorView"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceContextLanguagesVectorView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceContextLanguagesVectorView {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for ResourceContextLanguagesVectorView { type Item = windows_core::HSTRING; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ResourceContextLanguagesVectorView { type Item = windows_core::HSTRING; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -709,7 +632,6 @@ impl windows_core::RuntimeType for ResourceLayoutInfo { pub struct ResourceManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ResourceManager, windows_core::IUnknown, windows_core::IInspectable); impl ResourceManager { - #[cfg(feature = "Foundation_Collections")] pub fn MainResourceMap(&self) -> windows_core::Result { let this = self; unsafe { @@ -717,8 +639,7 @@ impl ResourceManager { (windows_core::Interface::vtable(this).MainResourceMap)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllResourceMaps(&self) -> windows_core::Result> { + pub fn AllResourceMaps(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -732,32 +653,30 @@ impl ResourceManager { (windows_core::Interface::vtable(this).DefaultContext)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn LoadPriFiles(&self, files: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).LoadPriFiles)(windows_core::Interface::as_raw(this), files.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn UnloadPriFiles(&self, files: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).UnloadPriFiles)(windows_core::Interface::as_raw(this), files.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllNamedResourcesForPackage(&self, packagename: &windows_core::HSTRING, resourcelayoutinfo: ResourceLayoutInfo) -> windows_core::Result> { + pub fn GetAllNamedResourcesForPackage(&self, packagename: &windows_core::HSTRING, resourcelayoutinfo: ResourceLayoutInfo) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAllNamedResourcesForPackage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagename), resourcelayoutinfo, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllSubtreesForPackage(&self, packagename: &windows_core::HSTRING, resourcelayoutinfo: ResourceLayoutInfo) -> windows_core::Result> { + pub fn GetAllSubtreesForPackage(&self, packagename: &windows_core::HSTRING, resourcelayoutinfo: ResourceLayoutInfo) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -793,46 +712,42 @@ impl windows_core::RuntimeName for ResourceManager { } unsafe impl Send for ResourceManager {} unsafe impl Sync for ResourceManager {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceMap(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(ResourceMap, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( ResourceMap , super::super::super::Foundation::Collections:: IIterable < super::super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , NamedResource > > , super::super::super::Foundation::Collections:: IMapView < windows_core::HSTRING , NamedResource > ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( ResourceMap , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , NamedResource > > , windows_collections:: IMapView < windows_core::HSTRING , NamedResource > ); impl ResourceMap { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Split)(windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } pub fn Uri(&self) -> windows_core::Result { @@ -867,48 +782,38 @@ impl ResourceMap { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceMap { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceMap { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceMap { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceMap"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceMap {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceMap {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for ResourceMap { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ResourceMap { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceMapIterator(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(ResourceMapIterator, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterator>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(ResourceMapIterator, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterator>); impl ResourceMapIterator { - pub fn Current(&self) -> windows_core::Result> { + pub fn Current(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -929,7 +834,7 @@ impl ResourceMapIterator { (windows_core::Interface::vtable(this).MoveNext)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetMany(&self, items: &mut [Option>]) -> windows_core::Result { + pub fn GetMany(&self, items: &mut [Option>]) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -937,35 +842,26 @@ impl ResourceMapIterator { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceMapIterator { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceMapIterator { - type Vtable = > as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = > as windows_core::Interface>::IID; + type Vtable = > as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = > as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceMapIterator { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceMapIterator"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceMapIterator {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceMapIterator {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceMapMapView(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy ! ( ResourceMapMapView , windows_core::IUnknown , windows_core::IInspectable , super::super::super::Foundation::Collections:: IMapView < windows_core::HSTRING , ResourceMap > ); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(ResourceMapMapView, super::super::super::Foundation::Collections::IIterable>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy ! ( ResourceMapMapView , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMapView < windows_core::HSTRING , ResourceMap > ); +windows_core::imp::required_hierarchy!(ResourceMapMapView, windows_collections::IIterable>); impl ResourceMapMapView { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -992,53 +888,43 @@ impl ResourceMapMapView { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { + pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Split)(windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceMapMapView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceMapMapView { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceMapMapView { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceMapMapView"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceMapMapView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceMapMapView {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for ResourceMapMapView { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ResourceMapMapView { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceMapMapViewIterator(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(ResourceMapMapViewIterator, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterator>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(ResourceMapMapViewIterator, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterator>); impl ResourceMapMapViewIterator { - pub fn Current(&self) -> windows_core::Result> { + pub fn Current(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1059,7 +945,7 @@ impl ResourceMapMapViewIterator { (windows_core::Interface::vtable(this).MoveNext)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetMany(&self, items: &mut [Option>]) -> windows_core::Result { + pub fn GetMany(&self, items: &mut [Option>]) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1067,22 +953,17 @@ impl ResourceMapMapViewIterator { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceMapMapViewIterator { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceMapMapViewIterator { - type Vtable = > as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = > as windows_core::Interface>::IID; + type Vtable = > as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = > as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceMapMapViewIterator { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceMapMapViewIterator"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceMapMapViewIterator {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceMapMapViewIterator {} #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -1137,18 +1018,14 @@ impl windows_core::RuntimeName for ResourceQualifier { } unsafe impl Send for ResourceQualifier {} unsafe impl Sync for ResourceQualifier {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceQualifierMapView(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy ! ( ResourceQualifierMapView , windows_core::IUnknown , windows_core::IInspectable , super::super::super::Foundation::Collections:: IMapView < windows_core::HSTRING , windows_core::HSTRING > ); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(ResourceQualifierMapView, super::super::super::Foundation::Collections::IIterable>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy ! ( ResourceQualifierMapView , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMapView < windows_core::HSTRING , windows_core::HSTRING > ); +windows_core::imp::required_hierarchy!(ResourceQualifierMapView, windows_collections::IIterable>); impl ResourceQualifierMapView { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1175,40 +1052,33 @@ impl ResourceQualifierMapView { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { + pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Split)(windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceQualifierMapView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceQualifierMapView { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceQualifierMapView { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceQualifierMapView"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceQualifierMapView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceQualifierMapView {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for ResourceQualifierMapView { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ResourceQualifierMapView { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1220,57 +1090,57 @@ pub struct ResourceQualifierObservableMap(windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy ! ( ResourceQualifierObservableMap , windows_core::IUnknown , windows_core::IInspectable , super::super::super::Foundation::Collections:: IObservableMap < windows_core::HSTRING , windows_core::HSTRING > ); #[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( ResourceQualifierObservableMap , super::super::super::Foundation::Collections:: IIterable < super::super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , super::super::super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > ); +windows_core::imp::required_hierarchy ! ( ResourceQualifierObservableMap , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > ); #[cfg(feature = "Foundation_Collections")] impl ResourceQualifierObservableMap { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| core::mem::transmute(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Insert(&self, key: &windows_core::HSTRING, value: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), core::mem::transmute_copy(value), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result @@ -1307,16 +1177,16 @@ unsafe impl Send for ResourceQualifierObservableMap {} unsafe impl Sync for ResourceQualifierObservableMap {} #[cfg(feature = "Foundation_Collections")] impl IntoIterator for ResourceQualifierObservableMap { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } #[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ResourceQualifierObservableMap { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1334,18 +1204,14 @@ impl windows_core::TypeKind for ResourceQualifierPersistence { impl windows_core::RuntimeType for ResourceQualifierPersistence { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.ApplicationModel.Resources.Core.ResourceQualifierPersistence;i4)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ResourceQualifierVectorView(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(ResourceQualifierVectorView, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(ResourceQualifierVectorView, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(ResourceQualifierVectorView, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(ResourceQualifierVectorView, windows_collections::IIterable); impl ResourceQualifierVectorView { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1383,35 +1249,28 @@ impl ResourceQualifierVectorView { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ResourceQualifierVectorView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ResourceQualifierVectorView { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ResourceQualifierVectorView { const NAME: &'static str = "Windows.ApplicationModel.Resources.Core.ResourceQualifierVectorView"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ResourceQualifierVectorView {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ResourceQualifierVectorView {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for ResourceQualifierVectorView { type Item = ResourceQualifier; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ResourceQualifierVectorView { type Item = ResourceQualifier; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs index 90cbf25d9a9..02a8652fd3a 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs @@ -7,14 +7,8 @@ pub struct IIndexedResourceCandidate_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Type: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IndexedResourceType) -> windows_core::HRESULT, pub Uri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Metadata: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Metadata: usize, - #[cfg(feature = "Foundation_Collections")] pub Qualifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Qualifiers: usize, pub ValueAsString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetQualifierValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -39,10 +33,7 @@ impl windows_core::RuntimeType for IResourceIndexer { pub struct IResourceIndexer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IndexFilePath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub IndexFileContentsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - IndexFileContentsAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IResourceIndexerFactory, IResourceIndexerFactory_Vtbl, 0xb8de3f09_31cd_4d97_bd30_8d39f742bc61); @@ -87,16 +78,14 @@ impl IndexedResourceCandidate { (windows_core::Interface::vtable(this).Uri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Metadata(&self) -> windows_core::Result> { + pub fn Metadata(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Metadata)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Qualifiers(&self) -> windows_core::Result> { + pub fn Qualifiers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -194,8 +183,7 @@ impl ResourceIndexer { (windows_core::Interface::vtable(this).IndexFilePath)(windows_core::Interface::as_raw(this), filepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn IndexFileContentsAsync(&self, file: P0) -> windows_core::Result>> + pub fn IndexFileContentsAsync(&self, file: P0) -> windows_core::Result>> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs index 7dd3884cf6d..271cf47214a 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs @@ -9,16 +9,13 @@ pub struct ILocalContentSuggestionSettings_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SetEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] + #[cfg(feature = "Storage_Search")] pub Locations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Search")))] + #[cfg(not(feature = "Storage_Search"))] Locations: usize, pub SetAqsFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AqsFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PropertiesToMatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PropertiesToMatch: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPane, ISearchPane_Vtbl, 0xfdacec38_3700_4d73_91a1_2f998674238a); @@ -166,10 +163,7 @@ impl windows_core::RuntimeType for ISearchPaneQueryLinguisticDetails { #[repr(C)] pub struct ISearchPaneQueryLinguisticDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub QueryTextAlternatives: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - QueryTextAlternatives: usize, pub QueryTextCompositionStart: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub QueryTextCompositionLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } @@ -291,10 +285,7 @@ impl windows_core::RuntimeType for ISearchQueryLinguisticDetails { #[repr(C)] pub struct ISearchQueryLinguisticDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub QueryTextAlternatives: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - QueryTextAlternatives: usize, pub QueryTextCompositionStart: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub QueryTextCompositionLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } @@ -305,10 +296,7 @@ impl windows_core::RuntimeType for ISearchQueryLinguisticDetailsFactory { #[repr(C)] pub struct ISearchQueryLinguisticDetailsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(ISearchSuggestionCollection, ISearchSuggestionCollection_Vtbl, 0x323a8a4b_fbea_4446_abbc_3da7915fdd3a); impl windows_core::RuntimeType for ISearchSuggestionCollection { @@ -319,10 +307,7 @@ pub struct ISearchSuggestionCollection_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub AppendQuerySuggestion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AppendQuerySuggestions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppendQuerySuggestions: usize, #[cfg(feature = "Storage_Streams")] pub AppendResultSuggestion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -372,8 +357,8 @@ impl LocalContentSuggestionSettings { (windows_core::Interface::vtable(this).Enabled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] - pub fn Locations(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Search")] + pub fn Locations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -391,8 +376,7 @@ impl LocalContentSuggestionSettings { (windows_core::Interface::vtable(this).AqsFilter)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PropertiesToMatch(&self) -> windows_core::Result> { + pub fn PropertiesToMatch(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -658,8 +642,7 @@ unsafe impl Sync for SearchPaneQueryChangedEventArgs {} pub struct SearchPaneQueryLinguisticDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPaneQueryLinguisticDetails, windows_core::IUnknown, windows_core::IInspectable); impl SearchPaneQueryLinguisticDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn QueryTextAlternatives(&self) -> windows_core::Result> { + pub fn QueryTextAlternatives(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -944,8 +927,7 @@ unsafe impl Sync for SearchPaneVisibilityChangedEventArgs {} pub struct SearchQueryLinguisticDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchQueryLinguisticDetails, windows_core::IUnknown, windows_core::IInspectable); impl SearchQueryLinguisticDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn QueryTextAlternatives(&self) -> windows_core::Result> { + pub fn QueryTextAlternatives(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -966,10 +948,9 @@ impl SearchQueryLinguisticDetails { (windows_core::Interface::vtable(this).QueryTextCompositionLength)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateInstance(querytextalternatives: P0, querytextcompositionstart: u32, querytextcompositionlength: u32) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ISearchQueryLinguisticDetailsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1009,10 +990,9 @@ impl SearchSuggestionCollection { let this = self; unsafe { (windows_core::Interface::vtable(this).AppendQuerySuggestion)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn AppendQuerySuggestions(&self, suggestions: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).AppendQuerySuggestions)(windows_core::Interface::as_raw(this), suggestions.param().abi()).ok() } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs index e3bd413586e..3d629fe1211 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserActivities/mod.rs @@ -83,14 +83,8 @@ impl windows_core::RuntimeType for IUserActivityChannel2 { #[repr(C)] pub struct IUserActivityChannel2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetRecentUserActivitiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRecentUserActivitiesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSessionHistoryItemsForUserActivityAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSessionHistoryItemsForUserActivityAsync: usize, } windows_core::imp::define_interface!(IUserActivityChannelStatics, IUserActivityChannelStatics_Vtbl, 0xc8c005ab_198d_4d80_abb2_c9775ec4a729); impl windows_core::RuntimeType for IUserActivityChannelStatics { @@ -256,14 +250,8 @@ impl windows_core::RuntimeType for IUserActivityStatics { pub struct IUserActivityStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TryParseFromJson: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TryParseFromJsonArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryParseFromJsonArray: usize, - #[cfg(feature = "Foundation_Collections")] pub ToJsonArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ToJsonArray: usize, } windows_core::imp::define_interface!(IUserActivityVisualElements, IUserActivityVisualElements_Vtbl, 0x94757513_262f_49ef_bbbf_9b75d2e85250); impl windows_core::RuntimeType for IUserActivityVisualElements { @@ -442,17 +430,15 @@ impl UserActivity { (windows_core::Interface::vtable(this).TryParseFromJson)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(json), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn TryParseFromJsonArray(json: &windows_core::HSTRING) -> windows_core::Result> { + pub fn TryParseFromJsonArray(json: &windows_core::HSTRING) -> windows_core::Result> { Self::IUserActivityStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryParseFromJsonArray)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(json), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn ToJsonArray(activities: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IUserActivityStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -580,16 +566,14 @@ impl UserActivityChannel { (windows_core::Interface::vtable(this).DeleteAllActivitiesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRecentUserActivitiesAsync(&self, maxuniqueactivities: i32) -> windows_core::Result>> { + pub fn GetRecentUserActivitiesAsync(&self, maxuniqueactivities: i32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetRecentUserActivitiesAsync)(windows_core::Interface::as_raw(this), maxuniqueactivities, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSessionHistoryItemsForUserActivityAsync(&self, activityid: &windows_core::HSTRING, starttime: super::super::Foundation::DateTime) -> windows_core::Result>> { + pub fn GetSessionHistoryItemsForUserActivityAsync(&self, activityid: &windows_core::HSTRING, starttime: super::super::Foundation::DateTime) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs index 1382966b800..9c41fb53123 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/Provider/mod.rs @@ -17,10 +17,7 @@ impl windows_core::RuntimeType for IUserDataAccountProviderAddAccountOperation { pub struct IUserDataAccountProviderAddAccountOperation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ContentKinds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::UserDataAccountContentKinds) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PartnerAccountInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PartnerAccountInfos: usize, pub ReportCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IUserDataAccountProviderOperation, IUserDataAccountProviderOperation_Vtbl, 0xa20aad63_888c_4a62_a3dd_34d07a802b2b); @@ -140,8 +137,7 @@ impl UserDataAccountProviderAddAccountOperation { (windows_core::Interface::vtable(this).ContentKinds)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PartnerAccountInfos(&self) -> windows_core::Result> { + pub fn PartnerAccountInfos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs index aa7c7688cac..791136e3ac0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/SystemAccess/mod.rs @@ -728,10 +728,7 @@ impl windows_core::RuntimeType for IUserDataAccountSystemAccessManagerStatics { #[repr(C)] pub struct IUserDataAccountSystemAccessManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AddAndShowDeviceAccountsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddAndShowDeviceAccountsAsync: usize, } windows_core::imp::define_interface!(IUserDataAccountSystemAccessManagerStatics2, IUserDataAccountSystemAccessManagerStatics2_Vtbl, 0x943f854d_4b4e_439f_83d3_979b27c05ac7); impl windows_core::RuntimeType for IUserDataAccountSystemAccessManagerStatics2 { @@ -747,10 +744,9 @@ pub struct IUserDataAccountSystemAccessManagerStatics2_Vtbl { } pub struct UserDataAccountSystemAccessManager; impl UserDataAccountSystemAccessManager { - #[cfg(feature = "Foundation_Collections")] - pub fn AddAndShowDeviceAccountsAsync(accounts: P0) -> windows_core::Result>> + pub fn AddAndShowDeviceAccountsAsync(accounts: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IUserDataAccountSystemAccessManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs index e6a5e557b33..f548fd5f01c 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataAccounts/mod.rs @@ -22,21 +22,21 @@ pub struct IUserDataAccount_Vtbl { pub PackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "ApplicationModel_Appointments", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Appointments")] pub FindAppointmentCalendarsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Appointments", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Appointments"))] FindAppointmentCalendarsAsync: usize, - #[cfg(all(feature = "ApplicationModel_Email", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Email")] pub FindEmailMailboxesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Email", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Email"))] FindEmailMailboxesAsync: usize, - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Contacts")] pub FindContactListsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Contacts"))] FindContactListsAsync: usize, - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Contacts")] pub FindContactAnnotationListsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Contacts"))] FindContactAnnotationListsAsync: usize, } windows_core::imp::define_interface!(IUserDataAccount2, IUserDataAccount2_Vtbl, 0x078cd89f_de82_404b_8195_c8a3ac198f60); @@ -56,10 +56,7 @@ impl windows_core::RuntimeType for IUserDataAccount3 { #[repr(C)] pub struct IUserDataAccount3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ExplictReadAccessPackageFamilyNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExplictReadAccessPackageFamilyNames: usize, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -76,13 +73,13 @@ pub struct IUserDataAccount4_Vtbl { pub ProviderProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] ProviderProperties: usize, - #[cfg(all(feature = "ApplicationModel_UserDataTasks", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_UserDataTasks")] pub FindUserDataTaskListsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_UserDataTasks", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_UserDataTasks"))] FindUserDataTaskListsAsync: usize, - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Contacts")] pub FindContactGroupsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Contacts"))] FindContactGroupsAsync: usize, pub TryShowCreateContactGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetIsProtectedUnderLock: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, @@ -135,10 +132,7 @@ impl windows_core::RuntimeType for IUserDataAccountStore { #[repr(C)] pub struct IUserDataAccountStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAccountsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAccountsAsync: usize, pub GetAccountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateAccountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -241,32 +235,32 @@ impl UserDataAccount { (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel_Appointments", feature = "Foundation_Collections"))] - pub fn FindAppointmentCalendarsAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel_Appointments")] + pub fn FindAppointmentCalendarsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAppointmentCalendarsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel_Email", feature = "Foundation_Collections"))] - pub fn FindEmailMailboxesAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel_Email")] + pub fn FindEmailMailboxesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindEmailMailboxesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] - pub fn FindContactListsAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel_Contacts")] + pub fn FindContactListsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindContactListsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] - pub fn FindContactAnnotationListsAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel_Contacts")] + pub fn FindContactAnnotationListsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -287,8 +281,7 @@ impl UserDataAccount { (windows_core::Interface::vtable(this).IsProtectedUnderLock)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExplictReadAccessPackageFamilyNames(&self) -> windows_core::Result> { + pub fn ExplictReadAccessPackageFamilyNames(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -325,16 +318,16 @@ impl UserDataAccount { (windows_core::Interface::vtable(this).ProviderProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel_UserDataTasks", feature = "Foundation_Collections"))] - pub fn FindUserDataTaskListsAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel_UserDataTasks")] + pub fn FindUserDataTaskListsAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindUserDataTaskListsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel_Contacts", feature = "Foundation_Collections"))] - pub fn FindContactGroupsAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel_Contacts")] + pub fn FindContactGroupsAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -520,8 +513,7 @@ impl windows_core::RuntimeType for UserDataAccountOtherAppReadAccess { pub struct UserDataAccountStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(UserDataAccountStore, windows_core::IUnknown, windows_core::IInspectable); impl UserDataAccountStore { - #[cfg(feature = "Foundation_Collections")] - pub fn FindAccountsAsync(&self) -> windows_core::Result>> { + pub fn FindAccountsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs index 33d917732fe..54d0bfabb07 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/UserDataTasks/mod.rs @@ -42,10 +42,7 @@ impl windows_core::RuntimeType for IUserDataTaskBatch { #[repr(C)] pub struct IUserDataTaskBatch_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Tasks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Tasks: usize, } windows_core::imp::define_interface!(IUserDataTaskList, IUserDataTaskList_Vtbl, 0x49412e39_7c1d_4df1_bed3_314b7cbf5e4e); impl windows_core::RuntimeType for IUserDataTaskList { @@ -199,10 +196,7 @@ pub struct IUserDataTaskStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateListInAccountAsync: 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, - #[cfg(feature = "Foundation_Collections")] pub FindListsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindListsAsync: usize, pub GetListAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } #[repr(transparent)] @@ -406,8 +400,7 @@ unsafe impl Sync for UserDataTask {} pub struct UserDataTaskBatch(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(UserDataTaskBatch, windows_core::IUnknown, windows_core::IInspectable); impl UserDataTaskBatch { - #[cfg(feature = "Foundation_Collections")] - pub fn Tasks(&self) -> windows_core::Result> { + pub fn Tasks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1254,8 +1247,7 @@ impl UserDataTaskStore { (windows_core::Interface::vtable(this).CreateListInAccountAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), core::mem::transmute_copy(userdataaccountid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindListsAsync(&self) -> windows_core::Result>> { + pub fn FindListsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs index cfb26e7857b..98a8cb18d33 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/VoiceCommands/mod.rs @@ -6,10 +6,7 @@ impl windows_core::RuntimeType for IVoiceCommand { pub struct IVoiceCommand_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CommandName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, #[cfg(feature = "Media_SpeechRecognition")] pub SpeechRecognitionResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_SpeechRecognition"))] @@ -72,10 +69,7 @@ pub struct IVoiceCommandDefinition_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetPhraseListAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - SetPhraseListAsync: usize, } windows_core::imp::define_interface!(IVoiceCommandDefinitionManagerStatics, IVoiceCommandDefinitionManagerStatics_Vtbl, 0x8fe7a69e_067e_4f16_a18c_5b17e9499940); impl windows_core::RuntimeType for IVoiceCommandDefinitionManagerStatics { @@ -88,10 +82,7 @@ pub struct IVoiceCommandDefinitionManagerStatics_Vtbl { pub InstallCommandDefinitionsFromStorageFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] InstallCommandDefinitionsFromStorageFileAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub InstalledCommandDefinitions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InstalledCommandDefinitions: usize, } windows_core::imp::define_interface!(IVoiceCommandDisambiguationResult, IVoiceCommandDisambiguationResult_Vtbl, 0xecc68cfe_c9ac_45df_a8ea_feea08ef9c5e); impl windows_core::RuntimeType for IVoiceCommandDisambiguationResult { @@ -115,10 +106,7 @@ pub struct IVoiceCommandResponse_Vtbl { pub SetRepeatMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AppLaunchArgument: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAppLaunchArgument: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub VoiceCommandContentTiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - VoiceCommandContentTiles: usize, } windows_core::imp::define_interface!(IVoiceCommandResponseStatics, IVoiceCommandResponseStatics_Vtbl, 0x2932f813_0d3b_49f2_96dd_625019bd3b5d); impl windows_core::RuntimeType for IVoiceCommandResponseStatics { @@ -129,15 +117,9 @@ pub struct IVoiceCommandResponseStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MaxSupportedVoiceCommandContentTiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub CreateResponse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateResponseWithTiles: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateResponseWithTiles: usize, pub CreateResponseForPrompt: 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, - #[cfg(feature = "Foundation_Collections")] pub CreateResponseForPromptWithTiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateResponseForPromptWithTiles: usize, } windows_core::imp::define_interface!(IVoiceCommandServiceConnection, IVoiceCommandServiceConnection_Vtbl, 0xd894bb9f_21da_44a4_98a2_fb131920a9cc); impl windows_core::RuntimeType for IVoiceCommandServiceConnection { @@ -196,8 +178,7 @@ impl VoiceCommand { (windows_core::Interface::vtable(this).CommandName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result>> { + pub fn Properties(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -452,10 +433,9 @@ impl VoiceCommandDefinition { (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetPhraseListAsync(&self, phraselistname: &windows_core::HSTRING, phraselist: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -488,8 +468,7 @@ impl VoiceCommandDefinitionManager { (windows_core::Interface::vtable(this).InstallCommandDefinitionsFromStorageFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn InstalledCommandDefinitions() -> windows_core::Result> { + pub fn InstalledCommandDefinitions() -> windows_core::Result> { Self::IVoiceCommandDefinitionManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InstalledCommandDefinitions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -572,8 +551,7 @@ impl VoiceCommandResponse { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAppLaunchArgument)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn VoiceCommandContentTiles(&self) -> windows_core::Result> { + pub fn VoiceCommandContentTiles(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -595,11 +573,10 @@ impl VoiceCommandResponse { (windows_core::Interface::vtable(this).CreateResponse)(windows_core::Interface::as_raw(this), usermessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateResponseWithTiles(message: P0, contenttiles: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IVoiceCommandResponseStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -616,12 +593,11 @@ impl VoiceCommandResponse { (windows_core::Interface::vtable(this).CreateResponseForPrompt)(windows_core::Interface::as_raw(this), message.param().abi(), repeatmessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateResponseForPromptWithTiles(message: P0, repeatmessage: P1, contenttiles: P2) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IVoiceCommandResponseStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs index 44a594975e8..60af98e1300 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs @@ -8,10 +8,7 @@ impl windows_core::RuntimeType for IWalletItemSystemStore { #[repr(C)] pub struct IWalletItemSystemStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsync: usize, pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] pub ImportItemAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -67,8 +64,7 @@ pub struct WalletItemSystemStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WalletItemSystemStore, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl WalletItemSystemStore { - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsync(&self) -> windows_core::Result>> { + pub fn GetItemsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs index f27d92c1e1e..9a089b4a3a7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs @@ -155,24 +155,12 @@ pub struct IWalletItem_Vtbl { pub SetRelevantDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RelevantDateDisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRelevantDateDisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TransactionHistory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransactionHistory: usize, - #[cfg(feature = "Foundation_Collections")] pub RelevantLocations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RelevantLocations: usize, pub IsMoreTransactionHistoryLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsMoreTransactionHistoryLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DisplayProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DisplayProperties: usize, - #[cfg(feature = "Foundation_Collections")] pub Verbs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Verbs: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletItemCustomProperty, IWalletItemCustomProperty_Vtbl, 0xb94b40f3_fa00_40fd_98dc_9de46697f1e7); @@ -232,14 +220,8 @@ pub struct IWalletItemStore_Vtbl { pub AddAsync: 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, pub ClearAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetWalletItemAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetItemsWithKindAsync: unsafe extern "system" fn(*mut core::ffi::c_void, WalletItemKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsWithKindAsync: usize, #[cfg(feature = "Storage_Streams")] pub ImportItemAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -795,16 +777,14 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRelevantDateDisplayMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn TransactionHistory(&self) -> windows_core::Result> { + pub fn TransactionHistory(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TransactionHistory)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RelevantLocations(&self) -> windows_core::Result> { + pub fn RelevantLocations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -822,16 +802,14 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsMoreTransactionHistoryLaunchable)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn DisplayProperties(&self) -> windows_core::Result> { + pub fn DisplayProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DisplayProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Verbs(&self) -> windows_core::Result> { + pub fn Verbs(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1007,16 +985,14 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).GetWalletItemAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsync(&self) -> windows_core::Result>> { + pub fn GetItemsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetItemsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsWithKindAsync(&self, kind: WalletItemKind) -> windows_core::Result>> { + pub fn GetItemsWithKindAsync(&self, kind: WalletItemKind) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs index b93122d0a45..abefe4660ab 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs @@ -326,32 +326,28 @@ impl AppInstallerInfo { (windows_core::Interface::vtable(this).PausedUntil)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn UpdateUris(&self) -> windows_core::Result> { + pub fn UpdateUris(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).UpdateUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RepairUris(&self) -> windows_core::Result> { + pub fn RepairUris(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RepairUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DependencyPackageUris(&self) -> windows_core::Result> { + pub fn DependencyPackageUris(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DependencyPackageUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageUris(&self) -> windows_core::Result> { + pub fn OptionalPackageUris(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -436,8 +432,7 @@ impl AppInstance { pub fn Unregister() -> windows_core::Result<()> { Self::IAppInstanceStatics(|this| unsafe { (windows_core::Interface::vtable(this).Unregister)(windows_core::Interface::as_raw(this)).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetInstances() -> windows_core::Result> { + pub fn GetInstances() -> windows_core::Result> { Self::IAppInstanceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetInstances)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -797,22 +792,10 @@ pub struct IAppInstallerInfo2_Vtbl { pub Version: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PackageVersion) -> windows_core::HRESULT, pub LastChecked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Foundation::DateTime) -> windows_core::HRESULT, pub PausedUntil: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub UpdateUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateUris: usize, - #[cfg(feature = "Foundation_Collections")] pub RepairUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RepairUris: usize, - #[cfg(feature = "Foundation_Collections")] pub DependencyPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DependencyPackageUris: usize, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageUris: usize, pub PolicySource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AppInstallerPolicySource) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAppInstance, IAppInstance_Vtbl, 0x675f2b47_f25f_4532_9fd6_3633e0634d01); @@ -840,10 +823,7 @@ pub struct IAppInstanceStatics_Vtbl { GetActivatedEventArgs: usize, pub FindOrRegisterInstanceForKey: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Unregister: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetInstances: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetInstances: usize, } windows_core::imp::define_interface!(ICameraApplicationManagerStatics, ICameraApplicationManagerStatics_Vtbl, 0x9599ddce_9bd3_435c_8054_c1add50028fe); impl windows_core::RuntimeType for ICameraApplicationManagerStatics { @@ -1056,10 +1036,7 @@ pub struct IPackage_Vtbl { #[cfg(not(feature = "Storage_Search"))] InstalledLocation: usize, pub IsFramework: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Dependencies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Dependencies: usize, } windows_core::imp::define_interface!(IPackage2, IPackage2_Vtbl, 0xa6612fb6_7688_4ace_95fb_359538e7aa01); impl windows_core::RuntimeType for IPackage2 { @@ -1085,9 +1062,9 @@ pub struct IPackage3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub InstalledDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Core")] pub GetAppListEntriesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Core"))] GetAppListEntriesAsync: usize, } windows_core::imp::define_interface!(IPackage4, IPackage4_Vtbl, 0x65aed1ae_b95b_450c_882b_6255187f397e); @@ -1108,19 +1085,10 @@ impl windows_core::RuntimeType for IPackage5 { #[repr(C)] pub struct IPackage5_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetContentGroupsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetContentGroupsAsync: usize, pub GetContentGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StageContentGroupsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StageContentGroupsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub StageContentGroupsWithPriorityAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StageContentGroupsWithPriorityAsync: usize, pub SetInUseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPackage6, IPackage6_Vtbl, 0x8b1ad942_12d7_4754_ae4e_638cbc0e3a2e); @@ -1178,9 +1146,9 @@ pub struct IPackage8_Vtbl { pub GetLogoAsRandomAccessStreamReference: unsafe extern "system" fn(*mut core::ffi::c_void, super::Foundation::Size, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] GetLogoAsRandomAccessStreamReference: usize, - #[cfg(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Core")] pub GetAppListEntries: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Core"))] GetAppListEntries: usize, pub IsStub: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } @@ -1191,10 +1159,7 @@ impl windows_core::RuntimeType for IPackage9 { #[repr(C)] pub struct IPackage9_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindRelatedPackages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindRelatedPackages: usize, pub SourceUriSchemeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPackageCatalog, IPackageCatalog_Vtbl, 0x230a3751_9de3_4445_be74_91fb325abefe); @@ -1233,10 +1198,7 @@ impl windows_core::RuntimeType for IPackageCatalog3 { #[repr(C)] pub struct IPackageCatalog3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RemoveOptionalPackagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RemoveOptionalPackagesAsync: usize, } windows_core::imp::define_interface!(IPackageCatalog4, IPackageCatalog4_Vtbl, 0xc37c399b_44cc_4b7b_8baf_796c04ead3b9); impl windows_core::RuntimeType for IPackageCatalog4 { @@ -1246,10 +1208,7 @@ impl windows_core::RuntimeType for IPackageCatalog4 { pub struct IPackageCatalog4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AddResourcePackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, AddResourcePackageOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RemoveResourcePackagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RemoveResourcePackagesAsync: usize, } windows_core::imp::define_interface!(IPackageCatalogAddOptionalPackageResult, IPackageCatalogAddOptionalPackageResult_Vtbl, 0x3bf10cd4_b4df_47b3_a963_e2fa832f7dd3); impl windows_core::RuntimeType for IPackageCatalogAddOptionalPackageResult { @@ -1279,10 +1238,7 @@ impl windows_core::RuntimeType for IPackageCatalogRemoveOptionalPackagesResult { #[repr(C)] pub struct IPackageCatalogRemoveOptionalPackagesResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub PackagesRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PackagesRemoved: usize, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPackageCatalogRemoveResourcePackagesResult, IPackageCatalogRemoveResourcePackagesResult_Vtbl, 0xae719709_1a52_4321_87b3_e5a1a17981a7); @@ -1292,10 +1248,7 @@ impl windows_core::RuntimeType for IPackageCatalogRemoveResourcePackagesResult { #[repr(C)] pub struct IPackageCatalogRemoveResourcePackagesResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub PackagesRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PackagesRemoved: usize, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPackageCatalogStatics, IPackageCatalogStatics_Vtbl, 0xa18c9696_e65b_4634_ba21_5e63eb7244a7); @@ -1565,10 +1518,7 @@ impl windows_core::RuntimeType for IStartupTaskStatics { #[repr(C)] pub struct IStartupTaskStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetForCurrentPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetForCurrentPackageAsync: usize, pub GetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISuspendingDeferral, ISuspendingDeferral_Vtbl, 0x59140509_8bc9_4eb4_b636_dabdc4f46f66); @@ -1849,8 +1799,7 @@ impl Package { (windows_core::Interface::vtable(this).IsFramework)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Dependencies(&self) -> windows_core::Result> { + pub fn Dependencies(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1920,8 +1869,8 @@ impl Package { (windows_core::Interface::vtable(this).InstalledDate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections"))] - pub fn GetAppListEntriesAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel_Core")] + pub fn GetAppListEntriesAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1949,8 +1898,7 @@ impl Package { (windows_core::Interface::vtable(this).VerifyContentIntegrityAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetContentGroupsAsync(&self) -> windows_core::Result>> { + pub fn GetContentGroupsAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1964,10 +1912,9 @@ impl Package { (windows_core::Interface::vtable(this).GetContentGroupAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn StageContentGroupsAsync(&self, names: P0) -> windows_core::Result>> + pub fn StageContentGroupsAsync(&self, names: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1975,10 +1922,9 @@ impl Package { (windows_core::Interface::vtable(this).StageContentGroupsAsync)(windows_core::Interface::as_raw(this), names.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn StageContentGroupsWithPriorityAsync(&self, names: P0, movetoheadofqueue: bool) -> windows_core::Result>> + pub fn StageContentGroupsWithPriorityAsync(&self, names: P0, movetoheadofqueue: bool) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2097,8 +2043,8 @@ impl Package { (windows_core::Interface::vtable(this).GetLogoAsRandomAccessStreamReference)(windows_core::Interface::as_raw(this), size, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel_Core", feature = "Foundation_Collections"))] - pub fn GetAppListEntries(&self) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel_Core")] + pub fn GetAppListEntries(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2112,8 +2058,7 @@ impl Package { (windows_core::Interface::vtable(this).IsStub)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindRelatedPackages(&self, options: P0) -> windows_core::Result> + pub fn FindRelatedPackages(&self, options: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -2269,10 +2214,9 @@ impl PackageCatalog { (windows_core::Interface::vtable(this).AddOptionalPackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(optionalpackagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RemoveOptionalPackagesAsync(&self, optionalpackagefamilynames: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2287,10 +2231,9 @@ impl PackageCatalog { (windows_core::Interface::vtable(this).AddResourcePackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(resourcepackagefamilyname), core::mem::transmute_copy(resourceid), options, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RemoveResourcePackagesAsync(&self, resourcepackages: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2412,8 +2355,7 @@ unsafe impl Sync for PackageCatalogAddResourcePackageResult {} pub struct PackageCatalogRemoveOptionalPackagesResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PackageCatalogRemoveOptionalPackagesResult, windows_core::IUnknown, windows_core::IInspectable); impl PackageCatalogRemoveOptionalPackagesResult { - #[cfg(feature = "Foundation_Collections")] - pub fn PackagesRemoved(&self) -> windows_core::Result> { + pub fn PackagesRemoved(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2443,8 +2385,7 @@ impl windows_core::RuntimeName for PackageCatalogRemoveOptionalPackagesResult { pub struct PackageCatalogRemoveResourcePackagesResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PackageCatalogRemoveResourcePackagesResult, windows_core::IUnknown, windows_core::IInspectable); impl PackageCatalogRemoveResourcePackagesResult { - #[cfg(feature = "Foundation_Collections")] - pub fn PackagesRemoved(&self) -> windows_core::Result> { + pub fn PackagesRemoved(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3184,8 +3125,7 @@ impl StartupTask { (windows_core::Interface::vtable(this).TaskId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetForCurrentPackageAsync() -> windows_core::Result>> { + pub fn GetForCurrentPackageAsync() -> windows_core::Result>> { Self::IStartupTaskStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetForCurrentPackageAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Data/Json/mod.rs b/crates/libs/windows/src/Windows/Data/Json/mod.rs index 105b1568cea..a57efe66e90 100644 --- a/crates/libs/windows/src/Windows/Data/Json/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Json/mod.rs @@ -5,14 +5,8 @@ impl windows_core::RuntimeType for IJsonArray { #[repr(C)] pub struct IJsonArray_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetObjectAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetObjectAt: usize, - #[cfg(feature = "Foundation_Collections")] pub GetArrayAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetArrayAt: usize, pub GetStringAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNumberAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut f64) -> windows_core::HRESULT, pub GetBooleanAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut bool) -> windows_core::HRESULT, @@ -24,14 +18,8 @@ impl windows_core::RuntimeType for IJsonArrayStatics { #[repr(C)] pub struct IJsonArrayStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Parse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parse: usize, - #[cfg(feature = "Foundation_Collections")] pub TryParse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryParse: usize, } windows_core::imp::define_interface!(IJsonErrorStatics2, IJsonErrorStatics2_Vtbl, 0x404030da_87d0_436c_83ab_fc7b12c0cc26); impl windows_core::RuntimeType for IJsonErrorStatics2 { @@ -51,14 +39,8 @@ pub struct IJsonObject_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetNamedValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetNamedValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetNamedObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNamedObject: usize, - #[cfg(feature = "Foundation_Collections")] pub GetNamedArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNamedArray: usize, pub GetNamedString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNamedNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub GetNamedBoolean: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -70,14 +52,8 @@ impl windows_core::RuntimeType for IJsonObjectStatics { #[repr(C)] pub struct IJsonObjectStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Parse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parse: usize, - #[cfg(feature = "Foundation_Collections")] pub TryParse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryParse: usize, } windows_core::imp::define_interface!(IJsonObjectWithDefaultValues, IJsonObjectWithDefaultValues_Vtbl, 0xd960d2a2_b7f0_4f00_8e44_d82cf415ea13); impl windows_core::RuntimeType for IJsonObjectWithDefaultValues { @@ -87,15 +63,9 @@ impl windows_core::RuntimeType for IJsonObjectWithDefaultValues { pub struct IJsonObjectWithDefaultValues_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetNamedValueOrDefault: 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, - #[cfg(feature = "Foundation_Collections")] pub GetNamedObjectOrDefault: 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, - #[cfg(not(feature = "Foundation_Collections"))] - GetNamedObjectOrDefault: usize, pub GetNamedStringOrDefault: 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, - #[cfg(feature = "Foundation_Collections")] pub GetNamedArrayOrDefault: 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, - #[cfg(not(feature = "Foundation_Collections"))] - GetNamedArrayOrDefault: usize, pub GetNamedNumberOrDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, f64, *mut f64) -> windows_core::HRESULT, pub GetNamedBooleanOrDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut bool) -> windows_core::HRESULT, } @@ -140,7 +110,6 @@ impl IJsonValue { (windows_core::Interface::vtable(this).GetBoolean)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetArray(&self) -> windows_core::Result { let this = self; unsafe { @@ -148,7 +117,6 @@ impl IJsonValue { (windows_core::Interface::vtable(this).GetArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetObject(&self) -> windows_core::Result { let this = self; unsafe { @@ -157,11 +125,9 @@ impl IJsonValue { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IJsonValue { const NAME: &'static str = "Windows.Data.Json.IJsonValue"; } -#[cfg(feature = "Foundation_Collections")] pub trait IJsonValue_Impl: windows_core::IUnknownImpl { fn ValueType(&self) -> windows_core::Result; fn Stringify(&self) -> windows_core::Result; @@ -171,7 +137,6 @@ pub trait IJsonValue_Impl: windows_core::IUnknownImpl { fn GetArray(&self) -> windows_core::Result; fn GetObject(&self) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IJsonValue_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn ValueType(this: *mut core::ffi::c_void, result__: *mut JsonValueType) -> windows_core::HRESULT { @@ -285,14 +250,8 @@ pub struct IJsonValue_Vtbl { pub GetString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub GetBoolean: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetObject: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetObject: usize, } windows_core::imp::define_interface!(IJsonValueStatics, IJsonValueStatics_Vtbl, 0x5f6b544a_2f53_48e1_91a3_f78b50a6345c); impl windows_core::RuntimeType for IJsonValueStatics { @@ -316,15 +275,11 @@ pub struct IJsonValueStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateNullValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct JsonArray(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(JsonArray, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(JsonArray, super::super::Foundation::Collections::IIterable, IJsonValue, super::super::Foundation::IStringable, super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(JsonArray, windows_collections::IIterable, IJsonValue, super::super::Foundation::IStringable, windows_collections::IVector); impl JsonArray { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -333,8 +288,8 @@ impl JsonArray { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -444,21 +399,21 @@ impl JsonArray { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -468,7 +423,7 @@ impl JsonArray { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -478,44 +433,44 @@ impl JsonArray { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } fn IJsonArrayStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -523,35 +478,28 @@ impl JsonArray { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for JsonArray { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for JsonArray { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for JsonArray { const NAME: &'static str = "Windows.Data.Json.JsonArray"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for JsonArray {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for JsonArray {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for JsonArray { type Item = IJsonValue; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &JsonArray { type Item = IJsonValue; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -588,15 +536,11 @@ impl windows_core::TypeKind for JsonErrorStatus { impl windows_core::RuntimeType for JsonErrorStatus { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Data.Json.JsonErrorStatus;i4)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct JsonObject(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(JsonObject, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( JsonObject , super::super::Foundation::Collections:: IIterable < super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , IJsonValue > > , IJsonValue , super::super::Foundation::Collections:: IMap < windows_core::HSTRING , IJsonValue > , super::super::Foundation:: IStringable ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( JsonObject , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , IJsonValue > > , IJsonValue , windows_collections:: IMap < windows_core::HSTRING , IJsonValue > , super::super::Foundation:: IStringable ); impl JsonObject { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -605,8 +549,8 @@ impl JsonObject { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -774,28 +718,28 @@ impl JsonObject { } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -805,18 +749,18 @@ impl JsonObject { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> windows_core::Result { @@ -831,35 +775,28 @@ impl JsonObject { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for JsonObject { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for JsonObject { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for JsonObject { const NAME: &'static str = "Windows.Data.Json.JsonObject"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for JsonObject {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for JsonObject {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for JsonObject { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &JsonObject { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -905,7 +842,6 @@ impl JsonValue { (windows_core::Interface::vtable(this).GetBoolean)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetArray(&self) -> windows_core::Result { let this = self; unsafe { @@ -913,7 +849,6 @@ impl JsonValue { (windows_core::Interface::vtable(this).GetArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetObject(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Data/Text/mod.rs b/crates/libs/windows/src/Windows/Data/Text/mod.rs index a5a91d5f018..5d435bcad73 100644 --- a/crates/libs/windows/src/Windows/Data/Text/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Text/mod.rs @@ -83,14 +83,8 @@ pub struct ISelectableWordsSegmenter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ResolvedLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTokenAt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetTokens: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTokens: usize, - #[cfg(feature = "Foundation_Collections")] pub Tokenize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Tokenize: usize, } windows_core::imp::define_interface!(ISelectableWordsSegmenterFactory, ISelectableWordsSegmenterFactory_Vtbl, 0x8c7a7648_6057_4339_bc70_f210010a4150); impl windows_core::RuntimeType for ISelectableWordsSegmenterFactory { @@ -108,14 +102,8 @@ impl windows_core::RuntimeType for ISemanticTextQuery { #[repr(C)] pub struct ISemanticTextQuery_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Find: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Find: usize, - #[cfg(feature = "Foundation_Collections")] pub FindInProperty: 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, - #[cfg(not(feature = "Foundation_Collections"))] - FindInProperty: usize, } windows_core::imp::define_interface!(ISemanticTextQueryFactory, ISemanticTextQueryFactory_Vtbl, 0x238c0503_f995_4587_8777_a2b7d80acfef); impl windows_core::RuntimeType for ISemanticTextQueryFactory { @@ -136,14 +124,8 @@ pub struct ITextConversionGenerator_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ResolvedLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub LanguageAvailableButNotInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetCandidatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCandidatesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetCandidatesWithMaxCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCandidatesWithMaxCountAsync: usize, } windows_core::imp::define_interface!(ITextConversionGeneratorFactory, ITextConversionGeneratorFactory_Vtbl, 0xfcaa3781_3083_49ab_be15_56dfbbb74d6f); impl windows_core::RuntimeType for ITextConversionGeneratorFactory { @@ -173,14 +155,8 @@ pub struct ITextPredictionGenerator_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ResolvedLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub LanguageAvailableButNotInstalled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetCandidatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCandidatesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetCandidatesWithMaxCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCandidatesWithMaxCountAsync: usize, } windows_core::imp::define_interface!(ITextPredictionGenerator2, ITextPredictionGenerator2_Vtbl, 0xb84723b8_2c77_486a_900a_a3453eedc15d); impl windows_core::RuntimeType for ITextPredictionGenerator2 { @@ -189,14 +165,8 @@ impl windows_core::RuntimeType for ITextPredictionGenerator2 { #[repr(C)] pub struct ITextPredictionGenerator2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetCandidatesWithParametersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, TextPredictionOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCandidatesWithParametersAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetNextWordCandidatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNextWordCandidatesAsync: usize, #[cfg(feature = "UI_Text_Core")] pub InputScope: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::UI::Text::Core::CoreTextInputScope) -> windows_core::HRESULT, #[cfg(not(feature = "UI_Text_Core"))] @@ -233,10 +203,7 @@ impl windows_core::RuntimeType for ITextReverseConversionGenerator2 { #[repr(C)] pub struct ITextReverseConversionGenerator2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetPhonemesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPhonemesAsync: usize, } windows_core::imp::define_interface!(ITextReverseConversionGeneratorFactory, ITextReverseConversionGeneratorFactory_Vtbl, 0x63bed326_1fda_41f6_89d5_23ddea3c729a); impl windows_core::RuntimeType for ITextReverseConversionGeneratorFactory { @@ -281,10 +248,7 @@ pub struct IWordSegment_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Text: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SourceTextSegment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TextSegment) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AlternateForms: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AlternateForms: usize, } windows_core::imp::define_interface!(IWordsSegmenter, IWordsSegmenter_Vtbl, 0x86b4d4d1_b2fe_4e34_a81d_66640300454f); impl windows_core::RuntimeType for IWordsSegmenter { @@ -295,14 +259,8 @@ pub struct IWordsSegmenter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ResolvedLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetTokenAt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetTokens: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTokens: usize, - #[cfg(feature = "Foundation_Collections")] pub Tokenize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Tokenize: usize, } windows_core::imp::define_interface!(IWordsSegmenterFactory, IWordsSegmenterFactory_Vtbl, 0xe6977274_fc35_455c_8bfb_6d7f4653ca97); impl windows_core::RuntimeType for IWordsSegmenterFactory { @@ -345,42 +303,36 @@ impl windows_core::RuntimeName for SelectableWordSegment { } unsafe impl Send for SelectableWordSegment {} unsafe impl Sync for SelectableWordSegment {} -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(SelectableWordSegmentsTokenizingHandler, SelectableWordSegmentsTokenizingHandler_Vtbl, 0x3a3dfc9c_aede_4dc7_9e6c_41c044bd3592); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for SelectableWordSegmentsTokenizingHandler { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] impl SelectableWordSegmentsTokenizingHandler { - pub fn new>, windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { + pub fn new>, windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { let com = SelectableWordSegmentsTokenizingHandlerBox { vtable: &SelectableWordSegmentsTokenizingHandlerBox::::VTABLE, count: windows_core::imp::RefCount::new(1), invoke }; unsafe { core::mem::transmute(windows_core::imp::Box::new(com)) } } pub fn Invoke(&self, precedingwords: P0, words: P1) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), precedingwords.param().abi(), words.param().abi()).ok() } } } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct SelectableWordSegmentsTokenizingHandler_Vtbl { base__: windows_core::IUnknown_Vtbl, Invoke: unsafe extern "system" fn(this: *mut core::ffi::c_void, precedingwords: *mut core::ffi::c_void, words: *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] -struct SelectableWordSegmentsTokenizingHandlerBox>, windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result<()> + Send + 'static> { +struct SelectableWordSegmentsTokenizingHandlerBox>, windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result<()> + Send + 'static> { vtable: *const SelectableWordSegmentsTokenizingHandler_Vtbl, invoke: F, count: windows_core::imp::RefCount, } -#[cfg(feature = "Foundation_Collections")] -impl>, windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result<()> + Send + 'static> SelectableWordSegmentsTokenizingHandlerBox { +impl>, windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result<()> + Send + 'static> SelectableWordSegmentsTokenizingHandlerBox { const VTABLE: SelectableWordSegmentsTokenizingHandler_Vtbl = SelectableWordSegmentsTokenizingHandler_Vtbl { base__: windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { @@ -439,15 +391,13 @@ impl SelectableWordsSegmenter { (windows_core::Interface::vtable(this).GetTokenAt)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), startindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTokens(&self, text: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetTokens(&self, text: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetTokens)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Tokenize(&self, text: &windows_core::HSTRING, startindex: u32, handler: P2) -> windows_core::Result<()> where P2: windows_core::Param, @@ -483,16 +433,14 @@ unsafe impl Sync for SelectableWordsSegmenter {} pub struct SemanticTextQuery(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SemanticTextQuery, windows_core::IUnknown, windows_core::IInspectable); impl SemanticTextQuery { - #[cfg(feature = "Foundation_Collections")] - pub fn Find(&self, content: &windows_core::HSTRING) -> windows_core::Result> { + pub fn Find(&self, content: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Find)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(content), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindInProperty(&self, propertycontent: &windows_core::HSTRING, propertyname: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindInProperty(&self, propertycontent: &windows_core::HSTRING, propertyname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -547,16 +495,14 @@ impl TextConversionGenerator { (windows_core::Interface::vtable(this).LanguageAvailableButNotInstalled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCandidatesAsync(&self, input: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn GetCandidatesAsync(&self, input: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCandidatesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCandidatesWithMaxCountAsync(&self, input: &windows_core::HSTRING, maxcandidates: u32) -> windows_core::Result>> { + pub fn GetCandidatesWithMaxCountAsync(&self, input: &windows_core::HSTRING, maxcandidates: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -637,26 +583,23 @@ impl TextPredictionGenerator { (windows_core::Interface::vtable(this).LanguageAvailableButNotInstalled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCandidatesAsync(&self, input: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn GetCandidatesAsync(&self, input: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCandidatesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCandidatesWithMaxCountAsync(&self, input: &windows_core::HSTRING, maxcandidates: u32) -> windows_core::Result>> { + pub fn GetCandidatesWithMaxCountAsync(&self, input: &windows_core::HSTRING, maxcandidates: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCandidatesWithMaxCountAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), maxcandidates, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCandidatesWithParametersAsync(&self, input: &windows_core::HSTRING, maxcandidates: u32, predictionoptions: TextPredictionOptions, previousstrings: P3) -> windows_core::Result>> + pub fn GetCandidatesWithParametersAsync(&self, input: &windows_core::HSTRING, maxcandidates: u32, predictionoptions: TextPredictionOptions, previousstrings: P3) -> windows_core::Result>> where - P3: windows_core::Param>, + P3: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -664,10 +607,9 @@ impl TextPredictionGenerator { (windows_core::Interface::vtable(this).GetCandidatesWithParametersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), maxcandidates, predictionoptions, previousstrings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNextWordCandidatesAsync(&self, maxcandidates: u32, previousstrings: P1) -> windows_core::Result>> + pub fn GetNextWordCandidatesAsync(&self, maxcandidates: u32, previousstrings: P1) -> windows_core::Result>> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -784,8 +726,7 @@ impl TextReverseConversionGenerator { (windows_core::Interface::vtable(this).ConvertBackAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPhonemesAsync(&self, input: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn GetPhonemesAsync(&self, input: &windows_core::HSTRING) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1011,8 +952,7 @@ impl WordSegment { (windows_core::Interface::vtable(this).SourceTextSegment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AlternateForms(&self) -> windows_core::Result> { + pub fn AlternateForms(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1032,42 +972,36 @@ impl windows_core::RuntimeName for WordSegment { } unsafe impl Send for WordSegment {} unsafe impl Sync for WordSegment {} -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(WordSegmentsTokenizingHandler, WordSegmentsTokenizingHandler_Vtbl, 0xa5dd6357_bf2a_4c4f_a31f_29e71c6f8b35); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for WordSegmentsTokenizingHandler { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] impl WordSegmentsTokenizingHandler { - pub fn new>, windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { + pub fn new>, windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { let com = WordSegmentsTokenizingHandlerBox { vtable: &WordSegmentsTokenizingHandlerBox::::VTABLE, count: windows_core::imp::RefCount::new(1), invoke }; unsafe { core::mem::transmute(windows_core::imp::Box::new(com)) } } pub fn Invoke(&self, precedingwords: P0, words: P1) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), precedingwords.param().abi(), words.param().abi()).ok() } } } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct WordSegmentsTokenizingHandler_Vtbl { base__: windows_core::IUnknown_Vtbl, Invoke: unsafe extern "system" fn(this: *mut core::ffi::c_void, precedingwords: *mut core::ffi::c_void, words: *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] -struct WordSegmentsTokenizingHandlerBox>, windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result<()> + Send + 'static> { +struct WordSegmentsTokenizingHandlerBox>, windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result<()> + Send + 'static> { vtable: *const WordSegmentsTokenizingHandler_Vtbl, invoke: F, count: windows_core::imp::RefCount, } -#[cfg(feature = "Foundation_Collections")] -impl>, windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result<()> + Send + 'static> WordSegmentsTokenizingHandlerBox { +impl>, windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result<()> + Send + 'static> WordSegmentsTokenizingHandlerBox { const VTABLE: WordSegmentsTokenizingHandler_Vtbl = WordSegmentsTokenizingHandler_Vtbl { base__: windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { @@ -1126,15 +1060,13 @@ impl WordsSegmenter { (windows_core::Interface::vtable(this).GetTokenAt)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), startindex, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTokens(&self, text: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetTokens(&self, text: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetTokens)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(text), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Tokenize(&self, text: &windows_core::HSTRING, startindex: u32, handler: P2) -> windows_core::Result<()> where P2: windows_core::Param, diff --git a/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs b/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs index 3ecef5b4da7..c545b286df1 100644 --- a/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Xml/Dom/mod.rs @@ -60,7 +60,6 @@ impl DtdEntity { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -96,7 +95,6 @@ impl DtdEntity { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -206,7 +204,6 @@ impl DtdEntity { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -224,7 +221,6 @@ impl DtdEntity { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -321,7 +317,6 @@ impl DtdNotation { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -357,7 +352,6 @@ impl DtdNotation { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -467,7 +461,6 @@ impl DtdNotation { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -485,7 +478,6 @@ impl DtdNotation { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -651,7 +643,6 @@ impl IXmlCharacterData { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -687,7 +678,6 @@ impl IXmlCharacterData { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -797,7 +787,6 @@ impl IXmlCharacterData { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -815,7 +804,6 @@ impl IXmlCharacterData { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -845,11 +833,9 @@ impl IXmlCharacterData { unsafe { (windows_core::Interface::vtable(this).SetInnerText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IXmlCharacterData { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlCharacterData"; } -#[cfg(feature = "Foundation_Collections")] pub trait IXmlCharacterData_Impl: IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { fn Data(&self) -> windows_core::Result; fn SetData(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -860,7 +846,6 @@ pub trait IXmlCharacterData_Impl: IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNo fn DeleteData(&self, offset: u32, count: u32) -> windows_core::Result<()>; fn ReplaceData(&self, offset: u32, count: u32, data: &windows_core::HSTRING) -> windows_core::Result<()>; } -#[cfg(feature = "Foundation_Collections")] impl IXmlCharacterData_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Data(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -984,10 +969,7 @@ pub struct IXmlDocument_Vtbl { pub CreateProcessingInstruction: 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, pub CreateAttribute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateEntityReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetElementsByTagName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetElementsByTagName: usize, pub CreateCDataSection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DocumentUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateAttributeNS: 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, @@ -1059,14 +1041,8 @@ impl windows_core::RuntimeType for IXmlDocumentType { pub struct IXmlDocumentType_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Entities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Entities: usize, - #[cfg(feature = "Foundation_Collections")] pub Notations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Notations: usize, } windows_core::imp::define_interface!(IXmlDomImplementation, IXmlDomImplementation_Vtbl, 0x6de58132_f11d_4fbb_8cc6_583cba93112f); impl windows_core::RuntimeType for IXmlDomImplementation { @@ -1091,10 +1067,7 @@ pub struct IXmlElement_Vtbl { pub GetAttributeNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAttributeNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveAttributeNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetElementsByTagName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetElementsByTagName: usize, pub SetAttributeNS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAttributeNS: 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, pub RemoveAttributeNS: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1127,13 +1100,10 @@ pub struct IXmlLoadSettings_Vtbl { pub ElementContentWhiteSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetElementContentWhiteSpace: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IXmlNamedNodeMap, IXmlNamedNodeMap_Vtbl, 0xb3a69eb0_aab0_4b82_a6fa_b1453f7c021b); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IXmlNamedNodeMap { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IXmlNamedNodeMap_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -1188,7 +1158,6 @@ impl IXmlNode { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = self; unsafe { @@ -1224,7 +1193,6 @@ impl IXmlNode { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = self; unsafe { @@ -1334,7 +1302,6 @@ impl IXmlNode { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1352,7 +1319,6 @@ impl IXmlNode { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -1382,11 +1348,9 @@ impl IXmlNode { unsafe { (windows_core::Interface::vtable(this).SetInnerText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IXmlNode { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlNode"; } -#[cfg(feature = "Foundation_Collections")] pub trait IXmlNode_Impl: IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { fn NodeValue(&self) -> windows_core::Result; fn SetNodeValue(&self, value: windows_core::Ref<'_, windows_core::IInspectable>) -> windows_core::Result<()>; @@ -1412,7 +1376,6 @@ pub trait IXmlNode_Impl: IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { fn Normalize(&self) -> windows_core::Result<()>; fn SetPrefix(&self, value: windows_core::Ref<'_, windows_core::IInspectable>) -> windows_core::Result<()>; } -#[cfg(feature = "Foundation_Collections")] impl IXmlNode_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn NodeValue(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1730,18 +1693,12 @@ pub struct IXmlNode_Vtbl { pub NodeType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NodeType) -> windows_core::HRESULT, pub NodeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ParentNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ChildNodes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ChildNodes: usize, pub FirstChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub LastChild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PreviousSibling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NextSibling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Attributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Attributes: usize, pub HasChildNodes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub OwnerDocument: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub InsertBefore: 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, @@ -1755,13 +1712,10 @@ pub struct IXmlNode_Vtbl { pub Normalize: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPrefix: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IXmlNodeList, IXmlNodeList_Vtbl, 0x8c60ad77_83a4_4ec1_9c54_7ba429e13da6); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IXmlNodeList { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IXmlNodeList_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -1781,7 +1735,6 @@ impl IXmlNodeSelector { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = self; unsafe { @@ -1799,7 +1752,6 @@ impl IXmlNodeSelector { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -1811,18 +1763,15 @@ impl IXmlNodeSelector { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IXmlNodeSelector { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlNodeSelector"; } -#[cfg(feature = "Foundation_Collections")] pub trait IXmlNodeSelector_Impl: windows_core::IUnknownImpl { fn SelectSingleNode(&self, xpath: &windows_core::HSTRING) -> windows_core::Result; fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result; fn SelectSingleNodeNS(&self, xpath: &windows_core::HSTRING, namespaces: windows_core::Ref<'_, windows_core::IInspectable>) -> windows_core::Result; fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: windows_core::Ref<'_, windows_core::IInspectable>) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IXmlNodeSelector_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SelectSingleNode(this: *mut core::ffi::c_void, xpath: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1893,15 +1842,9 @@ impl IXmlNodeSelector_Vtbl { pub struct IXmlNodeSelector_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SelectSingleNode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SelectNodes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SelectNodes: usize, pub SelectSingleNodeNS: 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, - #[cfg(feature = "Foundation_Collections")] pub SelectNodesNS: 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, - #[cfg(not(feature = "Foundation_Collections"))] - SelectNodesNS: usize, } windows_core::imp::define_interface!(IXmlNodeSerializer, IXmlNodeSerializer_Vtbl, 0x5cc5b382_e6dd_4991_abef_06d8d2e7bd0c); impl windows_core::RuntimeType for IXmlNodeSerializer { @@ -2089,7 +2032,6 @@ impl IXmlText { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2125,7 +2067,6 @@ impl IXmlText { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2235,7 +2176,6 @@ impl IXmlText { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2253,7 +2193,6 @@ impl IXmlText { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -2283,15 +2222,12 @@ impl IXmlText { unsafe { (windows_core::Interface::vtable(this).SetInnerText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IXmlText { const NAME: &'static str = "Windows.Data.Xml.Dom.IXmlText"; } -#[cfg(feature = "Foundation_Collections")] pub trait IXmlText_Impl: IXmlCharacterData_Impl + IXmlNode_Impl + IXmlNodeSelector_Impl + IXmlNodeSerializer_Impl { fn SplitText(&self, offset: u32) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IXmlText_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SplitText(this: *mut core::ffi::c_void, offset: u32, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -2408,7 +2344,6 @@ impl XmlAttribute { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2444,7 +2379,6 @@ impl XmlAttribute { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2554,7 +2488,6 @@ impl XmlAttribute { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2572,7 +2505,6 @@ impl XmlAttribute { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -2696,7 +2628,6 @@ impl XmlCDataSection { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2732,7 +2663,6 @@ impl XmlCDataSection { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2842,7 +2772,6 @@ impl XmlCDataSection { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2860,7 +2789,6 @@ impl XmlCDataSection { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -2991,7 +2919,6 @@ impl XmlComment { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3027,7 +2954,6 @@ impl XmlComment { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3137,7 +3063,6 @@ impl XmlComment { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3155,7 +3080,6 @@ impl XmlComment { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -3280,7 +3204,6 @@ impl XmlDocument { (windows_core::Interface::vtable(this).CreateEntityReference)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetElementsByTagName(&self, tagname: &windows_core::HSTRING) -> windows_core::Result { let this = self; unsafe { @@ -3453,7 +3376,6 @@ impl XmlDocument { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3489,7 +3411,6 @@ impl XmlDocument { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3599,7 +3520,6 @@ impl XmlDocument { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3617,7 +3537,6 @@ impl XmlDocument { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -3704,7 +3623,6 @@ impl XmlDocumentFragment { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3740,7 +3658,6 @@ impl XmlDocumentFragment { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3850,7 +3767,6 @@ impl XmlDocumentFragment { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3868,7 +3784,6 @@ impl XmlDocumentFragment { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -3923,7 +3838,6 @@ impl XmlDocumentType { (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Entities(&self) -> windows_core::Result { let this = self; unsafe { @@ -3931,7 +3845,6 @@ impl XmlDocumentType { (windows_core::Interface::vtable(this).Entities)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Notations(&self) -> windows_core::Result { let this = self; unsafe { @@ -3974,7 +3887,6 @@ impl XmlDocumentType { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4010,7 +3922,6 @@ impl XmlDocumentType { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4120,7 +4031,6 @@ impl XmlDocumentType { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4138,7 +4048,6 @@ impl XmlDocumentType { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -4263,7 +4172,6 @@ impl XmlElement { (windows_core::Interface::vtable(this).RemoveAttributeNode)(windows_core::Interface::as_raw(this), attributenode.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetElementsByTagName(&self, tagname: &windows_core::HSTRING) -> windows_core::Result { let this = self; unsafe { @@ -4350,7 +4258,6 @@ impl XmlElement { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4386,7 +4293,6 @@ impl XmlElement { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4496,7 +4402,6 @@ impl XmlElement { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4514,7 +4419,6 @@ impl XmlElement { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -4597,7 +4501,6 @@ impl XmlEntityReference { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4633,7 +4536,6 @@ impl XmlEntityReference { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4743,7 +4645,6 @@ impl XmlEntityReference { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4761,7 +4662,6 @@ impl XmlEntityReference { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -4883,32 +4783,28 @@ impl windows_core::RuntimeName for XmlLoadSettings { } unsafe impl Send for XmlLoadSettings {} unsafe impl Sync for XmlLoadSettings {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct XmlNamedNodeMap(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(XmlNamedNodeMap, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(XmlNamedNodeMap, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(XmlNamedNodeMap, windows_collections::IIterable, windows_collections::IVectorView); impl XmlNamedNodeMap { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) @@ -4918,14 +4814,14 @@ impl XmlNamedNodeMap { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) @@ -5000,65 +4896,54 @@ impl XmlNamedNodeMap { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for XmlNamedNodeMap { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for XmlNamedNodeMap { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for XmlNamedNodeMap { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlNamedNodeMap"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for XmlNamedNodeMap {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for XmlNamedNodeMap {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for XmlNamedNodeMap { type Item = IXmlNode; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &XmlNamedNodeMap { type Item = IXmlNode; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct XmlNodeList(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(XmlNodeList, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(XmlNodeList, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(XmlNodeList, windows_collections::IIterable, windows_collections::IVectorView); impl XmlNodeList { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) @@ -5068,14 +4953,14 @@ impl XmlNodeList { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) @@ -5096,35 +4981,28 @@ impl XmlNodeList { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for XmlNodeList { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for XmlNodeList { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for XmlNodeList { const NAME: &'static str = "Windows.Data.Xml.Dom.XmlNodeList"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for XmlNodeList {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for XmlNodeList {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for XmlNodeList { type Item = IXmlNode; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &XmlNodeList { type Item = IXmlNode; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -5170,7 +5048,6 @@ impl XmlProcessingInstruction { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5206,7 +5083,6 @@ impl XmlProcessingInstruction { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5316,7 +5192,6 @@ impl XmlProcessingInstruction { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5334,7 +5209,6 @@ impl XmlProcessingInstruction { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, @@ -5476,7 +5350,6 @@ impl XmlText { (windows_core::Interface::vtable(this).ParentNode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ChildNodes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5512,7 +5385,6 @@ impl XmlText { (windows_core::Interface::vtable(this).NextSibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Attributes(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5622,7 +5494,6 @@ impl XmlText { (windows_core::Interface::vtable(this).SelectSingleNode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodes(&self, xpath: &windows_core::HSTRING) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5640,7 +5511,6 @@ impl XmlText { (windows_core::Interface::vtable(this).SelectSingleNodeNS)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(xpath), namespaces.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectNodesNS(&self, xpath: &windows_core::HSTRING, namespaces: P1) -> windows_core::Result where P1: windows_core::Param, diff --git a/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs index cd84ca1f370..a9c86a46962 100644 --- a/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Adc/Provider/mod.rs @@ -223,8 +223,7 @@ impl windows_core::RuntimeType for IAdcProvider { } windows_core::imp::interface_hierarchy!(IAdcProvider, windows_core::IUnknown, windows_core::IInspectable); impl IAdcProvider { - #[cfg(feature = "Foundation_Collections")] - pub fn GetControllers(&self) -> windows_core::Result> { + pub fn GetControllers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -232,15 +231,12 @@ impl IAdcProvider { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IAdcProvider { const NAME: &'static str = "Windows.Devices.Adc.Provider.IAdcProvider"; } -#[cfg(feature = "Foundation_Collections")] pub trait IAdcProvider_Impl: windows_core::IUnknownImpl { - fn GetControllers(&self) -> windows_core::Result>; + fn GetControllers(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IAdcProvider_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -265,10 +261,7 @@ impl IAdcProvider_Vtbl { #[repr(C)] pub struct IAdcProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControllers: usize, } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Devices/Adc/mod.rs b/crates/libs/windows/src/Windows/Devices/Adc/mod.rs index 7f28cba1def..496d832e3f8 100644 --- a/crates/libs/windows/src/Windows/Devices/Adc/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Adc/mod.rs @@ -115,8 +115,8 @@ impl AdcController { (windows_core::Interface::vtable(this).OpenChannel)(windows_core::Interface::as_raw(this), channelnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Adc_Provider", feature = "Foundation_Collections"))] - pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> + #[cfg(feature = "Devices_Adc_Provider")] + pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -186,9 +186,9 @@ impl windows_core::RuntimeType for IAdcControllerStatics { #[repr(C)] pub struct IAdcControllerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Adc_Provider", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Adc_Provider")] pub GetControllersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Adc_Provider", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Adc_Provider"))] GetControllersAsync: usize, } windows_core::imp::define_interface!(IAdcControllerStatics2, IAdcControllerStatics2_Vtbl, 0xa2b93b1d_977b_4f5a_a5fe_a6abaffe6484); diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs index f377dccfefb..3719af311ac 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Advertisement/mod.rs @@ -35,40 +35,35 @@ impl BluetoothLEAdvertisement { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLocalName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServiceUuids(&self) -> windows_core::Result> { + pub fn ServiceUuids(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServiceUuids)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ManufacturerData(&self) -> windows_core::Result> { + pub fn ManufacturerData(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ManufacturerData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DataSections(&self) -> windows_core::Result> { + pub fn DataSections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DataSections)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetManufacturerDataByCompanyId(&self, companyid: u16) -> windows_core::Result> { + pub fn GetManufacturerDataByCompanyId(&self, companyid: u16) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetManufacturerDataByCompanyId)(windows_core::Interface::as_raw(this), companyid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSectionsByType(&self, r#type: u8) -> windows_core::Result> { + pub fn GetSectionsByType(&self, r#type: u8) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -399,8 +394,7 @@ impl BluetoothLEAdvertisementFilter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAdvertisement)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn BytePatterns(&self) -> windows_core::Result> { + pub fn BytePatterns(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1057,26 +1051,11 @@ pub struct IBluetoothLEAdvertisement_Vtbl { pub SetFlags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub LocalName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetLocalName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ServiceUuids: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServiceUuids: usize, - #[cfg(feature = "Foundation_Collections")] pub ManufacturerData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ManufacturerData: usize, - #[cfg(feature = "Foundation_Collections")] pub DataSections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DataSections: usize, - #[cfg(feature = "Foundation_Collections")] pub GetManufacturerDataByCompanyId: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetManufacturerDataByCompanyId: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSectionsByType: unsafe extern "system" fn(*mut core::ffi::c_void, u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSectionsByType: usize, } windows_core::imp::define_interface!(IBluetoothLEAdvertisementBytePattern, IBluetoothLEAdvertisementBytePattern_Vtbl, 0xfbfad7f2_b9c5_4a08_bc51_502f8ef68a79); impl windows_core::RuntimeType for IBluetoothLEAdvertisementBytePattern { @@ -1179,10 +1158,7 @@ pub struct IBluetoothLEAdvertisementFilter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Advertisement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAdvertisement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub BytePatterns: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BytePatterns: usize, } windows_core::imp::define_interface!(IBluetoothLEAdvertisementPublisher, IBluetoothLEAdvertisementPublisher_Vtbl, 0xcde820f9_d9fa_43d6_a264_ddd8b7da8b78); impl windows_core::RuntimeType for IBluetoothLEAdvertisementPublisher { diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs index b68b6ddaf54..699642d90b2 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Background/mod.rs @@ -64,8 +64,8 @@ impl BluetoothLEAdvertisementWatcherTriggerDetails { (windows_core::Interface::vtable(this).Error)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Devices_Bluetooth_Advertisement", feature = "Foundation_Collections"))] - pub fn Advertisements(&self) -> windows_core::Result> { + #[cfg(feature = "Devices_Bluetooth_Advertisement")] + pub fn Advertisements(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -127,8 +127,8 @@ impl GattCharacteristicNotificationTriggerDetails { (windows_core::Interface::vtable(this).EventTriggeringMode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections"))] - pub fn ValueChangedEvents(&self) -> windows_core::Result> { + #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] + pub fn ValueChangedEvents(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -172,8 +172,7 @@ impl GattServiceProviderConnection { let this = self; unsafe { (windows_core::Interface::vtable(this).Start)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllServices() -> windows_core::Result> { + pub fn AllServices() -> windows_core::Result> { Self::IGattServiceProviderConnectionStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllServices)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -251,9 +250,9 @@ impl windows_core::RuntimeType for IBluetoothLEAdvertisementWatcherTriggerDetail pub struct IBluetoothLEAdvertisementWatcherTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::BluetoothError) -> windows_core::HRESULT, - #[cfg(all(feature = "Devices_Bluetooth_Advertisement", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Bluetooth_Advertisement")] pub Advertisements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Bluetooth_Advertisement", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Bluetooth_Advertisement"))] Advertisements: usize, pub SignalStrengthFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -282,9 +281,9 @@ pub struct IGattCharacteristicNotificationTriggerDetails2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::BluetoothError) -> windows_core::HRESULT, pub EventTriggeringMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut BluetoothEventTriggeringMode) -> windows_core::HRESULT, - #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] pub ValueChangedEvents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Bluetooth_GenericAttributeProfile"))] ValueChangedEvents: usize, } windows_core::imp::define_interface!(IGattServiceProviderConnection, IGattServiceProviderConnection_Vtbl, 0x7fa1b9b9_2f13_40b5_9582_8eb78e98ef13); @@ -308,10 +307,7 @@ impl windows_core::RuntimeType for IGattServiceProviderConnectionStatics { #[repr(C)] pub struct IGattServiceProviderConnectionStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AllServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllServices: usize, } windows_core::imp::define_interface!(IGattServiceProviderTriggerDetails, IGattServiceProviderTriggerDetails_Vtbl, 0xae8c0625_05ff_4afb_b16a_de95f3cf0158); impl windows_core::RuntimeType for IGattServiceProviderTriggerDetails { diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs index e611bcbffd5..ca9d623a3f3 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs @@ -3,8 +3,8 @@ pub struct GattCharacteristic(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(GattCharacteristic, windows_core::IUnknown, windows_core::IInspectable); impl GattCharacteristic { - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetDescriptors(&self, descriptoruuid: windows_core::GUID) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn GetDescriptors(&self, descriptoruuid: windows_core::GUID) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -50,8 +50,7 @@ impl GattCharacteristic { (windows_core::Interface::vtable(this).AttributeHandle)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PresentationFormats(&self) -> windows_core::Result> { + pub fn PresentationFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -129,8 +128,8 @@ impl GattCharacteristic { (windows_core::Interface::vtable(this).Service)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetAllDescriptors(&self) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn GetAllDescriptors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -792,8 +791,7 @@ impl GattCharacteristicsResult { (windows_core::Interface::vtable(this).ProtocolError)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Characteristics(&self) -> windows_core::Result> { + pub fn Characteristics(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1043,8 +1041,7 @@ impl GattDescriptorsResult { (windows_core::Interface::vtable(this).ProtocolError)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Descriptors(&self) -> windows_core::Result> { + pub fn Descriptors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1074,16 +1071,16 @@ impl GattDeviceService { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetCharacteristics(&self, characteristicuuid: windows_core::GUID) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn GetCharacteristics(&self, characteristicuuid: windows_core::GUID) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCharacteristics)(windows_core::Interface::as_raw(this), characteristicuuid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetIncludedServices(&self, serviceuuid: windows_core::GUID) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn GetIncludedServices(&self, serviceuuid: windows_core::GUID) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1119,24 +1116,24 @@ impl GattDeviceService { (windows_core::Interface::vtable(this).Device)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn ParentServices(&self) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn ParentServices(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ParentServices)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetAllCharacteristics(&self) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn GetAllCharacteristics(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAllCharacteristics)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetAllIncludedServices(&self) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn GetAllIncludedServices(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1344,8 +1341,7 @@ impl GattDeviceServicesResult { (windows_core::Interface::vtable(this).ProtocolError)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Services(&self) -> windows_core::Result> { + pub fn Services(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1416,8 +1412,7 @@ impl GattLocalCharacteristic { (windows_core::Interface::vtable(this).CreateDescriptorAsync)(windows_core::Interface::as_raw(this), descriptoruuid, parameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Descriptors(&self) -> windows_core::Result> { + pub fn Descriptors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1431,16 +1426,14 @@ impl GattLocalCharacteristic { (windows_core::Interface::vtable(this).UserDescription)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PresentationFormats(&self) -> windows_core::Result> { + pub fn PresentationFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PresentationFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SubscribedClients(&self) -> windows_core::Result> { + pub fn SubscribedClients(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1489,8 +1482,8 @@ impl GattLocalCharacteristic { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveWriteRequested)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn NotifyValueAsync(&self, value: P0) -> windows_core::Result>> + #[cfg(feature = "Storage_Streams")] + pub fn NotifyValueAsync(&self, value: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -1597,8 +1590,7 @@ impl GattLocalCharacteristicParameters { (windows_core::Interface::vtable(this).UserDescription)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PresentationFormats(&self) -> windows_core::Result> { + pub fn PresentationFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1842,8 +1834,7 @@ impl GattLocalService { (windows_core::Interface::vtable(this).CreateCharacteristicAsync)(windows_core::Interface::as_raw(this), characteristicuuid, parameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Characteristics(&self) -> windows_core::Result> { + pub fn Characteristics(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3291,9 +3282,9 @@ impl windows_core::RuntimeType for IGattCharacteristic { #[repr(C)] pub struct IGattCharacteristic_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetDescriptors: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetDescriptors: usize, pub CharacteristicProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattCharacteristicProperties) -> windows_core::HRESULT, pub ProtectionLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattProtectionLevel) -> windows_core::HRESULT, @@ -3301,10 +3292,7 @@ pub struct IGattCharacteristic_Vtbl { pub UserDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Uuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub AttributeHandle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PresentationFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PresentationFormats: usize, pub ReadValueAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReadValueWithCacheModeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::BluetoothCacheMode, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -3328,9 +3316,9 @@ impl windows_core::RuntimeType for IGattCharacteristic2 { pub struct IGattCharacteristic2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Service: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetAllDescriptors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetAllDescriptors: usize, } windows_core::imp::define_interface!(IGattCharacteristic3, IGattCharacteristic3_Vtbl, 0x3f3c663e_93d4_406b_b817_db81f8ed53b3); @@ -3472,10 +3460,7 @@ pub struct IGattCharacteristicsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattCommunicationStatus) -> windows_core::HRESULT, pub ProtocolError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Characteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Characteristics: usize, } windows_core::imp::define_interface!(IGattClientNotificationResult, IGattClientNotificationResult_Vtbl, 0x506d5599_0112_419a_8e3b_ae21afabd2c2); impl windows_core::RuntimeType for IGattClientNotificationResult { @@ -3562,10 +3547,7 @@ pub struct IGattDescriptorsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattCommunicationStatus) -> windows_core::HRESULT, pub ProtocolError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Descriptors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Descriptors: usize, } windows_core::imp::define_interface!(IGattDeviceService, IGattDeviceService_Vtbl, 0xac7b7c05_b33c_47cf_990f_6b8f5577df71); impl windows_core::RuntimeType for IGattDeviceService { @@ -3574,13 +3556,13 @@ impl windows_core::RuntimeType for IGattDeviceService { #[repr(C)] pub struct IGattDeviceService_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetCharacteristics: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetCharacteristics: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetIncludedServices: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetIncludedServices: usize, pub DeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Uuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, @@ -3597,17 +3579,17 @@ pub struct IGattDeviceService2_Vtbl { pub Device: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "deprecated"))] Device: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub ParentServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] ParentServices: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetAllCharacteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetAllCharacteristics: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetAllIncludedServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetAllIncludedServices: usize, } windows_core::imp::define_interface!(IGattDeviceService3, IGattDeviceService3_Vtbl, 0xb293a950_0c53_437c_a9b3_5c3210c6e569); @@ -3677,10 +3659,7 @@ pub struct IGattDeviceServicesResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattCommunicationStatus) -> windows_core::HRESULT, pub ProtocolError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Services: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Services: usize, } windows_core::imp::define_interface!(IGattLocalCharacteristic, IGattLocalCharacteristic_Vtbl, 0xaede376d_5412_4d74_92a8_8deb8526829c); impl windows_core::RuntimeType for IGattLocalCharacteristic { @@ -3698,28 +3677,19 @@ pub struct IGattLocalCharacteristic_Vtbl { pub ReadProtectionLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattProtectionLevel) -> windows_core::HRESULT, pub WriteProtectionLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattProtectionLevel) -> windows_core::HRESULT, pub CreateDescriptorAsync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Descriptors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Descriptors: usize, pub UserDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PresentationFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PresentationFormats: usize, - #[cfg(feature = "Foundation_Collections")] pub SubscribedClients: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SubscribedClients: usize, pub SubscribedClientsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveSubscribedClientsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub ReadRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveReadRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub WriteRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveWriteRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub NotifyValueAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] NotifyValueAsync: usize, #[cfg(feature = "Storage_Streams")] pub NotifyValueForSubscribedClientAsync: 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, @@ -3749,10 +3719,7 @@ pub struct IGattLocalCharacteristicParameters_Vtbl { pub WriteProtectionLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GattProtectionLevel) -> windows_core::HRESULT, pub SetUserDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub UserDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PresentationFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PresentationFormats: usize, } windows_core::imp::define_interface!(IGattLocalCharacteristicResult, IGattLocalCharacteristicResult_Vtbl, 0x7975de9b_0170_4397_9666_92f863f12ee6); impl windows_core::RuntimeType for IGattLocalCharacteristicResult { @@ -3822,10 +3789,7 @@ pub struct IGattLocalService_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Uuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub CreateCharacteristicAsync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Characteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Characteristics: usize, } windows_core::imp::define_interface!(IGattPresentationFormat, IGattPresentationFormat_Vtbl, 0x196d0021_faad_45dc_ae5b_2ac3184e84db); impl windows_core::RuntimeType for IGattPresentationFormat { diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs index 74d4f04110e..2e91d0ea42a 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/Rfcomm/mod.rs @@ -19,13 +19,13 @@ pub struct IRfcommDeviceService_Vtbl { pub MaxProtectionLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Networking::Sockets::SocketProtectionLevel) -> windows_core::HRESULT, #[cfg(not(feature = "Networking_Sockets"))] MaxProtectionLevel: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetSdpRawAttributesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetSdpRawAttributesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetSdpRawAttributesWithCacheModeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::BluetoothCacheMode, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetSdpRawAttributesWithCacheModeAsync: usize, } windows_core::imp::define_interface!(IRfcommDeviceService2, IRfcommDeviceService2_Vtbl, 0x536ced14_ebcd_49fe_bf9f_40efc689b20d); @@ -83,10 +83,7 @@ impl windows_core::RuntimeType for IRfcommDeviceServicesResult { pub struct IRfcommDeviceServicesResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::BluetoothError) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Services: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Services: usize, } windows_core::imp::define_interface!(IRfcommServiceId, IRfcommServiceId_Vtbl, 0x22629204_7e02_4017_8136_da1b6a1b9bbf); impl windows_core::RuntimeType for IRfcommServiceId { @@ -123,9 +120,9 @@ impl windows_core::RuntimeType for IRfcommServiceProvider { pub struct IRfcommServiceProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ServiceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub SdpRawAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] SdpRawAttributes: usize, #[cfg(feature = "Networking_Sockets")] pub StartAdvertising: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -202,16 +199,16 @@ impl RfcommDeviceService { (windows_core::Interface::vtable(this).MaxProtectionLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetSdpRawAttributesAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetSdpRawAttributesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSdpRawAttributesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetSdpRawAttributesWithCacheModeAsync(&self, cachemode: super::BluetoothCacheMode) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetSdpRawAttributesWithCacheModeAsync(&self, cachemode: super::BluetoothCacheMode) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -327,8 +324,7 @@ impl RfcommDeviceServicesResult { (windows_core::Interface::vtable(this).Error)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Services(&self) -> windows_core::Result> { + pub fn Services(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -451,8 +447,8 @@ impl RfcommServiceProvider { (windows_core::Interface::vtable(this).ServiceId)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn SdpRawAttributes(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn SdpRawAttributes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs index 065e8938eae..0e2c61e17f6 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs @@ -268,16 +268,16 @@ impl BluetoothDevice { (windows_core::Interface::vtable(this).ClassOfDevice)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn SdpRecords(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn SdpRecords(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SdpRecords)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Bluetooth_Rfcomm", feature = "Foundation_Collections", feature = "deprecated"))] - pub fn RfcommServices(&self) -> windows_core::Result> { + #[cfg(all(feature = "Devices_Bluetooth_Rfcomm", feature = "deprecated"))] + pub fn RfcommServices(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1077,8 +1077,8 @@ impl BluetoothLEDevice { (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GattServices(&self) -> windows_core::Result> { + #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "deprecated"))] + pub fn GattServices(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1832,13 +1832,13 @@ pub struct IBluetoothDevice_Vtbl { HostName: usize, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClassOfDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub SdpRecords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] SdpRecords: usize, - #[cfg(all(feature = "Devices_Bluetooth_Rfcomm", feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(all(feature = "Devices_Bluetooth_Rfcomm", feature = "deprecated"))] pub RfcommServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Bluetooth_Rfcomm", feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(all(feature = "Devices_Bluetooth_Rfcomm", feature = "deprecated")))] RfcommServices: usize, pub ConnectionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut BluetoothConnectionStatus) -> windows_core::HRESULT, pub BluetoothAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, @@ -2087,9 +2087,9 @@ pub struct IBluetoothLEDevice_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "deprecated"))] pub GattServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "deprecated")))] GattServices: usize, pub ConnectionStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut BluetoothConnectionStatus) -> windows_core::HRESULT, pub BluetoothAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs b/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs index a3b3e1b3fbe..070a0bcd2d3 100644 --- a/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs @@ -53,8 +53,7 @@ impl DisplayAdapter { (windows_core::Interface::vtable(this).PciRevision)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -218,12 +217,12 @@ impl DisplayDevice { (windows_core::Interface::vtable(this).IsCapabilitySupported)(windows_core::Interface::as_raw(this), capability, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics"))] + #[cfg(feature = "Graphics")] pub fn CreateSimpleScanoutWithDirtyRectsAndOptions(&self, source: P0, surface: P1, subresourceindex: u32, syncinterval: u32, dirtyrects: P4, options: DisplayScanoutOptions) -> windows_core::Result where P0: windows_core::Param, P1: windows_core::Param, - P4: windows_core::Param>, + P4: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -291,16 +290,14 @@ impl DisplayManager { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentTargets(&self) -> windows_core::Result> { + pub fn GetCurrentTargets(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCurrentTargets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentAdapters(&self) -> windows_core::Result> { + pub fn GetCurrentAdapters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -331,10 +328,9 @@ impl DisplayManager { (windows_core::Interface::vtable(this).TryReadCurrentStateForAllTargets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndReadCurrentState(&self, targets: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -342,10 +338,9 @@ impl DisplayManager { (windows_core::Interface::vtable(this).TryAcquireTargetsAndReadCurrentState)(windows_core::Interface::as_raw(this), targets.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndCreateEmptyState(&self, targets: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -353,11 +348,10 @@ impl DisplayManager { (windows_core::Interface::vtable(this).TryAcquireTargetsAndCreateEmptyState)(windows_core::Interface::as_raw(this), targets.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn TryAcquireTargetsAndCreateSubstate(&self, existingstate: P0, targets: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -794,8 +788,7 @@ impl DisplayModeInfo { (windows_core::Interface::vtable(this).IsWireFormatSupported)(windows_core::Interface::as_raw(this), wireformat.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -893,8 +886,7 @@ impl DisplayMuxDevice { (windows_core::Interface::vtable(this).IsActive)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAvailableMuxTargets(&self) -> windows_core::Result> { + pub fn GetAvailableMuxTargets(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1130,8 +1122,7 @@ impl DisplayPath { let this = self; unsafe { (windows_core::Interface::vtable(this).SetScaling)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindModes(&self, flags: DisplayModeQueryOptions) -> windows_core::Result> { + pub fn FindModes(&self, flags: DisplayModeQueryOptions) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1145,8 +1136,7 @@ impl DisplayPath { let this = self; unsafe { (windows_core::Interface::vtable(this).ApplyPropertiesFromMode)(windows_core::Interface::as_raw(this), moderesult.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1295,8 +1285,7 @@ impl DisplayPrimaryDescription { (windows_core::Interface::vtable(this).MultisampleDescription)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1310,10 +1299,10 @@ impl DisplayPrimaryDescription { (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), width, height, pixelformat, colorspace, isstereo, multisampledescription, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11"))] + #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub fn CreateWithProperties(extraproperties: P0, width: u32, height: u32, pixelformat: super::super::super::Graphics::DirectX::DirectXPixelFormat, colorspace: super::super::super::Graphics::DirectX::DirectXColorSpace, isstereo: bool, multisampledescription: super::super::super::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { Self::IDisplayPrimaryDescriptionStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1516,24 +1505,21 @@ impl DisplayState { (windows_core::Interface::vtable(this).IsStale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Targets(&self) -> windows_core::Result> { + pub fn Targets(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Targets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Views(&self) -> windows_core::Result> { + pub fn Views(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Views)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1871,8 +1857,7 @@ impl DisplayTarget { (windows_core::Interface::vtable(this).TryGetMonitor)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2073,8 +2058,7 @@ impl windows_core::RuntimeType for DisplayTaskSignalKind { pub struct DisplayView(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DisplayView, windows_core::IUnknown, windows_core::IInspectable); impl DisplayView { - #[cfg(feature = "Foundation_Collections")] - pub fn Paths(&self) -> windows_core::Result> { + pub fn Paths(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2104,8 +2088,7 @@ impl DisplayView { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPrimaryPath)(windows_core::Interface::as_raw(this), path.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2165,8 +2148,7 @@ impl DisplayWireFormat { (windows_core::Interface::vtable(this).HdrMetadata)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2179,10 +2161,9 @@ impl DisplayWireFormat { (windows_core::Interface::vtable(this).CreateInstance)(windows_core::Interface::as_raw(this), pixelencoding, bitsperchannel, colorspace, eotf, hdrmetadata, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithProperties(extraproperties: P0, pixelencoding: DisplayWireFormatPixelEncoding, bitsperchannel: i32, colorspace: DisplayWireFormatColorSpace, eotf: DisplayWireFormatEotf, hdrmetadata: DisplayWireFormatHdrMetadata) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { Self::IDisplayWireFormatStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2285,10 +2266,7 @@ pub struct IDisplayAdapter_Vtbl { pub PciDeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub PciSubSystemId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub PciRevision: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IDisplayAdapter2, IDisplayAdapter2_Vtbl, 0x9ab49b18_b3c7_5546_8374_a9127111edd8); impl windows_core::RuntimeType for IDisplayAdapter2 { @@ -2334,9 +2312,9 @@ impl windows_core::RuntimeType for IDisplayDevice2 { #[repr(C)] pub struct IDisplayDevice2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics"))] + #[cfg(feature = "Graphics")] pub CreateSimpleScanoutWithDirtyRectsAndOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut core::ffi::c_void, DisplayScanoutOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics")))] + #[cfg(not(feature = "Graphics"))] CreateSimpleScanoutWithDirtyRectsAndOptions: usize, } windows_core::imp::define_interface!(IDisplayDeviceRenderAdapter, IDisplayDeviceRenderAdapter_Vtbl, 0x41c86ce5_b18f_573f_9d59_70463115e4cc); @@ -2366,29 +2344,14 @@ impl windows_core::RuntimeType for IDisplayManager { #[repr(C)] pub struct IDisplayManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentTargets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentTargets: usize, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentAdapters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentAdapters: usize, pub TryAcquireTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut DisplayManagerResult) -> windows_core::HRESULT, pub ReleaseTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryReadCurrentStateForAllTargets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TryAcquireTargetsAndReadCurrentState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryAcquireTargetsAndReadCurrentState: usize, - #[cfg(feature = "Foundation_Collections")] pub TryAcquireTargetsAndCreateEmptyState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryAcquireTargetsAndCreateEmptyState: usize, - #[cfg(feature = "Foundation_Collections")] pub TryAcquireTargetsAndCreateSubstate: 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, - #[cfg(not(feature = "Foundation_Collections"))] - TryAcquireTargetsAndCreateSubstate: usize, pub CreateDisplayDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Enabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -2510,10 +2473,7 @@ pub struct IDisplayModeInfo_Vtbl { pub IsInterlaced: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub GetWireFormatSupportedBitsPerChannel: unsafe extern "system" fn(*mut core::ffi::c_void, DisplayWireFormatPixelEncoding, *mut DisplayBitsPerChannel) -> windows_core::HRESULT, pub IsWireFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IDisplayModeInfo2, IDisplayModeInfo2_Vtbl, 0xc86fa386_0ddb_5473_bfb0_4b7807b5f909); impl windows_core::RuntimeType for IDisplayModeInfo2 { @@ -2536,10 +2496,7 @@ pub struct IDisplayMuxDevice_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsActive: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAvailableMuxTargets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAvailableMuxTargets: usize, pub CurrentTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PreferredTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsAutomaticTargetSwitchingEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -2610,15 +2567,9 @@ pub struct IDisplayPath_Vtbl { pub SetRotation: unsafe extern "system" fn(*mut core::ffi::c_void, DisplayRotation) -> windows_core::HRESULT, pub Scaling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayPathScaling) -> windows_core::HRESULT, pub SetScaling: unsafe extern "system" fn(*mut core::ffi::c_void, DisplayPathScaling) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindModes: unsafe extern "system" fn(*mut core::ffi::c_void, DisplayModeQueryOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindModes: usize, pub ApplyPropertiesFromMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IDisplayPath2, IDisplayPath2_Vtbl, 0xf32459c5_e994_570b_9ec8_ef42c35a8547); impl windows_core::RuntimeType for IDisplayPath2 { @@ -2658,10 +2609,7 @@ pub struct IDisplayPrimaryDescription_Vtbl { pub MultisampleDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] MultisampleDescription: usize, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IDisplayPrimaryDescriptionFactory, IDisplayPrimaryDescriptionFactory_Vtbl, 0x1a6aff7b_3637_5c46_b479_76d576216e65); impl windows_core::RuntimeType for IDisplayPrimaryDescriptionFactory { @@ -2682,9 +2630,9 @@ impl windows_core::RuntimeType for IDisplayPrimaryDescriptionStatics { #[repr(C)] pub struct IDisplayPrimaryDescriptionStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11"))] + #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub CreateWithProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, super::super::super::Graphics::DirectX::DirectXPixelFormat, super::super::super::Graphics::DirectX::DirectXColorSpace, bool, super::super::super::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11")))] + #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] CreateWithProperties: usize, } windows_core::imp::define_interface!(IDisplayScanout, IDisplayScanout_Vtbl, 0xe3051828_1ba5_50e7_8a39_bb1fd2f4f8b9); @@ -2732,18 +2680,9 @@ pub struct IDisplayState_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsStale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Targets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Targets: usize, - #[cfg(feature = "Foundation_Collections")] pub Views: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Views: usize, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub ConnectTarget: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConnectTargetToView: 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, pub CanConnectTargetToView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -2789,10 +2728,7 @@ pub struct IDisplayTarget_Vtbl { pub MonitorPersistence: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayTargetPersistence) -> windows_core::HRESULT, pub StableMonitorId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryGetMonitor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub IsStale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsSame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsEqual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -2856,10 +2792,7 @@ impl windows_core::RuntimeType for IDisplayView { #[repr(C)] pub struct IDisplayView_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Paths: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Paths: usize, #[cfg(feature = "Graphics")] pub ContentResolution: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics"))] @@ -2869,10 +2802,7 @@ pub struct IDisplayView_Vtbl { #[cfg(not(feature = "Graphics"))] SetContentResolution: usize, pub SetPrimaryPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IDisplayWireFormat, IDisplayWireFormat_Vtbl, 0x1acc967d_872c_5a38_bbb9_1d4872b76255); impl windows_core::RuntimeType for IDisplayWireFormat { @@ -2886,10 +2816,7 @@ pub struct IDisplayWireFormat_Vtbl { pub ColorSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayWireFormatColorSpace) -> windows_core::HRESULT, pub Eotf: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayWireFormatEotf) -> windows_core::HRESULT, pub HdrMetadata: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayWireFormatHdrMetadata) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IDisplayWireFormatFactory, IDisplayWireFormatFactory_Vtbl, 0xb2efc8d5_09d6_55e6_ad22_9014b3d25229); impl windows_core::RuntimeType for IDisplayWireFormatFactory { @@ -2907,8 +2834,5 @@ impl windows_core::RuntimeType for IDisplayWireFormatStatics { #[repr(C)] pub struct IDisplayWireFormatStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateWithProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DisplayWireFormatPixelEncoding, i32, DisplayWireFormatColorSpace, DisplayWireFormatEotf, DisplayWireFormatHdrMetadata, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithProperties: usize, } diff --git a/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs b/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs index 9da53bbf96e..6fb29c27585 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/Pnp/mod.rs @@ -7,10 +7,7 @@ pub struct IPnpObject_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Type: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PnpObjectType) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub Update: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPnpObjectStatics, IPnpObjectStatics_Vtbl, 0xb3c32a3d_d168_4660_bbf3_a733b14b6e01); @@ -20,26 +17,11 @@ impl windows_core::RuntimeType for IPnpObjectStatics { #[repr(C)] pub struct IPnpObjectStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, PnpObjectType, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIdAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, PnpObjectType, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsyncAqsFilter: unsafe extern "system" fn(*mut core::ffi::c_void, PnpObjectType, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsyncAqsFilter: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, PnpObjectType, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWatcher: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWatcherAqsFilter: unsafe extern "system" fn(*mut core::ffi::c_void, PnpObjectType, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWatcherAqsFilter: usize, } windows_core::imp::define_interface!(IPnpObjectUpdate, IPnpObjectUpdate_Vtbl, 0x6f59e812_001e_4844_bcc6_432886856a17); impl windows_core::RuntimeType for IPnpObjectUpdate { @@ -50,10 +32,7 @@ pub struct IPnpObjectUpdate_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Type: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PnpObjectType) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IPnpObjectWatcher, IPnpObjectWatcher_Vtbl, 0x83c95ca8_4772_4a7a_aca8_e48c42a89c44); impl windows_core::RuntimeType for IPnpObjectWatcher { @@ -95,8 +74,7 @@ impl PnpObject { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -110,50 +88,45 @@ impl PnpObject { let this = self; unsafe { (windows_core::Interface::vtable(this).Update)(windows_core::Interface::as_raw(this), updateinfo.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsync(r#type: PnpObjectType, id: &windows_core::HSTRING, requestedproperties: P2) -> windows_core::Result> where - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromIdAsync)(windows_core::Interface::as_raw(this), r#type, core::mem::transmute_copy(id), requestedproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsync(r#type: PnpObjectType, requestedproperties: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), r#type, requestedproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncAqsFilter(r#type: PnpObjectType, requestedproperties: P1, aqsfilter: &windows_core::HSTRING) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsyncAqsFilter)(windows_core::Interface::as_raw(this), r#type, requestedproperties.param().abi(), core::mem::transmute_copy(aqsfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcher(r#type: PnpObjectType, requestedproperties: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateWatcher)(windows_core::Interface::as_raw(this), r#type, requestedproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherAqsFilter(r#type: PnpObjectType, requestedproperties: P1, aqsfilter: &windows_core::HSTRING) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPnpObjectStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -177,18 +150,14 @@ impl windows_core::RuntimeName for PnpObject { } unsafe impl Send for PnpObject {} unsafe impl Sync for PnpObject {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PnpObjectCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(PnpObjectCollection, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(PnpObjectCollection, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(PnpObjectCollection, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(PnpObjectCollection, windows_collections::IIterable); impl PnpObjectCollection { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -226,35 +195,28 @@ impl PnpObjectCollection { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PnpObjectCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PnpObjectCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PnpObjectCollection { const NAME: &'static str = "Windows.Devices.Enumeration.Pnp.PnpObjectCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for PnpObjectCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for PnpObjectCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for PnpObjectCollection { type Item = PnpObject; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &PnpObjectCollection { type Item = PnpObject; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -299,8 +261,7 @@ impl PnpObjectUpdate { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs b/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs index d96603fd048..9bdf8c5ae90 100644 --- a/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Enumeration/mod.rs @@ -230,8 +230,7 @@ impl DeviceInformation { (windows_core::Interface::vtable(this).EnclosureLocation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -281,41 +280,36 @@ impl DeviceInformation { (windows_core::Interface::vtable(this).CreateFromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsyncAdditionalProperties(deviceid: &windows_core::HSTRING, additionalproperties: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromIdAsyncAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), additionalproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsync() -> windows_core::Result> { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncDeviceClass(deviceclass: DeviceClass) -> windows_core::Result> { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsyncDeviceClass)(windows_core::Interface::as_raw(this), deviceclass, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncAqsFilter(aqsfilter: &windows_core::HSTRING) -> windows_core::Result> { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsyncAqsFilter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -340,10 +334,9 @@ impl DeviceInformation { (windows_core::Interface::vtable(this).CreateWatcherAqsFilter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDeviceInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -356,40 +349,36 @@ impl DeviceInformation { (windows_core::Interface::vtable(this).GetAqsFilterFromDeviceClass)(windows_core::Interface::as_raw(this), deviceclass, &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsyncWithKindAndAdditionalProperties(deviceid: &windows_core::HSTRING, additionalproperties: P1, kind: DeviceInformationKind) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDeviceInformationStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateFromIdAsyncWithKindAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), additionalproperties.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncWithKindAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P1, kind: DeviceInformationKind) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDeviceInformationStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsyncWithKindAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithKindAqsFilterAndAdditionalProperties(aqsfilter: &windows_core::HSTRING, additionalproperties: P1, kind: DeviceInformationKind) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDeviceInformationStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateWatcherWithKindAqsFilterAndAdditionalProperties)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.param().abi(), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateFromIdAsyncWithAdditionalPropertiesKindAndSettings(deviceid: &windows_core::HSTRING, additionalproperties: P1, kind: DeviceInformationKind, settings: P3) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, { Self::IDeviceInformationStatics3(|this| unsafe { @@ -397,10 +386,9 @@ impl DeviceInformation { (windows_core::Interface::vtable(this).CreateFromIdAsyncWithAdditionalPropertiesKindAndSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), additionalproperties.param().abi(), kind, settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn FindAllAsyncWithAqsFilterAdditionalPropertiesKindAndSettings(aqsfilter: &windows_core::HSTRING, additionalproperties: P1, kind: DeviceInformationKind, settings: P3) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, { Self::IDeviceInformationStatics3(|this| unsafe { @@ -408,10 +396,9 @@ impl DeviceInformation { (windows_core::Interface::vtable(this).FindAllAsyncWithAqsFilterAdditionalPropertiesKindAndSettings)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(aqsfilter), additionalproperties.param().abi(), kind, settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithAqsFilterAdditionalPropertiesKindAndSettings(aqsfilter: &windows_core::HSTRING, additionalproperties: P1, kind: DeviceInformationKind, settings: P3) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, { Self::IDeviceInformationStatics3(|this| unsafe { @@ -444,18 +431,14 @@ impl windows_core::RuntimeName for DeviceInformation { } unsafe impl Send for DeviceInformation {} unsafe impl Sync for DeviceInformation {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct DeviceInformationCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(DeviceInformationCollection, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(DeviceInformationCollection, super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(DeviceInformationCollection, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(DeviceInformationCollection, windows_collections::IIterable); impl DeviceInformationCollection { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -493,35 +476,28 @@ impl DeviceInformationCollection { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for DeviceInformationCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for DeviceInformationCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for DeviceInformationCollection { const NAME: &'static str = "Windows.Devices.Enumeration.DeviceInformationCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for DeviceInformationCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for DeviceInformationCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for DeviceInformationCollection { type Item = DeviceInformation; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &DeviceInformationCollection { type Item = DeviceInformation; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -733,8 +709,7 @@ impl DeviceInformationUpdate { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -992,8 +967,7 @@ impl DevicePairingSetMembersRequestedEventArgs { (windows_core::Interface::vtable(this).ParentDeviceInformation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PairingSetMembers(&self) -> windows_core::Result> { + pub fn PairingSetMembers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1039,8 +1013,7 @@ impl DevicePicker { (windows_core::Interface::vtable(this).Appearance)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RequestedProperties(&self) -> windows_core::Result> { + pub fn RequestedProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1297,16 +1270,14 @@ impl core::ops::Not for DevicePickerDisplayStatusOptions { pub struct DevicePickerFilter(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DevicePickerFilter, windows_core::IUnknown, windows_core::IInspectable); impl DevicePickerFilter { - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedDeviceClasses(&self) -> windows_core::Result> { + pub fn SupportedDeviceClasses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedDeviceClasses)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedDeviceSelectors(&self) -> windows_core::Result> { + pub fn SupportedDeviceSelectors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1605,10 +1576,10 @@ impl DeviceWatcher { let this = self; unsafe { (windows_core::Interface::vtable(this).Stop)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "ApplicationModel_Background", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Background")] pub fn GetBackgroundTrigger(&self, requestedeventkinds: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1704,8 +1675,7 @@ impl windows_core::RuntimeType for DeviceWatcherStatus { pub struct DeviceWatcherTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DeviceWatcherTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); impl DeviceWatcherTriggerDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn DeviceWatcherEvents(&self) -> windows_core::Result> { + pub fn DeviceWatcherEvents(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1880,10 +1850,7 @@ pub struct IDeviceInformation_Vtbl { pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub EnclosureLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub Update: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] pub GetThumbnailAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1978,33 +1945,15 @@ impl windows_core::RuntimeType for IDeviceInformationStatics { pub struct IDeviceInformationStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateFromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIdAsyncAdditionalProperties: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIdAsyncAdditionalProperties: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsyncDeviceClass: unsafe extern "system" fn(*mut core::ffi::c_void, DeviceClass, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsyncDeviceClass: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsyncAqsFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsyncAqsFilter: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsyncAqsFilterAndAdditionalProperties: 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, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsyncAqsFilterAndAdditionalProperties: usize, pub CreateWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateWatcherDeviceClass: unsafe extern "system" fn(*mut core::ffi::c_void, DeviceClass, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateWatcherAqsFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateWatcherAqsFilterAndAdditionalProperties: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWatcherAqsFilterAndAdditionalProperties: usize, } windows_core::imp::define_interface!(IDeviceInformationStatics2, IDeviceInformationStatics2_Vtbl, 0x493b4f34_a84f_45fd_9167_15d1cb1bd1f9); impl windows_core::RuntimeType for IDeviceInformationStatics2 { @@ -2014,18 +1963,9 @@ impl windows_core::RuntimeType for IDeviceInformationStatics2 { pub struct IDeviceInformationStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetAqsFilterFromDeviceClass: unsafe extern "system" fn(*mut core::ffi::c_void, DeviceClass, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIdAsyncWithKindAndAdditionalProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeviceInformationKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIdAsyncWithKindAndAdditionalProperties: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsyncWithKindAqsFilterAndAdditionalProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeviceInformationKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsyncWithKindAqsFilterAndAdditionalProperties: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWatcherWithKindAqsFilterAndAdditionalProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeviceInformationKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWatcherWithKindAqsFilterAndAdditionalProperties: usize, } windows_core::imp::define_interface!(IDeviceInformationStatics3, IDeviceInformationStatics3_Vtbl, 0x25f06279_9364_5a6c_8a54_5d4a6d3d922a); impl windows_core::RuntimeType for IDeviceInformationStatics3 { @@ -2034,18 +1974,9 @@ impl windows_core::RuntimeType for IDeviceInformationStatics3 { #[repr(C)] pub struct IDeviceInformationStatics3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateFromIdAsyncWithAdditionalPropertiesKindAndSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeviceInformationKind, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateFromIdAsyncWithAdditionalPropertiesKindAndSettings: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsyncWithAqsFilterAdditionalPropertiesKindAndSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeviceInformationKind, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsyncWithAqsFilterAdditionalPropertiesKindAndSettings: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWatcherWithAqsFilterAdditionalPropertiesKindAndSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeviceInformationKind, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWatcherWithAqsFilterAdditionalPropertiesKindAndSettings: usize, } windows_core::imp::define_interface!(IDeviceInformationUpdate, IDeviceInformationUpdate_Vtbl, 0x8f315305_d972_44b7_a37e_9e822c78213b); impl windows_core::RuntimeType for IDeviceInformationUpdate { @@ -2055,10 +1986,7 @@ impl windows_core::RuntimeType for IDeviceInformationUpdate { pub struct IDeviceInformationUpdate_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IDeviceInformationUpdate2, IDeviceInformationUpdate2_Vtbl, 0x5d9d148c_a873_485e_baa6_aa620788e3cc); impl windows_core::RuntimeType for IDeviceInformationUpdate2 { @@ -2123,10 +2051,7 @@ pub struct IDevicePairingSetMembersRequestedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DevicePairingAddPairingSetMemberStatus) -> windows_core::HRESULT, pub ParentDeviceInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PairingSetMembers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PairingSetMembers: usize, } windows_core::imp::define_interface!(IDevicePairingSettings, IDevicePairingSettings_Vtbl, 0x482cb27c_83bb_420e_be51_6602b222de54); impl windows_core::RuntimeType for IDevicePairingSettings { @@ -2158,10 +2083,7 @@ pub struct IDevicePicker_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Filter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Appearance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RequestedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestedProperties: usize, pub DeviceSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveDeviceSelected: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub DisconnectButtonClicked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -2246,14 +2168,8 @@ impl windows_core::RuntimeType for IDevicePickerFilter { #[repr(C)] pub struct IDevicePickerFilter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedDeviceClasses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedDeviceClasses: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedDeviceSelectors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedDeviceSelectors: usize, } windows_core::imp::define_interface!(IDeviceSelectedEventArgs, IDeviceSelectedEventArgs_Vtbl, 0x269edade_1d2f_4940_8402_4156b81d3c77); impl windows_core::RuntimeType for IDeviceSelectedEventArgs { @@ -2301,9 +2217,9 @@ impl windows_core::RuntimeType for IDeviceWatcher2 { #[repr(C)] pub struct IDeviceWatcher2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "ApplicationModel_Background", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_Background")] pub GetBackgroundTrigger: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Background", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_Background"))] GetBackgroundTrigger: usize, } windows_core::imp::define_interface!(IDeviceWatcherEvent, IDeviceWatcherEvent_Vtbl, 0x74aa9c0b_1dbd_47fd_b635_3cc556d0ff8b); @@ -2324,10 +2240,7 @@ impl windows_core::RuntimeType for IDeviceWatcherTriggerDetails { #[repr(C)] pub struct IDeviceWatcherTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DeviceWatcherEvents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeviceWatcherEvents: usize, } windows_core::imp::define_interface!(IEnclosureLocation, IEnclosureLocation_Vtbl, 0x42340a27_5810_459c_aabb_c65e1f813ecf); impl windows_core::RuntimeType for IEnclosureLocation { diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs index d542448fe57..94171965002 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/Geofencing/mod.rs @@ -117,8 +117,7 @@ impl GeofenceMonitor { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Geofences(&self) -> windows_core::Result> { + pub fn Geofences(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -146,8 +145,7 @@ impl GeofenceMonitor { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveGeofenceStateChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadReports(&self) -> windows_core::Result> { + pub fn ReadReports(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -350,17 +348,11 @@ impl windows_core::RuntimeType for IGeofenceMonitor { pub struct IGeofenceMonitor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GeofenceMonitorStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Geofences: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Geofences: usize, pub LastKnownGeoposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GeofenceStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveGeofenceStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ReadReports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadReports: usize, pub StatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs index aeeb8e115b0..a2801636a46 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs @@ -143,30 +143,27 @@ impl GeoboundingBox { (windows_core::Interface::vtable(this).CreateWithAltitudeReferenceAndSpatialReference)(windows_core::Interface::as_raw(this), northwestcorner, southeastcorner, altitudereferencesystem, spatialreferenceid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn TryCompute(positions: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryCompute)(windows_core::Interface::as_raw(this), positions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn TryComputeWithAltitudeReference(positions: P0, altituderefsystem: AltitudeReferenceSystem) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TryComputeWithAltitudeReference)(windows_core::Interface::as_raw(this), positions.param().abi(), altituderefsystem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn TryComputeWithAltitudeReferenceAndSpatialReference(positions: P0, altituderefsystem: AltitudeReferenceSystem, spatialreferenceid: u32) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IGeoboundingBoxStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -574,15 +571,13 @@ impl Geolocator { (windows_core::Interface::vtable(this).RequestAccessAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetGeopositionHistoryAsync(starttime: super::super::Foundation::DateTime) -> windows_core::Result>> { + pub fn GetGeopositionHistoryAsync(starttime: super::super::Foundation::DateTime) -> windows_core::Result>> { Self::IGeolocatorStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetGeopositionHistoryAsync)(windows_core::Interface::as_raw(this), starttime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetGeopositionHistoryWithDurationAsync(starttime: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan) -> windows_core::Result>> { + pub fn GetGeopositionHistoryWithDurationAsync(starttime: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan) -> windows_core::Result>> { Self::IGeolocatorStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetGeopositionHistoryWithDurationAsync)(windows_core::Interface::as_raw(this), starttime, duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -647,38 +642,34 @@ pub struct Geopath(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Geopath, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(Geopath, IGeoshape); impl Geopath { - #[cfg(feature = "Foundation_Collections")] - pub fn Positions(&self) -> windows_core::Result> { + pub fn Positions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Positions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(positions: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), positions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAltitudeReference(positions: P0, altitudereferencesystem: AltitudeReferenceSystem) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateWithAltitudeReference)(windows_core::Interface::as_raw(this), positions.param().abi(), altitudereferencesystem, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithAltitudeReferenceAndSpatialReference(positions: P0, altitudereferencesystem: AltitudeReferenceSystem, spatialreferenceid: u32) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IGeopathFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -979,8 +970,7 @@ unsafe impl Sync for GeovisitStateChangedEventArgs {} pub struct GeovisitTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(GeovisitTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); impl GeovisitTriggerDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadReports(&self) -> windows_core::Result> { + pub fn ReadReports(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1044,18 +1034,9 @@ impl windows_core::RuntimeType for IGeoboundingBoxStatics { #[repr(C)] pub struct IGeoboundingBoxStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub TryCompute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryCompute: usize, - #[cfg(feature = "Foundation_Collections")] pub TryComputeWithAltitudeReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, AltitudeReferenceSystem, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryComputeWithAltitudeReference: usize, - #[cfg(feature = "Foundation_Collections")] pub TryComputeWithAltitudeReferenceAndSpatialReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, AltitudeReferenceSystem, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryComputeWithAltitudeReferenceAndSpatialReference: usize, } windows_core::imp::define_interface!(IGeocircle, IGeocircle_Vtbl, 0x39e45843_a7f9_4e63_92a7_ba0c28d124b1); impl windows_core::RuntimeType for IGeocircle { @@ -1199,14 +1180,8 @@ impl windows_core::RuntimeType for IGeolocatorStatics { pub struct IGeolocatorStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub RequestAccessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetGeopositionHistoryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetGeopositionHistoryAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetGeopositionHistoryWithDurationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetGeopositionHistoryWithDurationAsync: usize, } windows_core::imp::define_interface!(IGeolocatorStatics2, IGeolocatorStatics2_Vtbl, 0x993011a2_fa1c_4631_a71d_0dbeb1250d9c); impl windows_core::RuntimeType for IGeolocatorStatics2 { @@ -1236,10 +1211,7 @@ impl windows_core::RuntimeType for IGeopath { #[repr(C)] pub struct IGeopath_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Positions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Positions: usize, } windows_core::imp::define_interface!(IGeopathFactory, IGeopathFactory_Vtbl, 0x27bea9c8_c7e7_4359_9b9b_fca3e05ef593); impl windows_core::RuntimeType for IGeopathFactory { @@ -1248,18 +1220,9 @@ impl windows_core::RuntimeType for IGeopathFactory { #[repr(C)] pub struct IGeopathFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithAltitudeReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, AltitudeReferenceSystem, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithAltitudeReference: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithAltitudeReferenceAndSpatialReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, AltitudeReferenceSystem, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithAltitudeReferenceAndSpatialReference: usize, } windows_core::imp::define_interface!(IGeopoint, IGeopoint_Vtbl, 0x6bfa00eb_e56e_49bb_9caf_cbaa78a8bcef); impl windows_core::RuntimeType for IGeopoint { @@ -1441,10 +1404,7 @@ impl windows_core::RuntimeType for IGeovisitTriggerDetails { #[repr(C)] pub struct IGeovisitTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadReports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadReports: usize, } windows_core::imp::define_interface!(IPositionChangedEventArgs, IPositionChangedEventArgs_Vtbl, 0x37859ce5_9d1e_46c5_bf3b_6ad8cac1a093); impl windows_core::RuntimeType for IPositionChangedEventArgs { diff --git a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs index 9fa0924ca4a..88beb4f45fc 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/Provider/mod.rs @@ -363,8 +363,7 @@ impl windows_core::RuntimeType for IGpioProvider { } windows_core::imp::interface_hierarchy!(IGpioProvider, windows_core::IUnknown, windows_core::IInspectable); impl IGpioProvider { - #[cfg(feature = "Foundation_Collections")] - pub fn GetControllers(&self) -> windows_core::Result> { + pub fn GetControllers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -372,15 +371,12 @@ impl IGpioProvider { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IGpioProvider { const NAME: &'static str = "Windows.Devices.Gpio.Provider.IGpioProvider"; } -#[cfg(feature = "Foundation_Collections")] pub trait IGpioProvider_Impl: windows_core::IUnknownImpl { - fn GetControllers(&self) -> windows_core::Result>; + fn GetControllers(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IGpioProvider_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -405,10 +401,7 @@ impl IGpioProvider_Vtbl { #[repr(C)] pub struct IGpioProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControllers: usize, } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs b/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs index 7178706d5aa..82415bb1568 100644 --- a/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Gpio/mod.rs @@ -184,8 +184,7 @@ impl GpioChangeReader { (windows_core::Interface::vtable(this).PeekNextItem)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllItems(&self) -> windows_core::Result> { + pub fn GetAllItems(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -285,8 +284,8 @@ impl GpioController { (windows_core::Interface::vtable(this).GetDefault)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Gpio_Provider", feature = "Foundation_Collections"))] - pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> + #[cfg(feature = "Devices_Gpio_Provider")] + pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -555,10 +554,7 @@ pub struct IGpioChangeReader_Vtbl { pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNextItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GpioChangeRecord) -> windows_core::HRESULT, pub PeekNextItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GpioChangeRecord) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAllItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllItems: usize, pub WaitForItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IGpioChangeReaderFactory, IGpioChangeReaderFactory_Vtbl, 0xa9598ef3_390e_441a_9d1c_e8de0b2df0df); @@ -599,9 +595,9 @@ impl windows_core::RuntimeType for IGpioControllerStatics2 { #[repr(C)] pub struct IGpioControllerStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Gpio_Provider", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Gpio_Provider")] pub GetControllersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Gpio_Provider", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Gpio_Provider"))] GetControllersAsync: usize, pub GetDefaultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs b/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs index 5a953347698..14bd9057961 100644 --- a/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Haptics/mod.rs @@ -37,10 +37,7 @@ impl windows_core::RuntimeType for ISimpleHapticsController { pub struct ISimpleHapticsController_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedFeedback: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedFeedback: usize, pub IsIntensitySupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsPlayCountSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsPlayDurationSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -82,10 +79,7 @@ pub struct IVibrationDeviceStatics_Vtbl { pub GetDeviceSelector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDefaultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, } pub struct KnownSimpleHapticsControllerWaveforms; impl KnownSimpleHapticsControllerWaveforms { @@ -203,8 +197,7 @@ impl SimpleHapticsController { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedFeedback(&self) -> windows_core::Result> { + pub fn SupportedFeedback(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -374,8 +367,7 @@ impl VibrationDevice { (windows_core::Interface::vtable(this).GetDefaultAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync() -> windows_core::Result>> { + pub fn FindAllAsync() -> windows_core::Result>> { Self::IVibrationDeviceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs index 79087e58925..c3fdecb1b20 100644 --- a/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/HumanInterfaceDevice/mod.rs @@ -95,8 +95,7 @@ impl HidBooleanControlDescription { (windows_core::Interface::vtable(this).UsageId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ParentCollections(&self) -> windows_core::Result> { + pub fn ParentCollections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -309,16 +308,14 @@ impl HidDevice { (windows_core::Interface::vtable(this).SendFeatureReportAsync)(windows_core::Interface::as_raw(this), featurereport.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetBooleanControlDescriptions(&self, reporttype: HidReportType, usagepage: u16, usageid: u16) -> windows_core::Result> { + pub fn GetBooleanControlDescriptions(&self, reporttype: HidReportType, usagepage: u16, usageid: u16) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetBooleanControlDescriptions)(windows_core::Interface::as_raw(this), reporttype, usagepage, usageid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNumericControlDescriptions(&self, reporttype: HidReportType, usagepage: u16, usageid: u16) -> windows_core::Result> { + pub fn GetNumericControlDescriptions(&self, reporttype: HidReportType, usagepage: u16, usageid: u16) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -470,16 +467,14 @@ impl HidInputReport { (windows_core::Interface::vtable(this).Data)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ActivatedBooleanControls(&self) -> windows_core::Result> { + pub fn ActivatedBooleanControls(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ActivatedBooleanControls)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TransitionedBooleanControls(&self) -> windows_core::Result> { + pub fn TransitionedBooleanControls(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -743,8 +738,7 @@ impl HidNumericControlDescription { (windows_core::Interface::vtable(this).HasNull)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ParentCollections(&self) -> windows_core::Result> { + pub fn ParentCollections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -879,10 +873,7 @@ pub struct IHidBooleanControlDescription_Vtbl { pub ReportType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut HidReportType) -> windows_core::HRESULT, pub UsagePage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub UsageId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ParentCollections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ParentCollections: usize, } windows_core::imp::define_interface!(IHidBooleanControlDescription2, IHidBooleanControlDescription2_Vtbl, 0xc8eed2ea_8a77_4c36_aa00_5ff0449d3e73); impl windows_core::RuntimeType for IHidBooleanControlDescription2 { @@ -927,14 +918,8 @@ pub struct IHidDevice_Vtbl { pub CreateFeatureReportById: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SendOutputReportAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SendFeatureReportAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetBooleanControlDescriptions: unsafe extern "system" fn(*mut core::ffi::c_void, HidReportType, u16, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetBooleanControlDescriptions: usize, - #[cfg(feature = "Foundation_Collections")] pub GetNumericControlDescriptions: unsafe extern "system" fn(*mut core::ffi::c_void, HidReportType, u16, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNumericControlDescriptions: usize, pub InputReportReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveInputReportReceived: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -985,14 +970,8 @@ pub struct IHidInputReport_Vtbl { pub Data: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] Data: usize, - #[cfg(feature = "Foundation_Collections")] pub ActivatedBooleanControls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ActivatedBooleanControls: usize, - #[cfg(feature = "Foundation_Collections")] pub TransitionedBooleanControls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransitionedBooleanControls: usize, pub GetBooleanControl: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetBooleanControlByDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNumericControl: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1046,10 +1025,7 @@ pub struct IHidNumericControlDescription_Vtbl { pub Unit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub IsAbsolute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub HasNull: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ParentCollections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ParentCollections: usize, } windows_core::imp::define_interface!(IHidOutputReport, IHidOutputReport_Vtbl, 0x62cb2544_c896_4463_93c1_df9db053c450); impl windows_core::RuntimeType for IHidOutputReport { diff --git a/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs index c7d75cefeae..fbdbdac1388 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/Provider/mod.rs @@ -215,8 +215,7 @@ impl windows_core::RuntimeType for II2cProvider { } windows_core::imp::interface_hierarchy!(II2cProvider, windows_core::IUnknown, windows_core::IInspectable); impl II2cProvider { - #[cfg(feature = "Foundation_Collections")] - pub fn GetControllersAsync(&self) -> windows_core::Result>> { + pub fn GetControllersAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -224,15 +223,12 @@ impl II2cProvider { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for II2cProvider { const NAME: &'static str = "Windows.Devices.I2c.Provider.II2cProvider"; } -#[cfg(feature = "Foundation_Collections")] pub trait II2cProvider_Impl: windows_core::IUnknownImpl { - fn GetControllersAsync(&self) -> windows_core::Result>>; + fn GetControllersAsync(&self) -> windows_core::Result>>; } -#[cfg(feature = "Foundation_Collections")] impl II2cProvider_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetControllersAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -257,10 +253,7 @@ impl II2cProvider_Vtbl { #[repr(C)] pub struct II2cProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetControllersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControllersAsync: usize, } windows_core::imp::define_interface!(IProviderI2cConnectionSettings, IProviderI2cConnectionSettings_Vtbl, 0xe9db4e34_e510_44b7_809d_f2f85b555339); impl windows_core::RuntimeType for IProviderI2cConnectionSettings { diff --git a/crates/libs/windows/src/Windows/Devices/I2c/mod.rs b/crates/libs/windows/src/Windows/Devices/I2c/mod.rs index c4176fa02d7..24e7b9f6a09 100644 --- a/crates/libs/windows/src/Windows/Devices/I2c/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/I2c/mod.rs @@ -89,8 +89,8 @@ impl I2cController { (windows_core::Interface::vtable(this).GetDevice)(windows_core::Interface::as_raw(this), settings.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_I2c_Provider", feature = "Foundation_Collections"))] - pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> + #[cfg(feature = "Devices_I2c_Provider")] + pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -297,9 +297,9 @@ impl windows_core::RuntimeType for II2cControllerStatics { #[repr(C)] pub struct II2cControllerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_I2c_Provider", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_I2c_Provider")] pub GetControllersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_I2c_Provider", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_I2c_Provider"))] GetControllersAsync: usize, pub GetDefaultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs b/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs index 6aecca70e35..211b5625c95 100644 --- a/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Input/Preview/mod.rs @@ -54,16 +54,16 @@ impl GazeDevicePreview { (windows_core::Interface::vtable(this).RequestCalibrationAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_HumanInterfaceDevice", feature = "Foundation_Collections"))] - pub fn GetNumericControlDescriptions(&self, usagepage: u16, usageid: u16) -> windows_core::Result> { + #[cfg(feature = "Devices_HumanInterfaceDevice")] + pub fn GetNumericControlDescriptions(&self, usagepage: u16, usageid: u16) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetNumericControlDescriptions)(windows_core::Interface::as_raw(this), usagepage, usageid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_HumanInterfaceDevice", feature = "Foundation_Collections"))] - pub fn GetBooleanControlDescriptions(&self, usagepage: u16, usageid: u16) -> windows_core::Result> { + #[cfg(feature = "Devices_HumanInterfaceDevice")] + pub fn GetBooleanControlDescriptions(&self, usagepage: u16, usageid: u16) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -411,8 +411,7 @@ impl GazeMovedPreviewEventArgs { (windows_core::Interface::vtable(this).CurrentPoint)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIntermediatePoints(&self) -> windows_core::Result> { + pub fn GetIntermediatePoints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -498,13 +497,13 @@ pub struct IGazeDevicePreview_Vtbl { pub CanTrackHead: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ConfigurationState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GazeDeviceConfigurationStatePreview) -> windows_core::HRESULT, pub RequestCalibrationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Devices_HumanInterfaceDevice", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_HumanInterfaceDevice")] pub GetNumericControlDescriptions: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_HumanInterfaceDevice", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_HumanInterfaceDevice"))] GetNumericControlDescriptions: usize, - #[cfg(all(feature = "Devices_HumanInterfaceDevice", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_HumanInterfaceDevice")] pub GetBooleanControlDescriptions: unsafe extern "system" fn(*mut core::ffi::c_void, u16, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_HumanInterfaceDevice", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_HumanInterfaceDevice"))] GetBooleanControlDescriptions: usize, } windows_core::imp::define_interface!(IGazeDeviceWatcherAddedPreviewEventArgs, IGazeDeviceWatcherAddedPreviewEventArgs_Vtbl, 0xe79e7eed_b389_11e7_b201_c8d3ffb75721); @@ -608,10 +607,7 @@ pub struct IGazeMovedPreviewEventArgs_Vtbl { pub Handled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub CurrentPoint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetIntermediatePoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetIntermediatePoints: usize, } windows_core::imp::define_interface!(IGazePointPreview, IGazePointPreview_Vtbl, 0xe79e7eea_b389_11e7_b201_c8d3ffb75721); impl windows_core::RuntimeType for IGazePointPreview { diff --git a/crates/libs/windows/src/Windows/Devices/Input/mod.rs b/crates/libs/windows/src/Windows/Devices/Input/mod.rs index 034e82afeed..a73d3ec2afb 100644 --- a/crates/libs/windows/src/Windows/Devices/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Input/mod.rs @@ -182,10 +182,7 @@ pub struct IPointerDevice_Vtbl { pub MaxContacts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub PhysicalDeviceRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Rect) -> windows_core::HRESULT, pub ScreenRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Rect) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedUsages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedUsages: usize, } windows_core::imp::define_interface!(IPointerDevice2, IPointerDevice2_Vtbl, 0xf8a6d2a0_c484_489f_ae3e_30d2ee1ffd3e); impl windows_core::RuntimeType for IPointerDevice2 { @@ -204,10 +201,7 @@ impl windows_core::RuntimeType for IPointerDeviceStatics { pub struct IPointerDeviceStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetPointerDevice: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetPointerDevices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPointerDevices: usize, } windows_core::imp::define_interface!(ITouchCapabilities, ITouchCapabilities_Vtbl, 0x20dd55f9_13f1_46c8_9285_2c05fa3eda6f); impl windows_core::RuntimeType for ITouchCapabilities { @@ -722,8 +716,7 @@ impl PointerDevice { (windows_core::Interface::vtable(this).ScreenRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedUsages(&self) -> windows_core::Result> { + pub fn SupportedUsages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -743,8 +736,7 @@ impl PointerDevice { (windows_core::Interface::vtable(this).GetPointerDevice)(windows_core::Interface::as_raw(this), pointerid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPointerDevices() -> windows_core::Result> { + pub fn GetPointerDevices() -> windows_core::Result> { Self::IPointerDeviceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPointerDevices)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs b/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs index a84d66db65e..8c982e8be73 100644 --- a/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Lights/Effects/mod.rs @@ -217,18 +217,9 @@ impl windows_core::RuntimeType for ILampArrayEffectPlaylistStatics { #[repr(C)] pub struct ILampArrayEffectPlaylistStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub StartAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartAll: usize, - #[cfg(feature = "Foundation_Collections")] pub StopAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StopAll: usize, - #[cfg(feature = "Foundation_Collections")] pub PauseAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PauseAll: usize, } windows_core::imp::define_interface!(ILampArraySolidEffect, ILampArraySolidEffect_Vtbl, 0x441f8213_43cc_4b33_80eb_c6ddde7dc8ed); impl windows_core::RuntimeType for ILampArraySolidEffect { @@ -730,15 +721,11 @@ impl windows_core::TypeKind for LampArrayEffectCompletionBehavior { impl windows_core::RuntimeType for LampArrayEffectCompletionBehavior { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Devices.Lights.Effects.LampArrayEffectCompletionBehavior;i4)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct LampArrayEffectPlaylist(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(LampArrayEffectPlaylist, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(LampArrayEffectPlaylist, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(LampArrayEffectPlaylist, windows_collections::IIterable, windows_collections::IVectorView); impl LampArrayEffectPlaylist { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -747,8 +734,8 @@ impl LampArrayEffectPlaylist { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -812,31 +799,31 @@ impl LampArrayEffectPlaylist { } pub fn StartAll(value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).StartAll)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn StopAll(value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).StopAll)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn PauseAll(value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ILampArrayEffectPlaylistStatics(|this| unsafe { (windows_core::Interface::vtable(this).PauseAll)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) @@ -846,14 +833,14 @@ impl LampArrayEffectPlaylist { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) @@ -864,35 +851,28 @@ impl LampArrayEffectPlaylist { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for LampArrayEffectPlaylist { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for LampArrayEffectPlaylist { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for LampArrayEffectPlaylist { const NAME: &'static str = "Windows.Devices.Lights.Effects.LampArrayEffectPlaylist"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for LampArrayEffectPlaylist {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for LampArrayEffectPlaylist {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for LampArrayEffectPlaylist { type Item = ILampArrayEffect; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &LampArrayEffectPlaylist { type Item = ILampArrayEffect; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } diff --git a/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs index 196432951b5..82be3daaa78 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/Provider/mod.rs @@ -430,8 +430,7 @@ impl BarcodeScannerProviderConnection { (windows_core::Interface::vtable(this).VideoDeviceId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedSymbologies(&self) -> windows_core::Result> { + pub fn SupportedSymbologies(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -695,8 +694,7 @@ unsafe impl Sync for BarcodeScannerProviderTriggerDetails {} pub struct BarcodeScannerSetActiveSymbologiesRequest(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(BarcodeScannerSetActiveSymbologiesRequest, windows_core::IUnknown, windows_core::IInspectable); impl BarcodeScannerSetActiveSymbologiesRequest { - #[cfg(feature = "Foundation_Collections")] - pub fn Symbologies(&self) -> windows_core::Result> { + pub fn Symbologies(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1308,10 +1306,7 @@ pub struct IBarcodeScannerProviderConnection_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub VideoDeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedSymbologies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedSymbologies: usize, pub CompanyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCompanyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1373,10 +1368,7 @@ impl windows_core::RuntimeType for IBarcodeScannerSetActiveSymbologiesRequest { #[repr(C)] pub struct IBarcodeScannerSetActiveSymbologiesRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Symbologies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Symbologies: usize, pub ReportCompletedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReportFailedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs b/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs index efee8056201..e0687ff0660 100644 --- a/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/PointOfService/mod.rs @@ -34,8 +34,7 @@ impl BarcodeScanner { (windows_core::Interface::vtable(this).CheckHealthAsync)(windows_core::Interface::as_raw(this), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedSymbologiesAsync(&self) -> windows_core::Result>> { + pub fn GetSupportedSymbologiesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -49,10 +48,10 @@ impl BarcodeScanner { (windows_core::Interface::vtable(this).IsSymbologySupportedAsync)(windows_core::Interface::as_raw(this), barcodesymbology, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn RetrieveStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -60,8 +59,7 @@ impl BarcodeScanner { (windows_core::Interface::vtable(this).RetrieveStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedProfiles(&self) -> windows_core::Result> { + pub fn GetSupportedProfiles(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1146,10 +1144,9 @@ impl CashDrawer { (windows_core::Interface::vtable(this).CheckHealthAsync)(windows_core::Interface::as_raw(this), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1592,10 +1589,9 @@ impl ClaimedBarcodeScanner { let this = self; unsafe { (windows_core::Interface::vtable(this).RetainDevice)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn SetActiveSymbologiesAsync(&self, symbologies: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1603,10 +1599,9 @@ impl ClaimedBarcodeScanner { (windows_core::Interface::vtable(this).SetActiveSymbologiesAsync)(windows_core::Interface::as_raw(this), symbologies.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1614,10 +1609,9 @@ impl ClaimedBarcodeScanner { (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -1879,10 +1873,9 @@ impl ClaimedCashDrawer { (windows_core::Interface::vtable(this).RetainDeviceAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1890,10 +1883,9 @@ impl ClaimedCashDrawer { (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result> where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -2187,10 +2179,9 @@ impl ClaimedLineDisplay { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveReleaseDeviceRequested)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2226,8 +2217,7 @@ impl ClaimedLineDisplay { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveStatusUpdated)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedScreenSizesInCharacters(&self) -> windows_core::Result> { + pub fn SupportedScreenSizesInCharacters(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2241,8 +2231,7 @@ impl ClaimedLineDisplay { (windows_core::Interface::vtable(this).MaxBitmapSizeInPixels)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCharacterSets(&self) -> windows_core::Result> { + pub fn SupportedCharacterSets(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2530,10 +2519,9 @@ impl ClaimedMagneticStripeReader { (windows_core::Interface::vtable(this).UpdateKeyAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), core::mem::transmute_copy(keyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2541,10 +2529,9 @@ impl ClaimedMagneticStripeReader { (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -2772,10 +2759,9 @@ impl ClaimedPosPrinter { (windows_core::Interface::vtable(this).RetainDeviceAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ResetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2783,10 +2769,9 @@ impl ClaimedPosPrinter { (windows_core::Interface::vtable(this).ResetStatisticsAsync)(windows_core::Interface::as_raw(this), statisticscategories.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateStatisticsAsync(&self, statistics: P0) -> windows_core::Result> where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -3265,19 +3250,13 @@ pub struct IBarcodeScanner_Vtbl { pub Capabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClaimScannerAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CheckHealthAsync: unsafe extern "system" fn(*mut core::ffi::c_void, UnifiedPosHealthCheckLevel, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedSymbologiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedSymbologiesAsync: usize, pub IsSymbologySupportedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub RetrieveStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] RetrieveStatisticsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedProfiles: usize, pub IsProfileSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub StatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -3558,10 +3537,7 @@ pub struct ICashDrawer_Vtbl { pub DrawerEventSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClaimDrawerAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CheckHealthAsync: unsafe extern "system" fn(*mut core::ffi::c_void, UnifiedPosHealthCheckLevel, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStatisticsAsync: usize, pub StatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -3711,18 +3687,9 @@ pub struct IClaimedBarcodeScanner_Vtbl { pub EnableAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RetainDevice: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetActiveSymbologiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetActiveSymbologiesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub ResetStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResetStatisticsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub UpdateStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateStatisticsAsync: usize, pub SetActiveProfileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -3802,14 +3769,8 @@ pub struct IClaimedCashDrawer_Vtbl { pub EnableAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RetainDeviceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ResetStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResetStatisticsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub UpdateStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateStatisticsAsync: usize, pub ReleaseDeviceRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveReleaseDeviceRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -3866,23 +3827,14 @@ impl windows_core::RuntimeType for IClaimedLineDisplay2 { #[repr(C)] pub struct IClaimedLineDisplay2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStatisticsAsync: usize, pub CheckHealthAsync: unsafe extern "system" fn(*mut core::ffi::c_void, UnifiedPosHealthCheckLevel, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CheckPowerStatusAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub StatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedScreenSizesInCharacters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedScreenSizesInCharacters: usize, pub MaxBitmapSizeInPixels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Size) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedCharacterSets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCharacterSets: usize, pub CustomGlyphs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryUpdateAttributesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3962,14 +3914,8 @@ pub struct IClaimedMagneticStripeReader_Vtbl { pub AuthenticateDeviceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeAuthenticateDeviceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UpdateKeyAsync: 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, - #[cfg(feature = "Foundation_Collections")] pub ResetStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResetStatisticsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub UpdateStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateStatisticsAsync: usize, pub BankCardDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveBankCardDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub AamvaCardDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -4021,14 +3967,8 @@ pub struct IClaimedPosPrinter_Vtbl { pub EnableAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RetainDeviceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ResetStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResetStatisticsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub UpdateStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateStatisticsAsync: usize, pub ReleaseDeviceRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveReleaseDeviceRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -4574,8 +4514,7 @@ impl ICommonPosPrintStationCapabilities { (windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { + pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4583,11 +4522,9 @@ impl ICommonPosPrintStationCapabilities { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ICommonPosPrintStationCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.ICommonPosPrintStationCapabilities"; } -#[cfg(feature = "Foundation_Collections")] pub trait ICommonPosPrintStationCapabilities_Impl: windows_core::IUnknownImpl { fn IsPrinterPresent(&self) -> windows_core::Result; fn IsDualColorSupported(&self) -> windows_core::Result; @@ -4601,9 +4538,8 @@ pub trait ICommonPosPrintStationCapabilities_Impl: windows_core::IUnknownImpl { fn IsDoubleHighDoubleWidePrintSupported(&self) -> windows_core::Result; fn IsPaperEmptySensorSupported(&self) -> windows_core::Result; fn IsPaperNearEndSensorSupported(&self) -> windows_core::Result; - fn SupportedCharactersPerLine(&self) -> windows_core::Result>; + fn SupportedCharactersPerLine(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl ICommonPosPrintStationCapabilities_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn IsPrinterPresent(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { @@ -4799,10 +4735,7 @@ pub struct ICommonPosPrintStationCapabilities_Vtbl { pub IsDoubleHighDoubleWidePrintSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsPaperEmptySensorSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsPaperNearEndSensorSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedCharactersPerLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCharactersPerLine: usize, } windows_core::imp::define_interface!(ICommonReceiptSlipCapabilities, ICommonReceiptSlipCapabilities_Vtbl, 0x09286b8b_9873_4d05_bfbe_4727a6038f69); impl windows_core::RuntimeType for ICommonReceiptSlipCapabilities { @@ -4860,16 +4793,14 @@ impl ICommonReceiptSlipCapabilities { (windows_core::Interface::vtable(this).RuledLineCapabilities)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedBarcodeRotations(&self) -> windows_core::Result> { + pub fn SupportedBarcodeRotations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedBarcodeRotations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedBitmapRotations(&self) -> windows_core::Result> { + pub fn SupportedBitmapRotations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4960,8 +4891,7 @@ impl ICommonReceiptSlipCapabilities { (windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { + pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4969,11 +4899,9 @@ impl ICommonReceiptSlipCapabilities { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ICommonReceiptSlipCapabilities { const NAME: &'static str = "Windows.Devices.PointOfService.ICommonReceiptSlipCapabilities"; } -#[cfg(feature = "Foundation_Collections")] pub trait ICommonReceiptSlipCapabilities_Impl: ICommonPosPrintStationCapabilities_Impl { fn IsBarcodeSupported(&self) -> windows_core::Result; fn IsBitmapSupported(&self) -> windows_core::Result; @@ -4982,10 +4910,9 @@ pub trait ICommonReceiptSlipCapabilities_Impl: ICommonPosPrintStationCapabilitie fn Is180RotationSupported(&self) -> windows_core::Result; fn IsPrintAreaSupported(&self) -> windows_core::Result; fn RuledLineCapabilities(&self) -> windows_core::Result; - fn SupportedBarcodeRotations(&self) -> windows_core::Result>; - fn SupportedBitmapRotations(&self) -> windows_core::Result>; + fn SupportedBarcodeRotations(&self) -> windows_core::Result>; + fn SupportedBitmapRotations(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl ICommonReceiptSlipCapabilities_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn IsBarcodeSupported(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { @@ -5125,14 +5052,8 @@ pub struct ICommonReceiptSlipCapabilities_Vtbl { pub Is180RotationSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsPrintAreaSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub RuledLineCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PosPrinterRuledLineCapabilities) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedBarcodeRotations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedBarcodeRotations: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedBitmapRotations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedBitmapRotations: usize, } windows_core::imp::define_interface!(IJournalPrintJob, IJournalPrintJob_Vtbl, 0x9f4f2864_f3f0_55d0_8c39_74cc91783eed); impl windows_core::RuntimeType for IJournalPrintJob { @@ -5281,10 +5202,7 @@ impl windows_core::RuntimeType for ILineDisplayCustomGlyphs { pub struct ILineDisplayCustomGlyphs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SizeInPixels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Size) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedGlyphCodes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedGlyphCodes: usize, #[cfg(feature = "Storage_Streams")] pub TryRedefineAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -5419,9 +5337,9 @@ pub struct IMagneticStripeReader_Vtbl { pub DeviceAuthenticationProtocol: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MagneticStripeReaderAuthenticationProtocol) -> windows_core::HRESULT, pub CheckHealthAsync: unsafe extern "system" fn(*mut core::ffi::c_void, UnifiedPosHealthCheckLevel, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClaimReaderAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub RetrieveStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] RetrieveStatisticsAsync: usize, pub GetErrorReportingType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MagneticStripeReaderErrorReportingType) -> windows_core::HRESULT, pub StatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -5539,10 +5457,7 @@ pub struct IMagneticStripeReaderReport_Vtbl { pub Track2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Track3: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Track4: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, #[cfg(feature = "Storage_Streams")] pub CardAuthenticationData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -5621,21 +5536,12 @@ pub struct IPosPrinter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub DeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Capabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedCharacterSets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCharacterSets: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedTypeFaces: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedTypeFaces: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClaimPrinterAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CheckHealthAsync: unsafe extern "system" fn(*mut core::ffi::c_void, UnifiedPosHealthCheckLevel, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetStatisticsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStatisticsAsync: usize, pub StatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveStatusUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -5646,10 +5552,7 @@ impl windows_core::RuntimeType for IPosPrinter2 { #[repr(C)] pub struct IPosPrinter2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedBarcodeSymbologies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedBarcodeSymbologies: usize, pub GetFontProperty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPosPrinterCapabilities, IPosPrinterCapabilities_Vtbl, 0xcde95721_4380_4985_adc5_39db30cd93bc); @@ -5690,10 +5593,7 @@ pub struct IPosPrinterFontProperty_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TypeFace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsScalableToAnySize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CharacterSizes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CharacterSizes: usize, } windows_core::imp::define_interface!(IPosPrinterJob, IPosPrinterJob_Vtbl, 0x9a94005c_0615_4591_a58f_30f87edfe2e4); impl windows_core::RuntimeType for IPosPrinterJob { @@ -6410,8 +6310,7 @@ impl JournalPrinterCapabilities { (windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { + pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -7014,8 +6913,7 @@ impl LineDisplayCustomGlyphs { (windows_core::Interface::vtable(this).SizeInPixels)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedGlyphCodes(&self) -> windows_core::Result> { + pub fn SupportedGlyphCodes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -7544,10 +7442,10 @@ impl MagneticStripeReader { (windows_core::Interface::vtable(this).ClaimReaderAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn RetrieveStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -8150,8 +8048,7 @@ impl MagneticStripeReaderReport { (windows_core::Interface::vtable(this).Track4)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -8412,16 +8309,14 @@ impl PosPrinter { (windows_core::Interface::vtable(this).Capabilities)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCharacterSets(&self) -> windows_core::Result> { + pub fn SupportedCharacterSets(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedCharacterSets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedTypeFaces(&self) -> windows_core::Result> { + pub fn SupportedTypeFaces(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -8449,10 +8344,9 @@ impl PosPrinter { (windows_core::Interface::vtable(this).CheckHealthAsync)(windows_core::Interface::as_raw(this), level, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetStatisticsAsync(&self, statisticscategories: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -8474,8 +8368,7 @@ impl PosPrinter { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveStatusUpdated)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedBarcodeSymbologies(&self) -> windows_core::Result> { + pub fn SupportedBarcodeSymbologies(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -8824,8 +8717,7 @@ impl PosPrinterFontProperty { (windows_core::Interface::vtable(this).IsScalableToAnySize)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CharacterSizes(&self) -> windows_core::Result> { + pub fn CharacterSizes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -9537,8 +9429,7 @@ impl ReceiptPrinterCapabilities { (windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { + pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -9594,16 +9485,14 @@ impl ReceiptPrinterCapabilities { (windows_core::Interface::vtable(this).RuledLineCapabilities)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedBarcodeRotations(&self) -> windows_core::Result> { + pub fn SupportedBarcodeRotations(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedBarcodeRotations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedBitmapRotations(&self) -> windows_core::Result> { + pub fn SupportedBitmapRotations(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -9933,8 +9822,7 @@ impl SlipPrinterCapabilities { (windows_core::Interface::vtable(this).IsPaperNearEndSensorSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { + pub fn SupportedCharactersPerLine(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -9990,16 +9878,14 @@ impl SlipPrinterCapabilities { (windows_core::Interface::vtable(this).RuledLineCapabilities)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedBarcodeRotations(&self) -> windows_core::Result> { + pub fn SupportedBarcodeRotations(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedBarcodeRotations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedBitmapRotations(&self) -> windows_core::Result> { + pub fn SupportedBitmapRotations(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Power/mod.rs b/crates/libs/windows/src/Windows/Devices/Power/mod.rs index 3fbe6b1c4df..3277c541bc7 100644 --- a/crates/libs/windows/src/Windows/Devices/Power/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Power/mod.rs @@ -178,10 +178,7 @@ pub struct IPowerGridForecast_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub StartTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub BlockDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Forecast: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Forecast: usize, } windows_core::imp::define_interface!(IPowerGridForecastStatics, IPowerGridForecastStatics_Vtbl, 0x5b78c806_2e4e_5bcc_bb34_cb81c60f9e12); impl windows_core::RuntimeType for IPowerGridForecastStatics { @@ -245,8 +242,7 @@ impl PowerGridForecast { (windows_core::Interface::vtable(this).BlockDuration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Forecast(&self) -> windows_core::Result> { + pub fn Forecast(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Printers/mod.rs b/crates/libs/windows/src/Windows/Devices/Printers/mod.rs index 7da1d2ab980..7508c79315b 100644 --- a/crates/libs/windows/src/Windows/Devices/Printers/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Printers/mod.rs @@ -9,10 +9,7 @@ pub struct IIppAttributeError_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Reason: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IppAttributeErrorReason) -> windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetUnsupportedValues: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUnsupportedValues: usize, } windows_core::imp::define_interface!(IIppAttributeValue, IIppAttributeValue_Vtbl, 0x99407fed_e2bb_59a3_988b_28a974052a26); impl windows_core::RuntimeType for IIppAttributeValue { @@ -22,78 +19,27 @@ impl windows_core::RuntimeType for IIppAttributeValue { pub struct IIppAttributeValue_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IppAttributeValueKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetIntegerArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetIntegerArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetBooleanArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetBooleanArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetEnumArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetEnumArray: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetOctetStringArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetOctetStringArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetDateTimeArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDateTimeArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetResolutionArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetResolutionArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetRangeOfIntegerArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRangeOfIntegerArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetCollectionArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCollectionArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetTextWithLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTextWithLanguageArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetNameWithLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNameWithLanguageArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetTextWithoutLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTextWithoutLanguageArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetNameWithoutLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNameWithoutLanguageArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetKeywordArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetKeywordArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetUriArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUriArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetUriSchemaArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUriSchemaArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetCharsetArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCharsetArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetNaturalLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNaturalLanguageArray: usize, - #[cfg(feature = "Foundation_Collections")] pub GetMimeMediaTypeArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMimeMediaTypeArray: usize, } windows_core::imp::define_interface!(IIppAttributeValueStatics, IIppAttributeValueStatics_Vtbl, 0x10d43942_dd94_5998_b235_afafb6fa7935); impl windows_core::RuntimeType for IIppAttributeValueStatics { @@ -106,101 +52,47 @@ pub struct IIppAttributeValueStatics_Vtbl { pub CreateUnknown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateNoValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateInteger: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateIntegerArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateIntegerArray: usize, pub CreateBoolean: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateBooleanArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateBooleanArray: usize, pub CreateEnum: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateEnumArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateEnumArray: usize, #[cfg(feature = "Storage_Streams")] pub CreateOctetString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] CreateOctetString: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub CreateOctetStringArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] CreateOctetStringArray: usize, pub CreateDateTime: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateDateTimeArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateDateTimeArray: usize, pub CreateResolution: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateResolutionArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateResolutionArray: usize, pub CreateRangeOfInteger: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateRangeOfIntegerArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateRangeOfIntegerArray: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCollection: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateCollectionArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCollectionArray: usize, pub CreateTextWithLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateTextWithLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateTextWithLanguageArray: usize, pub CreateNameWithLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateNameWithLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateNameWithLanguageArray: usize, pub CreateTextWithoutLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateTextWithoutLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateTextWithoutLanguageArray: usize, pub CreateNameWithoutLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateNameWithoutLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateNameWithoutLanguageArray: usize, pub CreateKeyword: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateKeywordArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateKeywordArray: usize, pub CreateUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateUriArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateUriArray: usize, pub CreateUriSchema: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateUriSchemaArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateUriSchemaArray: usize, pub CreateCharset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateCharsetArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCharsetArray: usize, pub CreateNaturalLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateNaturalLanguageArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateNaturalLanguageArray: usize, pub CreateMimeMedia: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateMimeMediaArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateMimeMediaArray: usize, } windows_core::imp::define_interface!(IIppIntegerRange, IIppIntegerRange_Vtbl, 0x92907346_c3ea_5ed6_bdb1_3752c62c6f7f); impl windows_core::RuntimeType for IIppIntegerRange { @@ -230,22 +122,16 @@ pub struct IIppPrintDevice_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PrinterName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PrinterUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetPrinterAttributesAsBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetPrinterAttributesAsBuffer: usize, - #[cfg(feature = "Foundation_Collections")] pub GetPrinterAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPrinterAttributes: usize, #[cfg(feature = "Storage_Streams")] pub SetPrinterAttributesFromBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] SetPrinterAttributesFromBuffer: usize, - #[cfg(feature = "Foundation_Collections")] pub SetPrinterAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetPrinterAttributes: usize, } windows_core::imp::define_interface!(IIppPrintDevice2, IIppPrintDevice2_Vtbl, 0xf7c844c9_9d21_5c63_ac20_3676915be2d7); impl windows_core::RuntimeType for IIppPrintDevice2 { @@ -328,10 +214,7 @@ impl windows_core::RuntimeType for IIppSetAttributesResult { pub struct IIppSetAttributesResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Succeeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AttributeErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AttributeErrors: usize, } windows_core::imp::define_interface!(IIppTextWithLanguage, IIppTextWithLanguage_Vtbl, 0x326447a6_5149_5936_90e8_0c736036bf77); impl windows_core::RuntimeType for IIppTextWithLanguage { @@ -371,10 +254,7 @@ impl windows_core::RuntimeType for IPdlPassthroughProvider { #[repr(C)] pub struct IPdlPassthroughProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedPdlContentTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedPdlContentTypes: usize, #[cfg(feature = "Graphics_Printing")] pub StartPrintJobWithTaskOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics_Printing"))] @@ -456,8 +336,7 @@ impl IppAttributeError { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetUnsupportedValues(&self) -> windows_core::Result> { + pub fn GetUnsupportedValues(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -505,144 +384,127 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIntegerArray(&self) -> windows_core::Result> { + pub fn GetIntegerArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetIntegerArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetBooleanArray(&self) -> windows_core::Result> { + pub fn GetBooleanArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetBooleanArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetEnumArray(&self) -> windows_core::Result> { + pub fn GetEnumArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetEnumArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetOctetStringArray(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn GetOctetStringArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetOctetStringArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetDateTimeArray(&self) -> windows_core::Result> { + pub fn GetDateTimeArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDateTimeArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetResolutionArray(&self) -> windows_core::Result> { + pub fn GetResolutionArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetResolutionArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRangeOfIntegerArray(&self) -> windows_core::Result> { + pub fn GetRangeOfIntegerArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetRangeOfIntegerArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCollectionArray(&self) -> windows_core::Result>> { + pub fn GetCollectionArray(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCollectionArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTextWithLanguageArray(&self) -> windows_core::Result> { + pub fn GetTextWithLanguageArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetTextWithLanguageArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNameWithLanguageArray(&self) -> windows_core::Result> { + pub fn GetNameWithLanguageArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetNameWithLanguageArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTextWithoutLanguageArray(&self) -> windows_core::Result> { + pub fn GetTextWithoutLanguageArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetTextWithoutLanguageArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNameWithoutLanguageArray(&self) -> windows_core::Result> { + pub fn GetNameWithoutLanguageArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetNameWithoutLanguageArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetKeywordArray(&self) -> windows_core::Result> { + pub fn GetKeywordArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetKeywordArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetUriArray(&self) -> windows_core::Result> { + pub fn GetUriArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetUriArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetUriSchemaArray(&self) -> windows_core::Result> { + pub fn GetUriSchemaArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetUriSchemaArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCharsetArray(&self) -> windows_core::Result> { + pub fn GetCharsetArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCharsetArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNaturalLanguageArray(&self) -> windows_core::Result> { + pub fn GetNaturalLanguageArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetNaturalLanguageArray)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMimeMediaTypeArray(&self) -> windows_core::Result> { + pub fn GetMimeMediaTypeArray(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -673,10 +535,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateInteger)(windows_core::Interface::as_raw(this), value, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateIntegerArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -689,10 +550,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateBoolean)(windows_core::Interface::as_raw(this), value, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateBooleanArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -705,10 +565,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateEnum)(windows_core::Interface::as_raw(this), value, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateEnumArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -725,10 +584,10 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateOctetString)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn CreateOctetStringArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -741,10 +600,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateDateTime)(windows_core::Interface::as_raw(this), value, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -760,10 +618,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateResolution)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateResolutionArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -779,30 +636,27 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateRangeOfInteger)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateRangeOfIntegerArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateRangeOfIntegerArray)(windows_core::Interface::as_raw(this), values.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCollection(memberattributes: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCollection)(windows_core::Interface::as_raw(this), memberattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCollectionArray(memberattributesarray: P0) -> windows_core::Result where - P0: windows_core::Param>>>, + P0: windows_core::Param>>>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -818,10 +672,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateTextWithLanguage)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateTextWithLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -837,10 +690,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateNameWithLanguage)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateNameWithLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -853,10 +705,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateTextWithoutLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateTextWithoutLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -869,10 +720,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateNameWithoutLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateNameWithoutLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -885,10 +735,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateKeyword)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateKeywordArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -904,10 +753,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateUri)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateUriArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -920,10 +768,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateUriSchema)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateUriSchemaArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -936,10 +783,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateCharset)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCharsetArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -952,10 +798,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateNaturalLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateNaturalLanguageArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -968,10 +813,9 @@ impl IppAttributeValue { (windows_core::Interface::vtable(this).CreateMimeMedia)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateMimeMediaArray(values: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IIppAttributeValueStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1088,10 +932,10 @@ impl IppPrintDevice { (windows_core::Interface::vtable(this).PrinterUri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn GetPrinterAttributesAsBuffer(&self, attributenames: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1099,10 +943,9 @@ impl IppPrintDevice { (windows_core::Interface::vtable(this).GetPrinterAttributesAsBuffer)(windows_core::Interface::as_raw(this), attributenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPrinterAttributes(&self, attributenames: P0) -> windows_core::Result> + pub fn GetPrinterAttributes(&self, attributenames: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1121,10 +964,9 @@ impl IppPrintDevice { (windows_core::Interface::vtable(this).SetPrinterAttributesFromBuffer)(windows_core::Interface::as_raw(this), printerattributesbuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetPrinterAttributes(&self, printerattributes: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -1337,8 +1179,7 @@ impl IppSetAttributesResult { (windows_core::Interface::vtable(this).Succeeded)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeErrors(&self) -> windows_core::Result> { + pub fn AttributeErrors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1465,8 +1306,7 @@ impl windows_core::RuntimeType for PageConfigurationSource { pub struct PdlPassthroughProvider(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PdlPassthroughProvider, windows_core::IUnknown, windows_core::IInspectable); impl PdlPassthroughProvider { - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedPdlContentTypes(&self) -> windows_core::Result> { + pub fn SupportedPdlContentTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs index 53b3a9d87d0..cd57b8faba1 100644 --- a/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Pwm/Provider/mod.rs @@ -205,8 +205,7 @@ impl windows_core::RuntimeType for IPwmProvider { } windows_core::imp::interface_hierarchy!(IPwmProvider, windows_core::IUnknown, windows_core::IInspectable); impl IPwmProvider { - #[cfg(feature = "Foundation_Collections")] - pub fn GetControllers(&self) -> windows_core::Result> { + pub fn GetControllers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -214,15 +213,12 @@ impl IPwmProvider { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IPwmProvider { const NAME: &'static str = "Windows.Devices.Pwm.Provider.IPwmProvider"; } -#[cfg(feature = "Foundation_Collections")] pub trait IPwmProvider_Impl: windows_core::IUnknownImpl { - fn GetControllers(&self) -> windows_core::Result>; + fn GetControllers(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IPwmProvider_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetControllers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -247,8 +243,5 @@ impl IPwmProvider_Vtbl { #[repr(C)] pub struct IPwmProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControllers: usize, } diff --git a/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs b/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs index 09a7a12d4de..e1d1e146f4d 100644 --- a/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Pwm/mod.rs @@ -21,9 +21,9 @@ impl windows_core::RuntimeType for IPwmControllerStatics { #[repr(C)] pub struct IPwmControllerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Pwm_Provider", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Pwm_Provider")] pub GetControllersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Pwm_Provider", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Pwm_Provider"))] GetControllersAsync: usize, } windows_core::imp::define_interface!(IPwmControllerStatics2, IPwmControllerStatics2_Vtbl, 0x44fc5b1f_f119_4bdd_97ad_f76ef986736d); @@ -109,8 +109,8 @@ impl PwmController { (windows_core::Interface::vtable(this).OpenPin)(windows_core::Interface::as_raw(this), pinnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Pwm_Provider", feature = "Foundation_Collections"))] - pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> + #[cfg(feature = "Devices_Pwm_Provider")] + pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/Devices/Radios/mod.rs b/crates/libs/windows/src/Windows/Devices/Radios/mod.rs index fecf16de9e9..617834c4e01 100644 --- a/crates/libs/windows/src/Windows/Devices/Radios/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Radios/mod.rs @@ -19,10 +19,7 @@ impl windows_core::RuntimeType for IRadioStatics { #[repr(C)] pub struct IRadioStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetRadiosAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRadiosAsync: usize, pub GetDeviceSelector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestAccessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -74,8 +71,7 @@ impl Radio { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRadiosAsync() -> windows_core::Result>> { + pub fn GetRadiosAsync() -> windows_core::Result>> { Self::IRadioStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetRadiosAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs b/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs index 788151713ed..f9ec03ec632 100644 --- a/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Scanners/mod.rs @@ -183,9 +183,9 @@ impl windows_core::RuntimeType for IImageScannerScanResult { #[repr(C)] pub struct IImageScannerScanResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ScannedFiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ScannedFiles: usize, } windows_core::imp::define_interface!(IImageScannerSourceConfiguration, IImageScannerSourceConfiguration_Vtbl, 0xbfb50055_0b44_4c82_9e89_205f9c234e59); @@ -1642,8 +1642,8 @@ impl windows_core::RuntimeType for ImageScannerResolution { pub struct ImageScannerScanResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ImageScannerScanResult, windows_core::IUnknown, windows_core::IInspectable); impl ImageScannerScanResult { - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn ScannedFiles(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn ScannedFiles(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs b/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs index 5778261dd88..4996eae1f52 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/Custom/mod.rs @@ -108,8 +108,7 @@ impl CustomSensorReading { (windows_core::Interface::vtable(this).Timestamp)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -195,10 +194,7 @@ impl windows_core::RuntimeType for ICustomSensorReading { pub struct ICustomSensorReading_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Timestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(ICustomSensorReading2, ICustomSensorReading2_Vtbl, 0x223c98ea_bf73_4992_9a48_d3c897594ccb); impl windows_core::RuntimeType for ICustomSensorReading2 { diff --git a/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs index 5ca211c2b70..8d396168bd4 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs @@ -250,8 +250,7 @@ impl AccelerometerReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -347,8 +346,7 @@ impl ActivitySensor { (windows_core::Interface::vtable(this).GetCurrentReadingAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SubscribedActivities(&self) -> windows_core::Result> { + pub fn SubscribedActivities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -369,8 +367,7 @@ impl ActivitySensor { (windows_core::Interface::vtable(this).DeviceId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedActivities(&self) -> windows_core::Result> { + pub fn SupportedActivities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -416,15 +413,13 @@ impl ActivitySensor { (windows_core::Interface::vtable(this).FromIdAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSystemHistoryAsync(fromtime: super::super::Foundation::DateTime) -> windows_core::Result>> { + pub fn GetSystemHistoryAsync(fromtime: super::super::Foundation::DateTime) -> windows_core::Result>> { Self::IActivitySensorStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSystemHistoryAsync)(windows_core::Interface::as_raw(this), fromtime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSystemHistoryWithDurationAsync(fromtime: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan) -> windows_core::Result>> { + pub fn GetSystemHistoryWithDurationAsync(fromtime: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan) -> windows_core::Result>> { Self::IActivitySensorStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSystemHistoryWithDurationAsync)(windows_core::Interface::as_raw(this), fromtime, duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -554,8 +549,7 @@ impl windows_core::RuntimeType for ActivitySensorReadingConfidence { pub struct ActivitySensorTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ActivitySensorTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); impl ActivitySensorTriggerDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadReports(&self) -> windows_core::Result> { + pub fn ReadReports(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -741,8 +735,7 @@ impl AltimeterReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -957,8 +950,7 @@ impl BarometerReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1193,8 +1185,7 @@ impl CompassReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1518,8 +1509,7 @@ impl GyrometerReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1654,8 +1644,7 @@ impl HingeAngleReading { (windows_core::Interface::vtable(this).AngleInDegrees)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1832,8 +1821,7 @@ impl HumanPresenceFeatures { (windows_core::Interface::vtable(this).SensorId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedWakeOrLockDistancesInMillimeters(&self) -> windows_core::Result> { + pub fn SupportedWakeOrLockDistancesInMillimeters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2062,8 +2050,7 @@ impl HumanPresenceSensorReading { (windows_core::Interface::vtable(this).DistanceInMillimeters)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2077,8 +2064,7 @@ impl HumanPresenceSensorReading { (windows_core::Interface::vtable(this).OnlookerPresence)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DetectedPersons(&self) -> windows_core::Result> { + pub fn DetectedPersons(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2365,8 +2351,7 @@ impl HumanPresenceSettings { (windows_core::Interface::vtable(this).GetSupportedFeaturesForSensorId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sensorid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedLockOnLeaveTimeouts() -> windows_core::Result> { + pub fn GetSupportedLockOnLeaveTimeouts() -> windows_core::Result> { Self::IHumanPresenceSettingsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSupportedLockOnLeaveTimeouts)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2505,10 +2490,7 @@ impl windows_core::RuntimeType for IAccelerometerReading2 { pub struct IAccelerometerReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IAccelerometerReadingChangedEventArgs, IAccelerometerReadingChangedEventArgs_Vtbl, 0x0095c65b_b6ac_475a_9f44_8b32d35a3f25); impl windows_core::RuntimeType for IAccelerometerReadingChangedEventArgs { @@ -2564,16 +2546,10 @@ impl windows_core::RuntimeType for IActivitySensor { pub struct IActivitySensor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetCurrentReadingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SubscribedActivities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SubscribedActivities: usize, pub PowerInMilliwatts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub DeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedActivities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedActivities: usize, pub MinimumReportInterval: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ReadingChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveReadingChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -2617,14 +2593,8 @@ pub struct IActivitySensorStatics_Vtbl { pub GetDefaultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSystemHistoryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSystemHistoryAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSystemHistoryWithDurationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSystemHistoryWithDurationAsync: usize, } windows_core::imp::define_interface!(IActivitySensorTriggerDetails, IActivitySensorTriggerDetails_Vtbl, 0x2c9e6612_b9ca_4677_b263_243297f79d3a); impl windows_core::RuntimeType for IActivitySensorTriggerDetails { @@ -2633,10 +2603,7 @@ impl windows_core::RuntimeType for IActivitySensorTriggerDetails { #[repr(C)] pub struct IActivitySensorTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadReports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadReports: usize, } windows_core::imp::define_interface!(IAdaptiveDimmingOptions, IAdaptiveDimmingOptions_Vtbl, 0xd3213cf7_89b5_5732_b2a0_aefe324f54e6); impl windows_core::RuntimeType for IAdaptiveDimmingOptions { @@ -2692,10 +2659,7 @@ impl windows_core::RuntimeType for IAltimeterReading2 { pub struct IAltimeterReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IAltimeterReadingChangedEventArgs, IAltimeterReadingChangedEventArgs_Vtbl, 0x7069d077_446d_47f7_998c_ebc23b45e4a2); impl windows_core::RuntimeType for IAltimeterReadingChangedEventArgs { @@ -2778,10 +2742,7 @@ impl windows_core::RuntimeType for IBarometerReading2 { pub struct IBarometerReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IBarometerReadingChangedEventArgs, IBarometerReadingChangedEventArgs_Vtbl, 0x3d84945f_037b_404f_9bbb_6232d69543c3); impl windows_core::RuntimeType for IBarometerReadingChangedEventArgs { @@ -2899,10 +2860,7 @@ impl windows_core::RuntimeType for ICompassReading2 { pub struct ICompassReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(ICompassReadingChangedEventArgs, ICompassReadingChangedEventArgs_Vtbl, 0x8f1549b0_e8bc_4c7e_b009_4e41df137072); impl windows_core::RuntimeType for ICompassReadingChangedEventArgs { @@ -3047,10 +3005,7 @@ impl windows_core::RuntimeType for IGyrometerReading2 { pub struct IGyrometerReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IGyrometerReadingChangedEventArgs, IGyrometerReadingChangedEventArgs_Vtbl, 0x0fdf1895_6f9e_42ce_8d58_388c0ab8356d); impl windows_core::RuntimeType for IGyrometerReadingChangedEventArgs { @@ -3110,10 +3065,7 @@ pub struct IHingeAngleReading_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Timestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub AngleInDegrees: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IHingeAngleSensor, IHingeAngleSensor_Vtbl, 0xe9d3be02_bfdf_437f_8c29_88c77393d309); impl windows_core::RuntimeType for IHingeAngleSensor { @@ -3159,10 +3111,7 @@ impl windows_core::RuntimeType for IHumanPresenceFeatures { pub struct IHumanPresenceFeatures_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SensorId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedWakeOrLockDistancesInMillimeters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedWakeOrLockDistancesInMillimeters: usize, pub IsWakeOnApproachSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsLockOnLeaveSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, #[cfg(feature = "deprecated")] @@ -3368,10 +3317,7 @@ impl windows_core::RuntimeType for IHumanPresenceSensorReading2 { #[repr(C)] pub struct IHumanPresenceSensorReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IHumanPresenceSensorReading3, IHumanPresenceSensorReading3_Vtbl, 0xb876d918_f069_586f_90e3_7c6fa5c5d33a); impl windows_core::RuntimeType for IHumanPresenceSensorReading3 { @@ -3381,10 +3327,7 @@ impl windows_core::RuntimeType for IHumanPresenceSensorReading3 { pub struct IHumanPresenceSensorReading3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OnlookerPresence: unsafe extern "system" fn(*mut core::ffi::c_void, *mut HumanPresence) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DetectedPersons: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DetectedPersons: usize, } windows_core::imp::define_interface!(IHumanPresenceSensorReadingChangedEventArgs, IHumanPresenceSensorReadingChangedEventArgs_Vtbl, 0xa9dc4583_fd69_5c5e_ab1f_942204eae2db); impl windows_core::RuntimeType for IHumanPresenceSensorReadingChangedEventArgs { @@ -3486,10 +3429,7 @@ pub struct IHumanPresenceSettingsStatics_Vtbl { pub UpdateSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSupportedFeaturesForSensorIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSupportedFeaturesForSensorId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedLockOnLeaveTimeouts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedLockOnLeaveTimeouts: usize, pub SettingsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveSettingsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -3587,10 +3527,7 @@ impl windows_core::RuntimeType for IInclinometerReading2 { pub struct IInclinometerReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IInclinometerReadingChangedEventArgs, IInclinometerReadingChangedEventArgs_Vtbl, 0x4ae91dc1_e7eb_4938_8511_ae0d6b440438); impl windows_core::RuntimeType for IInclinometerReadingChangedEventArgs { @@ -3720,10 +3657,7 @@ impl windows_core::RuntimeType for ILightSensorReading2 { pub struct ILightSensorReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(ILightSensorReadingChangedEventArgs, ILightSensorReadingChangedEventArgs_Vtbl, 0xa3a2f4cf_258b_420c_b8ab_8edd601ecf50); impl windows_core::RuntimeType for ILightSensorReadingChangedEventArgs { @@ -3857,10 +3791,7 @@ impl windows_core::RuntimeType for IMagnetometerReading2 { pub struct IMagnetometerReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IMagnetometerReadingChangedEventArgs, IMagnetometerReadingChangedEventArgs_Vtbl, 0x17eae872_2eb9_4ee7_8ad0_3127537d949b); impl windows_core::RuntimeType for IMagnetometerReadingChangedEventArgs { @@ -3960,10 +3891,7 @@ impl windows_core::RuntimeType for IOrientationSensorReading2 { pub struct IOrientationSensorReading2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PerformanceCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IOrientationSensorReadingChangedEventArgs, IOrientationSensorReadingChangedEventArgs_Vtbl, 0x012c1186_c3ba_46bc_ae65_7a98996cbfb8); impl windows_core::RuntimeType for IOrientationSensorReadingChangedEventArgs { @@ -4044,10 +3972,7 @@ impl windows_core::RuntimeType for IPedometer2 { #[repr(C)] pub struct IPedometer2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentReadings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentReadings: usize, } windows_core::imp::define_interface!(IPedometerDataThresholdFactory, IPedometerDataThresholdFactory_Vtbl, 0xcbad8f50_7a54_466b_9010_77a162fca5d7); impl windows_core::RuntimeType for IPedometerDataThresholdFactory { @@ -4089,14 +4014,8 @@ pub struct IPedometerStatics_Vtbl { pub FromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDefaultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSystemHistoryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSystemHistoryAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSystemHistoryWithDurationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSystemHistoryWithDurationAsync: usize, } windows_core::imp::define_interface!(IPedometerStatics2, IPedometerStatics2_Vtbl, 0x79f5c6bb_ce0e_4133_b47e_8627ea72f677); impl windows_core::RuntimeType for IPedometerStatics2 { @@ -4105,10 +4024,7 @@ impl windows_core::RuntimeType for IPedometerStatics2 { #[repr(C)] pub struct IPedometerStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetReadingsFromTriggerDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetReadingsFromTriggerDetails: usize, } windows_core::imp::define_interface!(IProximitySensor, IProximitySensor_Vtbl, 0x54c076b8_ecfb_4944_b928_74fc504d47ee); impl windows_core::RuntimeType for IProximitySensor { @@ -4171,10 +4087,7 @@ impl windows_core::RuntimeType for IProximitySensorStatics2 { #[repr(C)] pub struct IProximitySensorStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetReadingsFromTriggerDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetReadingsFromTriggerDetails: usize, } windows_core::imp::define_interface!(ISensorDataThreshold, ISensorDataThreshold_Vtbl, 0x54daec61_fe4b_4e07_b260_3a4cdfbe396e); impl windows_core::RuntimeType for ISensorDataThreshold { @@ -4559,8 +4472,7 @@ impl InclinometerReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4793,8 +4705,7 @@ impl LightSensorReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -5109,8 +5020,7 @@ impl MagnetometerReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -5348,8 +5258,7 @@ impl OrientationSensorReading { (windows_core::Interface::vtable(this).PerformanceCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -5452,8 +5361,7 @@ impl Pedometer { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveReadingChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentReadings(&self) -> windows_core::Result> { + pub fn GetCurrentReadings(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -5478,22 +5386,19 @@ impl Pedometer { (windows_core::Interface::vtable(this).GetDeviceSelector)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSystemHistoryAsync(fromtime: super::super::Foundation::DateTime) -> windows_core::Result>> { + pub fn GetSystemHistoryAsync(fromtime: super::super::Foundation::DateTime) -> windows_core::Result>> { Self::IPedometerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSystemHistoryAsync)(windows_core::Interface::as_raw(this), fromtime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSystemHistoryWithDurationAsync(fromtime: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan) -> windows_core::Result>> { + pub fn GetSystemHistoryWithDurationAsync(fromtime: super::super::Foundation::DateTime, duration: super::super::Foundation::TimeSpan) -> windows_core::Result>> { Self::IPedometerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSystemHistoryWithDurationAsync)(windows_core::Interface::as_raw(this), fromtime, duration, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetReadingsFromTriggerDetails(triggerdetails: P0) -> windows_core::Result> + pub fn GetReadingsFromTriggerDetails(triggerdetails: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -5705,8 +5610,7 @@ impl ProximitySensor { (windows_core::Interface::vtable(this).FromId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sensorid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetReadingsFromTriggerDetails(triggerdetails: P0) -> windows_core::Result> + pub fn GetReadingsFromTriggerDetails(triggerdetails: P0) -> windows_core::Result> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs index 010a7e5734e..6370309f1df 100644 --- a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs @@ -105,9 +105,9 @@ pub struct ISmartCardAppletIdGroup_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub AppletIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] AppletIds: usize, pub SmartCardEmulationCategory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmartCardEmulationCategory) -> windows_core::HRESULT, pub SetSmartCardEmulationCategory: unsafe extern "system" fn(*mut core::ffi::c_void, SmartCardEmulationCategory) -> windows_core::HRESULT, @@ -147,9 +147,9 @@ impl windows_core::RuntimeType for ISmartCardAppletIdGroupFactory { #[repr(C)] pub struct ISmartCardAppletIdGroupFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, SmartCardEmulationCategory, SmartCardEmulationType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] Create: usize, } windows_core::imp::define_interface!(ISmartCardAppletIdGroupRegistration, ISmartCardAppletIdGroupRegistration_Vtbl, 0xdf1208d1_31bb_5596_43b1_6d69a0257b3a); @@ -163,10 +163,7 @@ pub struct ISmartCardAppletIdGroupRegistration_Vtbl { pub AppletIdGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestActivationPolicyChangeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, SmartCardAppletIdGroupActivationPolicy, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetAutomaticResponseApdusAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetAutomaticResponseApdusAsync: usize, } windows_core::imp::define_interface!(ISmartCardAppletIdGroupRegistration2, ISmartCardAppletIdGroupRegistration2_Vtbl, 0x5f5508d8_98a7_4f2e_91d9_6cfcceda407f); impl windows_core::RuntimeType for ISmartCardAppletIdGroupRegistration2 { @@ -322,26 +319,11 @@ impl windows_core::RuntimeType for ISmartCardCryptogramGenerator { #[repr(C)] pub struct ISmartCardCryptogramGenerator_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedCryptogramMaterialTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCryptogramMaterialTypes: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedCryptogramAlgorithms: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCryptogramAlgorithms: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedCryptogramMaterialPackageFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCryptogramMaterialPackageFormats: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedCryptogramMaterialPackageConfirmationResponseFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCryptogramMaterialPackageConfirmationResponseFormats: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedSmartCardCryptogramStorageKeyCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedSmartCardCryptogramStorageKeyCapabilities: usize, pub DeleteCryptogramMaterialStorageKeyAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateCryptogramMaterialStorageKeyAsync: unsafe extern "system" fn(*mut core::ffi::c_void, SmartCardUnlockPromptingBehavior, *mut core::ffi::c_void, SmartCardCryptogramStorageKeyAlgorithm, SmartCardCryptogramStorageKeyCapabilities, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Security_Cryptography_Core")] @@ -366,9 +348,9 @@ impl windows_core::RuntimeType for ISmartCardCryptogramGenerator2 { #[repr(C)] pub struct ISmartCardCryptogramGenerator2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ValidateRequestApduAsync: unsafe extern "system" fn(*mut core::ffi::c_void, SmartCardUnlockPromptingBehavior, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ValidateRequestApduAsync: usize, pub GetAllCryptogramStorageKeyCharacteristicsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetAllCryptogramMaterialPackageCharacteristicsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -401,10 +383,7 @@ impl windows_core::RuntimeType for ISmartCardCryptogramGetAllCryptogramMaterialC pub struct ISmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OperationStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmartCardCryptogramGeneratorOperationStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Characteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Characteristics: usize, } windows_core::imp::define_interface!(ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult, ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult_Vtbl, 0x4e6a8a5c_9773_46c4_a32f_b1e543159e04); impl windows_core::RuntimeType for ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { @@ -414,10 +393,7 @@ impl windows_core::RuntimeType for ISmartCardCryptogramGetAllCryptogramMaterialP pub struct ISmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OperationStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmartCardCryptogramGeneratorOperationStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Characteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Characteristics: usize, } windows_core::imp::define_interface!(ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult, ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult_Vtbl, 0x8c7ce857_a7e7_489d_b9d6_368061515012); impl windows_core::RuntimeType for ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { @@ -427,10 +403,7 @@ impl windows_core::RuntimeType for ISmartCardCryptogramGetAllCryptogramStorageKe pub struct ISmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OperationStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmartCardCryptogramGeneratorOperationStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Characteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Characteristics: usize, } windows_core::imp::define_interface!(ISmartCardCryptogramMaterialCharacteristics, ISmartCardCryptogramMaterialCharacteristics_Vtbl, 0xfc9ac5cc_c1d7_4153_923b_a2d43c6c8d49); impl windows_core::RuntimeType for ISmartCardCryptogramMaterialCharacteristics { @@ -440,18 +413,9 @@ impl windows_core::RuntimeType for ISmartCardCryptogramMaterialCharacteristics { pub struct ISmartCardCryptogramMaterialCharacteristics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MaterialName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AllowedAlgorithms: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllowedAlgorithms: usize, - #[cfg(feature = "Foundation_Collections")] pub AllowedProofOfPossessionAlgorithms: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllowedProofOfPossessionAlgorithms: usize, - #[cfg(feature = "Foundation_Collections")] pub AllowedValidations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllowedValidations: usize, pub MaterialType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmartCardCryptogramMaterialType) -> windows_core::HRESULT, pub ProtectionMethod: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmartCardCryptogramMaterialProtectionMethod) -> windows_core::HRESULT, pub ProtectionVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, @@ -623,13 +587,13 @@ impl windows_core::RuntimeType for ISmartCardEmulatorApduReceivedEventArgsWithCr #[repr(C)] pub struct ISmartCardEmulatorApduReceivedEventArgsWithCryptograms_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub TryRespondWithCryptogramsAsync: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] TryRespondWithCryptogramsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub TryRespondWithCryptogramsAndStateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] TryRespondWithCryptogramsAndStateAsync: usize, } windows_core::imp::define_interface!(ISmartCardEmulatorConnectionDeactivatedEventArgs, ISmartCardEmulatorConnectionDeactivatedEventArgs_Vtbl, 0x2186d8d3_c5eb_5262_43df_62a0a1b55557); @@ -668,10 +632,7 @@ impl windows_core::RuntimeType for ISmartCardEmulatorStatics2 { #[repr(C)] pub struct ISmartCardEmulatorStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAppletIdGroupRegistrationsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAppletIdGroupRegistrationsAsync: usize, pub RegisterAppletIdGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UnregisterAppletIdGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MaxAppletIdGroupRegistrations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, @@ -800,10 +761,7 @@ pub struct ISmartCardReader_Vtbl { pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmartCardReaderKind) -> windows_core::HRESULT, pub GetStatusAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllCardsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllCardsAsync: usize, pub CardAdded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveCardAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub CardRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -964,8 +922,8 @@ impl SmartCardAppletIdGroup { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn AppletIds(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn AppletIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1051,10 +1009,10 @@ impl SmartCardAppletIdGroup { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSecureUserAuthenticationRequired)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn Create(displayname: &windows_core::HSTRING, appletids: P1, emulationcategory: SmartCardEmulationCategory, emulationtype: SmartCardEmulationType) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::ISmartCardAppletIdGroupFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1135,10 +1093,9 @@ impl SmartCardAppletIdGroupRegistration { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetAutomaticResponseApdusAsync(&self, apdus: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1473,40 +1430,35 @@ impl windows_core::RuntimeType for SmartCardCryptogramAlgorithm { pub struct SmartCardCryptogramGenerator(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SmartCardCryptogramGenerator, windows_core::IUnknown, windows_core::IInspectable); impl SmartCardCryptogramGenerator { - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCryptogramMaterialTypes(&self) -> windows_core::Result> { + pub fn SupportedCryptogramMaterialTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedCryptogramMaterialTypes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCryptogramAlgorithms(&self) -> windows_core::Result> { + pub fn SupportedCryptogramAlgorithms(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedCryptogramAlgorithms)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCryptogramMaterialPackageFormats(&self) -> windows_core::Result> { + pub fn SupportedCryptogramMaterialPackageFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedCryptogramMaterialPackageFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCryptogramMaterialPackageConfirmationResponseFormats(&self) -> windows_core::Result> { + pub fn SupportedCryptogramMaterialPackageConfirmationResponseFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedCryptogramMaterialPackageConfirmationResponseFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedSmartCardCryptogramStorageKeyCapabilities(&self) -> windows_core::Result> { + pub fn SupportedSmartCardCryptogramStorageKeyCapabilities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1571,11 +1523,11 @@ impl SmartCardCryptogramGenerator { (windows_core::Interface::vtable(this).DeleteCryptogramMaterialPackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(materialpackagename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn ValidateRequestApduAsync(&self, promptingbehavior: SmartCardUnlockPromptingBehavior, apdutovalidate: P1, cryptogramplacementsteps: P2) -> windows_core::Result> where P1: windows_core::Param, - P2: windows_core::Param>, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1688,8 +1640,7 @@ impl SmartCardCryptogramGetAllCryptogramMaterialCharacteristicsResult { (windows_core::Interface::vtable(this).OperationStatus)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Characteristics(&self) -> windows_core::Result> { + pub fn Characteristics(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1728,8 +1679,7 @@ impl SmartCardCryptogramGetAllCryptogramMaterialPackageCharacteristicsResult { (windows_core::Interface::vtable(this).OperationStatus)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Characteristics(&self) -> windows_core::Result> { + pub fn Characteristics(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1768,8 +1718,7 @@ impl SmartCardCryptogramGetAllCryptogramStorageKeyCharacteristicsResult { (windows_core::Interface::vtable(this).OperationStatus)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Characteristics(&self) -> windows_core::Result> { + pub fn Characteristics(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1808,24 +1757,21 @@ impl SmartCardCryptogramMaterialCharacteristics { (windows_core::Interface::vtable(this).MaterialName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllowedAlgorithms(&self) -> windows_core::Result> { + pub fn AllowedAlgorithms(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllowedAlgorithms)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllowedProofOfPossessionAlgorithms(&self) -> windows_core::Result> { + pub fn AllowedProofOfPossessionAlgorithms(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllowedProofOfPossessionAlgorithms)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllowedValidations(&self) -> windows_core::Result> { + pub fn AllowedValidations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2487,8 +2433,7 @@ impl SmartCardEmulator { (windows_core::Interface::vtable(this).GetDefaultAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAppletIdGroupRegistrationsAsync() -> windows_core::Result>> { + pub fn GetAppletIdGroupRegistrationsAsync() -> windows_core::Result>> { Self::ISmartCardEmulatorStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAppletIdGroupRegistrationsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2606,11 +2551,11 @@ impl SmartCardEmulatorApduReceivedEventArgs { (windows_core::Interface::vtable(this).TryRespondWithStateAsync)(windows_core::Interface::as_raw(this), responseapdu.param().abi(), nextstate.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn TryRespondWithCryptogramsAsync(&self, responsetemplate: P0, cryptogramplacementsteps: P1) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2618,11 +2563,11 @@ impl SmartCardEmulatorApduReceivedEventArgs { (windows_core::Interface::vtable(this).TryRespondWithCryptogramsAsync)(windows_core::Interface::as_raw(this), responsetemplate.param().abi(), cryptogramplacementsteps.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn TryRespondWithCryptogramsAndStateAsync(&self, responsetemplate: P0, cryptogramplacementsteps: P1, nextstate: P2) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; @@ -3179,8 +3124,7 @@ impl SmartCardReader { (windows_core::Interface::vtable(this).GetStatusAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllCardsAsync(&self) -> windows_core::Result>> { + pub fn FindAllCardsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index 78c88e98676..97eaab55f19 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -20,8 +20,8 @@ pub type DeleteSmsMessagesOperation = super::super::Foundation::IAsyncAction; pub type GetSmsDeviceOperation = super::super::Foundation::IAsyncOperation; #[cfg(feature = "deprecated")] pub type GetSmsMessageOperation = super::super::Foundation::IAsyncOperation; -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -pub type GetSmsMessagesOperation = super::super::Foundation::IAsyncOperationWithProgress, i32>; +#[cfg(feature = "deprecated")] +pub type GetSmsMessagesOperation = super::super::Foundation::IAsyncOperationWithProgress, i32>; windows_core::imp::define_interface!(ISmsAppMessage, ISmsAppMessage_Vtbl, 0xe8bb8494_d3a0_4a0a_86d7_291033a8cf54); impl windows_core::RuntimeType for ISmsAppMessage { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); @@ -493,10 +493,7 @@ pub struct ISmsDeviceMessageStore_Vtbl { pub DeleteMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteMessagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, SmsMessageFilter, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetMessagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, SmsMessageFilter, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMessagesAsync: usize, pub MaxMessages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } #[cfg(feature = "deprecated")] @@ -533,52 +530,19 @@ impl windows_core::RuntimeType for ISmsFilterRule { pub struct ISmsFilterRule_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MessageType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsMessageType) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ImsiPrefixes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ImsiPrefixes: usize, - #[cfg(feature = "Foundation_Collections")] pub DeviceIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeviceIds: usize, - #[cfg(feature = "Foundation_Collections")] pub SenderNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SenderNumbers: usize, - #[cfg(feature = "Foundation_Collections")] pub TextMessagePrefixes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TextMessagePrefixes: usize, - #[cfg(feature = "Foundation_Collections")] pub PortNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PortNumbers: usize, pub CellularClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CellularClass) -> windows_core::HRESULT, pub SetCellularClass: unsafe extern "system" fn(*mut core::ffi::c_void, CellularClass) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ProtocolIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProtocolIds: usize, - #[cfg(feature = "Foundation_Collections")] pub TeleserviceIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TeleserviceIds: usize, - #[cfg(feature = "Foundation_Collections")] pub WapApplicationIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WapApplicationIds: usize, - #[cfg(feature = "Foundation_Collections")] pub WapContentTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WapContentTypes: usize, - #[cfg(feature = "Foundation_Collections")] pub BroadcastTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BroadcastTypes: usize, - #[cfg(feature = "Foundation_Collections")] pub BroadcastChannels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BroadcastChannels: usize, } windows_core::imp::define_interface!(ISmsFilterRuleFactory, ISmsFilterRuleFactory_Vtbl, 0x00c36508_6296_4f29_9aad_8920ceba3ce8); impl windows_core::RuntimeType for ISmsFilterRuleFactory { @@ -597,10 +561,7 @@ impl windows_core::RuntimeType for ISmsFilterRules { pub struct ISmsFilterRules_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ActionType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsFilterActionType) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Rules: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Rules: usize, } windows_core::imp::define_interface!(ISmsFilterRulesFactory, ISmsFilterRulesFactory_Vtbl, 0xa09924ed_6e2e_4530_9fde_465d02eed00e); impl windows_core::RuntimeType for ISmsFilterRulesFactory { @@ -868,10 +829,7 @@ impl windows_core::RuntimeType for ISmsMessageRegistrationStatics { #[repr(C)] pub struct ISmsMessageRegistrationStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AllRegistrations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllRegistrations: usize, pub Register: 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, } #[cfg(feature = "deprecated")] @@ -908,10 +866,7 @@ impl windows_core::RuntimeType for ISmsSendMessageResult { pub struct ISmsSendMessageResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsSuccessful: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MessageReferenceNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MessageReferenceNumbers: usize, pub CellularClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CellularClass) -> windows_core::HRESULT, pub ModemErrorCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsModemErrorCode) -> windows_core::HRESULT, pub IsErrorTransient: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -1017,8 +972,7 @@ impl ISmsTextMessage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEncoding)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result> { + pub fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1040,11 +994,11 @@ impl ISmsTextMessage { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] impl windows_core::RuntimeName for ISmsTextMessage { const NAME: &'static str = "Windows.Devices.Sms.ISmsTextMessage"; } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] pub trait ISmsTextMessage_Impl: ISmsMessage_Impl { fn Timestamp(&self) -> windows_core::Result; fn PartReferenceId(&self) -> windows_core::Result; @@ -1058,9 +1012,9 @@ pub trait ISmsTextMessage_Impl: ISmsMessage_Impl { fn SetBody(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Encoding(&self) -> windows_core::Result; fn SetEncoding(&self, value: SmsEncoding) -> windows_core::Result<()>; - fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result>; + fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] impl ISmsTextMessage_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Timestamp(this: *mut core::ffi::c_void, result__: *mut super::super::Foundation::DateTime) -> windows_core::HRESULT { @@ -1236,10 +1190,7 @@ pub struct ISmsTextMessage_Vtbl { pub SetBody: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Encoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsEncoding) -> windows_core::HRESULT, pub SetEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, SmsEncoding) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ToBinaryMessages: unsafe extern "system" fn(*mut core::ffi::c_void, SmsDataFormat, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ToBinaryMessages: usize, } windows_core::imp::define_interface!(ISmsTextMessage2, ISmsTextMessage2_Vtbl, 0x22a0d893_4555_4755_b5a1_e7fd84955f8d); impl windows_core::RuntimeType for ISmsTextMessage2 { @@ -1306,10 +1257,7 @@ pub struct ISmsWapMessage_Vtbl { pub BinaryBody: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] BinaryBody: usize, - #[cfg(feature = "Foundation_Collections")] pub Headers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Headers: usize, } #[cfg(feature = "deprecated")] pub type SendSmsMessageOperation = super::super::Foundation::IAsyncAction; @@ -2023,8 +1971,7 @@ impl SmsDeviceMessageStore { (windows_core::Interface::vtable(this).GetMessageAsync)(windows_core::Interface::as_raw(this), messageid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMessagesAsync(&self, messagefilter: SmsMessageFilter) -> windows_core::Result, i32>> { + pub fn GetMessagesAsync(&self, messagefilter: SmsMessageFilter) -> windows_core::Result, i32>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2209,40 +2156,35 @@ impl SmsFilterRule { (windows_core::Interface::vtable(this).MessageType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ImsiPrefixes(&self) -> windows_core::Result> { + pub fn ImsiPrefixes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ImsiPrefixes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeviceIds(&self) -> windows_core::Result> { + pub fn DeviceIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DeviceIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SenderNumbers(&self) -> windows_core::Result> { + pub fn SenderNumbers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SenderNumbers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TextMessagePrefixes(&self) -> windows_core::Result> { + pub fn TextMessagePrefixes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TextMessagePrefixes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PortNumbers(&self) -> windows_core::Result> { + pub fn PortNumbers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2260,48 +2202,42 @@ impl SmsFilterRule { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCellularClass)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProtocolIds(&self) -> windows_core::Result> { + pub fn ProtocolIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ProtocolIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TeleserviceIds(&self) -> windows_core::Result> { + pub fn TeleserviceIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TeleserviceIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn WapApplicationIds(&self) -> windows_core::Result> { + pub fn WapApplicationIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WapApplicationIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn WapContentTypes(&self) -> windows_core::Result> { + pub fn WapContentTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WapContentTypes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn BroadcastTypes(&self) -> windows_core::Result> { + pub fn BroadcastTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BroadcastTypes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn BroadcastChannels(&self) -> windows_core::Result> { + pub fn BroadcastChannels(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2343,8 +2279,7 @@ impl SmsFilterRules { (windows_core::Interface::vtable(this).ActionType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Rules(&self) -> windows_core::Result> { + pub fn Rules(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2638,8 +2573,7 @@ impl SmsMessageRegistration { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveMessageReceived)(windows_core::Interface::as_raw(this), eventcookie).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllRegistrations() -> windows_core::Result> { + pub fn AllRegistrations() -> windows_core::Result> { Self::ISmsMessageRegistrationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllRegistrations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2776,8 +2710,7 @@ impl SmsSendMessageResult { (windows_core::Interface::vtable(this).IsSuccessful)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MessageReferenceNumbers(&self) -> windows_core::Result> { + pub fn MessageReferenceNumbers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3038,8 +2971,7 @@ impl SmsTextMessage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEncoding)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result> { + pub fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3404,8 +3336,7 @@ impl SmsWapMessage { (windows_core::Interface::vtable(this).BinaryBody)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Headers(&self) -> windows_core::Result> { + pub fn Headers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs b/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs index b735abb4ccc..951411ee417 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/Provider/mod.rs @@ -212,8 +212,7 @@ impl windows_core::RuntimeType for ISpiProvider { } windows_core::imp::interface_hierarchy!(ISpiProvider, windows_core::IUnknown, windows_core::IInspectable); impl ISpiProvider { - #[cfg(feature = "Foundation_Collections")] - pub fn GetControllersAsync(&self) -> windows_core::Result>> { + pub fn GetControllersAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -221,15 +220,12 @@ impl ISpiProvider { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ISpiProvider { const NAME: &'static str = "Windows.Devices.Spi.Provider.ISpiProvider"; } -#[cfg(feature = "Foundation_Collections")] pub trait ISpiProvider_Impl: windows_core::IUnknownImpl { - fn GetControllersAsync(&self) -> windows_core::Result>>; + fn GetControllersAsync(&self) -> windows_core::Result>>; } -#[cfg(feature = "Foundation_Collections")] impl ISpiProvider_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetControllersAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -254,10 +250,7 @@ impl ISpiProvider_Vtbl { #[repr(C)] pub struct ISpiProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetControllersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControllersAsync: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] diff --git a/crates/libs/windows/src/Windows/Devices/Spi/mod.rs b/crates/libs/windows/src/Windows/Devices/Spi/mod.rs index 5bd6d5fd2c5..796bde9204a 100644 --- a/crates/libs/windows/src/Windows/Devices/Spi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Spi/mod.rs @@ -10,10 +10,7 @@ pub struct ISpiBusInfo_Vtbl { pub ChipSelectLineCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub MinClockFrequency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub MaxClockFrequency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedDataBitLengths: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedDataBitLengths: usize, } windows_core::imp::define_interface!(ISpiConnectionSettings, ISpiConnectionSettings_Vtbl, 0x5283a37f_f935_4b9f_a7a7_3a7890afa5ce); impl windows_core::RuntimeType for ISpiConnectionSettings { @@ -59,9 +56,9 @@ impl windows_core::RuntimeType for ISpiControllerStatics { pub struct ISpiControllerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetDefaultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Devices_Spi_Provider", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Spi_Provider")] pub GetControllersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Spi_Provider", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Spi_Provider"))] GetControllersAsync: usize, } windows_core::imp::define_interface!(ISpiDevice, ISpiDevice_Vtbl, 0x05d5356d_11b6_4d39_84d5_95dfb4c9f2ce); @@ -225,8 +222,7 @@ impl SpiBusInfo { (windows_core::Interface::vtable(this).MaxClockFrequency)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedDataBitLengths(&self) -> windows_core::Result> { + pub fn SupportedDataBitLengths(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -350,8 +346,8 @@ impl SpiController { (windows_core::Interface::vtable(this).GetDefaultAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Spi_Provider", feature = "Foundation_Collections"))] - pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> + #[cfg(feature = "Devices_Spi_Provider")] + pub fn GetControllersAsync(provider: P0) -> windows_core::Result>> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/Devices/Usb/mod.rs b/crates/libs/windows/src/Windows/Devices/Usb/mod.rs index b6fa827d293..40c934e6c14 100644 --- a/crates/libs/windows/src/Windows/Devices/Usb/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Usb/mod.rs @@ -61,15 +61,9 @@ impl windows_core::RuntimeType for IUsbConfiguration { #[repr(C)] pub struct IUsbConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub UsbInterfaces: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UsbInterfaces: usize, pub ConfigurationDescriptor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Descriptors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Descriptors: usize, } windows_core::imp::define_interface!(IUsbConfigurationDescriptor, IUsbConfigurationDescriptor_Vtbl, 0xf2176d92_b442_407a_8207_7d646c0385f3); impl windows_core::RuntimeType for IUsbConfigurationDescriptor { @@ -245,31 +239,13 @@ impl windows_core::RuntimeType for IUsbInterface { #[repr(C)] pub struct IUsbInterface_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub BulkInPipes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BulkInPipes: usize, - #[cfg(feature = "Foundation_Collections")] pub InterruptInPipes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InterruptInPipes: usize, - #[cfg(feature = "Foundation_Collections")] pub BulkOutPipes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BulkOutPipes: usize, - #[cfg(feature = "Foundation_Collections")] pub InterruptOutPipes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InterruptOutPipes: usize, - #[cfg(feature = "Foundation_Collections")] pub InterfaceSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InterfaceSettings: usize, pub InterfaceNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u8) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Descriptors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Descriptors: usize, } windows_core::imp::define_interface!(IUsbInterfaceDescriptor, IUsbInterfaceDescriptor_Vtbl, 0x199670c7_b7ee_4f90_8cd5_94a2e257598a); impl windows_core::RuntimeType for IUsbInterfaceDescriptor { @@ -301,29 +277,14 @@ impl windows_core::RuntimeType for IUsbInterfaceSetting { #[repr(C)] pub struct IUsbInterfaceSetting_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub BulkInEndpoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BulkInEndpoints: usize, - #[cfg(feature = "Foundation_Collections")] pub InterruptInEndpoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InterruptInEndpoints: usize, - #[cfg(feature = "Foundation_Collections")] pub BulkOutEndpoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BulkOutEndpoints: usize, - #[cfg(feature = "Foundation_Collections")] pub InterruptOutEndpoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InterruptOutEndpoints: usize, pub Selected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SelectSettingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub InterfaceDescriptor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Descriptors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Descriptors: usize, } windows_core::imp::define_interface!(IUsbInterruptInEndpointDescriptor, IUsbInterruptInEndpointDescriptor_Vtbl, 0xc0528967_c911_4c3a_86b2_419c2da89039); impl windows_core::RuntimeType for IUsbInterruptInEndpointDescriptor { @@ -615,8 +576,7 @@ unsafe impl Sync for UsbBulkOutPipe {} pub struct UsbConfiguration(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(UsbConfiguration, windows_core::IUnknown, windows_core::IInspectable); impl UsbConfiguration { - #[cfg(feature = "Foundation_Collections")] - pub fn UsbInterfaces(&self) -> windows_core::Result> { + pub fn UsbInterfaces(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -630,8 +590,7 @@ impl UsbConfiguration { (windows_core::Interface::vtable(this).ConfigurationDescriptor)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Descriptors(&self) -> windows_core::Result> { + pub fn Descriptors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1293,40 +1252,35 @@ impl windows_core::RuntimeType for UsbEndpointType { pub struct UsbInterface(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(UsbInterface, windows_core::IUnknown, windows_core::IInspectable); impl UsbInterface { - #[cfg(feature = "Foundation_Collections")] - pub fn BulkInPipes(&self) -> windows_core::Result> { + pub fn BulkInPipes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BulkInPipes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn InterruptInPipes(&self) -> windows_core::Result> { + pub fn InterruptInPipes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InterruptInPipes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn BulkOutPipes(&self) -> windows_core::Result> { + pub fn BulkOutPipes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BulkOutPipes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn InterruptOutPipes(&self) -> windows_core::Result> { + pub fn InterruptOutPipes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InterruptOutPipes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn InterfaceSettings(&self) -> windows_core::Result> { + pub fn InterfaceSettings(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1340,8 +1294,7 @@ impl UsbInterface { (windows_core::Interface::vtable(this).InterfaceNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Descriptors(&self) -> windows_core::Result> { + pub fn Descriptors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1441,32 +1394,28 @@ unsafe impl Sync for UsbInterfaceDescriptor {} pub struct UsbInterfaceSetting(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(UsbInterfaceSetting, windows_core::IUnknown, windows_core::IInspectable); impl UsbInterfaceSetting { - #[cfg(feature = "Foundation_Collections")] - pub fn BulkInEndpoints(&self) -> windows_core::Result> { + pub fn BulkInEndpoints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BulkInEndpoints)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn InterruptInEndpoints(&self) -> windows_core::Result> { + pub fn InterruptInEndpoints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InterruptInEndpoints)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn BulkOutEndpoints(&self) -> windows_core::Result> { + pub fn BulkOutEndpoints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BulkOutEndpoints)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn InterruptOutEndpoints(&self) -> windows_core::Result> { + pub fn InterruptOutEndpoints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1494,8 +1443,7 @@ impl UsbInterfaceSetting { (windows_core::Interface::vtable(this).InterfaceDescriptor)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Descriptors(&self) -> windows_core::Result> { + pub fn Descriptors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs index d2a6e07dfa3..db3d7f78f6e 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFi/mod.rs @@ -44,10 +44,7 @@ impl windows_core::RuntimeType for IWiFiAdapterStatics { #[repr(C)] pub struct IWiFiAdapterStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAllAdaptersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAdaptersAsync: usize, pub GetDeviceSelector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestAccessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -91,10 +88,7 @@ impl windows_core::RuntimeType for IWiFiNetworkReport { pub struct IWiFiNetworkReport_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Timestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AvailableNetworks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AvailableNetworks: usize, } windows_core::imp::define_interface!(IWiFiOnDemandHotspotConnectTriggerDetails, IWiFiOnDemandHotspotConnectTriggerDetails_Vtbl, 0xa268eb58_68f5_59cf_8d38_35bf44b097ef); impl windows_core::RuntimeType for IWiFiOnDemandHotspotConnectTriggerDetails { @@ -173,10 +167,7 @@ impl windows_core::RuntimeType for IWiFiWpsConfigurationResult { pub struct IWiFiWpsConfigurationResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WiFiWpsConfigurationStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedWpsKinds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedWpsKinds: usize, } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -294,8 +285,7 @@ impl WiFiAdapter { (windows_core::Interface::vtable(this).ConnectWithPasswordCredentialAndSsidAndConnectionMethodAsync)(windows_core::Interface::as_raw(this), availablenetwork.param().abi(), reconnectionkind, passwordcredential.param().abi(), core::mem::transmute_copy(ssid), connectionmethod, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAdaptersAsync() -> windows_core::Result>> { + pub fn FindAllAdaptersAsync() -> windows_core::Result>> { Self::IWiFiAdapterStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAdaptersAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -515,8 +505,7 @@ impl WiFiNetworkReport { (windows_core::Interface::vtable(this).Timestamp)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AvailableNetworks(&self) -> windows_core::Result> { + pub fn AvailableNetworks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -867,8 +856,7 @@ impl WiFiWpsConfigurationResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedWpsKinds(&self) -> windows_core::Result> { + pub fn SupportedWpsKinds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs index 70fb47c4738..8995ec9cb1f 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFiDirect/Services/mod.rs @@ -9,10 +9,7 @@ pub struct IWiFiDirectService_Vtbl { pub RemoteServiceInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] RemoteServiceInfo: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedConfigurationMethods: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedConfigurationMethods: usize, pub PreferGroupOwnerMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetPreferGroupOwnerMode: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -38,10 +35,7 @@ impl windows_core::RuntimeType for IWiFiDirectServiceAdvertiser { pub struct IWiFiDirectServiceAdvertiser_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ServiceName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ServiceNamePrefixes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServiceNamePrefixes: usize, #[cfg(feature = "Storage_Streams")] pub ServiceInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -54,10 +48,7 @@ pub struct IWiFiDirectServiceAdvertiser_Vtbl { pub SetAutoAcceptSession: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub PreferGroupOwnerMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetPreferGroupOwnerMode: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PreferredConfigurationMethods: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PreferredConfigurationMethods: usize, pub ServiceStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WiFiDirectServiceStatus) -> windows_core::HRESULT, pub SetServiceStatus: unsafe extern "system" fn(*mut core::ffi::c_void, WiFiDirectServiceStatus) -> windows_core::HRESULT, pub CustomServiceStatusCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -128,9 +119,9 @@ impl windows_core::RuntimeType for IWiFiDirectServiceRemotePortAddedEventArgs { #[repr(C)] pub struct IWiFiDirectServiceRemotePortAddedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] + #[cfg(feature = "Networking")] pub EndpointPairs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking")))] + #[cfg(not(feature = "Networking"))] EndpointPairs: usize, pub Protocol: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WiFiDirectServiceIPProtocol) -> windows_core::HRESULT, } @@ -148,9 +139,9 @@ pub struct IWiFiDirectServiceSession_Vtbl { pub AdvertisementId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ServiceAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SessionAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] + #[cfg(feature = "Networking")] pub GetConnectionEndpointPairs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking")))] + #[cfg(not(feature = "Networking"))] GetConnectionEndpointPairs: usize, pub SessionStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveSessionStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -230,8 +221,7 @@ impl WiFiDirectService { (windows_core::Interface::vtable(this).RemoteServiceInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedConfigurationMethods(&self) -> windows_core::Result> { + pub fn SupportedConfigurationMethods(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -373,8 +363,7 @@ impl WiFiDirectServiceAdvertiser { (windows_core::Interface::vtable(this).ServiceName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServiceNamePrefixes(&self) -> windows_core::Result> { + pub fn ServiceNamePrefixes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -419,8 +408,7 @@ impl WiFiDirectServiceAdvertiser { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPreferGroupOwnerMode)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn PreferredConfigurationMethods(&self) -> windows_core::Result> { + pub fn PreferredConfigurationMethods(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -687,8 +675,8 @@ unsafe impl Sync for WiFiDirectServiceProvisioningInfo {} pub struct WiFiDirectServiceRemotePortAddedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WiFiDirectServiceRemotePortAddedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl WiFiDirectServiceRemotePortAddedEventArgs { - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] - pub fn EndpointPairs(&self) -> windows_core::Result> { + #[cfg(feature = "Networking")] + pub fn EndpointPairs(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -774,8 +762,8 @@ impl WiFiDirectServiceSession { (windows_core::Interface::vtable(this).SessionAddress)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] - pub fn GetConnectionEndpointPairs(&self) -> windows_core::Result> { + #[cfg(feature = "Networking")] + pub fn GetConnectionEndpointPairs(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs b/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs index a6302502245..34af38b91fe 100644 --- a/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/WiFiDirect/mod.rs @@ -7,14 +7,8 @@ impl windows_core::RuntimeType for IWiFiDirectAdvertisement { #[repr(C)] pub struct IWiFiDirectAdvertisement_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub InformationElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InformationElements: usize, - #[cfg(feature = "Foundation_Collections")] pub SetInformationElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetInformationElements: usize, pub ListenStateDiscoverability: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WiFiDirectAdvertisementListenStateDiscoverability) -> windows_core::HRESULT, pub SetListenStateDiscoverability: unsafe extern "system" fn(*mut core::ffi::c_void, WiFiDirectAdvertisementListenStateDiscoverability) -> windows_core::HRESULT, pub IsAutonomousGroupOwnerEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -28,10 +22,7 @@ impl windows_core::RuntimeType for IWiFiDirectAdvertisement2 { #[repr(C)] pub struct IWiFiDirectAdvertisement2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedConfigurationMethods: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedConfigurationMethods: usize, } windows_core::imp::define_interface!(IWiFiDirectAdvertisementPublisher, IWiFiDirectAdvertisementPublisher_Vtbl, 0xb35a2d1a_9b1f_45d9_925a_694d66df68ef); impl windows_core::RuntimeType for IWiFiDirectAdvertisementPublisher { @@ -84,10 +75,7 @@ impl windows_core::RuntimeType for IWiFiDirectConnectionParameters2 { #[repr(C)] pub struct IWiFiDirectConnectionParameters2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub PreferenceOrderedConfigurationMethods: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PreferenceOrderedConfigurationMethods: usize, pub PreferredPairingProcedure: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WiFiDirectPairingProcedure) -> windows_core::HRESULT, pub SetPreferredPairingProcedure: unsafe extern "system" fn(*mut core::ffi::c_void, WiFiDirectPairingProcedure) -> windows_core::HRESULT, } @@ -135,9 +123,9 @@ pub struct IWiFiDirectDevice_Vtbl { pub DeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConnectionStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveConnectionStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] + #[cfg(feature = "Networking")] pub GetConnectionEndpointPairs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking")))] + #[cfg(not(feature = "Networking"))] GetConnectionEndpointPairs: usize, } windows_core::imp::define_interface!(IWiFiDirectDeviceStatics, IWiFiDirectDeviceStatics_Vtbl, 0xe86cb57c_3aac_4851_a792_482aaf931b04); @@ -196,13 +184,13 @@ impl windows_core::RuntimeType for IWiFiDirectInformationElementStatics { #[repr(C)] pub struct IWiFiDirectInformationElementStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub CreateFromBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] CreateFromBuffer: usize, - #[cfg(all(feature = "Devices_Enumeration", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Enumeration")] pub CreateFromDeviceInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Enumeration", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Enumeration"))] CreateFromDeviceInformation: usize, } windows_core::imp::define_interface!(IWiFiDirectLegacySettings, IWiFiDirectLegacySettings_Vtbl, 0xa64fdbba_f2fd_4567_a91b_f5c2f5321057); @@ -230,18 +218,16 @@ pub struct IWiFiDirectLegacySettings_Vtbl { pub struct WiFiDirectAdvertisement(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WiFiDirectAdvertisement, windows_core::IUnknown, windows_core::IInspectable); impl WiFiDirectAdvertisement { - #[cfg(feature = "Foundation_Collections")] - pub fn InformationElements(&self) -> windows_core::Result> { + pub fn InformationElements(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InformationElements)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetInformationElements(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetInformationElements)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -275,8 +261,7 @@ impl WiFiDirectAdvertisement { (windows_core::Interface::vtable(this).LegacySettings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedConfigurationMethods(&self) -> windows_core::Result> { + pub fn SupportedConfigurationMethods(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -499,8 +484,7 @@ impl WiFiDirectConnectionParameters { let this = self; unsafe { (windows_core::Interface::vtable(this).SetGroupOwnerIntent)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn PreferenceOrderedConfigurationMethods(&self) -> windows_core::Result> { + pub fn PreferenceOrderedConfigurationMethods(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -653,8 +637,8 @@ impl WiFiDirectDevice { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveConnectionStatusChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] - pub fn GetConnectionEndpointPairs(&self) -> windows_core::Result> { + #[cfg(feature = "Networking")] + pub fn GetConnectionEndpointPairs(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -792,8 +776,8 @@ impl WiFiDirectInformationElement { let this = self; unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn CreateFromBuffer(buffer: P0) -> windows_core::Result> + #[cfg(feature = "Storage_Streams")] + pub fn CreateFromBuffer(buffer: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -802,8 +786,8 @@ impl WiFiDirectInformationElement { (windows_core::Interface::vtable(this).CreateFromBuffer)(windows_core::Interface::as_raw(this), buffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Enumeration", feature = "Foundation_Collections"))] - pub fn CreateFromDeviceInformation(deviceinformation: P0) -> windows_core::Result> + #[cfg(feature = "Devices_Enumeration")] + pub fn CreateFromDeviceInformation(deviceinformation: P0) -> windows_core::Result> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs b/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs index 053df401c46..c01627c5089 100644 --- a/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs +++ b/crates/libs/windows/src/Windows/Embedded/DeviceLockdown/mod.rs @@ -1,7 +1,6 @@ pub struct DeviceLockdownProfile; impl DeviceLockdownProfile { - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedLockdownProfiles() -> windows_core::Result> { + pub fn GetSupportedLockdownProfiles() -> windows_core::Result> { Self::IDeviceLockdownProfileStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSupportedLockdownProfiles)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -74,10 +73,7 @@ impl windows_core::RuntimeType for IDeviceLockdownProfileStatics { #[repr(C)] pub struct IDeviceLockdownProfileStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedLockdownProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedLockdownProfiles: usize, pub GetCurrentLockdownProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub ApplyLockdownProfileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetLockdownProfileInformation: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs index 95571ccea2b..2432351665b 100644 --- a/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Collections/mod.rs @@ -15,242 +15,26 @@ impl windows_core::RuntimeType for CollectionChange { } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] -pub struct IIterable(windows_core::IUnknown, core::marker::PhantomData) -where - T: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IIterable {} -impl windows_core::imp::CanInto for IIterable {} -unsafe impl windows_core::Interface for IIterable { - type Vtable = IIterable_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IIterable { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({faa585ea-6214-4217-afda-7f46de5869b3}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")"); -} -impl IIterable { - pub fn First(&self) -> windows_core::Result> { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeName for IIterable { - const NAME: &'static str = "Windows.Foundation.Collections.IIterable"; -} -pub trait IIterable_Impl: windows_core::IUnknownImpl -where - T: windows_core::RuntimeType + 'static, -{ - fn First(&self) -> windows_core::Result>; -} -impl IIterable_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn First, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IIterable_Impl::First(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - First: First::, - T: core::marker::PhantomData::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID - } -} -#[repr(C)] -pub struct IIterable_Vtbl -where - T: windows_core::RuntimeType + 'static, -{ - pub base__: windows_core::IInspectable_Vtbl, - pub First: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - T: core::marker::PhantomData, -} -impl IntoIterator for IIterable { - type Item = T; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - IntoIterator::into_iter(&self) - } -} -impl IntoIterator for &IIterable { - type Item = T; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - self.First().unwrap() - } -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IIterator(windows_core::IUnknown, core::marker::PhantomData) +pub struct IMapChangedEventArgs(windows_core::IUnknown, core::marker::PhantomData) where - T: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IIterator {} -impl windows_core::imp::CanInto for IIterator {} -unsafe impl windows_core::Interface for IIterator { - type Vtable = IIterator_Vtbl; + K: windows_core::RuntimeType + 'static; +impl windows_core::imp::CanInto for IMapChangedEventArgs {} +impl windows_core::imp::CanInto for IMapChangedEventArgs {} +unsafe impl windows_core::Interface for IMapChangedEventArgs { + type Vtable = IMapChangedEventArgs_Vtbl; const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); } -impl windows_core::RuntimeType for IIterator { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({6a79e863-4300-459a-9966-cbb660963ee1}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")"); +impl windows_core::RuntimeType for IMapChangedEventArgs { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({9939f4df-050a-4c0f-aa60-77075f9c4777}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b")"); } -impl IIterator { - pub fn Current(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Current)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn HasCurrent(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).HasCurrent)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn MoveNext(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).MoveNext)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn GetMany(&self, items: &mut [>::Default]) -> windows_core::Result { +impl IMapChangedEventArgs { + pub fn CollectionChange(&self) -> windows_core::Result { let this = self; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) - } - } -} -impl windows_core::RuntimeName for IIterator { - const NAME: &'static str = "Windows.Foundation.Collections.IIterator"; -} -pub trait IIterator_Impl: windows_core::IUnknownImpl -where - T: windows_core::RuntimeType + 'static, -{ - fn Current(&self) -> windows_core::Result; - fn HasCurrent(&self) -> windows_core::Result; - fn MoveNext(&self) -> windows_core::Result; - fn GetMany(&self, items: &mut [>::Default]) -> windows_core::Result; -} -impl IIterator_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn Current, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IIterator_Impl::Current(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn HasCurrent, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IIterator_Impl::HasCurrent(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn MoveNext, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut bool) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IIterator_Impl::MoveNext(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn GetMany, const OFFSET: isize>(this: *mut core::ffi::c_void, items_array_size: u32, items: *mut T, result__: *mut u32) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IIterator_Impl::GetMany(this, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&items), items_array_size as usize)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - Current: Current::, - HasCurrent: HasCurrent::, - MoveNext: MoveNext::, - GetMany: GetMany::, - T: core::marker::PhantomData::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID - } -} -#[repr(C)] -pub struct IIterator_Vtbl -where - T: windows_core::RuntimeType + 'static, -{ - pub base__: windows_core::IInspectable_Vtbl, - pub Current: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::AbiType) -> windows_core::HRESULT, - pub HasCurrent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub MoveNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - pub GetMany: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut T, *mut u32) -> windows_core::HRESULT, - T: core::marker::PhantomData, -} -impl Iterator for IIterator { - type Item = T; - fn next(&mut self) -> Option { - let result = if self.HasCurrent().unwrap_or(false) { self.Current().ok() } else { None }; - if result.is_some() { - self.MoveNext().ok()?; + (windows_core::Interface::vtable(this).CollectionChange)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } - result } -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IKeyValuePair(windows_core::IUnknown, core::marker::PhantomData, core::marker::PhantomData) -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IKeyValuePair {} -impl windows_core::imp::CanInto for IKeyValuePair {} -unsafe impl windows_core::Interface for IKeyValuePair { - type Vtable = IKeyValuePair_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IKeyValuePair { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({02b51929-c1c4-4a7e-8940-0312b5c18500}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")"); -} -impl IKeyValuePair { pub fn Key(&self) -> windows_core::Result { let this = self; unsafe { @@ -258,44 +42,35 @@ impl windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Value)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } } -impl windows_core::RuntimeName for IKeyValuePair { - const NAME: &'static str = "Windows.Foundation.Collections.IKeyValuePair"; +impl windows_core::RuntimeName for IMapChangedEventArgs { + const NAME: &'static str = "Windows.Foundation.Collections.IMapChangedEventArgs"; } -pub trait IKeyValuePair_Impl: windows_core::IUnknownImpl +pub trait IMapChangedEventArgs_Impl: windows_core::IUnknownImpl where K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, { + fn CollectionChange(&self) -> windows_core::Result; fn Key(&self) -> windows_core::Result; - fn Value(&self) -> windows_core::Result; } -impl IKeyValuePair_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn Key, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { +impl IMapChangedEventArgs_Vtbl { + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn CollectionChange, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IKeyValuePair_Impl::Key(this) { + match IMapChangedEventArgs_Impl::CollectionChange(this) { Ok(ok__) => { result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); windows_core::HRESULT(0) } Err(err) => err.into(), } } } - unsafe extern "system" fn Value, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { + unsafe extern "system" fn Key, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IKeyValuePair_Impl::Value(this) { + match IMapChangedEventArgs_Impl::Key(this) { Ok(ok__) => { result__.write(core::mem::transmute_copy(&ok__)); core::mem::forget(ok__); @@ -306,60 +81,81 @@ impl, OFFSET>(), - Key: Key::, - Value: Value::, + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + CollectionChange: CollectionChange::, + Key: Key::, K: core::marker::PhantomData::, - V: core::marker::PhantomData::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID + iid == & as windows_core::Interface>::IID } } #[repr(C)] -pub struct IKeyValuePair_Vtbl +pub struct IMapChangedEventArgs_Vtbl where K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, { pub base__: windows_core::IInspectable_Vtbl, + pub CollectionChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CollectionChange) -> windows_core::HRESULT, pub Key: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::AbiType) -> windows_core::HRESULT, - pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::AbiType) -> windows_core::HRESULT, K: core::marker::PhantomData, - V: core::marker::PhantomData, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] -pub struct IMap(windows_core::IUnknown, core::marker::PhantomData, core::marker::PhantomData) +pub struct IObservableMap(windows_core::IUnknown, core::marker::PhantomData, core::marker::PhantomData) where K: windows_core::RuntimeType + 'static, V: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IMap {} -impl windows_core::imp::CanInto for IMap {} -unsafe impl windows_core::Interface for IMap { - type Vtable = IMap_Vtbl; +impl windows_core::imp::CanInto for IObservableMap {} +impl windows_core::imp::CanInto for IObservableMap {} +unsafe impl windows_core::Interface for IObservableMap { + type Vtable = IObservableMap_Vtbl; const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); } -impl windows_core::RuntimeType for IMap { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({3c2925fe-8519-45c1-aa79-197b6718c1c1}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")"); +impl windows_core::RuntimeType for IObservableMap { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({65df2bf5-bf39-41b5-aebc-5a9d865e472b}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")"); +} +impl windows_core::imp::CanInto>> for IObservableMap { + const QUERY: bool = true; } -impl windows_core::imp::CanInto>> for IMap { +impl windows_core::imp::CanInto> for IObservableMap { const QUERY: bool = true; } -impl IMap { +impl IObservableMap { + pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result + where + P0: windows_core::Param>, + { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) + } + } + pub fn RemoveMapChanged(&self, token: i64) -> windows_core::Result<()> { + let this = self; + unsafe { (windows_core::Interface::vtable(this).RemoveMapChanged)(windows_core::Interface::as_raw(this), token).ok() } + } + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + } + } pub fn Lookup(&self, key: P0) -> windows_core::Result where P0: windows_core::Param, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) @@ -369,14 +165,14 @@ impl, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = self; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -387,7 +183,7 @@ impl, P1: windows_core::Param, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key.param().abi(), value.param().abi(), &mut result__).map(|| result__) @@ -397,898 +193,141 @@ impl, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), key.param().abi()).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } } -impl IntoIterator for IMap { - type Item = IKeyValuePair; - type IntoIter = IIterator; +impl IntoIterator for IObservableMap { + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -impl IntoIterator for &IMap { - type Item = IKeyValuePair; - type IntoIter = IIterator; +impl IntoIterator for &IObservableMap { + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -impl windows_core::RuntimeName for IMap { - const NAME: &'static str = "Windows.Foundation.Collections.IMap"; +impl windows_core::RuntimeName for IObservableMap { + const NAME: &'static str = "Windows.Foundation.Collections.IObservableMap"; } -pub trait IMap_Impl: IIterable_Impl> +pub trait IObservableMap_Impl: windows_collections::IIterable_Impl> + windows_collections::IMap_Impl where K: windows_core::RuntimeType + 'static, V: windows_core::RuntimeType + 'static, { - fn Lookup(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; - fn Size(&self) -> windows_core::Result; - fn HasKey(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; - fn GetView(&self) -> windows_core::Result>; - fn Insert(&self, key: windows_core::Ref<'_, K>, value: windows_core::Ref<'_, V>) -> windows_core::Result; - fn Remove(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result<()>; - fn Clear(&self) -> windows_core::Result<()>; -} -impl IMap_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn Lookup, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { + fn MapChanged(&self, vhnd: windows_core::Ref<'_, MapChangedEventHandler>) -> windows_core::Result; + fn RemoveMapChanged(&self, token: i64) -> windows_core::Result<()>; +} +impl IObservableMap_Vtbl { + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn MapChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMap_Impl::Lookup(this, core::mem::transmute_copy(&key)) { + match IObservableMap_Impl::MapChanged(this, core::mem::transmute_copy(&vhnd)) { Ok(ok__) => { result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); windows_core::HRESULT(0) } Err(err) => err.into(), } } } - unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn RemoveMapChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, token: i64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMap_Impl::Size(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } + IObservableMap_Impl::RemoveMapChanged(this, token).into() } } - unsafe extern "system" fn HasKey, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMap_Impl::HasKey(this, core::mem::transmute_copy(&key)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn GetView, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMap_Impl::GetView(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn Insert, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, value: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMap_Impl::Insert(this, core::mem::transmute_copy(&key), core::mem::transmute_copy(&value)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn Remove, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IMap_Impl::Remove(this, core::mem::transmute_copy(&key)).into() - } - } - unsafe extern "system" fn Clear, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IMap_Impl::Clear(this).into() - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - Lookup: Lookup::, - Size: Size::, - HasKey: HasKey::, - GetView: GetView::, - Insert: Insert::, - Remove: Remove::, - Clear: Clear::, - K: core::marker::PhantomData::, - V: core::marker::PhantomData::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID - } -} -#[repr(C)] -pub struct IMap_Vtbl -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, -{ - pub base__: windows_core::IInspectable_Vtbl, - pub Lookup: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType, *mut windows_core::AbiType) -> windows_core::HRESULT, - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub HasKey: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType, *mut bool) -> windows_core::HRESULT, - pub GetView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub Insert: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType, windows_core::AbiType, *mut bool) -> windows_core::HRESULT, - pub Remove: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType) -> windows_core::HRESULT, - pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - K: core::marker::PhantomData, - V: core::marker::PhantomData, -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IMapChangedEventArgs(windows_core::IUnknown, core::marker::PhantomData) -where - K: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IMapChangedEventArgs {} -impl windows_core::imp::CanInto for IMapChangedEventArgs {} -unsafe impl windows_core::Interface for IMapChangedEventArgs { - type Vtable = IMapChangedEventArgs_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IMapChangedEventArgs { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({9939f4df-050a-4c0f-aa60-77075f9c4777}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b")"); -} -impl IMapChangedEventArgs { - pub fn CollectionChange(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).CollectionChange)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn Key(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Key)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl windows_core::RuntimeName for IMapChangedEventArgs { - const NAME: &'static str = "Windows.Foundation.Collections.IMapChangedEventArgs"; -} -pub trait IMapChangedEventArgs_Impl: windows_core::IUnknownImpl -where - K: windows_core::RuntimeType + 'static, -{ - fn CollectionChange(&self) -> windows_core::Result; - fn Key(&self) -> windows_core::Result; -} -impl IMapChangedEventArgs_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn CollectionChange, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMapChangedEventArgs_Impl::CollectionChange(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn Key, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMapChangedEventArgs_Impl::Key(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - CollectionChange: CollectionChange::, - Key: Key::, - K: core::marker::PhantomData::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID - } -} -#[repr(C)] -pub struct IMapChangedEventArgs_Vtbl -where - K: windows_core::RuntimeType + 'static, -{ - pub base__: windows_core::IInspectable_Vtbl, - pub CollectionChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CollectionChange) -> windows_core::HRESULT, - pub Key: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::AbiType) -> windows_core::HRESULT, - K: core::marker::PhantomData, -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IMapView(windows_core::IUnknown, core::marker::PhantomData, core::marker::PhantomData) -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IMapView {} -impl windows_core::imp::CanInto for IMapView {} -unsafe impl windows_core::Interface for IMapView { - type Vtable = IMapView_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IMapView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({e480ce40-a338-4ada-adcf-272272e48cb9}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")"); -} -impl windows_core::imp::CanInto>> for IMapView { - const QUERY: bool = true; -} -impl IMapView { - pub fn Lookup(&self, key: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Size(&self) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn HasKey(&self, key: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).map(|| result__) - } - } - pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Split)(windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } - } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl IntoIterator for IMapView { - type Item = IKeyValuePair; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - IntoIterator::into_iter(&self) - } -} -impl IntoIterator for &IMapView { - type Item = IKeyValuePair; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - self.First().unwrap() - } -} -impl windows_core::RuntimeName for IMapView { - const NAME: &'static str = "Windows.Foundation.Collections.IMapView"; -} -pub trait IMapView_Impl: IIterable_Impl> -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, -{ - fn Lookup(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; - fn Size(&self) -> windows_core::Result; - fn HasKey(&self, key: windows_core::Ref<'_, K>) -> windows_core::Result; - fn Split(&self, first: windows_core::OutRef<'_, IMapView>, second: windows_core::OutRef<'_, IMapView>) -> windows_core::Result<()>; -} -impl IMapView_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn Lookup, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMapView_Impl::Lookup(this, core::mem::transmute_copy(&key)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMapView_Impl::Size(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn HasKey, const OFFSET: isize>(this: *mut core::ffi::c_void, key: windows_core::AbiType, result__: *mut bool) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IMapView_Impl::HasKey(this, core::mem::transmute_copy(&key)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn Split, const OFFSET: isize>(this: *mut core::ffi::c_void, first: *mut *mut core::ffi::c_void, second: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IMapView_Impl::Split(this, core::mem::transmute_copy(&first), core::mem::transmute_copy(&second)).into() - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - Lookup: Lookup::, - Size: Size::, - HasKey: HasKey::, - Split: Split::, - K: core::marker::PhantomData::, - V: core::marker::PhantomData::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID - } -} -#[repr(C)] -pub struct IMapView_Vtbl -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, -{ - pub base__: windows_core::IInspectable_Vtbl, - pub Lookup: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType, *mut windows_core::AbiType) -> windows_core::HRESULT, - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub HasKey: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType, *mut bool) -> windows_core::HRESULT, - pub Split: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - K: core::marker::PhantomData, - V: core::marker::PhantomData, -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IObservableMap(windows_core::IUnknown, core::marker::PhantomData, core::marker::PhantomData) -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IObservableMap {} -impl windows_core::imp::CanInto for IObservableMap {} -unsafe impl windows_core::Interface for IObservableMap { - type Vtable = IObservableMap_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IObservableMap { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({65df2bf5-bf39-41b5-aebc-5a9d865e472b}").push_slice(b";").push_other(K::SIGNATURE).push_slice(b";").push_other(V::SIGNATURE).push_slice(b")"); -} -impl windows_core::imp::CanInto>> for IObservableMap { - const QUERY: bool = true; -} -impl windows_core::imp::CanInto> for IObservableMap { - const QUERY: bool = true; -} -impl IObservableMap { - pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result - where - P0: windows_core::Param>, - { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) - } - } - pub fn RemoveMapChanged(&self, token: i64) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveMapChanged)(windows_core::Interface::as_raw(this), token).ok() } - } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Lookup(&self, key: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn HasKey(&self, key: P0) -> windows_core::Result - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key.param().abi(), &mut result__).map(|| result__) - } - } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Insert(&self, key: P0, value: P1) -> windows_core::Result - where - P0: windows_core::Param, - P1: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), key.param().abi(), value.param().abi(), &mut result__).map(|| result__) - } - } - pub fn Remove(&self, key: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), key.param().abi()).ok() } - } - pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } - } -} -impl IntoIterator for IObservableMap { - type Item = IKeyValuePair; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - IntoIterator::into_iter(&self) - } -} -impl IntoIterator for &IObservableMap { - type Item = IKeyValuePair; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - self.First().unwrap() - } -} -impl windows_core::RuntimeName for IObservableMap { - const NAME: &'static str = "Windows.Foundation.Collections.IObservableMap"; -} -pub trait IObservableMap_Impl: IIterable_Impl> + IMap_Impl -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, -{ - fn MapChanged(&self, vhnd: windows_core::Ref<'_, MapChangedEventHandler>) -> windows_core::Result; - fn RemoveMapChanged(&self, token: i64) -> windows_core::Result<()>; -} -impl IObservableMap_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn MapChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IObservableMap_Impl::MapChanged(this, core::mem::transmute_copy(&vhnd)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn RemoveMapChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, token: i64) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IObservableMap_Impl::RemoveMapChanged(this, token).into() - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - MapChanged: MapChanged::, - RemoveMapChanged: RemoveMapChanged::, - K: core::marker::PhantomData::, - V: core::marker::PhantomData::, - } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID - } -} -#[repr(C)] -pub struct IObservableMap_Vtbl -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, -{ - pub base__: windows_core::IInspectable_Vtbl, - pub MapChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - pub RemoveMapChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - K: core::marker::PhantomData, - V: core::marker::PhantomData, -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IObservableVector(windows_core::IUnknown, core::marker::PhantomData) -where - T: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IObservableVector {} -impl windows_core::imp::CanInto for IObservableVector {} -unsafe impl windows_core::Interface for IObservableVector { - type Vtable = IObservableVector_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IObservableVector { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({5917eb53-50b4-4a0d-b309-65862b3f1dbc}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")"); -} -impl windows_core::imp::CanInto> for IObservableVector { - const QUERY: bool = true; -} -impl windows_core::imp::CanInto> for IObservableVector { - const QUERY: bool = true; -} -impl IObservableVector { - pub fn VectorChanged(&self, vhnd: P0) -> windows_core::Result - where - P0: windows_core::Param>, - { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).VectorChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) - } - } - pub fn RemoveVectorChanged(&self, token: i64) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveVectorChanged)(windows_core::Interface::as_raw(this), token).ok() } - } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) - } - } - pub fn SetAt(&self, index: u32, value: P1) -> windows_core::Result<()> - where - P1: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } - } - pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> - where - P1: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } - } - pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } - } - pub fn Append(&self, value: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } - } - pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } - } - pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } - } - pub fn GetMany(&self, startindex: u32, items: &mut [>::Default]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) - } - } - pub fn ReplaceAll(&self, items: &[>::Default]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } - } -} -impl IntoIterator for IObservableVector { - type Item = T; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - IntoIterator::into_iter(&self) - } -} -impl IntoIterator for &IObservableVector { - type Item = T; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - self.First().unwrap() - } -} -impl windows_core::RuntimeName for IObservableVector { - const NAME: &'static str = "Windows.Foundation.Collections.IObservableVector"; -} -pub trait IObservableVector_Impl: IIterable_Impl + IVector_Impl -where - T: windows_core::RuntimeType + 'static, -{ - fn VectorChanged(&self, vhnd: windows_core::Ref<'_, VectorChangedEventHandler>) -> windows_core::Result; - fn RemoveVectorChanged(&self, token: i64) -> windows_core::Result<()>; -} -impl IObservableVector_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn VectorChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IObservableVector_Impl::VectorChanged(this, core::mem::transmute_copy(&vhnd)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn RemoveVectorChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, token: i64) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IObservableVector_Impl::RemoveVectorChanged(this, token).into() - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - VectorChanged: VectorChanged::, - RemoveVectorChanged: RemoveVectorChanged::, - T: core::marker::PhantomData::, + Self { + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + MapChanged: MapChanged::, + RemoveMapChanged: RemoveMapChanged::, + K: core::marker::PhantomData::, + V: core::marker::PhantomData::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID + iid == & as windows_core::Interface>::IID } } #[repr(C)] -pub struct IObservableVector_Vtbl +pub struct IObservableMap_Vtbl where - T: windows_core::RuntimeType + 'static, + K: windows_core::RuntimeType + 'static, + V: windows_core::RuntimeType + 'static, { pub base__: windows_core::IInspectable_Vtbl, - pub VectorChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - pub RemoveVectorChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - T: core::marker::PhantomData, + pub MapChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + pub RemoveMapChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + K: core::marker::PhantomData, + V: core::marker::PhantomData, } -windows_core::imp::define_interface!(IPropertySet, IPropertySet_Vtbl, 0x8a43ed9f_f4e6_4421_acf9_1dab2986820c); -impl windows_core::RuntimeType for IPropertySet { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); +#[repr(transparent)] +#[derive(Clone, Debug, Eq, PartialEq)] +pub struct IObservableVector(windows_core::IUnknown, core::marker::PhantomData) +where + T: windows_core::RuntimeType + 'static; +impl windows_core::imp::CanInto for IObservableVector {} +impl windows_core::imp::CanInto for IObservableVector {} +unsafe impl windows_core::Interface for IObservableVector { + type Vtable = IObservableVector_Vtbl; + const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); } -windows_core::imp::interface_hierarchy!(IPropertySet, windows_core::IUnknown, windows_core::IInspectable); -windows_core::imp::required_hierarchy ! ( IPropertySet , IIterable < IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , IMap < windows_core::HSTRING , windows_core::IInspectable > , IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); -impl IPropertySet { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) - } - } - pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) - } - } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } - pub fn Insert(&self, key: &windows_core::HSTRING, value: P1) -> windows_core::Result +impl windows_core::RuntimeType for IObservableVector { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({5917eb53-50b4-4a0d-b309-65862b3f1dbc}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")"); +} +impl windows_core::imp::CanInto> for IObservableVector { + const QUERY: bool = true; +} +impl windows_core::imp::CanInto> for IObservableVector { + const QUERY: bool = true; +} +impl IObservableVector { + pub fn VectorChanged(&self, vhnd: P0) -> windows_core::Result where - P1: windows_core::Param, + P0: windows_core::Param>, { - let this = &windows_core::Interface::cast::>(self)?; + let this = self; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).VectorChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } - pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } - } - pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } + pub fn RemoveVectorChanged(&self, token: i64) -> windows_core::Result<()> { + let this = self; + unsafe { (windows_core::Interface::vtable(this).RemoveVectorChanged)(windows_core::Interface::as_raw(this), token).ok() } } - pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result - where - P0: windows_core::Param>, - { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn RemoveMapChanged(&self, token: i64) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { (windows_core::Interface::vtable(this).RemoveMapChanged)(windows_core::Interface::as_raw(this), token).ok() } - } -} -impl IntoIterator for IPropertySet { - type Item = IKeyValuePair; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - IntoIterator::into_iter(&self) - } -} -impl IntoIterator for &IPropertySet { - type Item = IKeyValuePair; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - self.First().unwrap() - } -} -impl windows_core::RuntimeName for IPropertySet { - const NAME: &'static str = "Windows.Foundation.Collections.IPropertySet"; -} -pub trait IPropertySet_Impl: IIterable_Impl> + IMap_Impl + IObservableMap_Impl {} -impl IPropertySet_Vtbl { - pub const fn new() -> Self { - Self { base__: windows_core::IInspectable_Vtbl::new::() } - } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -#[repr(C)] -pub struct IPropertySet_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IVector(windows_core::IUnknown, core::marker::PhantomData) -where - T: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IVector {} -impl windows_core::imp::CanInto for IVector {} -unsafe impl windows_core::Interface for IVector { - type Vtable = IVector_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IVector { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({913337e9-11a1-4345-a3a2-4e7f956e222d}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")"); -} -impl windows_core::imp::CanInto> for IVector { - const QUERY: bool = true; -} -impl IVector { pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = self; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1298,7 +337,7 @@ impl IVector { where P0: windows_core::Param, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -1308,180 +347,77 @@ impl IVector { where P1: windows_core::Param, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } - } - pub fn Append(&self, value: P0) -> windows_core::Result<()> - where - P0: windows_core::Param, - { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } - } - pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } - } - pub fn Clear(&self) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } - } - pub fn GetMany(&self, startindex: u32, items: &mut [>::Default]) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) - } - } - pub fn ReplaceAll(&self, items: &[>::Default]) -> windows_core::Result<()> { - let this = self; - unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } - } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) - } - } -} -impl IntoIterator for IVector { - type Item = T; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - IntoIterator::into_iter(&self) - } -} -impl IntoIterator for &IVector { - type Item = T; - type IntoIter = IIterator; - fn into_iter(self) -> Self::IntoIter { - self.First().unwrap() - } -} -impl windows_core::RuntimeName for IVector { - const NAME: &'static str = "Windows.Foundation.Collections.IVector"; -} -pub trait IVector_Impl: IIterable_Impl -where - T: windows_core::RuntimeType + 'static, -{ - fn GetAt(&self, index: u32) -> windows_core::Result; - fn Size(&self) -> windows_core::Result; - fn GetView(&self) -> windows_core::Result>; - fn IndexOf(&self, value: windows_core::Ref<'_, T>, index: &mut u32) -> windows_core::Result; - fn SetAt(&self, index: u32, value: windows_core::Ref<'_, T>) -> windows_core::Result<()>; - fn InsertAt(&self, index: u32, value: windows_core::Ref<'_, T>) -> windows_core::Result<()>; - fn RemoveAt(&self, index: u32) -> windows_core::Result<()>; - fn Append(&self, value: windows_core::Ref<'_, T>) -> windows_core::Result<()>; - fn RemoveAtEnd(&self) -> windows_core::Result<()>; - fn Clear(&self) -> windows_core::Result<()>; - fn GetMany(&self, startIndex: u32, items: &mut [>::Default]) -> windows_core::Result; - fn ReplaceAll(&self, items: &[>::Default]) -> windows_core::Result<()>; -} -impl IVector_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn GetAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVector_Impl::GetAt(this, index) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVector_Impl::Size(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn GetView, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVector_Impl::GetView(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn IndexOf, const OFFSET: isize>(this: *mut core::ffi::c_void, value: windows_core::AbiType, index: *mut u32, result__: *mut bool) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVector_Impl::IndexOf(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&index)) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn SetAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, value: windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IVector_Impl::SetAt(this, index, core::mem::transmute_copy(&value)).into() - } - } - unsafe extern "system" fn InsertAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, value: windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IVector_Impl::InsertAt(this, index, core::mem::transmute_copy(&value)).into() - } - } - unsafe extern "system" fn RemoveAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IVector_Impl::RemoveAt(this, index).into() - } - } - unsafe extern "system" fn Append, const OFFSET: isize>(this: *mut core::ffi::c_void, value: windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IVector_Impl::Append(this, core::mem::transmute_copy(&value)).into() - } - } - unsafe extern "system" fn RemoveAtEnd, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IVector_Impl::RemoveAtEnd(this).into() - } - } - unsafe extern "system" fn Clear, const OFFSET: isize>(this: *mut core::ffi::c_void) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IVector_Impl::Clear(this).into() - } + } + pub fn Append(&self, value: P0) -> windows_core::Result<()> + where + P0: windows_core::Param, + { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } + } + pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } + } + pub fn Clear(&self) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } + } + pub fn GetMany(&self, startindex: u32, items: &mut [>::Default]) -> windows_core::Result { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } - unsafe extern "system" fn GetMany, const OFFSET: isize>(this: *mut core::ffi::c_void, startindex: u32, items_array_size: u32, items: *mut T, result__: *mut u32) -> windows_core::HRESULT { + } + pub fn ReplaceAll(&self, items: &[>::Default]) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } + } +} +impl IntoIterator for IObservableVector { + type Item = T; + type IntoIter = windows_collections::IIterator; + fn into_iter(self) -> Self::IntoIter { + IntoIterator::into_iter(&self) + } +} +impl IntoIterator for &IObservableVector { + type Item = T; + type IntoIter = windows_collections::IIterator; + fn into_iter(self) -> Self::IntoIter { + self.First().unwrap() + } +} +impl windows_core::RuntimeName for IObservableVector { + const NAME: &'static str = "Windows.Foundation.Collections.IObservableVector"; +} +pub trait IObservableVector_Impl: windows_collections::IIterable_Impl + windows_collections::IVector_Impl +where + T: windows_core::RuntimeType + 'static, +{ + fn VectorChanged(&self, vhnd: windows_core::Ref<'_, VectorChangedEventHandler>) -> windows_core::Result; + fn RemoveVectorChanged(&self, token: i64) -> windows_core::Result<()>; +} +impl IObservableVector_Vtbl { + pub const fn new, const OFFSET: isize>() -> Self { + unsafe extern "system" fn VectorChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, vhnd: *mut core::ffi::c_void, result__: *mut i64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVector_Impl::GetMany(this, startindex, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&items), items_array_size as usize)) { + match IObservableVector_Impl::VectorChanged(this, core::mem::transmute_copy(&vhnd)) { Ok(ok__) => { result__.write(core::mem::transmute_copy(&ok__)); windows_core::HRESULT(0) @@ -1490,237 +426,172 @@ impl IVector_Vtbl { } } } - unsafe extern "system" fn ReplaceAll, const OFFSET: isize>(this: *mut core::ffi::c_void, items_array_size: u32, items: *const T) -> windows_core::HRESULT { + unsafe extern "system" fn RemoveVectorChanged, const OFFSET: isize>(this: *mut core::ffi::c_void, token: i64) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - IVector_Impl::ReplaceAll(this, core::slice::from_raw_parts(core::mem::transmute_copy(&items), items_array_size as usize)).into() + IObservableVector_Impl::RemoveVectorChanged(this, token).into() } } Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - GetAt: GetAt::, - Size: Size::, - GetView: GetView::, - IndexOf: IndexOf::, - SetAt: SetAt::, - InsertAt: InsertAt::, - RemoveAt: RemoveAt::, - Append: Append::, - RemoveAtEnd: RemoveAtEnd::, - Clear: Clear::, - GetMany: GetMany::, - ReplaceAll: ReplaceAll::, + base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), + VectorChanged: VectorChanged::, + RemoveVectorChanged: RemoveVectorChanged::, T: core::marker::PhantomData::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID + iid == & as windows_core::Interface>::IID } } #[repr(C)] -pub struct IVector_Vtbl +pub struct IObservableVector_Vtbl where T: windows_core::RuntimeType + 'static, { pub base__: windows_core::IInspectable_Vtbl, - pub GetAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::AbiType) -> windows_core::HRESULT, - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub GetView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - pub IndexOf: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType, *mut u32, *mut bool) -> windows_core::HRESULT, - pub SetAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::AbiType) -> windows_core::HRESULT, - pub InsertAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, windows_core::AbiType) -> windows_core::HRESULT, - pub RemoveAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - pub Append: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType) -> windows_core::HRESULT, - pub RemoveAtEnd: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - pub GetMany: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut T, *mut u32) -> windows_core::HRESULT, - pub ReplaceAll: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const T) -> windows_core::HRESULT, + pub VectorChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + pub RemoveVectorChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, T: core::marker::PhantomData, } -windows_core::imp::define_interface!(IVectorChangedEventArgs, IVectorChangedEventArgs_Vtbl, 0x575933df_34fe_4480_af15_07691f3d5d9b); -impl windows_core::RuntimeType for IVectorChangedEventArgs { +windows_core::imp::define_interface!(IPropertySet, IPropertySet_Vtbl, 0x8a43ed9f_f4e6_4421_acf9_1dab2986820c); +impl windows_core::RuntimeType for IPropertySet { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -windows_core::imp::interface_hierarchy!(IVectorChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); -impl IVectorChangedEventArgs { - pub fn CollectionChange(&self) -> windows_core::Result { - let this = self; +windows_core::imp::interface_hierarchy!(IPropertySet, windows_core::IUnknown, windows_core::IInspectable); +windows_core::imp::required_hierarchy ! ( IPropertySet , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); +impl IPropertySet { + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).CollectionChange)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn Index(&self) -> windows_core::Result { - let this = self; + pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Index)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } -} -impl windows_core::RuntimeName for IVectorChangedEventArgs { - const NAME: &'static str = "Windows.Foundation.Collections.IVectorChangedEventArgs"; -} -pub trait IVectorChangedEventArgs_Impl: windows_core::IUnknownImpl { - fn CollectionChange(&self) -> windows_core::Result; - fn Index(&self) -> windows_core::Result; -} -impl IVectorChangedEventArgs_Vtbl { - pub const fn new() -> Self { - unsafe extern "system" fn CollectionChange(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVectorChangedEventArgs_Impl::CollectionChange(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - unsafe extern "system" fn Index(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVectorChangedEventArgs_Impl::Index(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } - } - Self { - base__: windows_core::IInspectable_Vtbl::new::(), - CollectionChange: CollectionChange::, - Index: Index::, + pub fn Size(&self) -> windows_core::Result { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn matches(iid: &windows_core::GUID) -> bool { - iid == &::IID - } -} -#[repr(C)] -pub struct IVectorChangedEventArgs_Vtbl { - pub base__: windows_core::IInspectable_Vtbl, - pub CollectionChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CollectionChange) -> windows_core::HRESULT, - pub Index: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, -} -#[repr(transparent)] -#[derive(Clone, Debug, Eq, PartialEq)] -pub struct IVectorView(windows_core::IUnknown, core::marker::PhantomData) -where - T: windows_core::RuntimeType + 'static; -impl windows_core::imp::CanInto for IVectorView {} -impl windows_core::imp::CanInto for IVectorView {} -unsafe impl windows_core::Interface for IVectorView { - type Vtable = IVectorView_Vtbl; - const IID: windows_core::GUID = windows_core::GUID::from_signature(::SIGNATURE); -} -impl windows_core::RuntimeType for IVectorView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::new().push_slice(b"pinterface({bbe1fa4c-b0e3-4583-baef-1f1b2e483e56}").push_slice(b";").push_other(T::SIGNATURE).push_slice(b")"); -} -impl windows_core::imp::CanInto> for IVectorView { - const QUERY: bool = true; -} -impl IVectorView { - pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = self; + pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn Size(&self) -> windows_core::Result { - let this = self; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn IndexOf(&self, value: P0, index: &mut u32) -> windows_core::Result + pub fn Insert(&self, key: &windows_core::HSTRING, value: P1) -> windows_core::Result where - P0: windows_core::Param, + P1: windows_core::Param, { - let this = self; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) + (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } - pub fn GetMany(&self, startindex: u32, items: &mut [>::Default]) -> windows_core::Result { - let this = self; - unsafe { - let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) - } + pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } + } + pub fn Clear(&self) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result + where + P0: windows_core::Param>, + { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); - (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) + (windows_core::Interface::vtable(this).MapChanged)(windows_core::Interface::as_raw(this), vhnd.param().abi(), &mut result__).map(|| result__) } } + pub fn RemoveMapChanged(&self, token: i64) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; + unsafe { (windows_core::Interface::vtable(this).RemoveMapChanged)(windows_core::Interface::as_raw(this), token).ok() } + } } -impl IntoIterator for IVectorView { - type Item = T; - type IntoIter = IIterator; +impl IntoIterator for IPropertySet { + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -impl IntoIterator for &IVectorView { - type Item = T; - type IntoIter = IIterator; +impl IntoIterator for &IPropertySet { + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -impl windows_core::RuntimeName for IVectorView { - const NAME: &'static str = "Windows.Foundation.Collections.IVectorView"; +impl windows_core::RuntimeName for IPropertySet { + const NAME: &'static str = "Windows.Foundation.Collections.IPropertySet"; } -pub trait IVectorView_Impl: IIterable_Impl -where - T: windows_core::RuntimeType + 'static, -{ - fn GetAt(&self, index: u32) -> windows_core::Result; - fn Size(&self) -> windows_core::Result; - fn IndexOf(&self, value: windows_core::Ref<'_, T>, index: &mut u32) -> windows_core::Result; - fn GetMany(&self, startIndex: u32, items: &mut [>::Default]) -> windows_core::Result; -} -impl IVectorView_Vtbl { - pub const fn new, const OFFSET: isize>() -> Self { - unsafe extern "system" fn GetAt, const OFFSET: isize>(this: *mut core::ffi::c_void, index: u32, result__: *mut windows_core::AbiType) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVectorView_Impl::GetAt(this, index) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - core::mem::forget(ok__); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } +pub trait IPropertySet_Impl: windows_collections::IIterable_Impl> + windows_collections::IMap_Impl + IObservableMap_Impl {} +impl IPropertySet_Vtbl { + pub const fn new() -> Self { + Self { base__: windows_core::IInspectable_Vtbl::new::() } + } + pub fn matches(iid: &windows_core::GUID) -> bool { + iid == &::IID + } +} +#[repr(C)] +pub struct IPropertySet_Vtbl { + pub base__: windows_core::IInspectable_Vtbl, +} +windows_core::imp::define_interface!(IVectorChangedEventArgs, IVectorChangedEventArgs_Vtbl, 0x575933df_34fe_4480_af15_07691f3d5d9b); +impl windows_core::RuntimeType for IVectorChangedEventArgs { + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); +} +windows_core::imp::interface_hierarchy!(IVectorChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); +impl IVectorChangedEventArgs { + pub fn CollectionChange(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).CollectionChange)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } - unsafe extern "system" fn Size, const OFFSET: isize>(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { - unsafe { - let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVectorView_Impl::Size(this) { - Ok(ok__) => { - result__.write(core::mem::transmute_copy(&ok__)); - windows_core::HRESULT(0) - } - Err(err) => err.into(), - } - } + } + pub fn Index(&self) -> windows_core::Result { + let this = self; + unsafe { + let mut result__ = core::mem::zeroed(); + (windows_core::Interface::vtable(this).Index)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } - unsafe extern "system" fn IndexOf, const OFFSET: isize>(this: *mut core::ffi::c_void, value: windows_core::AbiType, index: *mut u32, result__: *mut bool) -> windows_core::HRESULT { + } +} +impl windows_core::RuntimeName for IVectorChangedEventArgs { + const NAME: &'static str = "Windows.Foundation.Collections.IVectorChangedEventArgs"; +} +pub trait IVectorChangedEventArgs_Impl: windows_core::IUnknownImpl { + fn CollectionChange(&self) -> windows_core::Result; + fn Index(&self) -> windows_core::Result; +} +impl IVectorChangedEventArgs_Vtbl { + pub const fn new() -> Self { + unsafe extern "system" fn CollectionChange(this: *mut core::ffi::c_void, result__: *mut CollectionChange) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVectorView_Impl::IndexOf(this, core::mem::transmute_copy(&value), core::mem::transmute_copy(&index)) { + match IVectorChangedEventArgs_Impl::CollectionChange(this) { Ok(ok__) => { result__.write(core::mem::transmute_copy(&ok__)); windows_core::HRESULT(0) @@ -1729,10 +600,10 @@ impl IVectorView_Vtbl { } } } - unsafe extern "system" fn GetMany, const OFFSET: isize>(this: *mut core::ffi::c_void, startindex: u32, items_array_size: u32, items: *mut T, result__: *mut u32) -> windows_core::HRESULT { + unsafe extern "system" fn Index(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { unsafe { let this: &Identity = &*((this as *const *const ()).offset(OFFSET) as *const Identity); - match IVectorView_Impl::GetMany(this, startindex, core::slice::from_raw_parts_mut(core::mem::transmute_copy(&items), items_array_size as usize)) { + match IVectorChangedEventArgs_Impl::Index(this) { Ok(ok__) => { result__.write(core::mem::transmute_copy(&ok__)); windows_core::HRESULT(0) @@ -1742,29 +613,20 @@ impl IVectorView_Vtbl { } } Self { - base__: windows_core::IInspectable_Vtbl::new::, OFFSET>(), - GetAt: GetAt::, - Size: Size::, - IndexOf: IndexOf::, - GetMany: GetMany::, - T: core::marker::PhantomData::, + base__: windows_core::IInspectable_Vtbl::new::(), + CollectionChange: CollectionChange::, + Index: Index::, } } pub fn matches(iid: &windows_core::GUID) -> bool { - iid == & as windows_core::Interface>::IID + iid == &::IID } } #[repr(C)] -pub struct IVectorView_Vtbl -where - T: windows_core::RuntimeType + 'static, -{ +pub struct IVectorChangedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - pub GetAt: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut windows_core::AbiType) -> windows_core::HRESULT, - pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - pub IndexOf: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::AbiType, *mut u32, *mut bool) -> windows_core::HRESULT, - pub GetMany: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut T, *mut u32) -> windows_core::HRESULT, - T: core::marker::PhantomData, + pub CollectionChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CollectionChange) -> windows_core::HRESULT, + pub Index: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -1863,7 +725,7 @@ impl > , IMap < windows_core::HSTRING , windows_core::IInspectable > , IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); +windows_core::imp::required_hierarchy ! ( PropertySet , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); impl PropertySet { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1872,36 +734,36 @@ impl PropertySet { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1911,18 +773,18 @@ impl PropertySet { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result @@ -1953,15 +815,15 @@ impl windows_core::RuntimeName for PropertySet { unsafe impl Send for PropertySet {} unsafe impl Sync for PropertySet {} impl IntoIterator for PropertySet { - type Item = IKeyValuePair; - type IntoIter = IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } impl IntoIterator for &PropertySet { - type Item = IKeyValuePair; - type IntoIter = IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1969,8 +831,8 @@ impl IntoIterator for &PropertySet { #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct StringMap(windows_core::IUnknown); -windows_core::imp::interface_hierarchy ! ( StringMap , windows_core::IUnknown , windows_core::IInspectable , IMap < windows_core::HSTRING , windows_core::HSTRING > ); -windows_core::imp::required_hierarchy ! ( StringMap , IIterable < IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , IObservableMap < windows_core::HSTRING , windows_core::HSTRING > ); +windows_core::imp::interface_hierarchy ! ( StringMap , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > ); +windows_core::imp::required_hierarchy ! ( StringMap , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , IObservableMap < windows_core::HSTRING , windows_core::HSTRING > ); impl StringMap { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1979,8 +841,8 @@ impl StringMap { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2007,7 +869,7 @@ impl StringMap { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2045,11 +907,11 @@ impl StringMap { } } impl windows_core::RuntimeType for StringMap { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } unsafe impl windows_core::Interface for StringMap { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } impl windows_core::RuntimeName for StringMap { const NAME: &'static str = "Windows.Foundation.Collections.StringMap"; @@ -2057,15 +919,15 @@ impl windows_core::RuntimeName for StringMap { unsafe impl Send for StringMap {} unsafe impl Sync for StringMap {} impl IntoIterator for StringMap { - type Item = IKeyValuePair; - type IntoIter = IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } impl IntoIterator for &StringMap { - type Item = IKeyValuePair; - type IntoIter = IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -2074,7 +936,7 @@ impl IntoIterator for &StringMap { #[derive(Clone, Debug, Eq, PartialEq)] pub struct ValueSet(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ValueSet, windows_core::IUnknown, windows_core::IInspectable, IPropertySet); -windows_core::imp::required_hierarchy ! ( ValueSet , IIterable < IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , IMap < windows_core::HSTRING , windows_core::IInspectable > , IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); +windows_core::imp::required_hierarchy ! ( ValueSet , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); impl ValueSet { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -2083,36 +945,36 @@ impl ValueSet { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2122,18 +984,18 @@ impl ValueSet { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result @@ -2164,15 +1026,15 @@ impl windows_core::RuntimeName for ValueSet { unsafe impl Send for ValueSet {} unsafe impl Sync for ValueSet {} impl IntoIterator for ValueSet { - type Item = IKeyValuePair; - type IntoIter = IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } impl IntoIterator for &ValueSet { - type Item = IKeyValuePair; - type IntoIter = IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } diff --git a/crates/libs/windows/src/Windows/Foundation/mod.rs b/crates/libs/windows/src/Windows/Foundation/mod.rs index 93565ffb882..ddf3afef618 100644 --- a/crates/libs/windows/src/Windows/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/mod.rs @@ -3155,10 +3155,7 @@ pub struct IUriRuntimeClass_Vtbl { pub Password: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Path: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Query: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub QueryParsed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - QueryParsed: usize, pub RawUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SchemeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UserName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3259,13 +3256,10 @@ pub struct IWwwFormUrlDecoderEntry_Vtbl { pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IWwwFormUrlDecoderRuntimeClass, IWwwFormUrlDecoderRuntimeClass_Vtbl, 0xd45a0451_f225_4542_9296_0e1df5d254df); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IWwwFormUrlDecoderRuntimeClass { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IWwwFormUrlDecoderRuntimeClass_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -3278,10 +3272,7 @@ impl windows_core::RuntimeType for IWwwFormUrlDecoderRuntimeClassFactory { #[repr(C)] pub struct IWwwFormUrlDecoderRuntimeClassFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateWwwFormUrlDecoder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWwwFormUrlDecoder: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -3852,7 +3843,6 @@ impl Uri { (windows_core::Interface::vtable(this).Query)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn QueryParsed(&self) -> windows_core::Result { let this = self; unsafe { @@ -3959,32 +3949,28 @@ impl windows_core::RuntimeName for Uri { } unsafe impl Send for Uri {} unsafe impl Sync for Uri {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct WwwFormUrlDecoder(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(WwwFormUrlDecoder, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(WwwFormUrlDecoder, Collections::IIterable, Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(WwwFormUrlDecoder, windows_collections::IIterable, windows_collections::IVectorView); impl WwwFormUrlDecoder { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) @@ -3994,14 +3980,14 @@ impl WwwFormUrlDecoder { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) @@ -4025,35 +4011,28 @@ impl WwwFormUrlDecoder { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for WwwFormUrlDecoder { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for WwwFormUrlDecoder { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for WwwFormUrlDecoder { const NAME: &'static str = "Windows.Foundation.WwwFormUrlDecoder"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for WwwFormUrlDecoder {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for WwwFormUrlDecoder {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for WwwFormUrlDecoder { type Item = IWwwFormUrlDecoderEntry; - type IntoIter = Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &WwwFormUrlDecoder { type Item = IWwwFormUrlDecoderEntry; - type IntoIter = Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } diff --git a/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs index 0d6194e0431..187c21adb31 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/Preview/mod.rs @@ -181,23 +181,20 @@ pub struct ILegacyGipGameControllerProvider_Vtbl { pub IsFirmwareCorrupted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsInterfaceSupported: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut bool) -> windows_core::HRESULT, pub IsSyntheticDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PreferredTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PreferredTypes: usize, pub ExecuteCommand: unsafe extern "system" fn(*mut core::ffi::c_void, DeviceCommand) -> windows_core::HRESULT, pub SetHomeLedIntensity: unsafe extern "system" fn(*mut core::ffi::c_void, u8) -> windows_core::HRESULT, pub GetExtendedDeviceInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, pub SetHeadsetOperation: unsafe extern "system" fn(*mut core::ffi::c_void, HeadsetOperation, u32, *const u8) -> windows_core::HRESULT, pub GetHeadsetOperation: unsafe extern "system" fn(*mut core::ffi::c_void, HeadsetOperation, *mut u32, *mut *mut u8) -> windows_core::HRESULT, pub AppCompatVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] + #[cfg(feature = "System")] pub SetStandardControllerButtonRemapping: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] + #[cfg(not(feature = "System"))] SetStandardControllerButtonRemapping: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] + #[cfg(feature = "System")] pub GetStandardControllerButtonRemapping: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] + #[cfg(not(feature = "System"))] GetStandardControllerButtonRemapping: usize, } windows_core::imp::define_interface!(ILegacyGipGameControllerProviderStatics, ILegacyGipGameControllerProviderStatics_Vtbl, 0xd40dda17_b1f4_499a_874c_7095aac15291); @@ -283,8 +280,7 @@ impl LegacyGipGameControllerProvider { (windows_core::Interface::vtable(this).IsSyntheticDevice)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PreferredTypes(&self) -> windows_core::Result> { + pub fn PreferredTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -324,17 +320,17 @@ impl LegacyGipGameControllerProvider { (windows_core::Interface::vtable(this).AppCompatVersion)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] + #[cfg(feature = "System")] pub fn SetStandardControllerButtonRemapping(&self, user: P0, previous: bool, remapping: P2) -> windows_core::Result<()> where P0: windows_core::Param, - P2: windows_core::Param>, + P2: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetStandardControllerButtonRemapping)(windows_core::Interface::as_raw(this), user.param().abi(), previous, remapping.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub fn GetStandardControllerButtonRemapping(&self, user: P0, previous: bool) -> windows_core::Result> + #[cfg(feature = "System")] + pub fn GetStandardControllerButtonRemapping(&self, user: P0, previous: bool) -> windows_core::Result> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/Gaming/Input/mod.rs b/crates/libs/windows/src/Windows/Gaming/Input/mod.rs index 3827d74be5c..4d812343c72 100644 --- a/crates/libs/windows/src/Windows/Gaming/Input/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Input/mod.rs @@ -48,8 +48,7 @@ impl ArcadeStick { pub fn RemoveArcadeStickRemoved(token: i64) -> windows_core::Result<()> { Self::IArcadeStickStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveArcadeStickRemoved)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn ArcadeSticks() -> windows_core::Result> { + pub fn ArcadeSticks() -> windows_core::Result> { Self::IArcadeStickStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ArcadeSticks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -278,8 +277,7 @@ impl FlightStick { pub fn RemoveFlightStickRemoved(token: i64) -> windows_core::Result<()> { Self::IFlightStickStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveFlightStickRemoved)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FlightSticks() -> windows_core::Result> { + pub fn FlightSticks() -> windows_core::Result> { Self::IFlightStickStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FlightSticks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -690,8 +688,7 @@ impl Gamepad { pub fn RemoveGamepadRemoved(token: i64) -> windows_core::Result<()> { Self::IGamepadStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveGamepadRemoved)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gamepads() -> windows_core::Result> { + pub fn Gamepads() -> windows_core::Result> { Self::IGamepadStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gamepads)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -884,10 +881,7 @@ pub struct IArcadeStickStatics_Vtbl { pub RemoveArcadeStickAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub ArcadeStickRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveArcadeStickRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ArcadeSticks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ArcadeSticks: usize, } windows_core::imp::define_interface!(IArcadeStickStatics2, IArcadeStickStatics2_Vtbl, 0x52b5d744_bb86_445a_b59c_596f0e2a49df); impl windows_core::RuntimeType for IArcadeStickStatics2 { @@ -920,10 +914,7 @@ pub struct IFlightStickStatics_Vtbl { pub RemoveFlightStickAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub FlightStickRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveFlightStickRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FlightSticks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FlightSticks: usize, pub FromGameController: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IGameController, IGameController_Vtbl, 0x1baf6522_5f64_42c5_8267_b9fe2215bfbd); @@ -1232,10 +1223,7 @@ pub struct IGamepadStatics_Vtbl { pub RemoveGamepadAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub GamepadRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveGamepadRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Gamepads: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gamepads: usize, } windows_core::imp::define_interface!(IGamepadStatics2, IGamepadStatics2_Vtbl, 0x42676dc5_0856_47c4_9213_b395504c3a3c); impl windows_core::RuntimeType for IGamepadStatics2 { @@ -1286,10 +1274,7 @@ pub struct IRacingWheelStatics_Vtbl { pub RemoveRacingWheelAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub RacingWheelRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveRacingWheelRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RacingWheels: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RacingWheels: usize, } windows_core::imp::define_interface!(IRacingWheelStatics2, IRacingWheelStatics2_Vtbl, 0xe666bcaa_edfd_4323_a9f6_3c384048d1ed); impl windows_core::RuntimeType for IRacingWheelStatics2 { @@ -1309,9 +1294,9 @@ pub struct IRawGameController_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AxisCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub ButtonCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Gaming_Input_ForceFeedback"))] + #[cfg(feature = "Gaming_Input_ForceFeedback")] pub ForceFeedbackMotors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Gaming_Input_ForceFeedback")))] + #[cfg(not(feature = "Gaming_Input_ForceFeedback"))] ForceFeedbackMotors: usize, pub HardwareProductId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub HardwareVendorId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, @@ -1327,9 +1312,9 @@ impl windows_core::RuntimeType for IRawGameController2 { #[repr(C)] pub struct IRawGameController2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Haptics", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Haptics")] pub SimpleHapticsControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Haptics", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Haptics"))] SimpleHapticsControllers: usize, pub NonRoamableId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1345,10 +1330,7 @@ pub struct IRawGameControllerStatics_Vtbl { pub RemoveRawGameControllerAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub RawGameControllerRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveRawGameControllerRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RawGameControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RawGameControllers: usize, pub FromGameController: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IUINavigationController, IUINavigationController_Vtbl, 0xe5aeefdd_f50e_4a55_8cdc_d33229548175); @@ -1373,10 +1355,7 @@ pub struct IUINavigationControllerStatics_Vtbl { pub RemoveUINavigationControllerAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub UINavigationControllerRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveUINavigationControllerRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub UINavigationControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UINavigationControllers: usize, } windows_core::imp::define_interface!(IUINavigationControllerStatics2, IUINavigationControllerStatics2_Vtbl, 0xe0cb28e3_b20b_4b0b_9ed4_f3d53cec0de4); impl windows_core::RuntimeType for IUINavigationControllerStatics2 { @@ -1604,8 +1583,7 @@ impl RacingWheel { pub fn RemoveRacingWheelRemoved(token: i64) -> windows_core::Result<()> { Self::IRacingWheelStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRacingWheelRemoved)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn RacingWheels() -> windows_core::Result> { + pub fn RacingWheels() -> windows_core::Result> { Self::IRacingWheelStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RacingWheels)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1819,8 +1797,8 @@ impl RawGameController { (windows_core::Interface::vtable(this).ButtonCount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Gaming_Input_ForceFeedback"))] - pub fn ForceFeedbackMotors(&self) -> windows_core::Result> { + #[cfg(feature = "Gaming_Input_ForceFeedback")] + pub fn ForceFeedbackMotors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1869,8 +1847,8 @@ impl RawGameController { (windows_core::Interface::vtable(this).GetSwitchKind)(windows_core::Interface::as_raw(this), switchindex, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Devices_Haptics", feature = "Foundation_Collections"))] - pub fn SimpleHapticsControllers(&self) -> windows_core::Result> { + #[cfg(feature = "Devices_Haptics")] + pub fn SimpleHapticsControllers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1915,8 +1893,7 @@ impl RawGameController { pub fn RemoveRawGameControllerRemoved(token: i64) -> windows_core::Result<()> { Self::IRawGameControllerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRawGameControllerRemoved)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn RawGameControllers() -> windows_core::Result> { + pub fn RawGameControllers() -> windows_core::Result> { Self::IRawGameControllerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RawGameControllers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2125,8 +2102,7 @@ impl UINavigationController { pub fn RemoveUINavigationControllerRemoved(token: i64) -> windows_core::Result<()> { Self::IUINavigationControllerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveUINavigationControllerRemoved)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn UINavigationControllers() -> windows_core::Result> { + pub fn UINavigationControllers() -> windows_core::Result> { Self::IUINavigationControllerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).UINavigationControllers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs index cd376d599cd..edd2bc243dc 100644 --- a/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/Preview/GamesEnumeration/mod.rs @@ -1,14 +1,12 @@ pub struct GameList; impl GameList { - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync() -> windows_core::Result>> { + pub fn FindAllAsync() -> windows_core::Result>> { Self::IGameListStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsyncPackageFamilyName(packagefamilyname: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindAllAsyncPackageFamilyName(packagefamilyname: &windows_core::HSTRING) -> windows_core::Result>> { Self::IGameListStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsyncPackageFamilyName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -60,8 +58,7 @@ impl GameList { (windows_core::Interface::vtable(this).MergeEntriesAsync)(windows_core::Interface::as_raw(this), left.param().abi(), right.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn UnmergeEntryAsync(mergedentry: P0) -> windows_core::Result>> + pub fn UnmergeEntryAsync(mergedentry: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -191,8 +188,7 @@ impl GameListEntry { (windows_core::Interface::vtable(this).Category)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -380,8 +376,7 @@ impl GameModeConfiguration { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsEnabled)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RelatedProcessNames(&self) -> windows_core::Result> { + pub fn RelatedProcessNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -508,8 +503,7 @@ unsafe impl Sync for GameModeConfiguration {} pub struct GameModeUserConfiguration(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(GameModeUserConfiguration, windows_core::IUnknown, windows_core::IInspectable); impl GameModeUserConfiguration { - #[cfg(feature = "Foundation_Collections")] - pub fn GamingRelatedProcessNames(&self) -> windows_core::Result> { + pub fn GamingRelatedProcessNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -574,8 +568,7 @@ impl IGameListEntry { (windows_core::Interface::vtable(this).Category)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -590,19 +583,19 @@ impl IGameListEntry { } } } -#[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] +#[cfg(feature = "ApplicationModel")] impl windows_core::RuntimeName for IGameListEntry { const NAME: &'static str = "Windows.Gaming.Preview.GamesEnumeration.IGameListEntry"; } -#[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] +#[cfg(feature = "ApplicationModel")] pub trait IGameListEntry_Impl: windows_core::IUnknownImpl { fn DisplayInfo(&self) -> windows_core::Result; fn LaunchAsync(&self) -> windows_core::Result>; fn Category(&self) -> windows_core::Result; - fn Properties(&self) -> windows_core::Result>; + fn Properties(&self) -> windows_core::Result>; fn SetCategoryAsync(&self, value: GameListCategory) -> windows_core::Result; } -#[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] +#[cfg(feature = "ApplicationModel")] impl IGameListEntry_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn DisplayInfo(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -691,10 +684,7 @@ pub struct IGameListEntry_Vtbl { DisplayInfo: usize, pub LaunchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Category: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GameListCategory) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub SetCategoryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, GameListCategory, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IGameListEntry2, IGameListEntry2_Vtbl, 0xd84a8f8b_8749_4a25_90d3_f6c5a427886d); @@ -729,14 +719,8 @@ impl windows_core::RuntimeType for IGameListStatics { #[repr(C)] pub struct IGameListStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsyncPackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsyncPackageFamilyName: usize, pub GameAdded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveGameAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub GameRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -752,10 +736,7 @@ impl windows_core::RuntimeType for IGameListStatics2 { pub struct IGameListStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MergeEntriesAsync: 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, - #[cfg(feature = "Foundation_Collections")] pub UnmergeEntryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UnmergeEntryAsync: usize, } windows_core::imp::define_interface!(IGameModeConfiguration, IGameModeConfiguration_Vtbl, 0x78e591af_b142_4ef0_8830_55bc2be4f5ea); impl windows_core::RuntimeType for IGameModeConfiguration { @@ -766,10 +747,7 @@ pub struct IGameModeConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RelatedProcessNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RelatedProcessNames: usize, pub PercentGpuTimeAllocatedToGame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPercentGpuTimeAllocatedToGame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub PercentGpuMemoryAllocatedToGame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -793,10 +771,7 @@ impl windows_core::RuntimeType for IGameModeUserConfiguration { #[repr(C)] pub struct IGameModeUserConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GamingRelatedProcessNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GamingRelatedProcessNames: usize, pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IGameModeUserConfigurationStatics, IGameModeUserConfigurationStatics_Vtbl, 0x6e50d97c_66ea_478e_a4a1_f57c0e8d00e7); diff --git a/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs b/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs index 764d635fbbf..f1e4244ecae 100644 --- a/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Gaming/XboxLive/Storage/mod.rs @@ -10,8 +10,8 @@ impl GameSaveBlobGetResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn Value(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn Value(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -75,8 +75,7 @@ impl GameSaveBlobInfoGetResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Value(&self) -> windows_core::Result> { + pub fn Value(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -154,11 +153,11 @@ impl GameSaveContainer { (windows_core::Interface::vtable(this).Provider)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn SubmitUpdatesAsync(&self, blobstowrite: P0, blobstodelete: P1, displayname: &windows_core::HSTRING) -> windows_core::Result> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -166,10 +165,10 @@ impl GameSaveContainer { (windows_core::Interface::vtable(this).SubmitUpdatesAsync)(windows_core::Interface::as_raw(this), blobstowrite.param().abi(), blobstodelete.param().abi(), core::mem::transmute_copy(displayname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn ReadAsync(&self, blobstoread: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -177,10 +176,9 @@ impl GameSaveContainer { (windows_core::Interface::vtable(this).ReadAsync)(windows_core::Interface::as_raw(this), blobstoread.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetAsync(&self, blobstoread: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -192,7 +190,7 @@ impl GameSaveContainer { pub fn SubmitPropertySetUpdatesAsync(&self, blobstowrite: P0, blobstodelete: P1, displayname: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -285,8 +283,7 @@ impl GameSaveContainerInfoGetResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Value(&self) -> windows_core::Result> { + pub fn Value(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -444,8 +441,7 @@ impl GameSaveProvider { (windows_core::Interface::vtable(this).GetRemainingBytesInQuotaAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ContainersChangedSinceLastSync(&self) -> windows_core::Result> { + pub fn ContainersChangedSinceLastSync(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -529,9 +525,9 @@ impl windows_core::RuntimeType for IGameSaveBlobGetResult { pub struct IGameSaveBlobGetResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GameSaveErrorStatus) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] Value: usize, } windows_core::imp::define_interface!(IGameSaveBlobInfo, IGameSaveBlobInfo_Vtbl, 0xadd38034_baf0_4645_b6d0_46edaffb3c2b); @@ -552,10 +548,7 @@ impl windows_core::RuntimeType for IGameSaveBlobInfoGetResult { pub struct IGameSaveBlobInfoGetResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GameSaveErrorStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Value: usize, } windows_core::imp::define_interface!(IGameSaveBlobInfoQuery, IGameSaveBlobInfoQuery_Vtbl, 0x9fdd74b2_eeee_447b_a9d2_7f96c0f83208); impl windows_core::RuntimeType for IGameSaveBlobInfoQuery { @@ -577,18 +570,15 @@ pub struct IGameSaveContainer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Provider: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub SubmitUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] SubmitUpdatesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ReadAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ReadAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsync: usize, #[cfg(feature = "Foundation_Collections")] pub SubmitPropertySetUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] @@ -616,10 +606,7 @@ impl windows_core::RuntimeType for IGameSaveContainerInfoGetResult { pub struct IGameSaveContainerInfoGetResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GameSaveErrorStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Value: usize, } windows_core::imp::define_interface!(IGameSaveContainerInfoQuery, IGameSaveContainerInfoQuery_Vtbl, 0x3c94e863_6f80_4327_9327_ffc11afd42b3); impl windows_core::RuntimeType for IGameSaveContainerInfoQuery { @@ -657,10 +644,7 @@ pub struct IGameSaveProvider_Vtbl { pub CreateContainerInfoQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateContainerInfoQueryWithName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetRemainingBytesInQuotaAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ContainersChangedSinceLastSync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ContainersChangedSinceLastSync: usize, } windows_core::imp::define_interface!(IGameSaveProviderGetResult, IGameSaveProviderGetResult_Vtbl, 0x3ab90816_d393_4d65_ac16_41c3e67ab945); impl windows_core::RuntimeType for IGameSaveProviderGetResult { diff --git a/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs b/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs index 1fe6ebf1c72..18b0fc5fe7a 100644 --- a/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/Collation/mod.rs @@ -30,15 +30,11 @@ impl windows_core::RuntimeName for CharacterGrouping { } unsafe impl Send for CharacterGrouping {} unsafe impl Sync for CharacterGrouping {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CharacterGroupings(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(CharacterGroupings, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CharacterGroupings, super::super::Foundation::Collections::IIterable, super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(CharacterGroupings, windows_collections::IIterable, windows_collections::IVectorView); impl CharacterGroupings { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -60,22 +56,22 @@ impl CharacterGroupings { (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(language), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) @@ -85,14 +81,14 @@ impl CharacterGroupings { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) @@ -103,35 +99,28 @@ impl CharacterGroupings { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CharacterGroupings { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CharacterGroupings { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CharacterGroupings { const NAME: &'static str = "Windows.Globalization.Collation.CharacterGroupings"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CharacterGroupings {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CharacterGroupings {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CharacterGroupings { type Item = CharacterGrouping; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CharacterGroupings { type Item = CharacterGrouping; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -146,13 +135,10 @@ pub struct ICharacterGrouping_Vtbl { pub First: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Label: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(ICharacterGroupings, ICharacterGroupings_Vtbl, 0xb8d20a75_d4cf_4055_80e5_ce169c226496); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ICharacterGroupings { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct ICharacterGroupings_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -165,8 +151,5 @@ impl windows_core::RuntimeType for ICharacterGroupingsFactory { #[repr(C)] pub struct ICharacterGroupingsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, } diff --git a/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs index b4393dc06b2..113312b0dc7 100644 --- a/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/DateTimeFormatting/mod.rs @@ -3,8 +3,7 @@ pub struct DateTimeFormatter(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DateTimeFormatter, windows_core::IUnknown, windows_core::IInspectable); impl DateTimeFormatter { - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -43,8 +42,7 @@ impl DateTimeFormatter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetNumeralSystem)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Patterns(&self) -> windows_core::Result> { + pub fn Patterns(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -141,20 +139,18 @@ impl DateTimeFormatter { (windows_core::Interface::vtable(this).CreateDateTimeFormatter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formattemplate), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterLanguages(formattemplate: &windows_core::HSTRING, languages: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateDateTimeFormatterLanguages)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formattemplate), languages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterContext(formattemplate: &windows_core::HSTRING, languages: P1, geographicregion: &windows_core::HSTRING, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -173,20 +169,18 @@ impl DateTimeFormatter { (windows_core::Interface::vtable(this).CreateDateTimeFormatterTime)(windows_core::Interface::as_raw(this), hourformat, minuteformat, secondformat, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterDateTimeLanguages(yearformat: YearFormat, monthformat: MonthFormat, dayformat: DayFormat, dayofweekformat: DayOfWeekFormat, hourformat: HourFormat, minuteformat: MinuteFormat, secondformat: SecondFormat, languages: P7) -> windows_core::Result where - P7: windows_core::Param>, + P7: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateDateTimeFormatterDateTimeLanguages)(windows_core::Interface::as_raw(this), yearformat, monthformat, dayformat, dayofweekformat, hourformat, minuteformat, secondformat, languages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateDateTimeFormatterDateTimeContext(yearformat: YearFormat, monthformat: MonthFormat, dayformat: DayFormat, dayofweekformat: DayOfWeekFormat, hourformat: HourFormat, minuteformat: MinuteFormat, secondformat: SecondFormat, languages: P7, geographicregion: &windows_core::HSTRING, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING) -> windows_core::Result where - P7: windows_core::Param>, + P7: windows_core::Param>, { Self::IDateTimeFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -286,19 +280,13 @@ impl windows_core::RuntimeType for IDateTimeFormatter { #[repr(C)] pub struct IDateTimeFormatter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, pub GeographicRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Calendar: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NumeralSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetNumeralSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Patterns: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Patterns: usize, pub Template: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Format: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IncludeYear: unsafe extern "system" fn(*mut core::ffi::c_void, *mut YearFormat) -> windows_core::HRESULT, @@ -328,24 +316,12 @@ impl windows_core::RuntimeType for IDateTimeFormatterFactory { pub struct IDateTimeFormatterFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateDateTimeFormatter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateDateTimeFormatterLanguages: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateDateTimeFormatterLanguages: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateDateTimeFormatterContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateDateTimeFormatterContext: usize, pub CreateDateTimeFormatterDate: unsafe extern "system" fn(*mut core::ffi::c_void, YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateDateTimeFormatterTime: unsafe extern "system" fn(*mut core::ffi::c_void, HourFormat, MinuteFormat, SecondFormat, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateDateTimeFormatterDateTimeLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateDateTimeFormatterDateTimeLanguages: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateDateTimeFormatterDateTimeContext: unsafe extern "system" fn(*mut core::ffi::c_void, YearFormat, MonthFormat, DayFormat, DayOfWeekFormat, HourFormat, MinuteFormat, SecondFormat, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateDateTimeFormatterDateTimeContext: usize, } windows_core::imp::define_interface!(IDateTimeFormatterStatics, IDateTimeFormatterStatics_Vtbl, 0xbfcde7c0_df4c_4a2e_9012_f47daf3f1212); impl windows_core::RuntimeType for IDateTimeFormatterStatics { diff --git a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs index 29e277399b7..406885d8a7f 100644 --- a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs @@ -37,10 +37,9 @@ impl CurrencyFormatter { (windows_core::Interface::vtable(this).CreateCurrencyFormatterCode)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(currencycode), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCurrencyFormatterCodeContext(currencycode: &windows_core::HSTRING, languages: P1, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::ICurrencyFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -89,8 +88,7 @@ impl CurrencyFormatter { (windows_core::Interface::vtable(this).FormatDouble)(windows_core::Interface::as_raw(this), value, &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -273,10 +271,9 @@ impl DecimalFormatter { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateDecimalFormatter(languages: P0, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IDecimalFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -325,8 +322,7 @@ impl DecimalFormatter { (windows_core::Interface::vtable(this).FormatDouble)(windows_core::Interface::as_raw(this), value, &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -515,10 +511,7 @@ impl windows_core::RuntimeType for ICurrencyFormatterFactory { pub struct ICurrencyFormatterFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateCurrencyFormatterCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateCurrencyFormatterCodeContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCurrencyFormatterCodeContext: usize, } windows_core::imp::define_interface!(IDecimalFormatterFactory, IDecimalFormatterFactory_Vtbl, 0x0d018c9a_e393_46b8_b830_7a69c8f89fbb); impl windows_core::RuntimeType for IDecimalFormatterFactory { @@ -527,10 +520,7 @@ impl windows_core::RuntimeType for IDecimalFormatterFactory { #[repr(C)] pub struct IDecimalFormatterFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateDecimalFormatter: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateDecimalFormatter: usize, } windows_core::imp::define_interface!(IIncrementNumberRounder, IIncrementNumberRounder_Vtbl, 0x70a64ff8_66ab_4155_9da1_739e46764543); impl windows_core::RuntimeType for IIncrementNumberRounder { @@ -740,8 +730,7 @@ impl windows_core::RuntimeType for INumberFormatterOptions { } windows_core::imp::interface_hierarchy!(INumberFormatterOptions, windows_core::IUnknown, windows_core::IInspectable); impl INumberFormatterOptions { - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -825,13 +814,11 @@ impl INumberFormatterOptions { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for INumberFormatterOptions { const NAME: &'static str = "Windows.Globalization.NumberFormatting.INumberFormatterOptions"; } -#[cfg(feature = "Foundation_Collections")] pub trait INumberFormatterOptions_Impl: windows_core::IUnknownImpl { - fn Languages(&self) -> windows_core::Result>; + fn Languages(&self) -> windows_core::Result>; fn GeographicRegion(&self) -> windows_core::Result; fn IntegerDigits(&self) -> windows_core::Result; fn SetIntegerDigits(&self, value: i32) -> windows_core::Result<()>; @@ -846,7 +833,6 @@ pub trait INumberFormatterOptions_Impl: windows_core::IUnknownImpl { fn ResolvedLanguage(&self) -> windows_core::Result; fn ResolvedGeographicRegion(&self) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl INumberFormatterOptions_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Languages(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1017,10 +1003,7 @@ impl INumberFormatterOptions_Vtbl { #[repr(C)] pub struct INumberFormatterOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, pub GeographicRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IntegerDigits: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetIntegerDigits: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, @@ -1360,10 +1343,7 @@ impl windows_core::RuntimeType for INumeralSystemTranslator { #[repr(C)] pub struct INumeralSystemTranslator_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, pub ResolvedLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NumeralSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetNumeralSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1376,10 +1356,7 @@ impl windows_core::RuntimeType for INumeralSystemTranslatorFactory { #[repr(C)] pub struct INumeralSystemTranslatorFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, } windows_core::imp::define_interface!(IPercentFormatterFactory, IPercentFormatterFactory_Vtbl, 0xb7828aef_fed4_4018_a6e2_e09961e03765); impl windows_core::RuntimeType for IPercentFormatterFactory { @@ -1388,10 +1365,7 @@ impl windows_core::RuntimeType for IPercentFormatterFactory { #[repr(C)] pub struct IPercentFormatterFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreatePercentFormatter: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreatePercentFormatter: usize, } windows_core::imp::define_interface!(IPermilleFormatterFactory, IPermilleFormatterFactory_Vtbl, 0x2b37b4ac_e638_4ed5_a998_62f6b06a49ae); impl windows_core::RuntimeType for IPermilleFormatterFactory { @@ -1400,10 +1374,7 @@ impl windows_core::RuntimeType for IPermilleFormatterFactory { #[repr(C)] pub struct IPermilleFormatterFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreatePermilleFormatter: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreatePermilleFormatter: usize, } windows_core::imp::define_interface!(ISignedZeroOption, ISignedZeroOption_Vtbl, 0xfd1cdd31_0a3c_49c4_a642_96a1564f4f30); impl windows_core::RuntimeType for ISignedZeroOption { @@ -1640,8 +1611,7 @@ impl NumeralSystemTranslator { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1673,10 +1643,9 @@ impl NumeralSystemTranslator { (windows_core::Interface::vtable(this).TranslateNumerals)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(languages: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::INumeralSystemTranslatorFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1755,8 +1724,7 @@ impl PercentFormatter { (windows_core::Interface::vtable(this).FormatDouble)(windows_core::Interface::as_raw(this), value, &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1874,10 +1842,9 @@ impl PercentFormatter { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn CreatePercentFormatter(languages: P0, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IPercentFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1978,8 +1945,7 @@ impl PermilleFormatter { (windows_core::Interface::vtable(this).FormatDouble)(windows_core::Interface::as_raw(this), value, &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2097,10 +2063,9 @@ impl PermilleFormatter { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetNumberRounder)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn CreatePermilleFormatter(languages: P0, geographicregion: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IPermilleFormatterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Globalization/mod.rs b/crates/libs/windows/src/Windows/Globalization/mod.rs index 941a3d0de1d..614ca2b816f 100644 --- a/crates/libs/windows/src/Windows/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/mod.rs @@ -19,22 +19,20 @@ impl ApplicationLanguages { pub fn SetPrimaryLanguageOverride(value: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IApplicationLanguagesStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetPrimaryLanguageOverride)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages() -> windows_core::Result> { + pub fn Languages() -> windows_core::Result> { Self::IApplicationLanguagesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Languages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn ManifestLanguages() -> windows_core::Result> { + pub fn ManifestLanguages() -> windows_core::Result> { Self::IApplicationLanguagesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ManifestLanguages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub fn GetLanguagesForUser(user: P0) -> windows_core::Result> + #[cfg(feature = "System")] + pub fn GetLanguagesForUser(user: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -82,8 +80,7 @@ impl Calendar { let this = self; unsafe { (windows_core::Interface::vtable(this).SetToMax)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -679,30 +676,27 @@ impl Calendar { (windows_core::Interface::vtable(this).IsDaylightSavingTime)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendarDefaultCalendarAndClock(languages: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCalendarDefaultCalendarAndClock)(windows_core::Interface::as_raw(this), languages.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendar(languages: P0, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ICalendarFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateCalendar)(windows_core::Interface::as_raw(this), languages.param().abi(), core::mem::transmute_copy(calendar), core::mem::transmute_copy(clock), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCalendarWithTimeZone(languages: P0, calendar: &windows_core::HSTRING, clock: &windows_core::HSTRING, timezoneid: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ICalendarFactory2(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1989,8 +1983,7 @@ impl GeographicRegion { (windows_core::Interface::vtable(this).NativeName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CurrenciesInUse(&self) -> windows_core::Result> { + pub fn CurrenciesInUse(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2039,14 +2032,8 @@ pub struct IApplicationLanguagesStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PrimaryLanguageOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPrimaryLanguageOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, - #[cfg(feature = "Foundation_Collections")] pub ManifestLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ManifestLanguages: usize, } windows_core::imp::define_interface!(IApplicationLanguagesStatics2, IApplicationLanguagesStatics2_Vtbl, 0x1df0de4f_072b_4d7b_8f06_cb2db40f2bb5); impl windows_core::RuntimeType for IApplicationLanguagesStatics2 { @@ -2055,9 +2042,9 @@ impl windows_core::RuntimeType for IApplicationLanguagesStatics2 { #[repr(C)] pub struct IApplicationLanguagesStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] + #[cfg(feature = "System")] pub GetLanguagesForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] + #[cfg(not(feature = "System"))] GetLanguagesForUser: usize, } windows_core::imp::define_interface!(ICalendar, ICalendar_Vtbl, 0xca30221d_86d9_40fb_a26b_d44eb7cf08ea); @@ -2070,10 +2057,7 @@ pub struct ICalendar_Vtbl { pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetToMin: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub SetToMax: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, pub NumeralSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetNumeralSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetCalendarSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2176,14 +2160,8 @@ impl windows_core::RuntimeType for ICalendarFactory { #[repr(C)] pub struct ICalendarFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateCalendarDefaultCalendarAndClock: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCalendarDefaultCalendarAndClock: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateCalendar: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCalendar: usize, } windows_core::imp::define_interface!(ICalendarFactory2, ICalendarFactory2_Vtbl, 0xb44b378c_ca7e_4590_9e72_ea2bec1a5115); impl windows_core::RuntimeType for ICalendarFactory2 { @@ -2192,10 +2170,7 @@ impl windows_core::RuntimeType for ICalendarFactory2 { #[repr(C)] pub struct ICalendarFactory2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateCalendarWithTimeZone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCalendarWithTimeZone: usize, } windows_core::imp::define_interface!(ICalendarIdentifiersStatics, ICalendarIdentifiersStatics_Vtbl, 0x80653f68_2cb2_4c1f_b590_f0f52bf4fd1a); impl windows_core::RuntimeType for ICalendarIdentifiersStatics { @@ -2464,10 +2439,7 @@ pub struct IGeographicRegion_Vtbl { pub CodeThreeDigit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NativeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CurrenciesInUse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CurrenciesInUse: usize, } windows_core::imp::define_interface!(IGeographicRegionFactory, IGeographicRegionFactory_Vtbl, 0x53425270_77b4_426b_859f_81e19d512546); impl windows_core::RuntimeType for IGeographicRegionFactory { @@ -2505,14 +2477,8 @@ impl windows_core::RuntimeType for IJapanesePhoneticAnalyzerStatics { #[repr(C)] pub struct IJapanesePhoneticAnalyzerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetWords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetWords: usize, - #[cfg(feature = "Foundation_Collections")] pub GetWordsWithMonoRubyOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetWordsWithMonoRubyOption: usize, } windows_core::imp::define_interface!(ILanguage, ILanguage_Vtbl, 0xea79a752_f7c2_4265_b1bd_c4dec4e4f080); impl windows_core::RuntimeType for ILanguage { @@ -2551,10 +2517,7 @@ impl windows_core::RuntimeType for ILanguageExtensionSubtags { #[repr(C)] pub struct ILanguageExtensionSubtags_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetExtensionSubtags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetExtensionSubtags: usize, } windows_core::imp::define_interface!(ILanguageFactory, ILanguageFactory_Vtbl, 0x9b0252ac_0c27_44f8_b792_9793fb66c63e); impl windows_core::RuntimeType for ILanguageFactory { @@ -2591,10 +2554,7 @@ impl windows_core::RuntimeType for ILanguageStatics3 { #[repr(C)] pub struct ILanguageStatics3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetMuiCompatibleLanguageListFromLanguageTags: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMuiCompatibleLanguageListFromLanguageTags: usize, } windows_core::imp::define_interface!(INumeralSystemIdentifiersStatics, INumeralSystemIdentifiersStatics_Vtbl, 0xa5c662c3_68c9_4d3d_b765_972029e21dec); impl windows_core::RuntimeType for INumeralSystemIdentifiersStatics { @@ -2711,15 +2671,13 @@ impl windows_core::RuntimeName for JapanesePhoneme { } pub struct JapanesePhoneticAnalyzer; impl JapanesePhoneticAnalyzer { - #[cfg(feature = "Foundation_Collections")] - pub fn GetWords(input: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetWords(input: &windows_core::HSTRING) -> windows_core::Result> { Self::IJapanesePhoneticAnalyzerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetWords)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetWordsWithMonoRubyOption(input: &windows_core::HSTRING, monoruby: bool) -> windows_core::Result> { + pub fn GetWordsWithMonoRubyOption(input: &windows_core::HSTRING, monoruby: bool) -> windows_core::Result> { Self::IJapanesePhoneticAnalyzerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetWordsWithMonoRubyOption)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), monoruby, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2780,8 +2738,7 @@ impl Language { (windows_core::Interface::vtable(this).AbbreviatedName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetExtensionSubtags(&self, singleton: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetExtensionSubtags(&self, singleton: &windows_core::HSTRING) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2812,10 +2769,9 @@ impl Language { (windows_core::Interface::vtable(this).TrySetInputMethodLanguageTag)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(languagetag), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMuiCompatibleLanguageListFromLanguageTags(languagetags: P0) -> windows_core::Result> + pub fn GetMuiCompatibleLanguageListFromLanguageTags(languagetags: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ILanguageStatics3(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs b/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs index 8434983a7d8..d3f272baf1a 100644 --- a/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Capture/mod.rs @@ -30,8 +30,7 @@ impl Direct3D11CaptureFrame { (windows_core::Interface::vtable(this).ContentSize)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DirtyRegions(&self) -> windows_core::Result> { + pub fn DirtyRegions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -421,10 +420,7 @@ impl windows_core::RuntimeType for IDirect3D11CaptureFrame2 { #[repr(C)] pub struct IDirect3D11CaptureFrame2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DirtyRegions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DirtyRegions: usize, pub DirtyRegionMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GraphicsCaptureDirtyRegionMode) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IDirect3D11CaptureFramePool, IDirect3D11CaptureFramePool_Vtbl, 0x24eb6d22_1975_422e_82e7_780dbd8ddf24); diff --git a/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs index 367c7b01229..ab89dd0f41e 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/Core/mod.rs @@ -55,8 +55,7 @@ impl windows_core::RuntimeType for HdmiDisplayHdrOption { pub struct HdmiDisplayInformation(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HdmiDisplayInformation, windows_core::IUnknown, windows_core::IInspectable); impl HdmiDisplayInformation { - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedDisplayModes(&self) -> windows_core::Result> { + pub fn GetSupportedDisplayModes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -271,10 +270,7 @@ impl windows_core::RuntimeType for IHdmiDisplayInformation { #[repr(C)] pub struct IHdmiDisplayInformation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedDisplayModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedDisplayModes: usize, pub GetCurrentDisplayMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDefaultDisplayModeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestSetCurrentDisplayModeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs index 09e8d52f01b..9737cf9f39e 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs @@ -560,8 +560,7 @@ impl DisplayEnhancementOverrideCapabilities { (windows_core::Interface::vtable(this).IsBrightnessNitsControlSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSupportedNitRanges(&self) -> windows_core::Result> { + pub fn GetSupportedNitRanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1223,10 +1222,7 @@ pub struct IDisplayEnhancementOverrideCapabilities_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsBrightnessControlSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsBrightnessNitsControlSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSupportedNitRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSupportedNitRanges: usize, } windows_core::imp::define_interface!(IDisplayEnhancementOverrideCapabilitiesChangedEventArgs, IDisplayEnhancementOverrideCapabilitiesChangedEventArgs_Vtbl, 0xdb61e664_15fa_49da_8b77_07dbd2af585d); impl windows_core::RuntimeType for IDisplayEnhancementOverrideCapabilitiesChangedEventArgs { diff --git a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs index 2d53fea81e5..e203f4dfd9c 100644 --- a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs @@ -94,8 +94,7 @@ impl HolographicCamera { (windows_core::Interface::vtable(this).MaxQuadLayerCount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn QuadLayers(&self) -> windows_core::Result> { + pub fn QuadLayers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -487,16 +486,14 @@ unsafe impl Sync for HolographicDisplay {} pub struct HolographicFrame(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicFrame, windows_core::IUnknown, windows_core::IInspectable); impl HolographicFrame { - #[cfg(feature = "Foundation_Collections")] - pub fn AddedCameras(&self) -> windows_core::Result> { + pub fn AddedCameras(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AddedCameras)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RemovedCameras(&self) -> windows_core::Result> { + pub fn RemovedCameras(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -595,8 +592,7 @@ impl windows_core::RuntimeType for HolographicFrameId { pub struct HolographicFramePrediction(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicFramePrediction, windows_core::IUnknown, windows_core::IInspectable); impl HolographicFramePrediction { - #[cfg(feature = "Foundation_Collections")] - pub fn CameraPoses(&self) -> windows_core::Result> { + pub fn CameraPoses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -664,8 +660,7 @@ impl HolographicFramePresentationMonitor { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadReports(&self) -> windows_core::Result> { + pub fn ReadReports(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -814,8 +809,7 @@ impl HolographicFrameScanoutMonitor { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadReports(&self) -> windows_core::Result> { + pub fn ReadReports(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1297,8 +1291,8 @@ impl HolographicViewConfiguration { (windows_core::Interface::vtable(this).RequestRenderTargetSize)(windows_core::Interface::as_raw(this), size, &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] - pub fn SupportedPixelFormats(&self) -> windows_core::Result> { + #[cfg(feature = "Graphics_DirectX")] + pub fn SupportedPixelFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1357,8 +1351,7 @@ impl HolographicViewConfiguration { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsEnabled)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedDepthReprojectionMethods(&self) -> windows_core::Result> { + pub fn SupportedDepthReprojectionMethods(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1427,10 +1420,7 @@ pub struct IHolographicCamera3_Vtbl { pub IsPrimaryLayerEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsPrimaryLayerEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub MaxQuadLayerCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub QuadLayers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - QuadLayers: usize, } windows_core::imp::define_interface!(IHolographicCamera4, IHolographicCamera4_Vtbl, 0x9a2531d6_4723_4f39_a9a5_9d05181d9b44); impl windows_core::RuntimeType for IHolographicCamera4 { @@ -1635,14 +1625,8 @@ impl windows_core::RuntimeType for IHolographicFrame { #[repr(C)] pub struct IHolographicFrame_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AddedCameras: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddedCameras: usize, - #[cfg(feature = "Foundation_Collections")] pub RemovedCameras: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RemovedCameras: usize, pub GetRenderingParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Duration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub CurrentPrediction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1676,10 +1660,7 @@ impl windows_core::RuntimeType for IHolographicFramePrediction { #[repr(C)] pub struct IHolographicFramePrediction_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CameraPoses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CameraPoses: usize, #[cfg(feature = "Perception")] pub Timestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Perception"))] @@ -1695,10 +1676,7 @@ impl windows_core::RuntimeType for IHolographicFramePresentationMonitor { #[repr(C)] pub struct IHolographicFramePresentationMonitor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadReports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadReports: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IHolographicFramePresentationReport, IHolographicFramePresentationReport_Vtbl, 0x80baf614_f2f4_4c8a_8de3_065c78f6d5de); @@ -1736,10 +1714,7 @@ impl windows_core::RuntimeType for IHolographicFrameScanoutMonitor { #[repr(C)] pub struct IHolographicFrameScanoutMonitor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadReports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadReports: usize, } windows_core::imp::define_interface!(IHolographicFrameScanoutReport, IHolographicFrameScanoutReport_Vtbl, 0x0ebbe606_03a0_5ca0_b46e_bba068d7233f); impl windows_core::RuntimeType for IHolographicFrameScanoutReport { @@ -1925,9 +1900,9 @@ pub struct IHolographicViewConfiguration_Vtbl { pub NativeRenderTargetSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Size) -> windows_core::HRESULT, pub RenderTargetSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Size) -> windows_core::HRESULT, pub RequestRenderTargetSize: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Size, *mut super::super::Foundation::Size) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] + #[cfg(feature = "Graphics_DirectX")] pub SupportedPixelFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX")))] + #[cfg(not(feature = "Graphics_DirectX"))] SupportedPixelFormats: usize, #[cfg(feature = "Graphics_DirectX")] pub PixelFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::DirectX::DirectXPixelFormat) -> windows_core::HRESULT, @@ -1951,8 +1926,5 @@ impl windows_core::RuntimeType for IHolographicViewConfiguration2 { #[repr(C)] pub struct IHolographicViewConfiguration2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedDepthReprojectionMethods: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedDepthReprojectionMethods: usize, } diff --git a/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs b/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs index 6319b72c85d..ff47ad331f1 100644 --- a/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Imaging/mod.rs @@ -96,8 +96,7 @@ impl BitmapCodecInformation { (windows_core::Interface::vtable(this).CodecId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FileExtensions(&self) -> windows_core::Result> { + pub fn FileExtensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -111,8 +110,7 @@ impl BitmapCodecInformation { (windows_core::Interface::vtable(this).FriendlyName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MimeTypes(&self) -> windows_core::Result> { + pub fn MimeTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -216,8 +214,7 @@ impl BitmapDecoder { (windows_core::Interface::vtable(this).IcoDecoderId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetDecoderInformationEnumerator() -> windows_core::Result> { + pub fn GetDecoderInformationEnumerator() -> windows_core::Result> { Self::IBitmapDecoderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDecoderInformationEnumerator)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -465,10 +462,9 @@ impl BitmapEncoder { (windows_core::Interface::vtable(this).GoToNextFrameAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GoToNextFrameWithEncodingOptionsAsync(&self, encodingoptions: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -519,8 +515,7 @@ impl BitmapEncoder { (windows_core::Interface::vtable(this).JpegXREncoderId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetEncoderInformationEnumerator() -> windows_core::Result> { + pub fn GetEncoderInformationEnumerator() -> windows_core::Result> { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetEncoderInformationEnumerator)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -536,11 +531,11 @@ impl BitmapEncoder { (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), encoderid, stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn CreateWithEncodingOptionsAsync(encoderid: windows_core::GUID, stream: P1, encodingoptions: P2) -> windows_core::Result> where P1: windows_core::Param, - P2: windows_core::Param>>, + P2: windows_core::Param>>, { Self::IBitmapEncoderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -801,10 +796,9 @@ pub struct BitmapProperties(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(BitmapProperties, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(BitmapProperties, IBitmapPropertiesView); impl BitmapProperties { - #[cfg(feature = "Foundation_Collections")] pub fn SetPropertiesAsync(&self, propertiestoset: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -812,10 +806,9 @@ impl BitmapProperties { (windows_core::Interface::vtable(this).SetPropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoset.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -841,10 +834,9 @@ unsafe impl Sync for BitmapProperties {} pub struct BitmapPropertiesView(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(BitmapPropertiesView, windows_core::IUnknown, windows_core::IInspectable, IBitmapPropertiesView); impl BitmapPropertiesView { - #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -865,15 +857,11 @@ impl windows_core::RuntimeName for BitmapPropertiesView { } unsafe impl Send for BitmapPropertiesView {} unsafe impl Sync for BitmapPropertiesView {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct BitmapPropertySet(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy ! ( BitmapPropertySet , windows_core::IUnknown , windows_core::IInspectable , super::super::Foundation::Collections:: IMap < windows_core::HSTRING , BitmapTypedValue > ); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(BitmapPropertySet, super::super::Foundation::Collections::IIterable>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy ! ( BitmapPropertySet , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMap < windows_core::HSTRING , BitmapTypedValue > ); +windows_core::imp::required_hierarchy!(BitmapPropertySet, windows_collections::IIterable>); impl BitmapPropertySet { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -882,8 +870,8 @@ impl BitmapPropertySet { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -910,7 +898,7 @@ impl BitmapPropertySet { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -936,35 +924,28 @@ impl BitmapPropertySet { unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for BitmapPropertySet { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for BitmapPropertySet { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for BitmapPropertySet { const NAME: &'static str = "Windows.Graphics.Imaging.BitmapPropertySet"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for BitmapPropertySet {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for BitmapPropertySet {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for BitmapPropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &BitmapPropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1176,15 +1157,9 @@ impl windows_core::RuntimeType for IBitmapCodecInformation { pub struct IBitmapCodecInformation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CodecId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FileExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FileExtensions: usize, pub FriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MimeTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MimeTypes: usize, } windows_core::imp::define_interface!(IBitmapDecoder, IBitmapDecoder_Vtbl, 0xacef22ba_1d74_4c91_9dfc_9620745233e6); impl windows_core::RuntimeType for IBitmapDecoder { @@ -1216,10 +1191,7 @@ pub struct IBitmapDecoderStatics_Vtbl { pub GifDecoderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub JpegXRDecoderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub IcoDecoderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetDecoderInformationEnumerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDecoderInformationEnumerator: usize, #[cfg(feature = "Storage_Streams")] pub CreateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -1258,10 +1230,7 @@ pub struct IBitmapEncoder_Vtbl { pub BitmapTransform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPixelData: unsafe extern "system" fn(*mut core::ffi::c_void, BitmapPixelFormat, BitmapAlphaMode, u32, u32, f64, f64, u32, *const u8) -> windows_core::HRESULT, pub GoToNextFrameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GoToNextFrameWithEncodingOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GoToNextFrameWithEncodingOptionsAsync: usize, pub FlushAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IBitmapEncoderStatics, IBitmapEncoderStatics_Vtbl, 0xa74356a7_a4e4_4eb9_8e40_564de7e1ccb2); @@ -1277,17 +1246,14 @@ pub struct IBitmapEncoderStatics_Vtbl { pub TiffEncoderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub GifEncoderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub JpegXREncoderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetEncoderInformationEnumerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetEncoderInformationEnumerator: usize, #[cfg(feature = "Storage_Streams")] pub CreateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] CreateAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub CreateWithEncodingOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] CreateWithEncodingOptionsAsync: usize, #[cfg(feature = "Storage_Streams")] pub CreateForTranscodingAsync: 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, @@ -1814,10 +1780,7 @@ impl windows_core::RuntimeType for IBitmapProperties { #[repr(C)] pub struct IBitmapProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SetPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetPropertiesAsync: usize, } windows_core::imp::define_interface!(IBitmapPropertiesView, IBitmapPropertiesView_Vtbl, 0x7e0fe87a_3a70_48f8_9c55_196cf5a545f5); impl windows_core::RuntimeType for IBitmapPropertiesView { @@ -1825,10 +1788,9 @@ impl windows_core::RuntimeType for IBitmapPropertiesView { } windows_core::imp::interface_hierarchy!(IBitmapPropertiesView, windows_core::IUnknown, windows_core::IInspectable); impl IBitmapPropertiesView { - #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1837,15 +1799,12 @@ impl IBitmapPropertiesView { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IBitmapPropertiesView { const NAME: &'static str = "Windows.Graphics.Imaging.IBitmapPropertiesView"; } -#[cfg(feature = "Foundation_Collections")] pub trait IBitmapPropertiesView_Impl: windows_core::IUnknownImpl { - fn GetPropertiesAsync(&self, propertiesToRetrieve: windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result>; + fn GetPropertiesAsync(&self, propertiesToRetrieve: windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IBitmapPropertiesView_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetPropertiesAsync(this: *mut core::ffi::c_void, propertiestoretrieve: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1873,10 +1832,7 @@ impl IBitmapPropertiesView_Vtbl { #[repr(C)] pub struct IBitmapPropertiesView_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPropertiesAsync: usize, } windows_core::imp::define_interface!(IBitmapTransform, IBitmapTransform_Vtbl, 0xae755344_e268_4d35_adcf_e995d31a8d34); impl windows_core::RuntimeType for IBitmapTransform { diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs index b51024ffee3..5216fcb5534 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/OptionDetails/mod.rs @@ -283,8 +283,7 @@ impl windows_core::RuntimeType for IPrintItemListOptionDetails { windows_core::imp::interface_hierarchy!(IPrintItemListOptionDetails, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(IPrintItemListOptionDetails, IPrintOptionDetails); impl IPrintItemListOptionDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -345,15 +344,12 @@ impl IPrintItemListOptionDetails { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IPrintItemListOptionDetails { const NAME: &'static str = "Windows.Graphics.Printing.OptionDetails.IPrintItemListOptionDetails"; } -#[cfg(feature = "Foundation_Collections")] pub trait IPrintItemListOptionDetails_Impl: IPrintOptionDetails_Impl { - fn Items(&self) -> windows_core::Result>; + fn Items(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IPrintItemListOptionDetails_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Items(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -378,10 +374,7 @@ impl IPrintItemListOptionDetails_Vtbl { #[repr(C)] pub struct IPrintItemListOptionDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Items: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, } windows_core::imp::define_interface!(IPrintMediaSizeOptionDetails, IPrintMediaSizeOptionDetails_Vtbl, 0x6c8d5bcf_c0bf_47c8_b84a_628e7d0d1a1d); impl windows_core::RuntimeType for IPrintMediaSizeOptionDetails { @@ -785,10 +778,7 @@ impl windows_core::RuntimeType for IPrintTaskOptionDetails { #[repr(C)] pub struct IPrintTaskOptionDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Options: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Options: usize, pub CreateItemListOption: 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, pub CreateTextOption: 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, pub OptionChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -941,8 +931,7 @@ impl PrintBindingOptionDetails { (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1043,8 +1032,7 @@ impl PrintBorderingOptionDetails { (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1145,8 +1133,7 @@ impl PrintCollationOptionDetails { (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1247,8 +1234,7 @@ impl PrintColorModeOptionDetails { (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1516,8 +1502,7 @@ impl PrintCustomItemListOptionDetails { (windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1839,8 +1824,7 @@ impl PrintDuplexOptionDetails { (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1941,8 +1925,7 @@ impl PrintHolePunchOptionDetails { (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2021,8 +2004,7 @@ pub struct PrintMediaSizeOptionDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PrintMediaSizeOptionDetails, windows_core::IUnknown, windows_core::IInspectable, IPrintOptionDetails); windows_core::imp::required_hierarchy!(PrintMediaSizeOptionDetails, IPrintItemListOptionDetails); impl PrintMediaSizeOptionDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2123,8 +2105,7 @@ pub struct PrintMediaTypeOptionDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PrintMediaTypeOptionDetails, windows_core::IUnknown, windows_core::IInspectable, IPrintOptionDetails); windows_core::imp::required_hierarchy!(PrintMediaTypeOptionDetails, IPrintItemListOptionDetails); impl PrintMediaTypeOptionDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2288,8 +2269,7 @@ pub struct PrintOrientationOptionDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PrintOrientationOptionDetails, windows_core::IUnknown, windows_core::IInspectable, IPrintOptionDetails); windows_core::imp::required_hierarchy!(PrintOrientationOptionDetails, IPrintItemListOptionDetails); impl PrintOrientationOptionDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2483,8 +2463,7 @@ pub struct PrintQualityOptionDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PrintQualityOptionDetails, windows_core::IUnknown, windows_core::IInspectable, IPrintOptionDetails); windows_core::imp::required_hierarchy!(PrintQualityOptionDetails, IPrintItemListOptionDetails); impl PrintQualityOptionDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2585,8 +2564,7 @@ pub struct PrintStapleOptionDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PrintStapleOptionDetails, windows_core::IUnknown, windows_core::IInspectable, IPrintOptionDetails); windows_core::imp::required_hierarchy!(PrintStapleOptionDetails, IPrintItemListOptionDetails); impl PrintStapleOptionDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2712,8 +2690,7 @@ pub struct PrintTaskOptionDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PrintTaskOptionDetails, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(PrintTaskOptionDetails, super::IPrintTaskOptionsCore, super::IPrintTaskOptionsCoreUIConfiguration); impl PrintTaskOptionDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Options(&self) -> windows_core::Result> { + pub fn Options(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2785,8 +2762,7 @@ impl PrintTaskOptionDetails { (windows_core::Interface::vtable(this).GetPageDescription)(windows_core::Interface::as_raw(this), jobpagenumber, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DisplayedOptions(&self) -> windows_core::Result> { + pub fn DisplayedOptions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs index 79f8327759a..41717a51be4 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/PrintSupport/mod.rs @@ -128,10 +128,7 @@ impl windows_core::RuntimeType for IPrintSupportPrintDeviceCapabilitiesChangedEv #[repr(C)] pub struct IPrintSupportPrintDeviceCapabilitiesChangedEventArgs2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SetSupportedPdlPassthroughContentTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetSupportedPdlPassthroughContentTypes: usize, pub ResourceLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Data_Xml_Dom")] pub GetCurrentPrintDeviceResources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -224,14 +221,8 @@ pub struct IPrintSupportPrinterSelectedEventArgs_Vtbl { pub SetPrintTicket: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics_Printing_PrintTicket"))] SetPrintTicket: usize, - #[cfg(feature = "Foundation_Collections")] pub SetAdditionalFeatures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetAdditionalFeatures: usize, - #[cfg(feature = "Foundation_Collections")] pub SetAdditionalParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetAdditionalParameters: usize, pub AllowedAdditionalFeaturesAndParametersCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, #[cfg(feature = "UI_Shell")] pub SetAdaptiveCard: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -704,10 +695,9 @@ impl PrintSupportPrintDeviceCapabilitiesChangedEventArgs { (windows_core::Interface::vtable(this).GetDeferral)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetSupportedPdlPassthroughContentTypes(&self, supportedpdlcontenttypes: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSupportedPdlPassthroughContentTypes)(windows_core::Interface::as_raw(this), supportedpdlcontenttypes.param().abi()).ok() } @@ -916,18 +906,16 @@ impl PrintSupportPrinterSelectedEventArgs { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPrintTicket)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalFeatures(&self, features: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAdditionalFeatures)(windows_core::Interface::as_raw(this), features.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalParameters(&self, parameters: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAdditionalParameters)(windows_core::Interface::as_raw(this), parameters.param().abi()).ok() } diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs index 6d45d5b0d3e..204ddff1090 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/PrintTicket/mod.rs @@ -44,10 +44,7 @@ pub struct IPrintTicketFeature_Vtbl { XmlNode: usize, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetOption: 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, - #[cfg(feature = "Foundation_Collections")] pub Options: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Options: usize, pub GetSelectedOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSelectedOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SelectionType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PrintTicketFeatureSelectionType) -> windows_core::HRESULT, @@ -369,8 +366,7 @@ impl PrintTicketFeature { (windows_core::Interface::vtable(this).GetOption)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), core::mem::transmute_copy(xmlnamespace), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Options(&self) -> windows_core::Result> { + pub fn Options(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs index 611d785ac38..e2d8ff9f131 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/Workflow/mod.rs @@ -271,9 +271,9 @@ pub struct IPrintWorkflowPdlModificationRequestedEventArgs_Vtbl { pub SourceContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UILauncher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateJobOnPrinter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Printers")] pub CreateJobOnPrinterWithAttributes: 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, - #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Printers"))] CreateJobOnPrinterWithAttributes: usize, #[cfg(feature = "Storage_Streams")] pub CreateJobOnPrinterWithAttributesBuffer: 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, @@ -289,9 +289,9 @@ impl windows_core::RuntimeType for IPrintWorkflowPdlModificationRequestedEventAr #[repr(C)] pub struct IPrintWorkflowPdlModificationRequestedEventArgs2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Printers")] pub CreateJobOnPrinterWithAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, PrintWorkflowAttributesMergePolicy, PrintWorkflowAttributesMergePolicy, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Printers"))] CreateJobOnPrinterWithAttributes: usize, #[cfg(feature = "Storage_Streams")] pub CreateJobOnPrinterWithAttributesBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, PrintWorkflowAttributesMergePolicy, PrintWorkflowAttributesMergePolicy, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -345,21 +345,21 @@ pub struct IPrintWorkflowPrinterJob_Vtbl { pub GetJobPrintTicket: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics_Printing_PrintTicket"))] GetJobPrintTicket: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetJobAttributesAsBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetJobAttributesAsBuffer: usize, - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Printers")] pub GetJobAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Printers"))] GetJobAttributes: usize, #[cfg(all(feature = "Devices_Printers", feature = "Storage_Streams"))] pub SetJobAttributesFromBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Devices_Printers", feature = "Storage_Streams")))] SetJobAttributesFromBuffer: usize, - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Printers")] pub SetJobAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Printers"))] SetJobAttributes: usize, } windows_core::imp::define_interface!(IPrintWorkflowPrinterJob2, IPrintWorkflowPrinterJob2_Vtbl, 0x747e21d7_69a9_5229_b8f0_874ca1a8871b); @@ -369,9 +369,9 @@ impl windows_core::RuntimeType for IPrintWorkflowPrinterJob2 { #[repr(C)] pub struct IPrintWorkflowPrinterJob2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections", feature = "Graphics_Printing_PrintTicket"))] + #[cfg(all(feature = "Devices_Printers", feature = "Graphics_Printing_PrintTicket"))] pub ConvertPrintTicketToJobAttributes: 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, - #[cfg(not(all(feature = "Devices_Printers", feature = "Foundation_Collections", feature = "Graphics_Printing_PrintTicket")))] + #[cfg(not(all(feature = "Devices_Printers", feature = "Graphics_Printing_PrintTicket")))] ConvertPrintTicketToJobAttributes: usize, } windows_core::imp::define_interface!(IPrintWorkflowSourceContent, IPrintWorkflowSourceContent_Vtbl, 0x1a28c641_ceb1_4533_bb73_fbe63eefdb18); @@ -1494,10 +1494,10 @@ impl PrintWorkflowPdlModificationRequestedEventArgs { (windows_core::Interface::vtable(this).CreateJobOnPrinter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(targetcontenttype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Printers")] pub fn CreateJobOnPrinterWithAttributes(&self, jobattributes: P0, targetcontenttype: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -1530,11 +1530,11 @@ impl PrintWorkflowPdlModificationRequestedEventArgs { (windows_core::Interface::vtable(this).GetDeferral)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Printers")] pub fn CreateJobOnPrinterWithAttributes2(&self, jobattributes: P0, targetcontenttype: &windows_core::HSTRING, operationattributes: P2, jobattributesmergepolicy: PrintWorkflowAttributesMergePolicy, operationattributesmergepolicy: PrintWorkflowAttributesMergePolicy) -> windows_core::Result where - P0: windows_core::Param>>, - P2: windows_core::Param>>, + P0: windows_core::Param>>, + P2: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1673,10 +1673,10 @@ impl PrintWorkflowPrinterJob { (windows_core::Interface::vtable(this).GetJobPrintTicket)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn GetJobAttributesAsBuffer(&self, attributenames: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1684,10 +1684,10 @@ impl PrintWorkflowPrinterJob { (windows_core::Interface::vtable(this).GetJobAttributesAsBuffer)(windows_core::Interface::as_raw(this), attributenames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] - pub fn GetJobAttributes(&self, attributenames: P0) -> windows_core::Result> + #[cfg(feature = "Devices_Printers")] + pub fn GetJobAttributes(&self, attributenames: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1706,10 +1706,10 @@ impl PrintWorkflowPrinterJob { (windows_core::Interface::vtable(this).SetJobAttributesFromBuffer)(windows_core::Interface::as_raw(this), jobattributesbuffer.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Printers")] pub fn SetJobAttributes(&self, jobattributes: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -1717,8 +1717,8 @@ impl PrintWorkflowPrinterJob { (windows_core::Interface::vtable(this).SetJobAttributes)(windows_core::Interface::as_raw(this), jobattributes.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Devices_Printers", feature = "Foundation_Collections", feature = "Graphics_Printing_PrintTicket"))] - pub fn ConvertPrintTicketToJobAttributes(&self, printticket: P0, targetpdlformat: &windows_core::HSTRING) -> windows_core::Result> + #[cfg(all(feature = "Devices_Printers", feature = "Graphics_Printing_PrintTicket"))] + pub fn ConvertPrintTicketToJobAttributes(&self, printticket: P0, targetpdlformat: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs index 321a503de62..fe61bfa8945 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs @@ -115,9 +115,9 @@ impl windows_core::RuntimeType for IPrintTask { #[repr(C)] pub struct IPrintTask_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_DataTransfer")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel_DataTransfer"))] Properties: usize, pub Source: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Options: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -171,10 +171,7 @@ impl windows_core::RuntimeType for IPrintTaskOptions2 { pub struct IPrintTaskOptions2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PageRangeOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CustomPageRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CustomPageRanges: usize, } windows_core::imp::define_interface!(IPrintTaskOptionsCore, IPrintTaskOptionsCore_Vtbl, 0x1bdbb474_4ed1_41eb_be3c_72d18ed67337); impl windows_core::RuntimeType for IPrintTaskOptionsCore { @@ -685,8 +682,7 @@ impl windows_core::RuntimeType for IPrintTaskOptionsCoreUIConfiguration { } windows_core::imp::interface_hierarchy!(IPrintTaskOptionsCoreUIConfiguration, windows_core::IUnknown, windows_core::IInspectable); impl IPrintTaskOptionsCoreUIConfiguration { - #[cfg(feature = "Foundation_Collections")] - pub fn DisplayedOptions(&self) -> windows_core::Result> { + pub fn DisplayedOptions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -694,15 +690,12 @@ impl IPrintTaskOptionsCoreUIConfiguration { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IPrintTaskOptionsCoreUIConfiguration { const NAME: &'static str = "Windows.Graphics.Printing.IPrintTaskOptionsCoreUIConfiguration"; } -#[cfg(feature = "Foundation_Collections")] pub trait IPrintTaskOptionsCoreUIConfiguration_Impl: windows_core::IUnknownImpl { - fn DisplayedOptions(&self) -> windows_core::Result>; + fn DisplayedOptions(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IPrintTaskOptionsCoreUIConfiguration_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn DisplayedOptions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -730,10 +723,7 @@ impl IPrintTaskOptionsCoreUIConfiguration_Vtbl { #[repr(C)] pub struct IPrintTaskOptionsCoreUIConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DisplayedOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DisplayedOptions: usize, } windows_core::imp::define_interface!(IPrintTaskProgressingEventArgs, IPrintTaskProgressingEventArgs_Vtbl, 0x810cd3cb_b410_4282_a073_5ac378234174); impl windows_core::RuntimeType for IPrintTaskProgressingEventArgs { @@ -1504,7 +1494,7 @@ impl windows_core::RuntimeType for PrintStaple { pub struct PrintTask(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PrintTask, windows_core::IUnknown, windows_core::IInspectable); impl PrintTask { - #[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel_DataTransfer")] pub fn Properties(&self) -> windows_core::Result { let this = self; unsafe { @@ -1703,8 +1693,7 @@ impl PrintTaskOptions { (windows_core::Interface::vtable(this).PageRangeOptions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CustomPageRanges(&self) -> windows_core::Result> { + pub fn CustomPageRanges(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1853,8 +1842,7 @@ impl PrintTaskOptions { (windows_core::Interface::vtable(this).NumberOfCopies)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DisplayedOptions(&self) -> windows_core::Result> { + pub fn DisplayedOptions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs index c35adf2a694..004636ea320 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs @@ -108,10 +108,7 @@ pub struct IPrinting3D3MFPackage_Vtbl { SetModelPart: usize, pub Thumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetThumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Textures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Textures: usize, #[cfg(feature = "Storage_Streams")] pub LoadModelFromPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -159,10 +156,7 @@ impl windows_core::RuntimeType for IPrinting3DBaseMaterialGroup { #[repr(C)] pub struct IPrinting3DBaseMaterialGroup_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Bases: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Bases: usize, pub MaterialGroupId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPrinting3DBaseMaterialGroupFactory, IPrinting3DBaseMaterialGroupFactory_Vtbl, 0x5c1546dc_8697_4193_976b_84bb4116e5bf); @@ -217,10 +211,7 @@ impl windows_core::RuntimeType for IPrinting3DColorMaterialGroup { #[repr(C)] pub struct IPrinting3DColorMaterialGroup_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Colors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Colors: usize, pub MaterialGroupId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPrinting3DColorMaterialGroupFactory, IPrinting3DColorMaterialGroupFactory_Vtbl, 0x71d38d6d_b1ea_4a5b_bc54_19c65f3df044); @@ -241,10 +232,7 @@ pub struct IPrinting3DComponent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Mesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Components: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Components: usize, pub Thumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetThumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Type: unsafe extern "system" fn(*mut core::ffi::c_void, *mut Printing3DObjectType) -> windows_core::HRESULT, @@ -279,10 +267,7 @@ impl windows_core::RuntimeType for IPrinting3DCompositeMaterial { #[repr(C)] pub struct IPrinting3DCompositeMaterial_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Values: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Values: usize, } windows_core::imp::define_interface!(IPrinting3DCompositeMaterialGroup, IPrinting3DCompositeMaterialGroup_Vtbl, 0x8d946a5b_40f1_496d_a5fb_340a5a678e30); impl windows_core::RuntimeType for IPrinting3DCompositeMaterialGroup { @@ -291,15 +276,9 @@ impl windows_core::RuntimeType for IPrinting3DCompositeMaterialGroup { #[repr(C)] pub struct IPrinting3DCompositeMaterialGroup_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Composites: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Composites: usize, pub MaterialGroupId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MaterialIndices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MaterialIndices: usize, } windows_core::imp::define_interface!(IPrinting3DCompositeMaterialGroup2, IPrinting3DCompositeMaterialGroup2_Vtbl, 0x06e86d62_7d3b_41e1_944c_bafde4555483); impl windows_core::RuntimeType for IPrinting3DCompositeMaterialGroup2 { @@ -341,26 +320,11 @@ impl windows_core::RuntimeType for IPrinting3DMaterial { #[repr(C)] pub struct IPrinting3DMaterial_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub BaseGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BaseGroups: usize, - #[cfg(feature = "Foundation_Collections")] pub ColorGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ColorGroups: usize, - #[cfg(feature = "Foundation_Collections")] pub Texture2CoordGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Texture2CoordGroups: usize, - #[cfg(feature = "Foundation_Collections")] pub CompositeGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CompositeGroups: usize, - #[cfg(feature = "Foundation_Collections")] pub MultiplePropertyGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MultiplePropertyGroups: usize, } windows_core::imp::define_interface!(IPrinting3DMesh, IPrinting3DMesh_Vtbl, 0x192e90dc_0228_2e01_bc20_c5290cbf32c4); impl windows_core::RuntimeType for IPrinting3DMesh { @@ -419,14 +383,8 @@ impl windows_core::RuntimeType for IPrinting3DMeshVerificationResult { pub struct IPrinting3DMeshVerificationResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsValid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub NonmanifoldTriangles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NonmanifoldTriangles: usize, - #[cfg(feature = "Foundation_Collections")] pub ReversedNormalTriangles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReversedNormalTriangles: usize, } windows_core::imp::define_interface!(IPrinting3DModel, IPrinting3DModel_Vtbl, 0x2d012ef0_52fb_919a_77b0_4b1a3b80324f); impl windows_core::RuntimeType for IPrinting3DModel { @@ -437,32 +395,17 @@ pub struct IPrinting3DModel_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Unit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut Printing3DModelUnit) -> windows_core::HRESULT, pub SetUnit: unsafe extern "system" fn(*mut core::ffi::c_void, Printing3DModelUnit) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Textures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Textures: usize, - #[cfg(feature = "Foundation_Collections")] pub Meshes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Meshes: usize, - #[cfg(feature = "Foundation_Collections")] pub Components: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Components: usize, pub Material: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMaterial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Build: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBuild: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Version: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RequiredExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequiredExtensions: usize, - #[cfg(feature = "Foundation_Collections")] pub Metadata: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Metadata: usize, pub RepairAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -501,10 +444,7 @@ impl windows_core::RuntimeType for IPrinting3DMultiplePropertyMaterial { #[repr(C)] pub struct IPrinting3DMultiplePropertyMaterial_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub MaterialIndices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MaterialIndices: usize, } windows_core::imp::define_interface!(IPrinting3DMultiplePropertyMaterialGroup, IPrinting3DMultiplePropertyMaterialGroup_Vtbl, 0xf0950519_aeb9_4515_a39b_a088fbbb277c); impl windows_core::RuntimeType for IPrinting3DMultiplePropertyMaterialGroup { @@ -513,14 +453,8 @@ impl windows_core::RuntimeType for IPrinting3DMultiplePropertyMaterialGroup { #[repr(C)] pub struct IPrinting3DMultiplePropertyMaterialGroup_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub MultipleProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MultipleProperties: usize, - #[cfg(feature = "Foundation_Collections")] pub MaterialGroupIndices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MaterialGroupIndices: usize, pub MaterialGroupId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPrinting3DMultiplePropertyMaterialGroupFactory, IPrinting3DMultiplePropertyMaterialGroupFactory_Vtbl, 0x323e196e_d4c6_451e_a814_4d78a210fe53); @@ -553,10 +487,7 @@ impl windows_core::RuntimeType for IPrinting3DTexture2CoordMaterialGroup { #[repr(C)] pub struct IPrinting3DTexture2CoordMaterialGroup_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Texture2Coords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Texture2Coords: usize, pub MaterialGroupId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPrinting3DTexture2CoordMaterialGroup2, IPrinting3DTexture2CoordMaterialGroup2_Vtbl, 0x69fbdbba_b12e_429b_8386_df5284f6e80f); @@ -1014,8 +945,7 @@ impl Printing3D3MFPackage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetThumbnail)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Textures(&self) -> windows_core::Result> { + pub fn Textures(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1152,8 +1082,7 @@ unsafe impl Sync for Printing3DBaseMaterial {} pub struct Printing3DBaseMaterialGroup(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Printing3DBaseMaterialGroup, windows_core::IUnknown, windows_core::IInspectable); impl Printing3DBaseMaterialGroup { - #[cfg(feature = "Foundation_Collections")] - pub fn Bases(&self) -> windows_core::Result> { + pub fn Bases(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1274,8 +1203,7 @@ unsafe impl Sync for Printing3DColorMaterial {} pub struct Printing3DColorMaterialGroup(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Printing3DColorMaterialGroup, windows_core::IUnknown, windows_core::IInspectable); impl Printing3DColorMaterialGroup { - #[cfg(feature = "Foundation_Collections")] - pub fn Colors(&self) -> windows_core::Result> { + pub fn Colors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1338,8 +1266,7 @@ impl Printing3DComponent { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMesh)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Components(&self) -> windows_core::Result> { + pub fn Components(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1470,8 +1397,7 @@ impl Printing3DCompositeMaterial { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Values(&self) -> windows_core::Result> { + pub fn Values(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1496,8 +1422,7 @@ unsafe impl Sync for Printing3DCompositeMaterial {} pub struct Printing3DCompositeMaterialGroup(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Printing3DCompositeMaterialGroup, windows_core::IUnknown, windows_core::IInspectable); impl Printing3DCompositeMaterialGroup { - #[cfg(feature = "Foundation_Collections")] - pub fn Composites(&self) -> windows_core::Result> { + pub fn Composites(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1511,8 +1436,7 @@ impl Printing3DCompositeMaterialGroup { (windows_core::Interface::vtable(this).MaterialGroupId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MaterialIndices(&self) -> windows_core::Result> { + pub fn MaterialIndices(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1626,40 +1550,35 @@ impl Printing3DMaterial { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn BaseGroups(&self) -> windows_core::Result> { + pub fn BaseGroups(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BaseGroups)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ColorGroups(&self) -> windows_core::Result> { + pub fn ColorGroups(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ColorGroups)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Texture2CoordGroups(&self) -> windows_core::Result> { + pub fn Texture2CoordGroups(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Texture2CoordGroups)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CompositeGroups(&self) -> windows_core::Result> { + pub fn CompositeGroups(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CompositeGroups)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MultiplePropertyGroups(&self) -> windows_core::Result> { + pub fn MultiplePropertyGroups(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1866,16 +1785,14 @@ impl Printing3DMeshVerificationResult { (windows_core::Interface::vtable(this).IsValid)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn NonmanifoldTriangles(&self) -> windows_core::Result> { + pub fn NonmanifoldTriangles(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NonmanifoldTriangles)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ReversedNormalTriangles(&self) -> windows_core::Result> { + pub fn ReversedNormalTriangles(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1918,24 +1835,21 @@ impl Printing3DModel { let this = self; unsafe { (windows_core::Interface::vtable(this).SetUnit)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Textures(&self) -> windows_core::Result> { + pub fn Textures(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Textures)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Meshes(&self) -> windows_core::Result> { + pub fn Meshes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Meshes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Components(&self) -> windows_core::Result> { + pub fn Components(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1981,16 +1895,14 @@ impl Printing3DModel { let this = self; unsafe { (windows_core::Interface::vtable(this).SetVersion)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RequiredExtensions(&self) -> windows_core::Result> { + pub fn RequiredExtensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RequiredExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Metadata(&self) -> windows_core::Result> { + pub fn Metadata(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2162,8 +2074,7 @@ impl Printing3DMultiplePropertyMaterial { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn MaterialIndices(&self) -> windows_core::Result> { + pub fn MaterialIndices(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2188,16 +2099,14 @@ unsafe impl Sync for Printing3DMultiplePropertyMaterial {} pub struct Printing3DMultiplePropertyMaterialGroup(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Printing3DMultiplePropertyMaterialGroup, windows_core::IUnknown, windows_core::IInspectable); impl Printing3DMultiplePropertyMaterialGroup { - #[cfg(feature = "Foundation_Collections")] - pub fn MultipleProperties(&self) -> windows_core::Result> { + pub fn MultipleProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).MultipleProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MaterialGroupIndices(&self) -> windows_core::Result> { + pub fn MaterialGroupIndices(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2328,8 +2237,7 @@ unsafe impl Sync for Printing3DTexture2CoordMaterial {} pub struct Printing3DTexture2CoordMaterialGroup(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Printing3DTexture2CoordMaterialGroup, windows_core::IUnknown, windows_core::IInspectable); impl Printing3DTexture2CoordMaterialGroup { - #[cfg(feature = "Foundation_Collections")] - pub fn Texture2Coords(&self) -> windows_core::Result> { + pub fn Texture2Coords(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Management/Deployment/mod.rs b/crates/libs/windows/src/Windows/Management/Deployment/mod.rs index 75ef719f730..2ce6cebfea0 100644 --- a/crates/libs/windows/src/Windows/Management/Deployment/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Deployment/mod.rs @@ -61,8 +61,7 @@ impl AddPackageOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn DependencyPackageUris(&self) -> windows_core::Result> { + pub fn DependencyPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -83,24 +82,21 @@ impl AddPackageOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { + pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).OptionalPackageFamilyNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageUris(&self) -> windows_core::Result> { + pub fn OptionalPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).OptionalPackageUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RelatedPackageUris(&self) -> windows_core::Result> { + pub fn RelatedPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -242,8 +238,7 @@ impl AddPackageOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDeferRegistrationWhenPackagesAreInUse)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExpectedDigests(&self) -> windows_core::Result> { + pub fn ExpectedDigests(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -439,32 +434,28 @@ impl AutoUpdateSettingsOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsAutoRepairEnabled)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn UpdateUris(&self) -> windows_core::Result> { + pub fn UpdateUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).UpdateUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RepairUris(&self) -> windows_core::Result> { + pub fn RepairUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RepairUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DependencyPackageUris(&self) -> windows_core::Result> { + pub fn DependencyPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DependencyPackageUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageUris(&self) -> windows_core::Result> { + pub fn OptionalPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -510,8 +501,7 @@ impl CreateSharedPackageContainerOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Members(&self) -> windows_core::Result> { + pub fn Members(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -849,24 +839,12 @@ impl windows_core::RuntimeType for IAddPackageOptions { #[repr(C)] pub struct IAddPackageOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DependencyPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DependencyPackageUris: usize, pub TargetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTargetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageFamilyNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageFamilyNames: usize, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageUris: usize, - #[cfg(feature = "Foundation_Collections")] pub RelatedPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RelatedPackageUris: usize, pub ExternalLocationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetExternalLocationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub StubPackageOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut StubPackageOption) -> windows_core::HRESULT, @@ -899,10 +877,7 @@ impl windows_core::RuntimeType for IAddPackageOptions2 { #[repr(C)] pub struct IAddPackageOptions2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ExpectedDigests: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExpectedDigests: usize, pub LimitToExistingPackages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetLimitToExistingPackages: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, } @@ -958,22 +933,10 @@ pub struct IAutoUpdateSettingsOptions_Vtbl { pub SetForceUpdateFromAnyVersion: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub IsAutoRepairEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsAutoRepairEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub UpdateUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateUris: usize, - #[cfg(feature = "Foundation_Collections")] pub RepairUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RepairUris: usize, - #[cfg(feature = "Foundation_Collections")] pub DependencyPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DependencyPackageUris: usize, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageUris: usize, } windows_core::imp::define_interface!(IAutoUpdateSettingsOptionsStatics, IAutoUpdateSettingsOptionsStatics_Vtbl, 0x887b337d_0c05_54d0_bd49_3bb7a2c084cb); impl windows_core::RuntimeType for IAutoUpdateSettingsOptionsStatics { @@ -994,10 +957,7 @@ impl windows_core::RuntimeType for ICreateSharedPackageContainerOptions { #[repr(C)] pub struct ICreateSharedPackageContainerOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Members: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Members: usize, pub ForceAppShutdown: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetForceAppShutdown: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub CreateCollisionOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SharedPackageContainerCreationCollisionOptions) -> windows_core::HRESULT, @@ -1075,14 +1035,8 @@ impl windows_core::RuntimeType for IPackageAllUserProvisioningOptions { #[repr(C)] pub struct IPackageAllUserProvisioningOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageFamilyNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageFamilyNames: usize, - #[cfg(feature = "Foundation_Collections")] pub ProjectionOrderPackageFamilyNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProjectionOrderPackageFamilyNames: usize, } windows_core::imp::define_interface!(IPackageAllUserProvisioningOptions2, IPackageAllUserProvisioningOptions2_Vtbl, 0xb9e3cab5_2d97_579f_9368_d10bb4d4542b); impl windows_core::RuntimeType for IPackageAllUserProvisioningOptions2 { @@ -1101,56 +1055,41 @@ impl windows_core::RuntimeType for IPackageManager { #[repr(C)] pub struct IPackageManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AddPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddPackageAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub UpdatePackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdatePackageAsync: usize, pub RemovePackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StagePackageAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - StagePackageAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RegisterPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterPackageAsync: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackages: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityId: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByNamePublisher: 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, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByNamePublisher: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdNamePublisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdNamePublisher: usize, - #[cfg(feature = "Foundation_Collections")] pub FindUsers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindUsers: usize, pub SetPackageState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageState) -> windows_core::HRESULT, #[cfg(feature = "ApplicationModel")] pub FindPackageByPackageFullName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "ApplicationModel"))] FindPackageByPackageFullName: usize, pub CleanupPackageForUserAsync: 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, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByPackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByPackageFamilyName: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdPackageFamilyName: 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, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdPackageFamilyName: usize, #[cfg(feature = "ApplicationModel")] pub FindPackageByUserSecurityIdPackageFullName: 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, @@ -1195,37 +1134,31 @@ impl windows_core::RuntimeType for IPackageManager2 { pub struct IPackageManager2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub RemovePackageWithOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, RemovalOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StagePackageWithOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StagePackageWithOptionsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RegisterPackageByFullNameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterPackageByFullNameAsync: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByNamePublisherWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByNamePublisherWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdNamePublisherWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdNamePublisherWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByPackageFamilyNameWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByPackageFamilyNameWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes: usize, pub StageUserDataAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1237,20 +1170,11 @@ impl windows_core::RuntimeType for IPackageManager3 { pub struct IPackageManager3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AddPackageVolumeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AddPackageToVolumeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddPackageToVolumeAsync: usize, pub ClearPackageStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RegisterPackageWithAppDataVolumeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterPackageWithAppDataVolumeAsync: usize, pub FindPackageVolumeByName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindPackageVolumes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindPackageVolumes: usize, pub GetDefaultPackageVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MovePackageToVolumeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemovePackageVolumeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1258,10 +1182,7 @@ pub struct IPackageManager3_Vtbl { pub SetPackageStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageStatus) -> windows_core::HRESULT, pub SetPackageVolumeOfflineAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPackageVolumeOnlineAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StagePackageToVolumeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StagePackageToVolumeAsync: usize, pub StageUserDataWithOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPackageManager4, IPackageManager4_Vtbl, 0x3c719963_bab6_46bf_8ff7_da4719230ae6); @@ -1271,10 +1192,7 @@ impl windows_core::RuntimeType for IPackageManager4 { #[repr(C)] pub struct IPackageManager4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetPackageVolumesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPackageVolumesAsync: usize, } windows_core::imp::define_interface!(IPackageManager5, IPackageManager5_Vtbl, 0x711f3117_1afd_4313_978c_9bb6e1b864a7); impl windows_core::RuntimeType for IPackageManager5 { @@ -1283,18 +1201,9 @@ impl windows_core::RuntimeType for IPackageManager5 { #[repr(C)] pub struct IPackageManager5_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AddPackageToVolumeAndOptionalPackagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddPackageToVolumeAndOptionalPackagesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub StagePackageToVolumeAndOptionalPackagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StagePackageToVolumeAndOptionalPackagesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RegisterPackageByFamilyNameAndOptionalPackagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterPackageByFamilyNameAndOptionalPackagesAsync: usize, pub DebugSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPackageManager6, IPackageManager6_Vtbl, 0x0847e909_53cd_4e4f_832e_57d180f6e447); @@ -1307,18 +1216,9 @@ pub struct IPackageManager6_Vtbl { pub ProvisionPackageForAllUsersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddPackageByAppInstallerFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, AddPackageByAppInstallerOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestAddPackageByAppInstallerFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, AddPackageByAppInstallerOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AddPackageToVolumeAndRelatedSetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddPackageToVolumeAndRelatedSetAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub StagePackageToVolumeAndRelatedSetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StagePackageToVolumeAndRelatedSetAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RequestAddPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestAddPackageAsync: usize, } windows_core::imp::define_interface!(IPackageManager7, IPackageManager7_Vtbl, 0xf28654f4_2ba7_4b80_88d6_be15f9a23fba); impl windows_core::RuntimeType for IPackageManager7 { @@ -1327,10 +1227,7 @@ impl windows_core::RuntimeType for IPackageManager7 { #[repr(C)] pub struct IPackageManager7_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RequestAddPackageAndRelatedSetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, DeploymentOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestAddPackageAndRelatedSetAsync: usize, } windows_core::imp::define_interface!(IPackageManager8, IPackageManager8_Vtbl, 0xb8575330_1298_4ee2_80ee_7f659c5d2782); impl windows_core::RuntimeType for IPackageManager8 { @@ -1348,17 +1245,14 @@ impl windows_core::RuntimeType for IPackageManager9 { #[repr(C)] pub struct IPackageManager9_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindProvisionedPackages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindProvisionedPackages: usize, pub AddPackageByUriAsync: 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, pub StagePackageByUriAsync: 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, pub RegisterPackageByUriAsync: 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, - #[cfg(feature = "Foundation_Collections")] pub RegisterPackagesByFullNameAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterPackagesByFullNameAsync: usize, pub SetPackageStubPreference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageStubPreference) -> windows_core::HRESULT, pub GetPackageStubPreference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut PackageStubPreference) -> windows_core::HRESULT, } @@ -1401,61 +1295,61 @@ pub struct IPackageVolume_Vtbl { pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PackageStorePath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SupportsHardLinks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackages: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByNamePublisher: 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, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByNamePublisher: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByPackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByPackageFamilyName: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByNamePublisherWithPackagesTypes: unsafe extern "system" fn(*mut core::ffi::c_void, PackageTypes, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByNamePublisherWithPackagesTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByPackageFamilyNameWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, PackageTypes, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByPackageFamilyNameWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackageByPackageFullName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackageByPackageFullName: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityId: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdNamePublisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdNamePublisher: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdPackageFamilyName: 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, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdPackageFamilyName: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdNamePublisherWithPackageTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdNamePublisherWithPackageTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PackageTypes, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackageByUserSecurityIdPackageFullName: 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, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackageByUserSecurityIdPackageFullName: usize, } windows_core::imp::define_interface!(IPackageVolume2, IPackageVolume2_Vtbl, 0x46abcf2e_9dd4_47a2_ab8c_c6408349bcd8); @@ -1476,16 +1370,10 @@ impl windows_core::RuntimeType for IRegisterPackageOptions { #[repr(C)] pub struct IRegisterPackageOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DependencyPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DependencyPackageUris: usize, pub AppDataVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAppDataVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageFamilyNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageFamilyNames: usize, pub ExternalLocationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetExternalLocationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeveloperMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -1512,10 +1400,7 @@ impl windows_core::RuntimeType for IRegisterPackageOptions2 { #[repr(C)] pub struct IRegisterPackageOptions2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ExpectedDigests: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExpectedDigests: usize, } windows_core::imp::define_interface!(IRemovePackageOptions, IRemovePackageOptions_Vtbl, 0x13cf01f3_c450_4f7c_a5a3_5e3c631b7462); impl windows_core::RuntimeType for IRemovePackageOptions { @@ -1550,10 +1435,7 @@ pub struct ISharedPackageContainer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetMembers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMembers: usize, pub RemovePackageFamily: 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, pub ResetData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1567,14 +1449,8 @@ pub struct ISharedPackageContainerManager_Vtbl { pub CreateContainer: 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, pub DeleteContainer: 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, pub GetContainer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindContainers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindContainers: usize, - #[cfg(feature = "Foundation_Collections")] pub FindContainersWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindContainersWithOptions: usize, } windows_core::imp::define_interface!(ISharedPackageContainerManagerStatics, ISharedPackageContainerManagerStatics_Vtbl, 0x2ef56348_838a_5f55_a89e_1198a2c627e6); impl windows_core::RuntimeType for ISharedPackageContainerManagerStatics { @@ -1612,24 +1488,12 @@ impl windows_core::RuntimeType for IStagePackageOptions { #[repr(C)] pub struct IStagePackageOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DependencyPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DependencyPackageUris: usize, pub TargetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTargetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageFamilyNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageFamilyNames: usize, - #[cfg(feature = "Foundation_Collections")] pub OptionalPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionalPackageUris: usize, - #[cfg(feature = "Foundation_Collections")] pub RelatedPackageUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RelatedPackageUris: usize, pub ExternalLocationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetExternalLocationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub StubPackageOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut StubPackageOption) -> windows_core::HRESULT, @@ -1654,10 +1518,7 @@ impl windows_core::RuntimeType for IStagePackageOptions2 { #[repr(C)] pub struct IStagePackageOptions2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ExpectedDigests: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExpectedDigests: usize, } windows_core::imp::define_interface!(IUpdateSharedPackageContainerOptions, IUpdateSharedPackageContainerOptions_Vtbl, 0x80672e83_7194_59f9_b5b9_daa5375f130a); impl windows_core::RuntimeType for IUpdateSharedPackageContainerOptions { @@ -1693,16 +1554,14 @@ impl PackageAllUserProvisioningOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { + pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).OptionalPackageFamilyNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProjectionOrderPackageFamilyNames(&self) -> windows_core::Result> { + pub fn ProjectionOrderPackageFamilyNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1760,11 +1619,10 @@ impl PackageManager { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] pub fn AddPackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -1772,11 +1630,10 @@ impl PackageManager { (windows_core::Interface::vtable(this).AddPackageAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdatePackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -1791,11 +1648,10 @@ impl PackageManager { (windows_core::Interface::vtable(this).RemovePackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn StagePackageAsync(&self, packageuri: P0, dependencypackageuris: P1) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -1803,11 +1659,10 @@ impl PackageManager { (windows_core::Interface::vtable(this).StagePackageAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageAsync(&self, manifesturi: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -1815,40 +1670,39 @@ impl PackageManager { (windows_core::Interface::vtable(this).RegisterPackageAsync)(windows_core::Interface::as_raw(this), manifesturi.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackages(&self) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityId(&self, usersecurityid: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityId(&self, usersecurityid: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByNamePublisher(&self, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByNamePublisher(&self, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByNamePublisher)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdNamePublisher(&self, usersecurityid: &windows_core::HSTRING, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdNamePublisher(&self, usersecurityid: &windows_core::HSTRING, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdNamePublisher)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindUsers(&self, packagefullname: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindUsers(&self, packagefullname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1874,16 +1728,16 @@ impl PackageManager { (windows_core::Interface::vtable(this).CleanupPackageForUserAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagename), core::mem::transmute_copy(usersecurityid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByPackageFamilyName(&self, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByPackageFamilyName(&self, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByPackageFamilyName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdPackageFamilyName(&self, usersecurityid: &windows_core::HSTRING, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdPackageFamilyName(&self, usersecurityid: &windows_core::HSTRING, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1960,11 +1814,10 @@ impl PackageManager { (windows_core::Interface::vtable(this).RemovePackageWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), removaloptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn StagePackageWithOptionsAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1972,10 +1825,9 @@ impl PackageManager { (windows_core::Interface::vtable(this).StagePackageWithOptionsAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageByFullNameAsync(&self, mainpackagefullname: &windows_core::HSTRING, dependencypackagefullnames: P1, deploymentoptions: DeploymentOptions) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1983,48 +1835,48 @@ impl PackageManager { (windows_core::Interface::vtable(this).RegisterPackageByFullNameAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(mainpackagefullname), dependencypackagefullnames.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesWithPackageTypes(&self, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesWithPackageTypes(&self, packagetypes: PackageTypes) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesWithPackageTypes)(windows_core::Interface::as_raw(this), packagetypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdWithPackageTypes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), packagetypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByNamePublisherWithPackageTypes(&self, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByNamePublisherWithPackageTypes(&self, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByNamePublisherWithPackageTypes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), packagetypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdNamePublisherWithPackageTypes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), packagetypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByPackageFamilyNameWithPackageTypes(&self, packagefamilyname: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByPackageFamilyNameWithPackageTypes(&self, packagefamilyname: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByPackageFamilyNameWithPackageTypes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), packagetypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagefamilyname: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdPackageFamilyNameWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagefamilyname: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2045,11 +1897,10 @@ impl PackageManager { (windows_core::Interface::vtable(this).AddPackageVolumeAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagestorepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn AddPackageToVolumeAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P3) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -2062,11 +1913,10 @@ impl PackageManager { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ClearPackageStatus)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), status).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageWithAppDataVolumeAsync(&self, manifesturi: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, appdatavolume: P3) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -2082,8 +1932,7 @@ impl PackageManager { (windows_core::Interface::vtable(this).FindPackageVolumeByName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(volumename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindPackageVolumes(&self) -> windows_core::Result> { + pub fn FindPackageVolumes(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2148,11 +1997,10 @@ impl PackageManager { (windows_core::Interface::vtable(this).SetPackageVolumeOnlineAsync)(windows_core::Interface::as_raw(this), packagevolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn StagePackageToVolumeAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P3) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -2168,22 +2016,20 @@ impl PackageManager { (windows_core::Interface::vtable(this).StageUserDataWithOptionsAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPackageVolumesAsync(&self) -> windows_core::Result>> { + pub fn GetPackageVolumesAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPackageVolumesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn AddPackageToVolumeAndOptionalPackagesAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P3, optionalpackagefamilynames: P4, externalpackageuris: P5) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, - P4: windows_core::Param>, - P5: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2191,14 +2037,13 @@ impl PackageManager { (windows_core::Interface::vtable(this).AddPackageToVolumeAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), externalpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn StagePackageToVolumeAndOptionalPackagesAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P3, optionalpackagefamilynames: P4, externalpackageuris: P5) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, - P4: windows_core::Param>, - P5: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2206,12 +2051,11 @@ impl PackageManager { (windows_core::Interface::vtable(this).StagePackageToVolumeAndOptionalPackagesAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), externalpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackageByFamilyNameAndOptionalPackagesAsync(&self, mainpackagefamilyname: &windows_core::HSTRING, dependencypackagefamilynames: P1, deploymentoptions: DeploymentOptions, appdatavolume: P3, optionalpackagefamilynames: P4) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, - P4: windows_core::Param>, + P4: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2255,15 +2099,14 @@ impl PackageManager { (windows_core::Interface::vtable(this).RequestAddPackageByAppInstallerFileAsync)(windows_core::Interface::as_raw(this), appinstallerfileuri.param().abi(), options, targetvolume.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn AddPackageToVolumeAndRelatedSetAsync(&self, packageuri: P0, dependencypackageuris: P1, options: DeploymentOptions, targetvolume: P3, optionalpackagefamilynames: P4, packageuristoinstall: P5, relatedpackageuris: P6) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, - P4: windows_core::Param>, - P5: windows_core::Param>, - P6: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, + P6: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2271,15 +2114,14 @@ impl PackageManager { (windows_core::Interface::vtable(this).AddPackageToVolumeAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), options, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), packageuristoinstall.param().abi(), relatedpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn StagePackageToVolumeAndRelatedSetAsync(&self, packageuri: P0, dependencypackageuris: P1, options: DeploymentOptions, targetvolume: P3, optionalpackagefamilynames: P4, packageuristoinstall: P5, relatedpackageuris: P6) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, - P4: windows_core::Param>, - P5: windows_core::Param>, - P6: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, + P6: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2287,14 +2129,13 @@ impl PackageManager { (windows_core::Interface::vtable(this).StagePackageToVolumeAndRelatedSetAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), options, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), packageuristoinstall.param().abi(), relatedpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestAddPackageAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P3, optionalpackagefamilynames: P4, relatedpackageuris: P5) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, - P4: windows_core::Param>, - P5: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2302,15 +2143,14 @@ impl PackageManager { (windows_core::Interface::vtable(this).RequestAddPackageAsync)(windows_core::Interface::as_raw(this), packageuri.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, targetvolume.param().abi(), optionalpackagefamilynames.param().abi(), relatedpackageuris.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestAddPackageAndRelatedSetAsync(&self, packageuri: P0, dependencypackageuris: P1, deploymentoptions: DeploymentOptions, targetvolume: P3, optionalpackagefamilynames: P4, relatedpackageuris: P5, packageuristoinstall: P6) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, P3: windows_core::Param, - P4: windows_core::Param>, - P5: windows_core::Param>, - P6: windows_core::Param>, + P4: windows_core::Param>, + P5: windows_core::Param>, + P6: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2325,8 +2165,8 @@ impl PackageManager { (windows_core::Interface::vtable(this).DeprovisionPackageForAllUsersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindProvisionedPackages(&self) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindProvisionedPackages(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2366,10 +2206,9 @@ impl PackageManager { (windows_core::Interface::vtable(this).RegisterPackageByUriAsync)(windows_core::Interface::as_raw(this), manifesturi.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RegisterPackagesByFullNameAsync(&self, packagefullnames: P0, options: P1) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -2650,112 +2489,112 @@ impl PackageVolume { (windows_core::Interface::vtable(this).SupportsHardLinks)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackages(&self) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByNamePublisher(&self, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByNamePublisher(&self, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByNamePublisher)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByPackageFamilyName(&self, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByPackageFamilyName(&self, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByPackageFamilyName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesWithPackageTypes(&self, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesWithPackageTypes(&self, packagetypes: PackageTypes) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesWithPackageTypes)(windows_core::Interface::as_raw(this), packagetypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByNamePublisherWithPackagesTypes(&self, packagetypes: PackageTypes, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByNamePublisherWithPackagesTypes(&self, packagetypes: PackageTypes, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByNamePublisherWithPackagesTypes)(windows_core::Interface::as_raw(this), packagetypes, core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByPackageFamilyNameWithPackageTypes(&self, packagetypes: PackageTypes, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByPackageFamilyNameWithPackageTypes(&self, packagetypes: PackageTypes, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByPackageFamilyNameWithPackageTypes)(windows_core::Interface::as_raw(this), packagetypes, core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackageByPackageFullName(&self, packagefullname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackageByPackageFullName(&self, packagefullname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackageByPackageFullName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityId(&self, usersecurityid: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityId(&self, usersecurityid: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdNamePublisher(&self, usersecurityid: &windows_core::HSTRING, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdNamePublisher(&self, usersecurityid: &windows_core::HSTRING, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdNamePublisher)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdPackageFamilyName(&self, usersecurityid: &windows_core::HSTRING, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdPackageFamilyName(&self, usersecurityid: &windows_core::HSTRING, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdPackageFamilyName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdWithPackageTypes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), packagetypes, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdNamePublisherWithPackageTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes, packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdNamePublisherWithPackageTypes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), packagetypes, core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes(&self, usersecurityid: &windows_core::HSTRING, packagetypes: PackageTypes, packagefamilyname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByUserSecurityIdPackageFamilyNameWithPackagesTypes)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(usersecurityid), packagetypes, core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackageByUserSecurityIdPackageFullName(&self, usersecurityid: &windows_core::HSTRING, packagefullname: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackageByUserSecurityIdPackageFullName(&self, usersecurityid: &windows_core::HSTRING, packagefullname: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2808,8 +2647,7 @@ impl RegisterPackageOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn DependencyPackageUris(&self) -> windows_core::Result> { + pub fn DependencyPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2830,8 +2668,7 @@ impl RegisterPackageOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAppDataVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { + pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2940,8 +2777,7 @@ impl RegisterPackageOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDeferRegistrationWhenPackagesAreInUse)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExpectedDigests(&self) -> windows_core::Result> { + pub fn ExpectedDigests(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3098,8 +2934,7 @@ impl SharedPackageContainer { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMembers(&self) -> windows_core::Result> { + pub fn GetMembers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3182,16 +3017,14 @@ impl SharedPackageContainerManager { (windows_core::Interface::vtable(this).GetContainer)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindContainers(&self) -> windows_core::Result> { + pub fn FindContainers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindContainers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindContainersWithOptions(&self, options: P0) -> windows_core::Result> + pub fn FindContainersWithOptions(&self, options: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -3300,8 +3133,7 @@ impl StagePackageOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn DependencyPackageUris(&self) -> windows_core::Result> { + pub fn DependencyPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3322,24 +3154,21 @@ impl StagePackageOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTargetVolume)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { + pub fn OptionalPackageFamilyNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).OptionalPackageFamilyNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionalPackageUris(&self) -> windows_core::Result> { + pub fn OptionalPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).OptionalPackageUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RelatedPackageUris(&self) -> windows_core::Result> { + pub fn RelatedPackageUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3437,8 +3266,7 @@ impl StagePackageOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowUnsigned)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExpectedDigests(&self) -> windows_core::Result> { + pub fn ExpectedDigests(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Management/Setup/mod.rs b/crates/libs/windows/src/Windows/Management/Setup/mod.rs index 70f1339f1f0..3775239fde4 100644 --- a/crates/libs/windows/src/Windows/Management/Setup/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Setup/mod.rs @@ -65,8 +65,7 @@ impl AgentProvisioningProgressReport { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayProgressSecondary)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Batches(&self) -> windows_core::Result> { + pub fn Batches(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -461,8 +460,7 @@ impl DeploymentWorkloadBatch { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayCategoryTitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn BatchWorkloads(&self) -> windows_core::Result> { + pub fn BatchWorkloads(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -549,10 +547,7 @@ pub struct IAgentProvisioningProgressReport_Vtbl { pub SetDisplayProgress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisplayProgressSecondary: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDisplayProgressSecondary: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Batches: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Batches: usize, pub CurrentBatchIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetCurrentBatchIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } @@ -623,10 +618,7 @@ pub struct IDeploymentWorkloadBatch_Vtbl { pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub DisplayCategoryTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDisplayCategoryTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub BatchWorkloads: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BatchWorkloads: usize, } windows_core::imp::define_interface!(IDeploymentWorkloadBatchFactory, IDeploymentWorkloadBatchFactory_Vtbl, 0xd0209697_9560_5a05_bdf6_f1af535cb0d4); impl windows_core::RuntimeType for IDeploymentWorkloadBatchFactory { diff --git a/crates/libs/windows/src/Windows/Management/Update/mod.rs b/crates/libs/windows/src/Windows/Management/Update/mod.rs index 12681c1e915..f008a3a6bb3 100644 --- a/crates/libs/windows/src/Windows/Management/Update/mod.rs +++ b/crates/libs/windows/src/Windows/Management/Update/mod.rs @@ -110,10 +110,7 @@ pub struct IWindowsUpdateAdministrator_Vtbl { pub RevokeWindowsUpdateActionApproval: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ApproveWindowsUpdate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RevokeWindowsUpdateApproval: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetUpdates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUpdates: usize, } windows_core::imp::define_interface!(IWindowsUpdateAdministratorStatics, IWindowsUpdateAdministratorStatics_Vtbl, 0x013e6d36_ef69_53bc_8db8_c403bca550ed); impl windows_core::RuntimeType for IWindowsUpdateAdministratorStatics { @@ -215,18 +212,9 @@ pub struct IWindowsUpdateManager_Vtbl { pub IsScanning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsWorking: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub LastSuccessfulScanTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetApplicableUpdates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetApplicableUpdates: usize, - #[cfg(feature = "Foundation_Collections")] pub GetMostRecentCompletedUpdates: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMostRecentCompletedUpdates: usize, - #[cfg(feature = "Foundation_Collections")] pub GetMostRecentCompletedUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMostRecentCompletedUpdatesAsync: usize, pub StartScan: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IWindowsUpdateManagerFactory, IWindowsUpdateManagerFactory_Vtbl, 0x1b394df8_decb_5f44_b47c_6ccf3bcfdb37); @@ -289,10 +277,7 @@ pub struct IWindowsUpdateScanCompletedEventArgs_Vtbl { pub ProviderId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Succeeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Updates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Updates: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -714,8 +699,7 @@ impl WindowsUpdateAdministrator { let this = self; unsafe { (windows_core::Interface::vtable(this).RevokeWindowsUpdateApproval)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(updateid)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetUpdates(&self) -> windows_core::Result> { + pub fn GetUpdates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1256,24 +1240,21 @@ impl WindowsUpdateManager { (windows_core::Interface::vtable(this).LastSuccessfulScanTimestamp)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetApplicableUpdates(&self) -> windows_core::Result> { + pub fn GetApplicableUpdates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetApplicableUpdates)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMostRecentCompletedUpdates(&self, count: i32) -> windows_core::Result> { + pub fn GetMostRecentCompletedUpdates(&self, count: i32) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMostRecentCompletedUpdates)(windows_core::Interface::as_raw(this), count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMostRecentCompletedUpdatesAsync(&self, count: i32) -> windows_core::Result>> { + pub fn GetMostRecentCompletedUpdatesAsync(&self, count: i32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1483,8 +1464,7 @@ impl WindowsUpdateScanCompletedEventArgs { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Updates(&self) -> windows_core::Result> { + pub fn Updates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Management/mod.rs b/crates/libs/windows/src/Windows/Management/mod.rs index fa15eb9f427..33ce710836b 100644 --- a/crates/libs/windows/src/Windows/Management/mod.rs +++ b/crates/libs/windows/src/Windows/Management/mod.rs @@ -38,20 +38,14 @@ impl windows_core::RuntimeType for IMdmSession { #[repr(C)] pub struct IMdmSession_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Alerts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Alerts: usize, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub State: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MdmSessionState) -> windows_core::HRESULT, pub AttachAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Delete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub StartAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StartWithAlertsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartWithAlertsAsync: usize, } windows_core::imp::define_interface!(IMdmSessionManagerStatics, IMdmSessionManagerStatics_Vtbl, 0xcf4ad959_f745_4b79_9b5c_de0bf8efe44b); impl windows_core::RuntimeType for IMdmSessionManagerStatics { @@ -60,10 +54,7 @@ impl windows_core::RuntimeType for IMdmSessionManagerStatics { #[repr(C)] pub struct IMdmSessionManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SessionIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SessionIds: usize, pub TryCreateSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteSessionById: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSessionById: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -200,8 +191,7 @@ impl windows_core::RuntimeType for MdmAlertMark { pub struct MdmSession(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MdmSession, windows_core::IUnknown, windows_core::IInspectable); impl MdmSession { - #[cfg(feature = "Foundation_Collections")] - pub fn Alerts(&self) -> windows_core::Result> { + pub fn Alerts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -247,10 +237,9 @@ impl MdmSession { (windows_core::Interface::vtable(this).StartAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn StartWithAlertsAsync(&self, alerts: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -271,8 +260,7 @@ impl windows_core::RuntimeName for MdmSession { } pub struct MdmSessionManager; impl MdmSessionManager { - #[cfg(feature = "Foundation_Collections")] - pub fn SessionIds() -> windows_core::Result> { + pub fn SessionIds() -> windows_core::Result> { Self::IMdmSessionManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SessionIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs b/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs index 803e09ab24c..6ed7ed0deaf 100644 --- a/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs +++ b/crates/libs/windows/src/Windows/Media/AppRecording/mod.rs @@ -32,19 +32,18 @@ impl AppRecordingManager { (windows_core::Interface::vtable(this).RecordTimeSpanToFileAsync)(windows_core::Interface::as_raw(this), starttime, duration, file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedScreenshotMediaEncodingSubtypes(&self) -> windows_core::Result> { + pub fn SupportedScreenshotMediaEncodingSubtypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedScreenshotMediaEncodingSubtypes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] + #[cfg(feature = "Storage_Search")] pub fn SaveScreenshotToFilesAsync(&self, folder: P0, filenameprefix: &windows_core::HSTRING, option: AppRecordingSaveScreenshotOption, requestedformats: P3) -> windows_core::Result> where P0: windows_core::Param, - P3: windows_core::Param>, + P3: windows_core::Param>, { let this = self; unsafe { @@ -153,8 +152,7 @@ impl AppRecordingSaveScreenshotResult { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SavedScreenshotInfos(&self) -> windows_core::Result> { + pub fn SavedScreenshotInfos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -350,13 +348,10 @@ pub struct IAppRecordingManager_Vtbl { pub RecordTimeSpanToFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::TimeSpan, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] RecordTimeSpanToFileAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedScreenshotMediaEncodingSubtypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedScreenshotMediaEncodingSubtypes: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] + #[cfg(feature = "Storage_Search")] pub SaveScreenshotToFilesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, AppRecordingSaveScreenshotOption, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Search")))] + #[cfg(not(feature = "Storage_Search"))] SaveScreenshotToFilesAsync: usize, } windows_core::imp::define_interface!(IAppRecordingManagerStatics, IAppRecordingManagerStatics_Vtbl, 0x50e709f7_38ce_4bd3_9db2_e72bbe9de11d); @@ -389,10 +384,7 @@ pub struct IAppRecordingSaveScreenshotResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Succeeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SavedScreenshotInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SavedScreenshotInfos: usize, } windows_core::imp::define_interface!(IAppRecordingSavedScreenshotInfo, IAppRecordingSavedScreenshotInfo_Vtbl, 0x9b642d0a_189a_4d00_bf25_e1bb1249d594); impl windows_core::RuntimeType for IAppRecordingSavedScreenshotInfo { diff --git a/crates/libs/windows/src/Windows/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Media/Audio/mod.rs index fa654eaadc1..0ec844cd234 100644 --- a/crates/libs/windows/src/Windows/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Audio/mod.rs @@ -12,8 +12,7 @@ impl AudioDeviceInputNode { (windows_core::Interface::vtable(this).Device)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OutgoingConnections(&self) -> windows_core::Result> { + pub fn OutgoingConnections(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -48,8 +47,8 @@ impl AudioDeviceInputNode { (windows_core::Interface::vtable(this).Emitter)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -161,8 +160,8 @@ impl AudioDeviceOutputNode { (windows_core::Interface::vtable(this).Device)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -440,8 +439,7 @@ impl AudioFileInputNode { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveFileCompleted)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn OutgoingConnections(&self) -> windows_core::Result> { + pub fn OutgoingConnections(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -476,8 +474,8 @@ impl AudioFileInputNode { (windows_core::Interface::vtable(this).Emitter)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -605,8 +603,8 @@ impl AudioFileOutputNode { (windows_core::Interface::vtable(this).FinalizeAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -776,8 +774,7 @@ impl AudioFrameInputNode { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveQuantumStarted)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn OutgoingConnections(&self) -> windows_core::Result> { + pub fn OutgoingConnections(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -812,8 +809,8 @@ impl AudioFrameInputNode { (windows_core::Interface::vtable(this).Emitter)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -908,8 +905,8 @@ impl AudioFrameOutputNode { (windows_core::Interface::vtable(this).GetFrame)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2287,8 +2284,7 @@ pub struct AudioSubmixNode(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AudioSubmixNode, windows_core::IUnknown, windows_core::IInspectable, IAudioInputNode); windows_core::imp::required_hierarchy!(AudioSubmixNode, IAudioInputNode2, IAudioNode, super::super::Foundation::IClosable); impl AudioSubmixNode { - #[cfg(feature = "Foundation_Collections")] - pub fn OutgoingConnections(&self) -> windows_core::Result> { + pub fn OutgoingConnections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2323,8 +2319,8 @@ impl AudioSubmixNode { (windows_core::Interface::vtable(this).Emitter)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2805,8 +2801,7 @@ impl EqualizerEffectDefinition { (windows_core::Interface::vtable(this).Properties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Bands(&self) -> windows_core::Result> { + pub fn Bands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3202,8 +3197,7 @@ impl windows_core::RuntimeType for IAudioInputNode { windows_core::imp::interface_hierarchy!(IAudioInputNode, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(IAudioInputNode, IAudioNode, super::super::Foundation::IClosable); impl IAudioInputNode { - #[cfg(feature = "Foundation_Collections")] - pub fn OutgoingConnections(&self) -> windows_core::Result> { + pub fn OutgoingConnections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3231,8 +3225,8 @@ impl IAudioInputNode { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3302,18 +3296,18 @@ impl IAudioInputNode { unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl windows_core::RuntimeName for IAudioInputNode { const NAME: &'static str = "Windows.Media.Audio.IAudioInputNode"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] pub trait IAudioInputNode_Impl: IAudioNode_Impl + super::super::Foundation::IClosable_Impl { - fn OutgoingConnections(&self) -> windows_core::Result>; + fn OutgoingConnections(&self) -> windows_core::Result>; fn AddOutgoingConnection(&self, destination: windows_core::Ref<'_, IAudioNode>) -> windows_core::Result<()>; fn AddOutgoingConnectionWithGain(&self, destination: windows_core::Ref<'_, IAudioNode>, gain: f64) -> windows_core::Result<()>; fn RemoveOutgoingConnection(&self, destination: windows_core::Ref<'_, IAudioNode>) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioInputNode_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn OutgoingConnections(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -3362,10 +3356,7 @@ impl IAudioInputNode_Vtbl { #[repr(C)] pub struct IAudioInputNode_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub OutgoingConnections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OutgoingConnections: usize, pub AddOutgoingConnection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddOutgoingConnectionWithGain: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub RemoveOutgoingConnection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -3384,8 +3375,7 @@ impl IAudioInputNode2 { (windows_core::Interface::vtable(this).Emitter)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OutgoingConnections(&self) -> windows_core::Result> { + pub fn OutgoingConnections(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3413,8 +3403,8 @@ impl IAudioInputNode2 { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveOutgoingConnection)(windows_core::Interface::as_raw(this), destination.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3484,15 +3474,15 @@ impl IAudioInputNode2 { unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl windows_core::RuntimeName for IAudioInputNode2 { const NAME: &'static str = "Windows.Media.Audio.IAudioInputNode2"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] pub trait IAudioInputNode2_Impl: IAudioInputNode_Impl + IAudioNode_Impl + super::super::Foundation::IClosable_Impl { fn Emitter(&self) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioInputNode2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Emitter(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -3526,8 +3516,8 @@ impl windows_core::RuntimeType for IAudioNode { windows_core::imp::interface_hierarchy!(IAudioNode, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(IAudioNode, super::super::Foundation::IClosable); impl IAudioNode { - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3597,13 +3587,13 @@ impl IAudioNode { unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl windows_core::RuntimeName for IAudioNode { const NAME: &'static str = "Windows.Media.Audio.IAudioNode"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] pub trait IAudioNode_Impl: super::super::Foundation::IClosable_Impl { - fn EffectDefinitions(&self) -> windows_core::Result>; + fn EffectDefinitions(&self) -> windows_core::Result>; fn SetOutgoingGain(&self, value: f64) -> windows_core::Result<()>; fn OutgoingGain(&self) -> windows_core::Result; fn EncodingProperties(&self) -> windows_core::Result; @@ -3615,7 +3605,7 @@ pub trait IAudioNode_Impl: super::super::Foundation::IClosable_Impl { fn DisableEffectsByDefinition(&self, definition: windows_core::Ref<'_, super::Effects::IAudioEffectDefinition>) -> windows_core::Result<()>; fn EnableEffectsByDefinition(&self, definition: windows_core::Ref<'_, super::Effects::IAudioEffectDefinition>) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioNode_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn EffectDefinitions(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -3732,9 +3722,9 @@ impl IAudioNode_Vtbl { #[repr(C)] pub struct IAudioNode_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] + #[cfg(feature = "Media_Effects")] pub EffectDefinitions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Effects")))] + #[cfg(not(feature = "Media_Effects"))] EffectDefinitions: usize, pub SetOutgoingGain: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, pub OutgoingGain: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, @@ -3934,8 +3924,8 @@ impl IAudioNodeWithListener { (windows_core::Interface::vtable(this).Listener)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4005,16 +3995,16 @@ impl IAudioNodeWithListener { unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl windows_core::RuntimeName for IAudioNodeWithListener { const NAME: &'static str = "Windows.Media.Audio.IAudioNodeWithListener"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] pub trait IAudioNodeWithListener_Impl: IAudioNode_Impl + super::super::Foundation::IClosable_Impl { fn SetListener(&self, value: windows_core::Ref<'_, AudioNodeListener>) -> windows_core::Result<()>; fn Listener(&self) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Effects", feature = "Media_MediaProperties"))] impl IAudioNodeWithListener_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetListener(this: *mut core::ffi::c_void, value: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -4300,10 +4290,7 @@ impl windows_core::RuntimeType for IEqualizerEffectDefinition { #[repr(C)] pub struct IEqualizerEffectDefinition_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Bands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Bands: usize, } windows_core::imp::define_interface!(IEqualizerEffectDefinitionFactory, IEqualizerEffectDefinitionFactory_Vtbl, 0xd2876fc4_d410_4eb5_9e69_c9aa1277eaf0); impl windows_core::RuntimeType for IEqualizerEffectDefinitionFactory { @@ -4609,8 +4596,7 @@ pub struct MediaSourceAudioInputNode(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MediaSourceAudioInputNode, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(MediaSourceAudioInputNode, IAudioInputNode, IAudioInputNode2, IAudioNode, super::super::Foundation::IClosable); impl MediaSourceAudioInputNode { - #[cfg(feature = "Foundation_Collections")] - pub fn OutgoingConnections(&self) -> windows_core::Result> { + pub fn OutgoingConnections(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4645,8 +4631,8 @@ impl MediaSourceAudioInputNode { (windows_core::Interface::vtable(this).Emitter)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn EffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn EffectDefinitions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs index 429e237f0a8..528b3bf0270 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/Frames/mod.rs @@ -262,10 +262,7 @@ pub struct IMediaFrameFormat_Vtbl { pub FrameRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_MediaProperties"))] FrameRate: usize, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub VideoFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IMediaFrameFormat2, IMediaFrameFormat2_Vtbl, 0x63856340_5e87_4c10_86d1_6df097a6c6a8); @@ -314,10 +311,7 @@ pub struct IMediaFrameReference_Vtbl { pub Format: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SystemRelativeTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Duration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub BufferMediaFrame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub VideoMediaFrame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Perception_Spatial")] @@ -343,10 +337,7 @@ pub struct IMediaFrameSource_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Info: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Controller: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedFormats: usize, pub CurrentFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetFormatAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FormatChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -411,10 +402,7 @@ pub struct IMediaFrameSourceGroup_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SourceInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SourceInfos: usize, } windows_core::imp::define_interface!(IMediaFrameSourceGroupStatics, IMediaFrameSourceGroupStatics_Vtbl, 0x1c48bfc5_436f_4508_94cf_d5d8b7326445); impl windows_core::RuntimeType for IMediaFrameSourceGroupStatics { @@ -423,10 +411,7 @@ impl windows_core::RuntimeType for IMediaFrameSourceGroupStatics { #[repr(C)] pub struct IMediaFrameSourceGroupStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, pub FromIdAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeviceSelector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -445,10 +430,7 @@ pub struct IMediaFrameSourceInfo_Vtbl { pub DeviceInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Devices_Enumeration"))] DeviceInformation: usize, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, #[cfg(feature = "Perception_Spatial")] pub CoordinateSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Perception_Spatial"))] @@ -462,10 +444,7 @@ impl windows_core::RuntimeType for IMediaFrameSourceInfo2 { pub struct IMediaFrameSourceInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ProfileId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub VideoProfileMediaDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - VideoProfileMediaDescription: usize, } windows_core::imp::define_interface!(IMediaFrameSourceInfo3, IMediaFrameSourceInfo3_Vtbl, 0xca824ab6_66ea_5885_a2b6_26c0eeec3c7b); impl windows_core::RuntimeType for IMediaFrameSourceInfo3 { @@ -648,8 +627,7 @@ impl MediaFrameFormat { (windows_core::Interface::vtable(this).FrameRate)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -820,8 +798,7 @@ impl MediaFrameReference { (windows_core::Interface::vtable(this).Duration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -889,8 +866,7 @@ impl MediaFrameSource { (windows_core::Interface::vtable(this).Controller)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedFormats(&self) -> windows_core::Result> { + pub fn SupportedFormats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1088,16 +1064,14 @@ impl MediaFrameSourceGroup { (windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SourceInfos(&self) -> windows_core::Result> { + pub fn SourceInfos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SourceInfos)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync() -> windows_core::Result>> { + pub fn FindAllAsync() -> windows_core::Result>> { Self::IMediaFrameSourceGroupStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1173,8 +1147,7 @@ impl MediaFrameSourceInfo { (windows_core::Interface::vtable(this).DeviceInformation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1196,8 +1169,7 @@ impl MediaFrameSourceInfo { (windows_core::Interface::vtable(this).ProfileId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn VideoProfileMediaDescription(&self) -> windows_core::Result> { + pub fn VideoProfileMediaDescription(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Capture/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/mod.rs index 6355dc2b48c..f5dadc97aad 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/mod.rs @@ -928,8 +928,7 @@ impl AppBroadcastPlugInManager { (windows_core::Interface::vtable(this).IsBroadcastProviderAvailable)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PlugInList(&self) -> windows_core::Result> { + pub fn PlugInList(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3666,7 +3665,7 @@ impl CapturedFrame { (windows_core::Interface::vtable(this).ControlValues)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub fn BitmapProperties(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4490,10 +4489,7 @@ impl windows_core::RuntimeType for IAppBroadcastPlugInManager { pub struct IAppBroadcastPlugInManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsBroadcastProviderAvailable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PlugInList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PlugInList: usize, pub DefaultPlugIn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDefaultPlugIn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -5286,9 +5282,9 @@ impl windows_core::RuntimeType for ICapturedFrame2 { pub struct ICapturedFrame2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ControlValues: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub BitmapProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] + #[cfg(not(feature = "Graphics_Imaging"))] BitmapProperties: usize, } windows_core::imp::define_interface!(ICapturedFrameControlValues, ICapturedFrameControlValues_Vtbl, 0x90c65b7f_4e0d_4ca4_882d_7a144fed0a90); @@ -5577,9 +5573,9 @@ pub struct IMediaCapture2_Vtbl { pub PrepareLowLagPhotoSequenceCaptureAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_MediaProperties"))] PrepareLowLagPhotoSequenceCaptureAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] + #[cfg(feature = "Media_MediaProperties")] pub SetEncodingPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, MediaStreamType, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_MediaProperties")))] + #[cfg(not(feature = "Media_MediaProperties"))] SetEncodingPropertiesAsync: usize, } windows_core::imp::define_interface!(IMediaCapture3, IMediaCapture3_Vtbl, 0xd4136f30_1564_466e_bc0a_af94e02ab016); @@ -5647,9 +5643,9 @@ pub struct IMediaCapture5_Vtbl { #[cfg(not(feature = "Media_Devices"))] PauseRecordWithResultAsync: usize, pub StopRecordWithResultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] + #[cfg(feature = "Media_Capture_Frames")] pub FrameSources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames")))] + #[cfg(not(feature = "Media_Capture_Frames"))] FrameSources: usize, #[cfg(feature = "Media_Capture_Frames")] pub CreateFrameReaderAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -5673,9 +5669,9 @@ pub struct IMediaCapture6_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CaptureDeviceExclusiveControlStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveCaptureDeviceExclusiveControlStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] + #[cfg(feature = "Media_Capture_Frames")] pub CreateMultiSourceFrameReaderAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames")))] + #[cfg(not(feature = "Media_Capture_Frames"))] CreateMultiSourceFrameReaderAsync: usize, } windows_core::imp::define_interface!(IMediaCapture7, IMediaCapture7_Vtbl, 0x9169f102_8888_541a_95bc_24e4d462542a); @@ -5913,18 +5909,9 @@ impl windows_core::RuntimeType for IMediaCaptureStatics { pub struct IMediaCaptureStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsVideoProfileSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllVideoProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllVideoProfiles: usize, - #[cfg(feature = "Foundation_Collections")] pub FindConcurrentProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindConcurrentProfiles: usize, - #[cfg(feature = "Foundation_Collections")] pub FindKnownVideoProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, KnownVideoProfile, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindKnownVideoProfiles: usize, } windows_core::imp::define_interface!(IMediaCaptureStopResult, IMediaCaptureStopResult_Vtbl, 0xf9db6a2a_a092_4ad1_97d4_f201f9d082db); impl windows_core::RuntimeType for IMediaCaptureStopResult { @@ -5963,22 +5950,10 @@ pub struct IMediaCaptureVideoProfile_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub VideoDeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedPreviewMediaDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedPreviewMediaDescription: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedRecordMediaDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedRecordMediaDescription: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedPhotoMediaDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedPhotoMediaDescription: usize, - #[cfg(feature = "Foundation_Collections")] pub GetConcurrency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetConcurrency: usize, } windows_core::imp::define_interface!(IMediaCaptureVideoProfile2, IMediaCaptureVideoProfile2_Vtbl, 0x97ddc95f_94ce_468f_9316_fc5bc2638f6b); impl windows_core::RuntimeType for IMediaCaptureVideoProfile2 { @@ -5987,14 +5962,11 @@ impl windows_core::RuntimeType for IMediaCaptureVideoProfile2 { #[repr(C)] pub struct IMediaCaptureVideoProfile2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] + #[cfg(feature = "Media_Capture_Frames")] pub FrameSourceInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames")))] + #[cfg(not(feature = "Media_Capture_Frames"))] FrameSourceInfos: usize, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IMediaCaptureVideoProfileMediaDescription, IMediaCaptureVideoProfileMediaDescription_Vtbl, 0x8012afef_b691_49ff_83f2_c1e76eaaea1b); impl windows_core::RuntimeType for IMediaCaptureVideoProfileMediaDescription { @@ -6023,10 +5995,7 @@ impl windows_core::RuntimeType for IMediaCaptureVideoProfileMediaDescription2 { pub struct IMediaCaptureVideoProfileMediaDescription2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Subtype: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IOptionalReferencePhotoCapturedEventArgs, IOptionalReferencePhotoCapturedEventArgs_Vtbl, 0x470f88b3_1e6d_4051_9c8b_f1d85af047b7); impl windows_core::RuntimeType for IOptionalReferencePhotoCapturedEventArgs { @@ -6595,7 +6564,7 @@ impl MediaCapture { (windows_core::Interface::vtable(this).PrepareLowLagPhotoSequenceCaptureAsync)(windows_core::Interface::as_raw(this), r#type.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] + #[cfg(feature = "Media_MediaProperties")] pub fn SetEncodingPropertiesAsync(&self, mediastreamtype: MediaStreamType, mediaencodingproperties: P1, encoderproperties: P2) -> windows_core::Result where P1: windows_core::Param, @@ -6779,8 +6748,8 @@ impl MediaCapture { (windows_core::Interface::vtable(this).StopRecordWithResultAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] - pub fn FrameSources(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Capture_Frames")] + pub fn FrameSources(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -6834,10 +6803,10 @@ impl MediaCapture { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveCaptureDeviceExclusiveControlStatusChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] + #[cfg(feature = "Media_Capture_Frames")] pub fn CreateMultiSourceFrameReaderAsync(&self, inputsources: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6862,22 +6831,19 @@ impl MediaCapture { (windows_core::Interface::vtable(this).IsVideoProfileSupported)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(videodeviceid), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllVideoProfiles(videodeviceid: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindAllVideoProfiles(videodeviceid: &windows_core::HSTRING) -> windows_core::Result> { Self::IMediaCaptureStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllVideoProfiles)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(videodeviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindConcurrentProfiles(videodeviceid: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindConcurrentProfiles(videodeviceid: &windows_core::HSTRING) -> windows_core::Result> { Self::IMediaCaptureStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindConcurrentProfiles)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(videodeviceid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindKnownVideoProfiles(videodeviceid: &windows_core::HSTRING, name: KnownVideoProfile) -> windows_core::Result> { + pub fn FindKnownVideoProfiles(videodeviceid: &windows_core::HSTRING, name: KnownVideoProfile) -> windows_core::Result> { Self::IMediaCaptureStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindKnownVideoProfiles)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(videodeviceid), name, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -7673,48 +7639,43 @@ impl MediaCaptureVideoProfile { (windows_core::Interface::vtable(this).VideoDeviceId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedPreviewMediaDescription(&self) -> windows_core::Result> { + pub fn SupportedPreviewMediaDescription(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedPreviewMediaDescription)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedRecordMediaDescription(&self) -> windows_core::Result> { + pub fn SupportedRecordMediaDescription(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedRecordMediaDescription)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedPhotoMediaDescription(&self) -> windows_core::Result> { + pub fn SupportedPhotoMediaDescription(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedPhotoMediaDescription)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetConcurrency(&self) -> windows_core::Result> { + pub fn GetConcurrency(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetConcurrency)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture_Frames"))] - pub fn FrameSourceInfos(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Capture_Frames")] + pub fn FrameSourceInfos(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FrameSourceInfos)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -7783,8 +7744,7 @@ impl MediaCaptureVideoProfileMediaDescription { (windows_core::Interface::vtable(this).Subtype)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Casting/mod.rs b/crates/libs/windows/src/Windows/Media/Casting/mod.rs index b910a6e83c7..d9762560e1b 100644 --- a/crates/libs/windows/src/Windows/Media/Casting/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Casting/mod.rs @@ -368,8 +368,7 @@ impl CastingDevicePickerFilter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSupportsPictures)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCastingSources(&self) -> windows_core::Result> { + pub fn SupportedCastingSources(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -574,10 +573,7 @@ pub struct ICastingDevicePickerFilter_Vtbl { pub SetSupportsVideo: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub SupportsPictures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetSupportsPictures: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedCastingSources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCastingSources: usize, } windows_core::imp::define_interface!(ICastingDeviceSelectedEventArgs, ICastingDeviceSelectedEventArgs_Vtbl, 0xdc439e86_dd57_4d0d_9400_af45e4fb3663); impl windows_core::RuntimeType for ICastingDeviceSelectedEventArgs { diff --git a/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs b/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs index 2793be1f815..3ac6e87bb8f 100644 --- a/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs +++ b/crates/libs/windows/src/Windows/Media/ContentRestrictions/mod.rs @@ -84,14 +84,8 @@ pub struct IRatedContentDescription_Vtbl { SetImage: usize, pub Category: unsafe extern "system" fn(*mut core::ffi::c_void, *mut RatedContentCategory) -> windows_core::HRESULT, pub SetCategory: unsafe extern "system" fn(*mut core::ffi::c_void, RatedContentCategory) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Ratings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Ratings: usize, - #[cfg(feature = "Foundation_Collections")] pub SetRatings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetRatings: usize, } windows_core::imp::define_interface!(IRatedContentDescriptionFactory, IRatedContentDescriptionFactory_Vtbl, 0x2e38df62_9b90_4fa6_89c1_4b8d2ffb3573); impl windows_core::RuntimeType for IRatedContentDescriptionFactory { @@ -195,18 +189,16 @@ impl RatedContentDescription { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCategory)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Ratings(&self) -> windows_core::Result> { + pub fn Ratings(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Ratings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetRatings(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRatings)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } diff --git a/crates/libs/windows/src/Windows/Media/Control/mod.rs b/crates/libs/windows/src/Windows/Media/Control/mod.rs index 9eaaced511f..2abf0771b33 100644 --- a/crates/libs/windows/src/Windows/Media/Control/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Control/mod.rs @@ -220,8 +220,7 @@ impl GlobalSystemMediaTransportControlsSessionManager { (windows_core::Interface::vtable(this).GetCurrentSession)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSessions(&self) -> windows_core::Result> { + pub fn GetSessions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -326,8 +325,7 @@ impl GlobalSystemMediaTransportControlsSessionMediaProperties { (windows_core::Interface::vtable(this).TrackNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Genres(&self) -> windows_core::Result> { + pub fn Genres(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -678,10 +676,7 @@ impl windows_core::RuntimeType for IGlobalSystemMediaTransportControlsSessionMan pub struct IGlobalSystemMediaTransportControlsSessionManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetCurrentSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSessions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSessions: usize, pub CurrentSessionChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveCurrentSessionChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub SessionsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -709,10 +704,7 @@ pub struct IGlobalSystemMediaTransportControlsSessionMediaProperties_Vtbl { pub Artist: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AlbumTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TrackNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Genres: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Genres: usize, pub AlbumTrackCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub PlaybackType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] diff --git a/crates/libs/windows/src/Windows/Media/Core/mod.rs b/crates/libs/windows/src/Windows/Media/Core/mod.rs index f86aef74e09..c9308871ce9 100644 --- a/crates/libs/windows/src/Windows/Media/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Core/mod.rs @@ -412,8 +412,7 @@ impl CodecInfo { (windows_core::Interface::vtable(this).Category)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Subtypes(&self) -> windows_core::Result> { + pub fn Subtypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -472,8 +471,7 @@ impl CodecQuery { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync(&self, kind: CodecKind, category: CodecCategory, subtype: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindAllAsync(&self, kind: CodecKind, category: CodecCategory, subtype: &windows_core::HSTRING) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1060,8 +1058,8 @@ impl FaceDetectionEffectFrame { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_FaceAnalysis"))] - pub fn DetectedFaces(&self) -> windows_core::Result> { + #[cfg(feature = "Media_FaceAnalysis")] + pub fn DetectedFaces(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1211,8 +1209,8 @@ impl HighDynamicRangeOutput { (windows_core::Interface::vtable(this).Certainty)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Devices_Core"))] - pub fn FrameControllers(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Devices_Core")] + pub fn FrameControllers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1337,10 +1335,7 @@ pub struct ICodecInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CodecKind) -> windows_core::HRESULT, pub Category: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CodecCategory) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Subtypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Subtypes: usize, pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsTrusted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } @@ -1351,10 +1346,7 @@ impl windows_core::RuntimeType for ICodecQuery { #[repr(C)] pub struct ICodecQuery_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, CodecKind, CodecCategory, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, } windows_core::imp::define_interface!(ICodecSubtypesStatics, ICodecSubtypesStatics_Vtbl, 0xa66ac4f2_888b_4224_8cf6_2a8d4eb02382); impl windows_core::RuntimeType for ICodecSubtypesStatics { @@ -1488,9 +1480,9 @@ impl windows_core::RuntimeType for IFaceDetectionEffectFrame { #[repr(C)] pub struct IFaceDetectionEffectFrame_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_FaceAnalysis"))] + #[cfg(feature = "Media_FaceAnalysis")] pub DetectedFaces: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_FaceAnalysis")))] + #[cfg(not(feature = "Media_FaceAnalysis"))] DetectedFaces: usize, } windows_core::imp::define_interface!(IHighDynamicRangeControl, IHighDynamicRangeControl_Vtbl, 0x55f1a7ae_d957_4dc9_9d1c_8553a82a7d99); @@ -1511,9 +1503,9 @@ impl windows_core::RuntimeType for IHighDynamicRangeOutput { pub struct IHighDynamicRangeOutput_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Certainty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Devices_Core"))] + #[cfg(feature = "Media_Devices_Core")] pub FrameControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Devices_Core")))] + #[cfg(not(feature = "Media_Devices_Core"))] FrameControllers: usize, } windows_core::imp::define_interface!(IImageCue, IImageCue_Vtbl, 0x52828282_367b_440b_9116_3c84570dd270); @@ -1569,14 +1561,14 @@ impl windows_core::RuntimeType for ILowLightFusionStatics { #[repr(C)] pub struct ILowLightFusionStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub SupportedBitmapPixelFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] + #[cfg(not(feature = "Graphics_Imaging"))] SupportedBitmapPixelFormats: usize, pub MaxSupportedFrameCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub FuseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] + #[cfg(not(feature = "Graphics_Imaging"))] FuseAsync: usize, } windows_core::imp::define_interface!(IMediaBinder, IMediaBinder_Vtbl, 0x2b7e40aa_de07_424f_83f1_f1de46c4fa2e); @@ -2232,10 +2224,7 @@ pub struct IMediaStreamSample_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Buffer: usize, pub Timestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ExtendedProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExtendedProperties: usize, pub Protection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDecodeTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub DecodeTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, @@ -2658,10 +2647,7 @@ pub struct IMseSourceBuffer_Vtbl { pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MseAppendMode) -> windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(*mut core::ffi::c_void, MseAppendMode) -> windows_core::HRESULT, pub IsUpdating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Buffered: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Buffered: usize, pub TimestampOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub SetTimestampOffset: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub AppendWindowStart: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, @@ -2694,10 +2680,7 @@ pub struct IMseSourceBufferList_Vtbl { pub RemoveSourceBufferAdded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub SourceBufferRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveSourceBufferRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Buffers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Buffers: usize, } windows_core::imp::define_interface!(IMseStreamSource, IMseStreamSource_Vtbl, 0xb0b4198d_02f4_4923_88dd_81bc3f360ffa); impl windows_core::RuntimeType for IMseStreamSource { @@ -2935,14 +2918,8 @@ pub struct ITimedMetadataTrack_Vtbl { pub RemoveCueExited: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub TrackFailed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveTrackFailed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Cues: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Cues: usize, - #[cfg(feature = "Foundation_Collections")] pub ActiveCues: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ActiveCues: usize, pub TimedMetadataKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TimedMetadataKind) -> windows_core::HRESULT, pub DispatchType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AddCue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2995,8 +2972,7 @@ impl windows_core::RuntimeType for ITimedMetadataTrackProvider { } windows_core::imp::interface_hierarchy!(ITimedMetadataTrackProvider, windows_core::IUnknown, windows_core::IInspectable); impl ITimedMetadataTrackProvider { - #[cfg(feature = "Foundation_Collections")] - pub fn TimedMetadataTracks(&self) -> windows_core::Result> { + pub fn TimedMetadataTracks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3004,15 +2980,12 @@ impl ITimedMetadataTrackProvider { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ITimedMetadataTrackProvider { const NAME: &'static str = "Windows.Media.Core.ITimedMetadataTrackProvider"; } -#[cfg(feature = "Foundation_Collections")] pub trait ITimedMetadataTrackProvider_Impl: windows_core::IUnknownImpl { - fn TimedMetadataTracks(&self) -> windows_core::Result>; + fn TimedMetadataTracks(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl ITimedMetadataTrackProvider_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn TimedMetadataTracks(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -3040,10 +3013,7 @@ impl ITimedMetadataTrackProvider_Vtbl { #[repr(C)] pub struct ITimedMetadataTrackProvider_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub TimedMetadataTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TimedMetadataTracks: usize, } windows_core::imp::define_interface!(ITimedTextBouten, ITimedTextBouten_Vtbl, 0xd9062783_5597_5092_820c_8f738e0f774a); impl windows_core::RuntimeType for ITimedTextBouten { @@ -3076,10 +3046,7 @@ pub struct ITimedTextCue_Vtbl { pub SetCueRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CueStyle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCueStyle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Lines: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Lines: usize, } windows_core::imp::define_interface!(ITimedTextLine, ITimedTextLine_Vtbl, 0x978d7ce2_7308_4c66_be50_65777289f5df); impl windows_core::RuntimeType for ITimedTextLine { @@ -3090,10 +3057,7 @@ pub struct ITimedTextLine_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Text: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Subformats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Subformats: usize, } windows_core::imp::define_interface!(ITimedTextRegion, ITimedTextRegion_Vtbl, 0x1ed0881f_8a06_4222_9f59_b21bf40124b4); impl windows_core::RuntimeType for ITimedTextRegion { @@ -3167,10 +3131,7 @@ impl windows_core::RuntimeType for ITimedTextSourceResolveResultEventArgs { pub struct ITimedTextSourceResolveResultEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Error: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Tracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Tracks: usize, } windows_core::imp::define_interface!(ITimedTextSourceStatics, ITimedTextSourceStatics_Vtbl, 0x7e311853_9aba_4ac4_bb98_2fb176c3bfdd); impl windows_core::RuntimeType for ITimedTextSourceStatics { @@ -3538,8 +3499,8 @@ unsafe impl Send for InitializeMediaStreamSourceRequestedEventArgs {} unsafe impl Sync for InitializeMediaStreamSourceRequestedEventArgs {} pub struct LowLightFusion; impl LowLightFusion { - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] - pub fn SupportedBitmapPixelFormats() -> windows_core::Result> { + #[cfg(feature = "Graphics_Imaging")] + pub fn SupportedBitmapPixelFormats() -> windows_core::Result> { Self::ILowLightFusionStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedBitmapPixelFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3551,10 +3512,10 @@ impl LowLightFusion { (windows_core::Interface::vtable(this).MaxSupportedFrameCount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub fn FuseAsync(frameset: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ILowLightFusionStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -4258,7 +4219,6 @@ impl MediaStreamSample { (windows_core::Interface::vtable(this).Timestamp)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn ExtendedProperties(&self) -> windows_core::Result { let this = self; unsafe { @@ -4376,18 +4336,14 @@ impl windows_core::RuntimeName for MediaStreamSample { } unsafe impl Send for MediaStreamSample {} unsafe impl Sync for MediaStreamSample {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct MediaStreamSamplePropertySet(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy ! ( MediaStreamSamplePropertySet , windows_core::IUnknown , windows_core::IInspectable , super::super::Foundation::Collections:: IMap < windows_core::GUID , windows_core::IInspectable > ); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(MediaStreamSamplePropertySet, super::super::Foundation::Collections::IIterable>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy ! ( MediaStreamSamplePropertySet , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMap < windows_core::GUID , windows_core::IInspectable > ); +windows_core::imp::required_hierarchy!(MediaStreamSamplePropertySet, windows_collections::IIterable>); impl MediaStreamSamplePropertySet { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -4414,7 +4370,7 @@ impl MediaStreamSamplePropertySet { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key, &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4440,35 +4396,28 @@ impl MediaStreamSamplePropertySet { unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for MediaStreamSamplePropertySet { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for MediaStreamSamplePropertySet { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for MediaStreamSamplePropertySet { const NAME: &'static str = "Windows.Media.Core.MediaStreamSamplePropertySet"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for MediaStreamSamplePropertySet {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for MediaStreamSamplePropertySet {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for MediaStreamSamplePropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &MediaStreamSamplePropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -5296,8 +5245,7 @@ impl MseSourceBuffer { (windows_core::Interface::vtable(this).IsUpdating)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Buffered(&self) -> windows_core::Result> { + pub fn Buffered(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5421,8 +5369,7 @@ impl MseSourceBufferList { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSourceBufferRemoved)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Buffers(&self) -> windows_core::Result> { + pub fn Buffers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -6150,16 +6097,14 @@ impl TimedMetadataTrack { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveTrackFailed)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Cues(&self) -> windows_core::Result> { + pub fn Cues(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Cues)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ActiveCues(&self) -> windows_core::Result> { + pub fn ActiveCues(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -6464,8 +6409,7 @@ impl TimedTextCue { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCueStyle)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Lines(&self) -> windows_core::Result> { + pub fn Lines(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -6561,8 +6505,7 @@ impl TimedTextLine { let this = self; unsafe { (windows_core::Interface::vtable(this).SetText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Subformats(&self) -> windows_core::Result> { + pub fn Subformats(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -7050,8 +6993,7 @@ impl TimedTextSourceResolveResultEventArgs { (windows_core::Interface::vtable(this).Error)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Tracks(&self) -> windows_core::Result> { + pub fn Tracks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs index c5e8fac7210..57331e5b4a4 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/Core/mod.rs @@ -1031,10 +1031,7 @@ pub struct IVariablePhotoSequenceController_Vtbl { #[cfg(not(feature = "Media_MediaProperties"))] GetCurrentFrameRate: usize, pub FrameCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DesiredFrameControllers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DesiredFrameControllers: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -1092,8 +1089,7 @@ impl VariablePhotoSequenceController { (windows_core::Interface::vtable(this).FrameCapabilities)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DesiredFrameControllers(&self) -> windows_core::Result> { + pub fn DesiredFrameControllers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Devices/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/mod.rs index f4860c1bead..81f92cec89d 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/mod.rs @@ -48,8 +48,7 @@ impl AdvancedPhotoControl { (windows_core::Interface::vtable(this).Supported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModes(&self) -> windows_core::Result> { + pub fn SupportedModes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -134,8 +133,8 @@ impl AudioDeviceController { (windows_core::Interface::vtable(this).AudioCaptureEffectsManager)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] - pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result> { + #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] + pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -286,16 +285,14 @@ impl AudioDeviceModulesManager { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveModuleNotificationReceived)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllById(&self, moduleid: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindAllById(&self, moduleid: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllById)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(moduleid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAll(&self) -> windows_core::Result> { + pub fn FindAll(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1079,8 +1076,7 @@ impl DigitalWindowControl { let this = self; unsafe { (windows_core::Interface::vtable(this).ConfigureWithBounds)(windows_core::Interface::as_raw(this), digitalwindowmode, digitalwindowbounds.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCapabilities(&self) -> windows_core::Result> { + pub fn SupportedCapabilities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1398,8 +1394,7 @@ impl FocusControl { (windows_core::Interface::vtable(this).Supported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedPresets(&self) -> windows_core::Result> { + pub fn SupportedPresets(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1483,24 +1478,21 @@ impl FocusControl { (windows_core::Interface::vtable(this).WaitForFocusSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedFocusModes(&self) -> windows_core::Result> { + pub fn SupportedFocusModes(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedFocusModes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedFocusDistances(&self) -> windows_core::Result> { + pub fn SupportedFocusDistances(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedFocusDistances)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedFocusRanges(&self) -> windows_core::Result> { + pub fn SupportedFocusRanges(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1694,8 +1686,7 @@ impl HdrVideoControl { (windows_core::Interface::vtable(this).Supported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModes(&self) -> windows_core::Result> { + pub fn SupportedModes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1758,10 +1749,7 @@ impl windows_core::RuntimeType for IAdvancedPhotoControl { pub struct IAdvancedPhotoControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Supported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModes: usize, pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AdvancedPhotoMode) -> windows_core::HRESULT, pub Configure: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1957,14 +1945,8 @@ pub struct IAudioDeviceModulesManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ModuleNotificationReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveModuleNotificationReceived: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllById: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllById: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAll: usize, } windows_core::imp::define_interface!(IAudioDeviceModulesManagerFactory, IAudioDeviceModulesManagerFactory_Vtbl, 0x8db03670_e64d_4773_96c0_bc7ebf0e063f); impl windows_core::RuntimeType for IAudioDeviceModulesManagerFactory { @@ -2163,10 +2145,7 @@ pub struct IDigitalWindowControl_Vtbl { pub GetBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Configure: unsafe extern "system" fn(*mut core::ffi::c_void, DigitalWindowMode) -> windows_core::HRESULT, pub ConfigureWithBounds: unsafe extern "system" fn(*mut core::ffi::c_void, DigitalWindowMode, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedCapabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCapabilities: usize, pub GetCapabilityForSize: unsafe extern "system" fn(*mut core::ffi::c_void, i32, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IExposureCompensationControl, IExposureCompensationControl_Vtbl, 0x81c8e834_dcec_4011_a610_1f3847e64aca); @@ -2248,10 +2227,7 @@ impl windows_core::RuntimeType for IFocusControl { pub struct IFocusControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Supported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedPresets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedPresets: usize, pub Preset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FocusPreset) -> windows_core::HRESULT, pub SetPresetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, FocusPreset, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPresetWithCompletionOptionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, FocusPreset, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2271,18 +2247,9 @@ pub struct IFocusControl2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub FocusChangedSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub WaitForFocusSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedFocusModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedFocusModes: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedFocusDistances: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedFocusDistances: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedFocusRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedFocusRanges: usize, pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FocusMode) -> windows_core::HRESULT, pub FocusState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MediaCaptureFocusState) -> windows_core::HRESULT, pub UnlockAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2317,10 +2284,7 @@ impl windows_core::RuntimeType for IHdrVideoControl { pub struct IHdrVideoControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Supported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModes: usize, pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut HdrVideoMode) -> windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(*mut core::ffi::c_void, HdrVideoMode) -> windows_core::HRESULT, } @@ -2332,10 +2296,7 @@ impl windows_core::RuntimeType for IInfraredTorchControl { pub struct IInfraredTorchControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModes: usize, pub CurrentMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut InfraredTorchMode) -> windows_core::HRESULT, pub SetCurrentMode: unsafe extern "system" fn(*mut core::ffi::c_void, InfraredTorchMode) -> windows_core::HRESULT, pub MinPower: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, @@ -2352,9 +2313,9 @@ impl windows_core::RuntimeType for IIsoSpeedControl { pub struct IIsoSpeedControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Supported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub SupportedPresets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] SupportedPresets: usize, #[cfg(feature = "deprecated")] pub Preset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsoSpeedPreset) -> windows_core::HRESULT, @@ -2487,8 +2448,8 @@ impl windows_core::RuntimeType for IMediaDeviceController { } windows_core::imp::interface_hierarchy!(IMediaDeviceController, windows_core::IUnknown, windows_core::IInspectable); impl IMediaDeviceController { - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] - pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result> { + #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] + pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2515,17 +2476,17 @@ impl IMediaDeviceController { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] impl windows_core::RuntimeName for IMediaDeviceController { const NAME: &'static str = "Windows.Media.Devices.IMediaDeviceController"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub trait IMediaDeviceController_Impl: windows_core::IUnknownImpl { - fn GetAvailableMediaStreamProperties(&self, mediaStreamType: super::Capture::MediaStreamType) -> windows_core::Result>; + fn GetAvailableMediaStreamProperties(&self, mediaStreamType: super::Capture::MediaStreamType) -> windows_core::Result>; fn GetMediaStreamProperties(&self, mediaStreamType: super::Capture::MediaStreamType) -> windows_core::Result; fn SetMediaStreamPropertiesAsync(&self, mediaStreamType: super::Capture::MediaStreamType, mediaEncodingProperties: windows_core::Ref<'_, super::MediaProperties::IMediaEncodingProperties>) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] +#[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] impl IMediaDeviceController_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetAvailableMediaStreamProperties(this: *mut core::ffi::c_void, mediastreamtype: super::Capture::MediaStreamType, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -2581,9 +2542,9 @@ impl IMediaDeviceController_Vtbl { #[repr(C)] pub struct IMediaDeviceController_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] + #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub GetAvailableMediaStreamProperties: unsafe extern "system" fn(*mut core::ffi::c_void, super::Capture::MediaStreamType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties")))] + #[cfg(not(all(feature = "Media_Capture", feature = "Media_MediaProperties")))] GetAvailableMediaStreamProperties: usize, #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] pub GetMediaStreamProperties: unsafe extern "system" fn(*mut core::ffi::c_void, super::Capture::MediaStreamType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2632,10 +2593,7 @@ impl windows_core::RuntimeType for IOpticalImageStabilizationControl { pub struct IOpticalImageStabilizationControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Supported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModes: usize, pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OpticalImageStabilizationMode) -> windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(*mut core::ffi::c_void, OpticalImageStabilizationMode) -> windows_core::HRESULT, } @@ -2722,14 +2680,8 @@ impl windows_core::RuntimeType for IRegionsOfInterestControl { pub struct IRegionsOfInterestControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MaxRegions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetRegionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetRegionsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub SetRegionsWithLockAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetRegionsWithLockAsync: usize, pub ClearRegionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AutoFocusSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub AutoWhiteBalanceSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -2742,10 +2694,7 @@ impl windows_core::RuntimeType for ISceneModeControl { #[repr(C)] pub struct ISceneModeControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModes: usize, pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CaptureSceneMode) -> windows_core::HRESULT, pub SetValueAsync: unsafe extern "system" fn(*mut core::ffi::c_void, CaptureSceneMode, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2808,10 +2757,7 @@ impl windows_core::RuntimeType for IVideoTemporalDenoisingControl { pub struct IVideoTemporalDenoisingControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Supported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModes: usize, pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VideoTemporalDenoisingMode) -> windows_core::HRESULT, pub SetMode: unsafe extern "system" fn(*mut core::ffi::c_void, VideoTemporalDenoisingMode) -> windows_core::HRESULT, } @@ -2852,10 +2798,7 @@ impl windows_core::RuntimeType for IZoomControl2 { #[repr(C)] pub struct IZoomControl2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedModes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedModes: usize, pub Mode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ZoomTransitionMode) -> windows_core::HRESULT, pub Configure: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2883,8 +2826,7 @@ impl InfraredTorchControl { (windows_core::Interface::vtable(this).IsSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModes(&self) -> windows_core::Result> { + pub fn SupportedModes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2973,8 +2915,8 @@ impl IsoSpeedControl { (windows_core::Interface::vtable(this).Supported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn SupportedPresets(&self) -> windows_core::Result> { + #[cfg(feature = "deprecated")] + pub fn SupportedPresets(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3648,8 +3590,7 @@ impl OpticalImageStabilizationControl { (windows_core::Interface::vtable(this).Supported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModes(&self) -> windows_core::Result> { + pub fn SupportedModes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3997,10 +3938,9 @@ impl RegionsOfInterestControl { (windows_core::Interface::vtable(this).MaxRegions)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetRegionsAsync(&self, regions: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -4008,10 +3948,9 @@ impl RegionsOfInterestControl { (windows_core::Interface::vtable(this).SetRegionsAsync)(windows_core::Interface::as_raw(this), regions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetRegionsWithLockAsync(&self, regions: P0, lockvalues: bool) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -4063,8 +4002,7 @@ impl windows_core::RuntimeName for RegionsOfInterestControl { pub struct SceneModeControl(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SceneModeControl, windows_core::IUnknown, windows_core::IInspectable); impl SceneModeControl { - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModes(&self) -> windows_core::Result> { + pub fn SupportedModes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4444,8 +4382,8 @@ impl VideoDeviceController { (windows_core::Interface::vtable(this).DigitalWindowControl)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Capture", feature = "Media_MediaProperties"))] - pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result> { + #[cfg(all(feature = "Media_Capture", feature = "Media_MediaProperties"))] + pub fn GetAvailableMediaStreamProperties(&self, mediastreamtype: super::Capture::MediaStreamType) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4654,8 +4592,7 @@ impl VideoTemporalDenoisingControl { (windows_core::Interface::vtable(this).Supported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModes(&self) -> windows_core::Result> { + pub fn SupportedModes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4816,8 +4753,7 @@ impl ZoomControl { let this = self; unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedModes(&self) -> windows_core::Result> { + pub fn SupportedModes(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs b/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs index 04c55164416..8c352baa3cc 100644 --- a/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs +++ b/crates/libs/windows/src/Windows/Media/DialProtocol/mod.rs @@ -333,8 +333,7 @@ unsafe impl Sync for DialDevicePicker {} pub struct DialDevicePickerFilter(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DialDevicePickerFilter, windows_core::IUnknown, windows_core::IInspectable); impl DialDevicePickerFilter { - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedAppNames(&self) -> windows_core::Result> { + pub fn SupportedAppNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -409,18 +408,16 @@ unsafe impl Sync for DialDisconnectButtonClickedEventArgs {} pub struct DialReceiverApp(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DialReceiverApp, windows_core::IUnknown, windows_core::IInspectable); impl DialReceiverApp { - #[cfg(feature = "Foundation_Collections")] - pub fn GetAdditionalDataAsync(&self) -> windows_core::Result>> { + pub fn GetAdditionalDataAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAdditionalDataAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetAdditionalDataAsync(&self, additionaldata: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -541,10 +538,7 @@ impl windows_core::RuntimeType for IDialDevicePickerFilter { #[repr(C)] pub struct IDialDevicePickerFilter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedAppNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedAppNames: usize, } windows_core::imp::define_interface!(IDialDeviceSelectedEventArgs, IDialDeviceSelectedEventArgs_Vtbl, 0x480b92ad_ac76_47eb_9c06_a19304da0247); impl windows_core::RuntimeType for IDialDeviceSelectedEventArgs { @@ -585,14 +579,8 @@ impl windows_core::RuntimeType for IDialReceiverApp { #[repr(C)] pub struct IDialReceiverApp_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAdditionalDataAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAdditionalDataAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub SetAdditionalDataAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetAdditionalDataAsync: usize, } windows_core::imp::define_interface!(IDialReceiverApp2, IDialReceiverApp2_Vtbl, 0x530c5805_9130_42ac_a504_1977dcb2ea8a); impl windows_core::RuntimeType for IDialReceiverApp2 { diff --git a/crates/libs/windows/src/Windows/Media/Editing/mod.rs b/crates/libs/windows/src/Windows/Media/Editing/mod.rs index 08c66cb6c11..c8bd60f4269 100644 --- a/crates/libs/windows/src/Windows/Media/Editing/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Editing/mod.rs @@ -39,8 +39,7 @@ impl BackgroundAudioTrack { (windows_core::Interface::vtable(this).TrimmedDuration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn UserData(&self) -> windows_core::Result> { + pub fn UserData(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -84,8 +83,8 @@ impl BackgroundAudioTrack { (windows_core::Interface::vtable(this).GetAudioEncodingProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn AudioEffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn AudioEffectDefinitions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -167,10 +166,7 @@ pub struct IBackgroundAudioTrack_Vtbl { pub SetTrimTimeFromEnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub OriginalDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub TrimmedDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub UserData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UserData: usize, pub SetDelay: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub Delay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub SetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, @@ -180,9 +176,9 @@ pub struct IBackgroundAudioTrack_Vtbl { pub GetAudioEncodingProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_MediaProperties"))] GetAudioEncodingProperties: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] + #[cfg(feature = "Media_Effects")] pub AudioEffectDefinitions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Effects")))] + #[cfg(not(feature = "Media_Effects"))] AudioEffectDefinitions: usize, } windows_core::imp::define_interface!(IBackgroundAudioTrackStatics, IBackgroundAudioTrackStatics_Vtbl, 0xd9b1c0d7_d018_42a8_a559_cb4d9e97e664); @@ -223,17 +219,11 @@ pub struct IMediaClip_Vtbl { pub SetTrimTimeFromEnd: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub OriginalDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub TrimmedDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub UserData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UserData: usize, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub StartTimeInComposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub EndTimeInComposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub EmbeddedAudioTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EmbeddedAudioTracks: usize, pub SelectedEmbeddedAudioTrackIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetSelectedEmbeddedAudioTrackIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub SetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, @@ -242,13 +232,13 @@ pub struct IMediaClip_Vtbl { pub GetVideoEncodingProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_MediaProperties"))] GetVideoEncodingProperties: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] + #[cfg(feature = "Media_Effects")] pub AudioEffectDefinitions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Effects")))] + #[cfg(not(feature = "Media_Effects"))] AudioEffectDefinitions: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] + #[cfg(feature = "Media_Effects")] pub VideoEffectDefinitions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Effects")))] + #[cfg(not(feature = "Media_Effects"))] VideoEffectDefinitions: usize, } windows_core::imp::define_interface!(IMediaClipStatics, IMediaClipStatics_Vtbl, 0xfa402b68_928f_43c4_bc6e_783a1a359656); @@ -291,18 +281,9 @@ impl windows_core::RuntimeType for IMediaComposition { pub struct IMediaComposition_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Duration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Clips: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Clips: usize, - #[cfg(feature = "Foundation_Collections")] pub BackgroundAudioTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BackgroundAudioTracks: usize, - #[cfg(feature = "Foundation_Collections")] pub UserData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UserData: usize, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -312,9 +293,9 @@ pub struct IMediaComposition_Vtbl { pub GetThumbnailAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan, i32, i32, VideoFramePrecision, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(all(feature = "Graphics_Imaging", feature = "Storage_Streams")))] GetThumbnailAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging", feature = "Storage_Streams"))] + #[cfg(all(feature = "Graphics_Imaging", feature = "Storage_Streams"))] pub GetThumbnailsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32, i32, VideoFramePrecision, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging", feature = "Storage_Streams")))] + #[cfg(not(all(feature = "Graphics_Imaging", feature = "Storage_Streams")))] GetThumbnailsAsync: usize, #[cfg(all(feature = "Media_Transcoding", feature = "Storage_Streams"))] pub RenderToFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -352,10 +333,7 @@ impl windows_core::RuntimeType for IMediaComposition2 { #[repr(C)] pub struct IMediaComposition2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub OverlayLayers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OverlayLayers: usize, } windows_core::imp::define_interface!(IMediaCompositionStatics, IMediaCompositionStatics_Vtbl, 0x87a08f04_e32a_45ce_8f66_a30df0766224); impl windows_core::RuntimeType for IMediaCompositionStatics { @@ -405,10 +383,7 @@ impl windows_core::RuntimeType for IMediaOverlayLayer { pub struct IMediaOverlayLayer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Overlays: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Overlays: usize, #[cfg(feature = "Media_Effects")] pub CustomCompositorDefinition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_Effects"))] @@ -467,8 +442,7 @@ impl MediaClip { (windows_core::Interface::vtable(this).TrimmedDuration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn UserData(&self) -> windows_core::Result> { + pub fn UserData(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -496,8 +470,7 @@ impl MediaClip { (windows_core::Interface::vtable(this).EndTimeInComposition)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn EmbeddedAudioTracks(&self) -> windows_core::Result> { + pub fn EmbeddedAudioTracks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -534,16 +507,16 @@ impl MediaClip { (windows_core::Interface::vtable(this).GetVideoEncodingProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn AudioEffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn AudioEffectDefinitions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AudioEffectDefinitions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Effects"))] - pub fn VideoEffectDefinitions(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Effects")] + pub fn VideoEffectDefinitions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -627,24 +600,21 @@ impl MediaComposition { (windows_core::Interface::vtable(this).Duration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Clips(&self) -> windows_core::Result> { + pub fn Clips(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Clips)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn BackgroundAudioTracks(&self) -> windows_core::Result> { + pub fn BackgroundAudioTracks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).BackgroundAudioTracks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn UserData(&self) -> windows_core::Result> { + pub fn UserData(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -677,10 +647,10 @@ impl MediaComposition { (windows_core::Interface::vtable(this).GetThumbnailAsync)(windows_core::Interface::as_raw(this), timefromstart, scaledwidth, scaledheight, frameprecision, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging", feature = "Storage_Streams"))] - pub fn GetThumbnailsAsync(&self, timesfromstart: P0, scaledwidth: i32, scaledheight: i32, frameprecision: VideoFramePrecision) -> windows_core::Result>> + #[cfg(all(feature = "Graphics_Imaging", feature = "Storage_Streams"))] + pub fn GetThumbnailsAsync(&self, timesfromstart: P0, scaledwidth: i32, scaledheight: i32, frameprecision: VideoFramePrecision) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -757,8 +727,7 @@ impl MediaComposition { (windows_core::Interface::vtable(this).GeneratePreviewMediaStreamSource)(windows_core::Interface::as_raw(this), scaledwidth, scaledheight, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn OverlayLayers(&self) -> windows_core::Result> { + pub fn OverlayLayers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -909,8 +878,7 @@ impl MediaOverlayLayer { (windows_core::Interface::vtable(this).Clone)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Overlays(&self) -> windows_core::Result> { + pub fn Overlays(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Effects/mod.rs b/crates/libs/windows/src/Windows/Media/Effects/mod.rs index c779f996cbb..f35c7305bc9 100644 --- a/crates/libs/windows/src/Windows/Media/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Effects/mod.rs @@ -39,8 +39,7 @@ impl AudioCaptureEffectsManager { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveAudioCaptureEffectsChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAudioCaptureEffects(&self) -> windows_core::Result> { + pub fn GetAudioCaptureEffects(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -264,8 +263,7 @@ impl AudioRenderEffectsManager { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveAudioRenderEffectsChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAudioRenderEffects(&self) -> windows_core::Result> { + pub fn GetAudioRenderEffects(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -311,8 +309,8 @@ unsafe impl Sync for AudioRenderEffectsManager {} pub struct CompositeVideoFrameContext(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CompositeVideoFrameContext, windows_core::IUnknown, windows_core::IInspectable); impl CompositeVideoFrameContext { - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11"))] - pub fn SurfacesToOverlay(&self) -> windows_core::Result> { + #[cfg(feature = "Graphics_DirectX_Direct3D11")] + pub fn SurfacesToOverlay(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -375,10 +373,7 @@ pub struct IAudioCaptureEffectsManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AudioCaptureEffectsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveAudioCaptureEffectsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAudioCaptureEffects: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAudioCaptureEffects: usize, } windows_core::imp::define_interface!(IAudioEffect, IAudioEffect_Vtbl, 0x34aafa51_9207_4055_be93_6e5734a86ae4); impl windows_core::RuntimeType for IAudioEffect { @@ -526,10 +521,7 @@ pub struct IAudioRenderEffectsManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AudioRenderEffectsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveAudioRenderEffectsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAudioRenderEffects: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAudioRenderEffects: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IAudioRenderEffectsManager2, IAudioRenderEffectsManager2_Vtbl, 0xa844cd09_5ecc_44b3_bb4e_1db07287139c); @@ -562,8 +554,8 @@ impl IBasicAudioEffect { (windows_core::Interface::vtable(this).UseInputFrameForOutput)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] - pub fn SupportedEncodingProperties(&self) -> windows_core::Result> { + #[cfg(feature = "Media_MediaProperties")] + pub fn SupportedEncodingProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -609,7 +601,7 @@ impl windows_core::RuntimeName for IBasicAudioEffect { #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] pub trait IBasicAudioEffect_Impl: super::IMediaExtension_Impl { fn UseInputFrameForOutput(&self) -> windows_core::Result; - fn SupportedEncodingProperties(&self) -> windows_core::Result>; + fn SupportedEncodingProperties(&self) -> windows_core::Result>; fn SetEncodingProperties(&self, encodingProperties: windows_core::Ref<'_, super::MediaProperties::AudioEncodingProperties>) -> windows_core::Result<()>; fn ProcessFrame(&self, context: windows_core::Ref<'_, ProcessAudioFrameContext>) -> windows_core::Result<()>; fn Close(&self, reason: MediaEffectClosedReason) -> windows_core::Result<()>; @@ -685,9 +677,9 @@ impl IBasicAudioEffect_Vtbl { pub struct IBasicAudioEffect_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub UseInputFrameForOutput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] + #[cfg(feature = "Media_MediaProperties")] pub SupportedEncodingProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_MediaProperties")))] + #[cfg(not(feature = "Media_MediaProperties"))] SupportedEncodingProperties: usize, #[cfg(feature = "Media_MediaProperties")] pub SetEncodingProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -725,8 +717,8 @@ impl IBasicVideoEffect { (windows_core::Interface::vtable(this).TimeIndependent)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] - pub fn SupportedEncodingProperties(&self) -> windows_core::Result> { + #[cfg(feature = "Media_MediaProperties")] + pub fn SupportedEncodingProperties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -775,7 +767,7 @@ pub trait IBasicVideoEffect_Impl: super::IMediaExtension_Impl { fn IsReadOnly(&self) -> windows_core::Result; fn SupportedMemoryTypes(&self) -> windows_core::Result; fn TimeIndependent(&self) -> windows_core::Result; - fn SupportedEncodingProperties(&self) -> windows_core::Result>; + fn SupportedEncodingProperties(&self) -> windows_core::Result>; fn SetEncodingProperties(&self, encodingProperties: windows_core::Ref<'_, super::MediaProperties::VideoEncodingProperties>, device: windows_core::Ref<'_, super::super::Graphics::DirectX::Direct3D11::IDirect3DDevice>) -> windows_core::Result<()>; fn ProcessFrame(&self, context: windows_core::Ref<'_, ProcessVideoFrameContext>) -> windows_core::Result<()>; fn Close(&self, reason: MediaEffectClosedReason) -> windows_core::Result<()>; @@ -879,9 +871,9 @@ pub struct IBasicVideoEffect_Vtbl { pub IsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SupportedMemoryTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MediaMemoryTypes) -> windows_core::HRESULT, pub TimeIndependent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_MediaProperties"))] + #[cfg(feature = "Media_MediaProperties")] pub SupportedEncodingProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_MediaProperties")))] + #[cfg(not(feature = "Media_MediaProperties"))] SupportedEncodingProperties: usize, #[cfg(all(feature = "Graphics_DirectX_Direct3D11", feature = "Media_MediaProperties"))] pub SetEncodingProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -898,9 +890,9 @@ impl windows_core::RuntimeType for ICompositeVideoFrameContext { #[repr(C)] pub struct ICompositeVideoFrameContext_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11"))] + #[cfg(feature = "Graphics_DirectX_Direct3D11")] pub SurfacesToOverlay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX_Direct3D11")))] + #[cfg(not(feature = "Graphics_DirectX_Direct3D11"))] SurfacesToOverlay: usize, pub BackgroundFrame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub OutputFrame: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs b/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs index de98190178c..136b469c860 100644 --- a/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs +++ b/crates/libs/windows/src/Windows/Media/FaceAnalysis/mod.rs @@ -29,8 +29,8 @@ unsafe impl Sync for DetectedFace {} pub struct FaceDetector(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(FaceDetector, windows_core::IUnknown, windows_core::IInspectable); impl FaceDetector { - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] - pub fn DetectFacesAsync(&self, image: P0) -> windows_core::Result>> + #[cfg(feature = "Graphics_Imaging")] + pub fn DetectFacesAsync(&self, image: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -40,8 +40,8 @@ impl FaceDetector { (windows_core::Interface::vtable(this).DetectFacesAsync)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] - pub fn DetectFacesWithSearchAreaAsync(&self, image: P0, searcharea: super::super::Graphics::Imaging::BitmapBounds) -> windows_core::Result>> + #[cfg(feature = "Graphics_Imaging")] + pub fn DetectFacesWithSearchAreaAsync(&self, image: P0, searcharea: super::super::Graphics::Imaging::BitmapBounds) -> windows_core::Result>> where P0: windows_core::Param, { @@ -83,8 +83,8 @@ impl FaceDetector { (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] - pub fn GetSupportedBitmapPixelFormats() -> windows_core::Result> { + #[cfg(feature = "Graphics_Imaging")] + pub fn GetSupportedBitmapPixelFormats() -> windows_core::Result> { Self::IFaceDetectorStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSupportedBitmapPixelFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -125,8 +125,7 @@ unsafe impl Sync for FaceDetector {} pub struct FaceTracker(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(FaceTracker, windows_core::IUnknown, windows_core::IInspectable); impl FaceTracker { - #[cfg(feature = "Foundation_Collections")] - pub fn ProcessNextFrameAsync(&self, videoframe: P0) -> windows_core::Result>> + pub fn ProcessNextFrameAsync(&self, videoframe: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -168,8 +167,8 @@ impl FaceTracker { (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] - pub fn GetSupportedBitmapPixelFormats() -> windows_core::Result> { + #[cfg(feature = "Graphics_Imaging")] + pub fn GetSupportedBitmapPixelFormats() -> windows_core::Result> { Self::IFaceTrackerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSupportedBitmapPixelFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -224,13 +223,13 @@ impl windows_core::RuntimeType for IFaceDetector { #[repr(C)] pub struct IFaceDetector_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub DetectFacesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] + #[cfg(not(feature = "Graphics_Imaging"))] DetectFacesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub DetectFacesWithSearchAreaAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Graphics::Imaging::BitmapBounds, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] + #[cfg(not(feature = "Graphics_Imaging"))] DetectFacesWithSearchAreaAsync: usize, #[cfg(feature = "Graphics_Imaging")] pub MinDetectableFaceSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Graphics::Imaging::BitmapSize) -> windows_core::HRESULT, @@ -257,9 +256,9 @@ impl windows_core::RuntimeType for IFaceDetectorStatics { pub struct IFaceDetectorStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub GetSupportedBitmapPixelFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] + #[cfg(not(feature = "Graphics_Imaging"))] GetSupportedBitmapPixelFormats: usize, #[cfg(feature = "Graphics_Imaging")] pub IsBitmapPixelFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Imaging::BitmapPixelFormat, *mut bool) -> windows_core::HRESULT, @@ -274,10 +273,7 @@ impl windows_core::RuntimeType for IFaceTracker { #[repr(C)] pub struct IFaceTracker_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ProcessNextFrameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProcessNextFrameAsync: usize, #[cfg(feature = "Graphics_Imaging")] pub MinDetectableFaceSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Graphics::Imaging::BitmapSize) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics_Imaging"))] @@ -303,9 +299,9 @@ impl windows_core::RuntimeType for IFaceTrackerStatics { pub struct IFaceTrackerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Imaging"))] + #[cfg(feature = "Graphics_Imaging")] pub GetSupportedBitmapPixelFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Imaging")))] + #[cfg(not(feature = "Graphics_Imaging"))] GetSupportedBitmapPixelFormats: usize, #[cfg(feature = "Graphics_Imaging")] pub IsBitmapPixelFormatSupported: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Graphics::Imaging::BitmapPixelFormat, *mut bool) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Media/Import/mod.rs b/crates/libs/windows/src/Windows/Media/Import/mod.rs index 90d78c86030..cf44f0aad6b 100644 --- a/crates/libs/windows/src/Windows/Media/Import/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Import/mod.rs @@ -7,10 +7,7 @@ pub struct IPhotoImportDeleteImportedItemsFromSourceResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Session: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub HasSucceeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DeletedItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeletedItems: usize, pub PhotosCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub PhotosSizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub VideosCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -31,10 +28,7 @@ pub struct IPhotoImportFindItemsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Session: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub HasSucceeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FoundItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FoundItems: usize, pub PhotosCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub PhotosSizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub VideosCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -84,10 +78,7 @@ pub struct IPhotoImportImportItemsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Session: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub HasSucceeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ImportedItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ImportedItems: usize, pub PhotosCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub PhotosSizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub VideosCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -113,28 +104,16 @@ pub struct IPhotoImportItem_Vtbl { pub SizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub Date: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub Sibling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Sidecars: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Sidecars: usize, - #[cfg(feature = "Foundation_Collections")] pub VideoSegments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - VideoSegments: usize, pub IsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsSelected: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] pub Thumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] Thumbnail: usize, - #[cfg(feature = "Foundation_Collections")] pub ImportedFileNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ImportedFileNames: usize, - #[cfg(feature = "Foundation_Collections")] pub DeletedFileNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeletedFileNames: usize, } windows_core::imp::define_interface!(IPhotoImportItem2, IPhotoImportItem2_Vtbl, 0xf1053505_f53b_46a3_9e30_3610791a9110); impl windows_core::RuntimeType for IPhotoImportItem2 { @@ -162,14 +141,8 @@ impl windows_core::RuntimeType for IPhotoImportManagerStatics { pub struct IPhotoImportManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsSupportedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllSourcesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllSourcesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetPendingOperations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPendingOperations: usize, } windows_core::imp::define_interface!(IPhotoImportOperation, IPhotoImportOperation_Vtbl, 0xd9f797e4_a09a_4ee4_a4b1_20940277a5be); impl windows_core::RuntimeType for IPhotoImportOperation { @@ -260,10 +233,7 @@ pub struct IPhotoImportSource_Vtbl { pub PowerSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PhotoImportPowerSource) -> windows_core::HRESULT, pub BatteryLevelPercent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DateTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StorageMedia: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StorageMedia: usize, pub IsLocked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsMassStorage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -312,10 +282,7 @@ pub struct IPhotoImportVideoSegment_Vtbl { pub SizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, pub Date: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub Sibling: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Sidecars: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Sidecars: usize, } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -394,8 +361,7 @@ impl PhotoImportDeleteImportedItemsFromSourceResult { (windows_core::Interface::vtable(this).HasSucceeded)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeletedItems(&self) -> windows_core::Result> { + pub fn DeletedItems(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -504,8 +470,7 @@ impl PhotoImportFindItemsResult { (windows_core::Interface::vtable(this).HasSucceeded)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FoundItems(&self) -> windows_core::Result> { + pub fn FoundItems(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -749,8 +714,7 @@ impl PhotoImportImportItemsResult { (windows_core::Interface::vtable(this).HasSucceeded)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ImportedItems(&self) -> windows_core::Result> { + pub fn ImportedItems(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -909,16 +873,14 @@ impl PhotoImportItem { (windows_core::Interface::vtable(this).Sibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Sidecars(&self) -> windows_core::Result> { + pub fn Sidecars(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Sidecars)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn VideoSegments(&self) -> windows_core::Result> { + pub fn VideoSegments(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -944,16 +906,14 @@ impl PhotoImportItem { (windows_core::Interface::vtable(this).Thumbnail)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ImportedFileNames(&self) -> windows_core::Result> { + pub fn ImportedFileNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ImportedFileNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeletedFileNames(&self) -> windows_core::Result> { + pub fn DeletedFileNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1027,15 +987,13 @@ impl PhotoImportManager { (windows_core::Interface::vtable(this).IsSupportedAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllSourcesAsync() -> windows_core::Result>> { + pub fn FindAllSourcesAsync() -> windows_core::Result>> { Self::IPhotoImportManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllSourcesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPendingOperations() -> windows_core::Result> { + pub fn GetPendingOperations() -> windows_core::Result> { Self::IPhotoImportManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPendingOperations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1399,8 +1357,7 @@ impl PhotoImportSource { (windows_core::Interface::vtable(this).DateTime)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn StorageMedia(&self) -> windows_core::Result> { + pub fn StorageMedia(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1649,8 +1606,7 @@ impl PhotoImportVideoSegment { (windows_core::Interface::vtable(this).Sibling)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Sidecars(&self) -> windows_core::Result> { + pub fn Sidecars(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs b/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs index b7d7400646a..786501b6741 100644 --- a/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs +++ b/crates/libs/windows/src/Windows/Media/MediaProperties/mod.rs @@ -119,7 +119,6 @@ impl AudioEncodingProperties { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).GetFormatUserData)(windows_core::Interface::as_raw(this), value.set_abi_len(), value as *mut _ as _).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -283,7 +282,6 @@ impl ContainerEncodingProperties { (windows_core::Interface::vtable(this).Copy)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -758,21 +756,21 @@ impl windows_core::RuntimeType for IMediaEncodingProfile2 { #[repr(C)] pub struct IMediaEncodingProfile2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub SetAudioTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] SetAudioTracks: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub GetAudioTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] GetAudioTracks: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub SetVideoTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] SetVideoTracks: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub GetVideoTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] GetVideoTracks: usize, } windows_core::imp::define_interface!(IMediaEncodingProfile3, IMediaEncodingProfile3_Vtbl, 0xba6ebe88_7570_4e69_accf_5611ad015f88); @@ -782,13 +780,13 @@ impl windows_core::RuntimeType for IMediaEncodingProfile3 { #[repr(C)] pub struct IMediaEncodingProfile3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub SetTimedMetadataTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] SetTimedMetadataTracks: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub GetTimedMetadataTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] GetTimedMetadataTracks: usize, } windows_core::imp::define_interface!(IMediaEncodingProfileStatics, IMediaEncodingProfileStatics_Vtbl, 0x197f352c_2ede_4a45_a896_817a4854f8fe); @@ -849,7 +847,6 @@ impl windows_core::RuntimeType for IMediaEncodingProperties { } windows_core::imp::interface_hierarchy!(IMediaEncodingProperties, windows_core::IUnknown, windows_core::IInspectable); impl IMediaEncodingProperties { - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = self; unsafe { @@ -876,18 +873,15 @@ impl IMediaEncodingProperties { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IMediaEncodingProperties { const NAME: &'static str = "Windows.Media.MediaProperties.IMediaEncodingProperties"; } -#[cfg(feature = "Foundation_Collections")] pub trait IMediaEncodingProperties_Impl: windows_core::IUnknownImpl { fn Properties(&self) -> windows_core::Result; fn Type(&self) -> windows_core::Result; fn SetSubtype(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn Subtype(&self) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IMediaEncodingProperties_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Properties(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -950,10 +944,7 @@ impl IMediaEncodingProperties_Vtbl { #[repr(C)] pub struct IMediaEncodingProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub Type: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSubtype: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Subtype: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1289,7 +1280,6 @@ impl ImageEncodingProperties { (windows_core::Interface::vtable(this).CreateHeif)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1394,48 +1384,48 @@ impl MediaEncodingProfile { (windows_core::Interface::vtable(this).Container)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn SetAudioTracks(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAudioTracks)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] - pub fn GetAudioTracks(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Core")] + pub fn GetAudioTracks(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAudioTracks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn SetVideoTracks(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetVideoTracks)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] - pub fn GetVideoTracks(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Core")] + pub fn GetVideoTracks(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetVideoTracks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn SetTimedMetadataTracks(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTimedMetadataTracks)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] - pub fn GetTimedMetadataTracks(&self) -> windows_core::Result> { + #[cfg(feature = "Media_Core")] + pub fn GetTimedMetadataTracks(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1976,15 +1966,11 @@ impl windows_core::TypeKind for MediaPixelFormat { impl windows_core::RuntimeType for MediaPixelFormat { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Media.MediaProperties.MediaPixelFormat;i4)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct MediaPropertySet(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy ! ( MediaPropertySet , windows_core::IUnknown , windows_core::IInspectable , super::super::Foundation::Collections:: IMap < windows_core::GUID , windows_core::IInspectable > ); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(MediaPropertySet, super::super::Foundation::Collections::IIterable>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy ! ( MediaPropertySet , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMap < windows_core::GUID , windows_core::IInspectable > ); +windows_core::imp::required_hierarchy!(MediaPropertySet, windows_collections::IIterable>); impl MediaPropertySet { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1993,8 +1979,8 @@ impl MediaPropertySet { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2021,7 +2007,7 @@ impl MediaPropertySet { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), key, &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2047,35 +2033,28 @@ impl MediaPropertySet { unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for MediaPropertySet { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for MediaPropertySet { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for MediaPropertySet { const NAME: &'static str = "Windows.Media.MediaProperties.MediaPropertySet"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for MediaPropertySet {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for MediaPropertySet {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for MediaPropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &MediaPropertySet { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -2228,7 +2207,6 @@ impl TimedMetadataEncodingProperties { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = self; unsafe { @@ -2323,7 +2301,6 @@ impl VideoEncodingProperties { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] pub fn Properties(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { diff --git a/crates/libs/windows/src/Windows/Media/Miracast/mod.rs b/crates/libs/windows/src/Windows/Media/Miracast/mod.rs index e4f8186293a..78be92b1ae9 100644 --- a/crates/libs/windows/src/Windows/Media/Miracast/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Miracast/mod.rs @@ -230,10 +230,7 @@ pub struct IMiracastReceiverStatus_Vtbl { pub WiFiStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MiracastReceiverWiFiStatus) -> windows_core::HRESULT, pub IsConnectionTakeoverSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub MaxSimultaneousConnections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub KnownTransmitters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - KnownTransmitters: usize, } windows_core::imp::define_interface!(IMiracastReceiverStreamControl, IMiracastReceiverStreamControl_Vtbl, 0x38ea2d8b_2769_5ad7_8a8a_254b9df7ba82); impl windows_core::RuntimeType for IMiracastReceiverStreamControl { @@ -278,10 +275,7 @@ pub struct IMiracastTransmitter_Vtbl { pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AuthorizationStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MiracastTransmitterAuthorizationStatus) -> windows_core::HRESULT, pub SetAuthorizationStatus: unsafe extern "system" fn(*mut core::ffi::c_void, MiracastTransmitterAuthorizationStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetConnections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetConnections: usize, pub MacAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub LastConnectionTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, } @@ -1249,8 +1243,7 @@ impl MiracastReceiverStatus { (windows_core::Interface::vtable(this).MaxSimultaneousConnections)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn KnownTransmitters(&self) -> windows_core::Result> { + pub fn KnownTransmitters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1414,8 +1407,7 @@ impl MiracastTransmitter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAuthorizationStatus)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetConnections(&self) -> windows_core::Result> { + pub fn GetConnections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Ocr/mod.rs b/crates/libs/windows/src/Windows/Media/Ocr/mod.rs index 41ffd9dda37..9594ec142fa 100644 --- a/crates/libs/windows/src/Windows/Media/Ocr/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Ocr/mod.rs @@ -22,9 +22,9 @@ impl windows_core::RuntimeType for IOcrEngineStatics { pub struct IOcrEngineStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MaxImageDimension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] + #[cfg(feature = "Globalization")] pub AvailableRecognizerLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Globalization")))] + #[cfg(not(feature = "Globalization"))] AvailableRecognizerLanguages: usize, #[cfg(feature = "Globalization")] pub IsLanguageSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -43,10 +43,7 @@ impl windows_core::RuntimeType for IOcrLine { #[repr(C)] pub struct IOcrLine_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Words: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Words: usize, pub Text: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IOcrResult, IOcrResult_Vtbl, 0x9bd235b2_175b_3d6a_92e2_388c206e2f63); @@ -56,10 +53,7 @@ impl windows_core::RuntimeType for IOcrResult { #[repr(C)] pub struct IOcrResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Lines: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Lines: usize, pub TextAngle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Text: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -103,8 +97,8 @@ impl OcrEngine { (windows_core::Interface::vtable(this).MaxImageDimension)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] - pub fn AvailableRecognizerLanguages() -> windows_core::Result> { + #[cfg(feature = "Globalization")] + pub fn AvailableRecognizerLanguages() -> windows_core::Result> { Self::IOcrEngineStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AvailableRecognizerLanguages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -158,8 +152,7 @@ unsafe impl Sync for OcrEngine {} pub struct OcrLine(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(OcrLine, windows_core::IUnknown, windows_core::IInspectable); impl OcrLine { - #[cfg(feature = "Foundation_Collections")] - pub fn Words(&self) -> windows_core::Result> { + pub fn Words(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -191,8 +184,7 @@ unsafe impl Sync for OcrLine {} pub struct OcrResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(OcrResult, windows_core::IUnknown, windows_core::IInspectable); impl OcrResult { - #[cfg(feature = "Foundation_Collections")] - pub fn Lines(&self) -> windows_core::Result> { + pub fn Lines(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs index cb493269448..21f31192241 100644 --- a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs +++ b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs @@ -295,10 +295,7 @@ pub struct ISourceChangeRequestedEventArgs_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Thumbnail: usize, pub Rating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IVolumeChangeRequestedEventArgs, IVolumeChangeRequestedEventArgs_Vtbl, 0x6f026d5c_cf75_4c2b_913e_6d7c6c329179); impl windows_core::RuntimeType for IVolumeChangeRequestedEventArgs { @@ -1232,8 +1229,7 @@ impl SourceChangeRequestedEventArgs { (windows_core::Interface::vtable(this).Rating)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Playback/mod.rs b/crates/libs/windows/src/Windows/Media/Playback/mod.rs index 6e7dec50dbb..36e68afb2f2 100644 --- a/crates/libs/windows/src/Windows/Media/Playback/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Playback/mod.rs @@ -244,10 +244,7 @@ pub struct IMediaBreakSchedule_Vtbl { pub RemoveScheduleChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub InsertMidrollBreak: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveMidrollBreak: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MidrollBreaks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MidrollBreaks: usize, pub SetPrerollBreak: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub PrerollBreak: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPostrollBreak: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -261,10 +258,7 @@ impl windows_core::RuntimeType for IMediaBreakSeekedOverEventArgs { #[repr(C)] pub struct IMediaBreakSeekedOverEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SeekedOverBreaks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SeekedOverBreaks: usize, pub OldPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub NewPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, } @@ -575,17 +569,17 @@ pub struct IMediaPlaybackItem_Vtbl { pub Source: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_Core"))] Source: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub AudioTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] AudioTracks: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub VideoTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] VideoTracks: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub TimedMetadataTracks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] TimedMetadataTracks: usize, } windows_core::imp::define_interface!(IMediaPlaybackItem2, IMediaPlaybackItem2_Vtbl, 0xd859d171_d7ef_4b81_ac1f_f40493cbb091); @@ -723,14 +717,8 @@ pub struct IMediaPlaybackList2_Vtbl { pub SetMaxPrefetchTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub StartingItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetStartingItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ShuffledItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ShuffledItems: usize, - #[cfg(feature = "Foundation_Collections")] pub SetShuffledItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetShuffledItems: usize, } windows_core::imp::define_interface!(IMediaPlaybackList3, IMediaPlaybackList3_Vtbl, 0xdd24bba9_bc47_4463_aa90_c18b7e5ffde1); impl windows_core::RuntimeType for IMediaPlaybackList3 { @@ -812,18 +800,9 @@ pub struct IMediaPlaybackSession2_Vtbl { pub SphericalVideoProjection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsMirroring: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsMirroring: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetBufferedRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetBufferedRanges: usize, - #[cfg(feature = "Foundation_Collections")] pub GetPlayedRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPlayedRanges: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSeekableRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSeekableRanges: usize, pub IsSupportedPlaybackRateRange: unsafe extern "system" fn(*mut core::ffi::c_void, f64, f64, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IMediaPlaybackSession3, IMediaPlaybackSession3_Vtbl, 0x7ba2b41a_a3e2_405f_b77b_a4812c238b66); @@ -919,9 +898,9 @@ impl windows_core::RuntimeType for IMediaPlaybackTimedMetadataTrackList { #[repr(C)] pub struct IMediaPlaybackTimedMetadataTrackList_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub PresentationModeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] PresentationModeChanged: usize, pub RemovePresentationModeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub GetPresentationMode: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut TimedMetadataTrackPresentationMode) -> windows_core::HRESULT, @@ -982,9 +961,9 @@ pub struct IMediaPlayer_Vtbl { SetPlaybackRate: usize, pub Volume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub SetVolume: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub PlaybackMediaMarkers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] PlaybackMediaMarkers: usize, pub MediaOpened: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveMediaOpened: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -1310,13 +1289,10 @@ pub struct IPlaybackMediaMarkerReachedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub PlaybackMediaMarker: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IPlaybackMediaMarkerSequence, IPlaybackMediaMarkerSequence_Vtbl, 0xf2810cee_638b_46cf_8817_1d111fe9d8c4); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IPlaybackMediaMarkerSequence { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IPlaybackMediaMarkerSequence_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -1582,8 +1558,7 @@ impl MediaBreakSchedule { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveMidrollBreak)(windows_core::Interface::as_raw(this), mediabreak.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn MidrollBreaks(&self) -> windows_core::Result> { + pub fn MidrollBreaks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1643,8 +1618,7 @@ unsafe impl Sync for MediaBreakSchedule {} pub struct MediaBreakSeekedOverEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MediaBreakSeekedOverEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl MediaBreakSeekedOverEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn SeekedOverBreaks(&self) -> windows_core::Result> { + pub fn SeekedOverBreaks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1805,18 +1779,18 @@ impl windows_core::RuntimeName for MediaItemDisplayProperties { } unsafe impl Send for MediaItemDisplayProperties {} unsafe impl Sync for MediaItemDisplayProperties {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct MediaPlaybackAudioTrackList(windows_core::IUnknown); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -windows_core::imp::interface_hierarchy!(MediaPlaybackAudioTrackList, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVectorView); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -windows_core::imp::required_hierarchy!(MediaPlaybackAudioTrackList, super::super::Foundation::Collections::IIterable, super::Core::ISingleSelectMediaTrackList); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] +windows_core::imp::interface_hierarchy!(MediaPlaybackAudioTrackList, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +#[cfg(feature = "Media_Core")] +windows_core::imp::required_hierarchy!(MediaPlaybackAudioTrackList, windows_collections::IIterable, super::Core::ISingleSelectMediaTrackList); +#[cfg(feature = "Media_Core")] impl MediaPlaybackAudioTrackList { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1879,35 +1853,35 @@ impl MediaPlaybackAudioTrackList { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl windows_core::RuntimeType for MediaPlaybackAudioTrackList { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl windows_core::Interface for MediaPlaybackAudioTrackList { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl windows_core::RuntimeName for MediaPlaybackAudioTrackList { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackAudioTrackList"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl Send for MediaPlaybackAudioTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl Sync for MediaPlaybackAudioTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl IntoIterator for MediaPlaybackAudioTrackList { type Item = super::Core::AudioTrack; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl IntoIterator for &MediaPlaybackAudioTrackList { type Item = super::Core::AudioTrack; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -2662,7 +2636,7 @@ impl MediaPlaybackItem { (windows_core::Interface::vtable(this).Source)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn AudioTracks(&self) -> windows_core::Result { let this = self; unsafe { @@ -2670,7 +2644,7 @@ impl MediaPlaybackItem { (windows_core::Interface::vtable(this).AudioTracks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn VideoTracks(&self) -> windows_core::Result { let this = self; unsafe { @@ -2678,7 +2652,7 @@ impl MediaPlaybackItem { (windows_core::Interface::vtable(this).VideoTracks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn TimedMetadataTracks(&self) -> windows_core::Result { let this = self; unsafe { @@ -3095,18 +3069,16 @@ impl MediaPlaybackList { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetStartingItem)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ShuffledItems(&self) -> windows_core::Result> { + pub fn ShuffledItems(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ShuffledItems)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetShuffledItems(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetShuffledItems)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -3473,24 +3445,21 @@ impl MediaPlaybackSession { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetIsMirroring)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetBufferedRanges(&self) -> windows_core::Result> { + pub fn GetBufferedRanges(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetBufferedRanges)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPlayedRanges(&self) -> windows_core::Result> { + pub fn GetPlayedRanges(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPlayedRanges)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSeekableRanges(&self) -> windows_core::Result> { + pub fn GetSeekableRanges(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3698,18 +3667,18 @@ impl windows_core::TypeKind for MediaPlaybackState { impl windows_core::RuntimeType for MediaPlaybackState { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.Media.Playback.MediaPlaybackState;i4)"); } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct MediaPlaybackTimedMetadataTrackList(windows_core::IUnknown); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -windows_core::imp::interface_hierarchy!(MediaPlaybackTimedMetadataTrackList, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVectorView); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -windows_core::imp::required_hierarchy!(MediaPlaybackTimedMetadataTrackList, super::super::Foundation::Collections::IIterable); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] +windows_core::imp::interface_hierarchy!(MediaPlaybackTimedMetadataTrackList, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +#[cfg(feature = "Media_Core")] +windows_core::imp::required_hierarchy!(MediaPlaybackTimedMetadataTrackList, windows_collections::IIterable); +#[cfg(feature = "Media_Core")] impl MediaPlaybackTimedMetadataTrackList { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3772,51 +3741,51 @@ impl MediaPlaybackTimedMetadataTrackList { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl windows_core::RuntimeType for MediaPlaybackTimedMetadataTrackList { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl windows_core::Interface for MediaPlaybackTimedMetadataTrackList { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl windows_core::RuntimeName for MediaPlaybackTimedMetadataTrackList { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackTimedMetadataTrackList"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl Send for MediaPlaybackTimedMetadataTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl Sync for MediaPlaybackTimedMetadataTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl IntoIterator for MediaPlaybackTimedMetadataTrackList { type Item = super::Core::TimedMetadataTrack; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl IntoIterator for &MediaPlaybackTimedMetadataTrackList { type Item = super::Core::TimedMetadataTrack; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct MediaPlaybackVideoTrackList(windows_core::IUnknown); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -windows_core::imp::interface_hierarchy!(MediaPlaybackVideoTrackList, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVectorView); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] -windows_core::imp::required_hierarchy!(MediaPlaybackVideoTrackList, super::super::Foundation::Collections::IIterable, super::Core::ISingleSelectMediaTrackList); -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] +windows_core::imp::interface_hierarchy!(MediaPlaybackVideoTrackList, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +#[cfg(feature = "Media_Core")] +windows_core::imp::required_hierarchy!(MediaPlaybackVideoTrackList, windows_collections::IIterable, super::Core::ISingleSelectMediaTrackList); +#[cfg(feature = "Media_Core")] impl MediaPlaybackVideoTrackList { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3879,35 +3848,35 @@ impl MediaPlaybackVideoTrackList { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl windows_core::RuntimeType for MediaPlaybackVideoTrackList { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl windows_core::Interface for MediaPlaybackVideoTrackList { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl windows_core::RuntimeName for MediaPlaybackVideoTrackList { const NAME: &'static str = "Windows.Media.Playback.MediaPlaybackVideoTrackList"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl Send for MediaPlaybackVideoTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] unsafe impl Sync for MediaPlaybackVideoTrackList {} -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl IntoIterator for MediaPlaybackVideoTrackList { type Item = super::Core::VideoTrack; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] +#[cfg(feature = "Media_Core")] impl IntoIterator for &MediaPlaybackVideoTrackList { type Item = super::Core::VideoTrack; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -4047,7 +4016,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).SetVolume)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub fn PlaybackMediaMarkers(&self) -> windows_core::Result { let this = self; unsafe { @@ -4871,18 +4840,14 @@ impl windows_core::RuntimeName for PlaybackMediaMarkerReachedEventArgs { } unsafe impl Send for PlaybackMediaMarkerReachedEventArgs {} unsafe impl Sync for PlaybackMediaMarkerReachedEventArgs {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PlaybackMediaMarkerSequence(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(PlaybackMediaMarkerSequence, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(PlaybackMediaMarkerSequence, super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(PlaybackMediaMarkerSequence, windows_collections::IIterable); impl PlaybackMediaMarkerSequence { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -4907,35 +4872,28 @@ impl PlaybackMediaMarkerSequence { unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PlaybackMediaMarkerSequence { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PlaybackMediaMarkerSequence { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PlaybackMediaMarkerSequence { const NAME: &'static str = "Windows.Media.Playback.PlaybackMediaMarkerSequence"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for PlaybackMediaMarkerSequence {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for PlaybackMediaMarkerSequence {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for PlaybackMediaMarkerSequence { type Item = PlaybackMediaMarker; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &PlaybackMediaMarkerSequence { type Item = PlaybackMediaMarker; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } diff --git a/crates/libs/windows/src/Windows/Media/Playlists/mod.rs b/crates/libs/windows/src/Windows/Media/Playlists/mod.rs index f22d027805a..1282e74967e 100644 --- a/crates/libs/windows/src/Windows/Media/Playlists/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Playlists/mod.rs @@ -5,9 +5,9 @@ impl windows_core::RuntimeType for IPlaylist { #[repr(C)] pub struct IPlaylist_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub Files: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] Files: usize, pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -43,8 +43,8 @@ impl Playlist { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs index 55d6276415d..01cfe4150e8 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs @@ -1202,8 +1202,8 @@ impl windows_core::RuntimeType for INDStorageFileHelper { windows_core::imp::interface_hierarchy!(INDStorageFileHelper, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStorageFileHelper { - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> + #[cfg(feature = "Storage_Streams")] + pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -1214,15 +1214,15 @@ impl INDStorageFileHelper { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] +#[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] impl windows_core::RuntimeName for INDStorageFileHelper { const NAME: &'static str = "Windows.Media.Protection.PlayReady.INDStorageFileHelper"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] +#[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub trait INDStorageFileHelper_Impl: windows_core::IUnknownImpl { - fn GetFileURLs(&self, file: windows_core::Ref<'_, super::super::super::Storage::IStorageFile>) -> windows_core::Result>; + fn GetFileURLs(&self, file: windows_core::Ref<'_, super::super::super::Storage::IStorageFile>) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] +#[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] impl INDStorageFileHelper_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetFileURLs(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1248,9 +1248,9 @@ impl INDStorageFileHelper_Vtbl { #[repr(C)] pub struct INDStorageFileHelper_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFileURLs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFileURLs: usize, } #[cfg(feature = "deprecated")] @@ -1395,11 +1395,11 @@ impl INDStreamParserNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn OnMediaStreamDescriptorCreated(&self, audiostreamdescriptors: P0, videostreamdescriptors: P1) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.param().abi(), videostreamdescriptors.param().abi()).ok() } @@ -1421,18 +1421,18 @@ impl INDStreamParserNotifier { unsafe { (windows_core::Interface::vtable(this).OnBeginSetupDecryptor)(windows_core::Interface::as_raw(this), descriptor.param().abi(), keyid, probytes.len().try_into().unwrap(), probytes.as_ptr()).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] +#[cfg(all(feature = "Media_Core", feature = "deprecated"))] impl windows_core::RuntimeName for INDStreamParserNotifier { const NAME: &'static str = "Windows.Media.Protection.PlayReady.INDStreamParserNotifier"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] +#[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub trait INDStreamParserNotifier_Impl: windows_core::IUnknownImpl { fn OnContentIDReceived(&self, licenseFetchDescriptor: windows_core::Ref<'_, INDLicenseFetchDescriptor>) -> windows_core::Result<()>; - fn OnMediaStreamDescriptorCreated(&self, audioStreamDescriptors: windows_core::Ref<'_, super::super::super::Foundation::Collections::IVector>, videoStreamDescriptors: windows_core::Ref<'_, super::super::super::Foundation::Collections::IVector>) -> windows_core::Result<()>; + fn OnMediaStreamDescriptorCreated(&self, audioStreamDescriptors: windows_core::Ref<'_, windows_collections::IVector>, videoStreamDescriptors: windows_core::Ref<'_, windows_collections::IVector>) -> windows_core::Result<()>; fn OnSampleParsed(&self, streamID: u32, streamType: NDMediaStreamType, streamSample: windows_core::Ref<'_, super::super::Core::MediaStreamSample>, pts: i64, ccFormat: NDClosedCaptionFormat, ccDataBytes: &[u8]) -> windows_core::Result<()>; fn OnBeginSetupDecryptor(&self, descriptor: windows_core::Ref<'_, super::super::Core::IMediaStreamDescriptor>, keyID: &windows_core::GUID, proBytes: &[u8]) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] +#[cfg(all(feature = "Media_Core", feature = "deprecated"))] impl INDStreamParserNotifier_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn OnContentIDReceived(this: *mut core::ffi::c_void, licensefetchdescriptor: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1476,9 +1476,9 @@ impl INDStreamParserNotifier_Vtbl { pub struct INDStreamParserNotifier_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OnContentIDReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub OnMediaStreamDescriptorCreated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] + #[cfg(not(feature = "Media_Core"))] OnMediaStreamDescriptorCreated: usize, #[cfg(feature = "Media_Core")] pub OnSampleParsed: unsafe extern "system" fn(*mut core::ffi::c_void, u32, NDMediaStreamType, *mut core::ffi::c_void, i64, NDClosedCaptionFormat, u32, *const u8) -> windows_core::HRESULT, @@ -1988,10 +1988,7 @@ impl windows_core::RuntimeType for IPlayReadyDomainIterableFactory { #[repr(C)] pub struct IPlayReadyDomainIterableFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(IPlayReadyDomainJoinServiceRequest, IPlayReadyDomainJoinServiceRequest_Vtbl, 0x171b4a5a_405f_4739_b040_67b9f0c38758); impl windows_core::RuntimeType for IPlayReadyDomainJoinServiceRequest { @@ -2423,10 +2420,7 @@ impl windows_core::RuntimeType for IPlayReadyLicenseAcquisitionServiceRequest3 { #[repr(C)] pub struct IPlayReadyLicenseAcquisitionServiceRequest3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateLicenseIterable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateLicenseIterable: usize, } windows_core::imp::define_interface!(IPlayReadyLicenseIterableFactory, IPlayReadyLicenseIterableFactory_Vtbl, 0xd4179f08_0837_4978_8e68_be4293c8d7a6); impl windows_core::RuntimeType for IPlayReadyLicenseIterableFactory { @@ -2435,10 +2429,7 @@ impl windows_core::RuntimeType for IPlayReadyLicenseIterableFactory { #[repr(C)] pub struct IPlayReadyLicenseIterableFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(IPlayReadyLicenseManagement, IPlayReadyLicenseManagement_Vtbl, 0xaaeb2141_0957_4405_b892_8bf3ec5dadd9); impl windows_core::RuntimeType for IPlayReadyLicenseManagement { @@ -2521,7 +2512,6 @@ impl windows_core::RuntimeType for IPlayReadyLicenseSession2 { windows_core::imp::interface_hierarchy!(IPlayReadyLicenseSession2, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(IPlayReadyLicenseSession2, IPlayReadyLicenseSession); impl IPlayReadyLicenseSession2 { - #[cfg(feature = "Foundation_Collections")] pub fn CreateLicenseIterable(&self, contentheader: P0, fullyevaluated: bool) -> windows_core::Result where P0: windows_core::Param, @@ -2547,15 +2537,12 @@ impl IPlayReadyLicenseSession2 { unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.param().abi()).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IPlayReadyLicenseSession2 { const NAME: &'static str = "Windows.Media.Protection.PlayReady.IPlayReadyLicenseSession2"; } -#[cfg(feature = "Foundation_Collections")] pub trait IPlayReadyLicenseSession2_Impl: IPlayReadyLicenseSession_Impl { fn CreateLicenseIterable(&self, contentHeader: windows_core::Ref<'_, PlayReadyContentHeader>, fullyEvaluated: bool) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IPlayReadyLicenseSession2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateLicenseIterable(this: *mut core::ffi::c_void, contentheader: *mut core::ffi::c_void, fullyevaluated: bool, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -2583,10 +2570,7 @@ impl IPlayReadyLicenseSession2_Vtbl { #[repr(C)] pub struct IPlayReadyLicenseSession2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateLicenseIterable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateLicenseIterable: usize, } windows_core::imp::define_interface!(IPlayReadyLicenseSessionFactory, IPlayReadyLicenseSessionFactory_Vtbl, 0x62492699_6527_429e_98be_48d798ac2739); impl windows_core::RuntimeType for IPlayReadyLicenseSessionFactory { @@ -2625,10 +2609,7 @@ impl windows_core::RuntimeType for IPlayReadySecureStopIterableFactory { #[repr(C)] pub struct IPlayReadySecureStopIterableFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateInstance: usize, } windows_core::imp::define_interface!(IPlayReadySecureStopServiceRequest, IPlayReadySecureStopServiceRequest_Vtbl, 0xb5501ee5_01bf_4401_9677_05630a6a4cc8); impl windows_core::RuntimeType for IPlayReadySecureStopServiceRequest { @@ -3609,8 +3590,8 @@ impl NDStorageFileHelper { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> + #[cfg(feature = "Storage_Streams")] + pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -3656,11 +3637,11 @@ impl NDStreamParserNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] + #[cfg(feature = "Media_Core")] pub fn OnMediaStreamDescriptorCreated(&self, audiostreamdescriptors: P0, videostreamdescriptors: P1) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.param().abi(), videostreamdescriptors.param().abi()).ok() } @@ -3982,15 +3963,12 @@ unsafe impl windows_core::Interface for PlayReadyDomain { impl windows_core::RuntimeName for PlayReadyDomain { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyDomain"; } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PlayReadyDomainIterable(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(PlayReadyDomainIterable, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(PlayReadyDomainIterable, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterable); impl PlayReadyDomainIterable { - pub fn First(&self) -> windows_core::Result> { + pub fn First(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4008,42 +3986,34 @@ impl PlayReadyDomainIterable { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PlayReadyDomainIterable { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PlayReadyDomainIterable { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PlayReadyDomainIterable { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyDomainIterable"; } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for PlayReadyDomainIterable { type Item = IPlayReadyDomain; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &PlayReadyDomainIterable { type Item = IPlayReadyDomain; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PlayReadyDomainIterator(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(PlayReadyDomainIterator, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterator); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(PlayReadyDomainIterator, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterator); impl PlayReadyDomainIterator { pub fn Current(&self) -> windows_core::Result { let this = self; @@ -4074,16 +4044,13 @@ impl PlayReadyDomainIterator { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PlayReadyDomainIterator { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PlayReadyDomainIterator { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PlayReadyDomainIterator { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyDomainIterator"; } @@ -4666,7 +4633,6 @@ impl PlayReadyLicenseAcquisitionServiceRequest { (windows_core::Interface::vtable(this).SessionId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateLicenseIterable(&self, contentheader: P0, fullyevaluated: bool) -> windows_core::Result where P0: windows_core::Param, @@ -4748,13 +4714,10 @@ unsafe impl windows_core::Interface for PlayReadyLicenseAcquisitionServiceReques impl windows_core::RuntimeName for PlayReadyLicenseAcquisitionServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyLicenseAcquisitionServiceRequest"; } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PlayReadyLicenseIterable(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterable, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterable, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterable); impl PlayReadyLicenseIterable { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -4763,7 +4726,7 @@ impl PlayReadyLicenseIterable { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result> { + pub fn First(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4784,42 +4747,34 @@ impl PlayReadyLicenseIterable { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PlayReadyLicenseIterable { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PlayReadyLicenseIterable { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PlayReadyLicenseIterable { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyLicenseIterable"; } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for PlayReadyLicenseIterable { type Item = IPlayReadyLicense; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &PlayReadyLicenseIterable { type Item = IPlayReadyLicense; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PlayReadyLicenseIterator(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterator, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterator); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(PlayReadyLicenseIterator, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterator); impl PlayReadyLicenseIterator { pub fn Current(&self) -> windows_core::Result { let this = self; @@ -4850,16 +4805,13 @@ impl PlayReadyLicenseIterator { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PlayReadyLicenseIterator { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PlayReadyLicenseIterator { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PlayReadyLicenseIterator { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyLicenseIterator"; } @@ -4902,7 +4854,6 @@ impl PlayReadyLicenseSession { let this = self; unsafe { (windows_core::Interface::vtable(this).ConfigureMediaProtectionManager)(windows_core::Interface::as_raw(this), mpm.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateLicenseIterable(&self, contentheader: P0, fullyevaluated: bool) -> windows_core::Result where P0: windows_core::Param, @@ -5145,15 +5096,12 @@ unsafe impl windows_core::Interface for PlayReadyRevocationServiceRequest { impl windows_core::RuntimeName for PlayReadyRevocationServiceRequest { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadyRevocationServiceRequest"; } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PlayReadySecureStopIterable(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterable, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterable, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterable); impl PlayReadySecureStopIterable { - pub fn First(&self) -> windows_core::Result> { + pub fn First(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5171,42 +5119,34 @@ impl PlayReadySecureStopIterable { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PlayReadySecureStopIterable { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PlayReadySecureStopIterable { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PlayReadySecureStopIterable { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadySecureStopIterable"; } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for PlayReadySecureStopIterable { type Item = IPlayReadySecureStopServiceRequest; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &PlayReadySecureStopIterable { type Item = IPlayReadySecureStopServiceRequest; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct PlayReadySecureStopIterator(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterator, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IIterator); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(PlayReadySecureStopIterator, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IIterator); impl PlayReadySecureStopIterator { pub fn Current(&self) -> windows_core::Result { let this = self; @@ -5237,16 +5177,13 @@ impl PlayReadySecureStopIterator { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for PlayReadySecureStopIterator { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for PlayReadySecureStopIterator { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for PlayReadySecureStopIterator { const NAME: &'static str = "Windows.Media.Protection.PlayReady.PlayReadySecureStopIterator"; } diff --git a/crates/libs/windows/src/Windows/Media/Protection/mod.rs b/crates/libs/windows/src/Windows/Media/Protection/mod.rs index bbc2bef1c42..57d08f018d4 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/mod.rs @@ -400,10 +400,7 @@ impl windows_core::RuntimeType for IRevocationAndRenewalInformation { #[repr(C)] pub struct IRevocationAndRenewalInformation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Items: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, } windows_core::imp::define_interface!(IRevocationAndRenewalItem, IRevocationAndRenewalItem_Vtbl, 0x3099c20c_3cf0_49ea_902d_caf32d2dde2c); impl windows_core::RuntimeType for IRevocationAndRenewalItem { @@ -712,8 +709,7 @@ impl windows_core::RuntimeType for RenewalStatus { pub struct RevocationAndRenewalInformation(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(RevocationAndRenewalInformation, windows_core::IUnknown, windows_core::IInspectable); impl RevocationAndRenewalInformation { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs b/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs index 0e3ebd15c7b..13d0f98cd3b 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechRecognition/mod.rs @@ -252,10 +252,7 @@ impl windows_core::RuntimeType for ISpeechRecognitionListConstraint { #[repr(C)] pub struct ISpeechRecognitionListConstraint_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Commands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Commands: usize, } windows_core::imp::define_interface!(ISpeechRecognitionListConstraintFactory, ISpeechRecognitionListConstraintFactory_Vtbl, 0x40f3cdc7_562a_426a_9f3b_3b4e282be1d5); impl windows_core::RuntimeType for ISpeechRecognitionListConstraintFactory { @@ -264,14 +261,8 @@ impl windows_core::RuntimeType for ISpeechRecognitionListConstraintFactory { #[repr(C)] pub struct ISpeechRecognitionListConstraintFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithTag: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithTag: usize, } windows_core::imp::define_interface!(ISpeechRecognitionQualityDegradingEventArgs, ISpeechRecognitionQualityDegradingEventArgs_Vtbl, 0x4fe24105_8c3a_4c7e_8d0a_5bd4f5b14ad8); impl windows_core::RuntimeType for ISpeechRecognitionQualityDegradingEventArgs { @@ -293,15 +284,9 @@ pub struct ISpeechRecognitionResult_Vtbl { pub Text: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Confidence: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SpeechRecognitionConfidence) -> windows_core::HRESULT, pub SemanticInterpretation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAlternates: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAlternates: usize, pub Constraint: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RulePath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RulePath: usize, pub RawConfidence: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ISpeechRecognitionResult2, ISpeechRecognitionResult2_Vtbl, 0xaf7ed1ba_451b_4166_a0c1_1ffe84032d03); @@ -321,10 +306,7 @@ impl windows_core::RuntimeType for ISpeechRecognitionSemanticInterpretation { #[repr(C)] pub struct ISpeechRecognitionSemanticInterpretation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(ISpeechRecognitionTopicConstraint, ISpeechRecognitionTopicConstraint_Vtbl, 0xbf6fdf19_825d_4e69_a681_36e48cf1c93e); impl windows_core::RuntimeType for ISpeechRecognitionTopicConstraint { @@ -365,10 +347,7 @@ pub struct ISpeechRecognizer_Vtbl { pub CurrentLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Globalization"))] CurrentLanguage: usize, - #[cfg(feature = "Foundation_Collections")] pub Constraints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Constraints: usize, pub Timeouts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UIOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CompileConstraintsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -424,13 +403,13 @@ pub struct ISpeechRecognizerStatics_Vtbl { pub SystemSpeechLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Globalization"))] SystemSpeechLanguage: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] + #[cfg(feature = "Globalization")] pub SupportedTopicLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Globalization")))] + #[cfg(not(feature = "Globalization"))] SupportedTopicLanguages: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] + #[cfg(feature = "Globalization")] pub SupportedGrammarLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Globalization")))] + #[cfg(not(feature = "Globalization"))] SupportedGrammarLanguages: usize, } windows_core::imp::define_interface!(ISpeechRecognizerStatics2, ISpeechRecognizerStatics2_Vtbl, 0x1d1b0d95_7565_4ef9_a2f3_ba15162a96cf); @@ -486,10 +465,7 @@ pub struct IVoiceCommandManager_Vtbl { pub InstallCommandSetsFromStorageFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] InstallCommandSetsFromStorageFileAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub InstalledCommandSets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InstalledCommandSets: usize, } windows_core::imp::define_interface!(IVoiceCommandSet, IVoiceCommandSet_Vtbl, 0x0bedda75_46e6_4b11_a088_5c68632899b5); impl windows_core::RuntimeType for IVoiceCommandSet { @@ -500,10 +476,7 @@ pub struct IVoiceCommandSet_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetPhraseListAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - SetPhraseListAsync: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -938,28 +911,25 @@ impl SpeechRecognitionListConstraint { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProbability)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Commands(&self) -> windows_core::Result> { + pub fn Commands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Commands)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(commands: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ISpeechRecognitionListConstraintFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Create)(windows_core::Interface::as_raw(this), commands.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWithTag(commands: P0, tag: &windows_core::HSTRING) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::ISpeechRecognitionListConstraintFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1041,8 +1011,7 @@ impl SpeechRecognitionResult { (windows_core::Interface::vtable(this).SemanticInterpretation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAlternates(&self, maxalternates: u32) -> windows_core::Result> { + pub fn GetAlternates(&self, maxalternates: u32) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1056,8 +1025,7 @@ impl SpeechRecognitionResult { (windows_core::Interface::vtable(this).Constraint)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RulePath(&self) -> windows_core::Result> { + pub fn RulePath(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1139,8 +1107,7 @@ impl windows_core::RuntimeType for SpeechRecognitionScenario { pub struct SpeechRecognitionSemanticInterpretation(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpeechRecognitionSemanticInterpretation, windows_core::IUnknown, windows_core::IInspectable); impl SpeechRecognitionSemanticInterpretation { - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result>> { + pub fn Properties(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1333,8 +1300,7 @@ impl SpeechRecognizer { (windows_core::Interface::vtable(this).CurrentLanguage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Constraints(&self) -> windows_core::Result> { + pub fn Constraints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1456,15 +1422,15 @@ impl SpeechRecognizer { (windows_core::Interface::vtable(this).SystemSpeechLanguage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] - pub fn SupportedTopicLanguages() -> windows_core::Result> { + #[cfg(feature = "Globalization")] + pub fn SupportedTopicLanguages() -> windows_core::Result> { Self::ISpeechRecognizerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedTopicLanguages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] - pub fn SupportedGrammarLanguages() -> windows_core::Result> { + #[cfg(feature = "Globalization")] + pub fn SupportedGrammarLanguages() -> windows_core::Result> { Self::ISpeechRecognizerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedGrammarLanguages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1673,8 +1639,7 @@ impl VoiceCommandManager { (windows_core::Interface::vtable(this).InstallCommandSetsFromStorageFileAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn InstalledCommandSets() -> windows_core::Result> { + pub fn InstalledCommandSets() -> windows_core::Result> { Self::IVoiceCommandManager(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InstalledCommandSets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1707,10 +1672,9 @@ impl VoiceCommandSet { (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetPhraseListAsync(&self, phraselistname: &windows_core::HSTRING, phraselist: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs b/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs index 392989eb2ad..58090155ae3 100644 --- a/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs +++ b/crates/libs/windows/src/Windows/Media/SpeechSynthesis/mod.rs @@ -5,10 +5,7 @@ impl windows_core::RuntimeType for IInstalledVoicesStatic { #[repr(C)] pub struct IInstalledVoicesStatic_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AllVoices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllVoices: usize, pub DefaultVoice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInstalledVoicesStatic2, IInstalledVoicesStatic2_Vtbl, 0x64255f2e_358d_4058_be9a_fd3fcb423530); @@ -30,10 +27,7 @@ impl windows_core::RuntimeType for ISpeechSynthesisStream { #[repr(C)] pub struct ISpeechSynthesisStream_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Markers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Markers: usize, } windows_core::imp::define_interface!(ISpeechSynthesizer, ISpeechSynthesizer_Vtbl, 0xce9f7c76_97f4_4ced_ad68_d51c458e45c6); impl windows_core::RuntimeType for ISpeechSynthesizer { @@ -244,16 +238,14 @@ impl SpeechSynthesisStream { (windows_core::Interface::vtable(this).CanWrite)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Markers(&self) -> windows_core::Result> { + pub fn Markers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Markers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TimedMetadataTracks(&self) -> windows_core::Result> { + pub fn TimedMetadataTracks(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -295,8 +287,7 @@ impl SpeechSynthesizer { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllVoices() -> windows_core::Result> { + pub fn AllVoices() -> windows_core::Result> { Self::IInstalledVoicesStatic(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllVoices)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs b/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs index fbae52817b6..517a2e85bea 100644 --- a/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Streaming/Adaptive/mod.rs @@ -51,8 +51,7 @@ impl AdaptiveMediaSource { (windows_core::Interface::vtable(this).CurrentPlaybackBitrate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AvailableBitrates(&self) -> windows_core::Result> { + pub fn AvailableBitrates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1207,10 +1206,7 @@ pub struct IAdaptiveMediaSource_Vtbl { pub SetInitialBitrate: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub CurrentDownloadBitrate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub CurrentPlaybackBitrate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AvailableBitrates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AvailableBitrates: usize, pub DesiredMinBitrate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDesiredMinBitrate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DesiredMaxBitrate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Media/mod.rs b/crates/libs/windows/src/Windows/Media/mod.rs index 0f2e1211169..eeaabd817fe 100644 --- a/crates/libs/windows/src/Windows/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Media/mod.rs @@ -824,8 +824,7 @@ impl windows_core::RuntimeType for IMediaMarkers { } windows_core::imp::interface_hierarchy!(IMediaMarkers, windows_core::IUnknown, windows_core::IInspectable); impl IMediaMarkers { - #[cfg(feature = "Foundation_Collections")] - pub fn Markers(&self) -> windows_core::Result> { + pub fn Markers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -833,15 +832,12 @@ impl IMediaMarkers { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IMediaMarkers { const NAME: &'static str = "Windows.Media.IMediaMarkers"; } -#[cfg(feature = "Foundation_Collections")] pub trait IMediaMarkers_Impl: windows_core::IUnknownImpl { - fn Markers(&self) -> windows_core::Result>; + fn Markers(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IMediaMarkers_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Markers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -866,10 +862,7 @@ impl IMediaMarkers_Vtbl { #[repr(C)] pub struct IMediaMarkers_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Markers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Markers: usize, } windows_core::imp::define_interface!(IMediaProcessingTriggerDetails, IMediaProcessingTriggerDetails_Vtbl, 0xeb8564ac_a351_4f4e_b4f0_9bf2408993db); impl windows_core::RuntimeType for IMediaProcessingTriggerDetails { @@ -953,10 +946,7 @@ pub struct IMusicDisplayProperties2_Vtbl { pub SetAlbumTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub TrackNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetTrackNumber: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Genres: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Genres: usize, } windows_core::imp::define_interface!(IMusicDisplayProperties3, IMusicDisplayProperties3_Vtbl, 0x4db51ac1_0681_4e8c_9401_b8159d9eefc7); impl windows_core::RuntimeType for IMusicDisplayProperties3 { @@ -1149,10 +1139,7 @@ impl windows_core::RuntimeType for IVideoDisplayProperties2 { #[repr(C)] pub struct IVideoDisplayProperties2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Genres: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Genres: usize, } windows_core::imp::define_interface!(IVideoEffectsStatics, IVideoEffectsStatics_Vtbl, 0x1fcda5e8_baf1_4521_980c_3bcebb44cf38); impl windows_core::RuntimeType for IVideoEffectsStatics { @@ -1926,8 +1913,7 @@ impl MusicDisplayProperties { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTrackNumber)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Genres(&self) -> windows_core::Result> { + pub fn Genres(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2631,8 +2617,7 @@ impl VideoDisplayProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSubtitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Genres(&self) -> windows_core::Result> { + pub fn Genres(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs index 16b474d6d58..08b39eca2ae 100644 --- a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs @@ -158,22 +158,20 @@ impl BackgroundDownloader { (windows_core::Interface::vtable(this).CreateWithCompletionGroup)(windows_core::Interface::as_raw(this), completiongroup.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentDownloadsAsync() -> windows_core::Result>> { + pub fn GetCurrentDownloadsAsync() -> windows_core::Result>> { Self::IBackgroundDownloaderStaticMethods(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCurrentDownloadsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetCurrentDownloadsForGroupAsync(group: &windows_core::HSTRING) -> windows_core::Result>> { + #[cfg(feature = "deprecated")] + pub fn GetCurrentDownloadsForGroupAsync(group: &windows_core::HSTRING) -> windows_core::Result>> { Self::IBackgroundDownloaderStaticMethods(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCurrentDownloadsForGroupAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(group), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentDownloadsForTransferGroupAsync(group: P0) -> windows_core::Result>> + pub fn GetCurrentDownloadsForTransferGroupAsync(group: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -182,10 +180,10 @@ impl BackgroundDownloader { (windows_core::Interface::vtable(this).GetCurrentDownloadsForTransferGroupAsync)(windows_core::Interface::as_raw(this), group.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub fn RequestUnconstrainedDownloadsAsync(operations: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IBackgroundDownloaderUserConsent(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -355,16 +353,14 @@ unsafe impl Sync for BackgroundTransferCompletionGroup {} pub struct BackgroundTransferCompletionGroupTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(BackgroundTransferCompletionGroupTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); impl BackgroundTransferCompletionGroupTriggerDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn Downloads(&self) -> windows_core::Result> { + pub fn Downloads(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Downloads)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Uploads(&self) -> windows_core::Result> { + pub fn Uploads(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -557,8 +553,7 @@ impl BackgroundTransferRangesDownloadedEventArgs { (windows_core::Interface::vtable(this).WasDownloadRestarted)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AddedRanges(&self) -> windows_core::Result> { + pub fn AddedRanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -731,11 +726,10 @@ impl BackgroundUploader { (windows_core::Interface::vtable(this).CreateUploadFromStreamAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), sourcestream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateUploadWithFormDataAndAutoBoundaryAsync(&self, uri: P0, parts: P1) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -743,11 +737,10 @@ impl BackgroundUploader { (windows_core::Interface::vtable(this).CreateUploadWithFormDataAndAutoBoundaryAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), parts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateUploadWithSubTypeAsync(&self, uri: P0, parts: P1, subtype: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -755,11 +748,10 @@ impl BackgroundUploader { (windows_core::Interface::vtable(this).CreateUploadWithSubTypeAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), parts.param().abi(), core::mem::transmute_copy(subtype), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateUploadWithSubTypeAndBoundaryAsync(&self, uri: P0, parts: P1, subtype: &windows_core::HSTRING, boundary: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -861,22 +853,20 @@ impl BackgroundUploader { (windows_core::Interface::vtable(this).CreateWithCompletionGroup)(windows_core::Interface::as_raw(this), completiongroup.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentUploadsAsync() -> windows_core::Result>> { + pub fn GetCurrentUploadsAsync() -> windows_core::Result>> { Self::IBackgroundUploaderStaticMethods(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCurrentUploadsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn GetCurrentUploadsForGroupAsync(group: &windows_core::HSTRING) -> windows_core::Result>> { + #[cfg(feature = "deprecated")] + pub fn GetCurrentUploadsForGroupAsync(group: &windows_core::HSTRING) -> windows_core::Result>> { Self::IBackgroundUploaderStaticMethods(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCurrentUploadsForGroupAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(group), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentUploadsForTransferGroupAsync(group: P0) -> windows_core::Result>> + pub fn GetCurrentUploadsForTransferGroupAsync(group: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -885,10 +875,10 @@ impl BackgroundUploader { (windows_core::Interface::vtable(this).GetCurrentUploadsForTransferGroupAsync)(windows_core::Interface::as_raw(this), group.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub fn RequestUnconstrainedUploadsAsync(operations: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IBackgroundUploaderUserConsent(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -927,8 +917,7 @@ unsafe impl Send for BackgroundUploader {} unsafe impl Sync for BackgroundUploader {} pub struct ContentPrefetcher; impl ContentPrefetcher { - #[cfg(feature = "Foundation_Collections")] - pub fn ContentUris() -> windows_core::Result> { + pub fn ContentUris() -> windows_core::Result> { Self::IContentPrefetcher(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ContentUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1099,8 +1088,7 @@ impl DownloadOperation { (windows_core::Interface::vtable(this).GetResultRandomAccessStreamReference)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetDownloadedRanges(&self) -> windows_core::Result> { + pub fn GetDownloadedRanges(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1128,8 +1116,8 @@ impl DownloadOperation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetRequestedUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web"))] - pub fn RecoverableWebErrorStatuses(&self) -> windows_core::Result> { + #[cfg(feature = "Web")] + pub fn RecoverableWebErrorStatuses(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1256,13 +1244,10 @@ impl windows_core::RuntimeType for IBackgroundDownloaderStaticMethods { #[repr(C)] pub struct IBackgroundDownloaderStaticMethods_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentDownloadsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentDownloadsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetCurrentDownloadsForGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetCurrentDownloadsForGroupAsync: usize, } windows_core::imp::define_interface!(IBackgroundDownloaderStaticMethods2, IBackgroundDownloaderStaticMethods2_Vtbl, 0x2faa1327_1ad4_4ca5_b2cd_08dbf0746afe); @@ -1272,10 +1257,7 @@ impl windows_core::RuntimeType for IBackgroundDownloaderStaticMethods2 { #[repr(C)] pub struct IBackgroundDownloaderStaticMethods2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentDownloadsForTransferGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentDownloadsForTransferGroupAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IBackgroundDownloaderUserConsent, IBackgroundDownloaderUserConsent_Vtbl, 0x5d14e906_9266_4808_bd71_5925f2a3130a); @@ -1287,10 +1269,7 @@ impl windows_core::RuntimeType for IBackgroundDownloaderUserConsent { #[repr(C)] pub struct IBackgroundDownloaderUserConsent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RequestUnconstrainedDownloadsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestUnconstrainedDownloadsAsync: usize, } windows_core::imp::define_interface!(IBackgroundTransferBase, IBackgroundTransferBase_Vtbl, 0x2a9da250_c769_458c_afe8_feb8d4d3b2ef); impl windows_core::RuntimeType for IBackgroundTransferBase { @@ -1564,14 +1543,8 @@ impl windows_core::RuntimeType for IBackgroundTransferCompletionGroupTriggerDeta #[repr(C)] pub struct IBackgroundTransferCompletionGroupTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Downloads: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Downloads: usize, - #[cfg(feature = "Foundation_Collections")] pub Uploads: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Uploads: usize, } windows_core::imp::define_interface!(IBackgroundTransferContentPart, IBackgroundTransferContentPart_Vtbl, 0xe8e15657_d7d1_4ed8_838e_674ac217ace6); impl windows_core::RuntimeType for IBackgroundTransferContentPart { @@ -1969,10 +1942,7 @@ impl windows_core::RuntimeType for IBackgroundTransferRangesDownloadedEventArgs pub struct IBackgroundTransferRangesDownloadedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub WasDownloadRestarted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AddedRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddedRanges: usize, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IBackgroundUploader, IBackgroundUploader_Vtbl, 0xc595c9ae_cead_465b_8801_c55ac90a01ce); @@ -1990,18 +1960,9 @@ pub struct IBackgroundUploader_Vtbl { pub CreateUploadFromStreamAsync: 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, #[cfg(not(feature = "Storage_Streams"))] CreateUploadFromStreamAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateUploadWithFormDataAndAutoBoundaryAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateUploadWithFormDataAndAutoBoundaryAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateUploadWithSubTypeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateUploadWithSubTypeAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateUploadWithSubTypeAndBoundaryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateUploadWithSubTypeAndBoundaryAsync: usize, } windows_core::imp::define_interface!(IBackgroundUploader2, IBackgroundUploader2_Vtbl, 0x8e0612ce_0c34_4463_807f_198a1b8bd4ad); impl windows_core::RuntimeType for IBackgroundUploader2 { @@ -2070,13 +2031,10 @@ impl windows_core::RuntimeType for IBackgroundUploaderStaticMethods { #[repr(C)] pub struct IBackgroundUploaderStaticMethods_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentUploadsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentUploadsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub GetCurrentUploadsForGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] GetCurrentUploadsForGroupAsync: usize, } windows_core::imp::define_interface!(IBackgroundUploaderStaticMethods2, IBackgroundUploaderStaticMethods2_Vtbl, 0xe919ac62_ea08_42f0_a2ac_07e467549080); @@ -2086,10 +2044,7 @@ impl windows_core::RuntimeType for IBackgroundUploaderStaticMethods2 { #[repr(C)] pub struct IBackgroundUploaderStaticMethods2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentUploadsForTransferGroupAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentUploadsForTransferGroupAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IBackgroundUploaderUserConsent, IBackgroundUploaderUserConsent_Vtbl, 0x3bb384cb_0760_461d_907f_5138f84d44c1); @@ -2101,10 +2056,7 @@ impl windows_core::RuntimeType for IBackgroundUploaderUserConsent { #[repr(C)] pub struct IBackgroundUploaderUserConsent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RequestUnconstrainedUploadsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestUnconstrainedUploadsAsync: usize, } windows_core::imp::define_interface!(IContentPrefetcher, IContentPrefetcher_Vtbl, 0xa8d6f754_7dc1_4cd9_8810_2a6aa9417e11); impl windows_core::RuntimeType for IContentPrefetcher { @@ -2113,10 +2065,7 @@ impl windows_core::RuntimeType for IContentPrefetcher { #[repr(C)] pub struct IContentPrefetcher_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ContentUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ContentUris: usize, pub SetIndirectContentUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IndirectContentUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2168,16 +2117,13 @@ pub struct IDownloadOperation3_Vtbl { pub GetResultRandomAccessStreamReference: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] GetResultRandomAccessStreamReference: usize, - #[cfg(feature = "Foundation_Collections")] pub GetDownloadedRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDownloadedRanges: usize, pub RangesDownloaded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveRangesDownloaded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub SetRequestedUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Web"))] + #[cfg(feature = "Web")] pub RecoverableWebErrorStatuses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Web")))] + #[cfg(not(feature = "Web"))] RecoverableWebErrorStatuses: usize, #[cfg(feature = "Web")] pub CurrentWebErrorStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2213,10 +2159,7 @@ pub struct IResponseInformation_Vtbl { pub IsResumable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ActualUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub StatusCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Headers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Headers: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IUnconstrainedTransferRequestResult, IUnconstrainedTransferRequestResult_Vtbl, 0x4c24b81f_d944_4112_a98e_6a69522b7ebb); @@ -2299,8 +2242,7 @@ impl ResponseInformation { (windows_core::Interface::vtable(this).StatusCode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Headers(&self) -> windows_core::Result> { + pub fn Headers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs index 3c61a536619..77af67f1184 100644 --- a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs @@ -241,8 +241,7 @@ impl ConnectionProfile { (windows_core::Interface::vtable(this).GetNetworkConnectivityLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNetworkNames(&self) -> windows_core::Result> { + pub fn GetNetworkNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -342,32 +341,28 @@ impl ConnectionProfile { (windows_core::Interface::vtable(this).GetDomainConnectivityLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, granularity: DataUsageGranularity, states: NetworkUsageStates) -> windows_core::Result>> { + pub fn GetNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, granularity: DataUsageGranularity, states: NetworkUsageStates) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetNetworkUsageAsync)(windows_core::Interface::as_raw(this), starttime, endtime, granularity, states, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetConnectivityIntervalsAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> windows_core::Result>> { + pub fn GetConnectivityIntervalsAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetConnectivityIntervalsAsync)(windows_core::Interface::as_raw(this), starttime, endtime, states, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAttributedNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> windows_core::Result>> { + pub fn GetAttributedNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAttributedNetworkUsageAsync)(windows_core::Interface::as_raw(this), starttime, endtime, states, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetProviderNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> windows_core::Result>> { + pub fn GetProviderNetworkUsageAsync(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: NetworkUsageStates) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -914,10 +909,7 @@ pub struct IConnectionProfile_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ProfileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNetworkConnectivityLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NetworkConnectivityLevel) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetNetworkNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNetworkNames: usize, pub GetConnectionCost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDataPlanStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub NetworkAdapter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -945,14 +937,8 @@ pub struct IConnectionProfile2_Vtbl { pub ServiceProviderGuid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSignalBars: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDomainConnectivityLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DomainConnectivityLevel) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetNetworkUsageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::DateTime, DataUsageGranularity, NetworkUsageStates, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNetworkUsageAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetConnectivityIntervalsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::DateTime, NetworkUsageStates, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetConnectivityIntervalsAsync: usize, } windows_core::imp::define_interface!(IConnectionProfile3, IConnectionProfile3_Vtbl, 0x578c2528_4cd9_4161_8045_201cfd5b115c); impl windows_core::RuntimeType for IConnectionProfile3 { @@ -961,10 +947,7 @@ impl windows_core::RuntimeType for IConnectionProfile3 { #[repr(C)] pub struct IConnectionProfile3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAttributedNetworkUsageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::DateTime, NetworkUsageStates, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAttributedNetworkUsageAsync: usize, } windows_core::imp::define_interface!(IConnectionProfile4, IConnectionProfile4_Vtbl, 0x7a2d42cd_81e0_4ae6_abed_ab9ca13eb714); impl windows_core::RuntimeType for IConnectionProfile4 { @@ -973,10 +956,7 @@ impl windows_core::RuntimeType for IConnectionProfile4 { #[repr(C)] pub struct IConnectionProfile4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetProviderNetworkUsageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::DateTime, NetworkUsageStates, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetProviderNetworkUsageAsync: usize, } windows_core::imp::define_interface!(IConnectionProfile5, IConnectionProfile5_Vtbl, 0x85361ec7_9c73_4be0_8f14_578eec71ee0e); impl windows_core::RuntimeType for IConnectionProfile5 { @@ -1139,10 +1119,7 @@ impl windows_core::RuntimeType for ILanIdentifierData { pub struct ILanIdentifierData_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Type: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Value: usize, } windows_core::imp::define_interface!(INetworkAdapter, INetworkAdapter_Vtbl, 0x3b542e03_5388_496c_a8a3_affd39aec2e6); impl windows_core::RuntimeType for INetworkAdapter { @@ -1165,24 +1142,12 @@ impl windows_core::RuntimeType for INetworkInformationStatics { #[repr(C)] pub struct INetworkInformationStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetConnectionProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetConnectionProfiles: usize, pub GetInternetConnectionProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetLanIdentifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetLanIdentifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub GetHostNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetHostNames: usize, pub GetProxyConfigurationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetSortedEndpointPairs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::HostNameSortOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSortedEndpointPairs: usize, pub NetworkStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveNetworkStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -1193,10 +1158,7 @@ impl windows_core::RuntimeType for INetworkInformationStatics2 { #[repr(C)] pub struct INetworkInformationStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindConnectionProfilesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindConnectionProfilesAsync: usize, } windows_core::imp::define_interface!(INetworkItem, INetworkItem_Vtbl, 0x01bc4d39_f5e0_4567_a28c_42080c831b2b); impl windows_core::RuntimeType for INetworkItem { @@ -1303,10 +1265,7 @@ impl windows_core::RuntimeType for IProxyConfiguration { #[repr(C)] pub struct IProxyConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ProxyUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProxyUris: usize, pub CanConnectDirectly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IRoutePolicy, IRoutePolicy_Vtbl, 0x11abc4ac_0fc7_42e4_8742_569923b1ca11); @@ -1358,10 +1317,7 @@ impl windows_core::RuntimeType for IWwanConnectionProfileDetails2 { pub struct IWwanConnectionProfileDetails2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IPKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WwanNetworkIPKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PurposeGuids: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PurposeGuids: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -1414,8 +1370,7 @@ impl LanIdentifierData { (windows_core::Interface::vtable(this).Type)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Value(&self) -> windows_core::Result> { + pub fn Value(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1576,8 +1531,7 @@ impl windows_core::RuntimeType for NetworkEncryptionType { } pub struct NetworkInformation; impl NetworkInformation { - #[cfg(feature = "Foundation_Collections")] - pub fn GetConnectionProfiles() -> windows_core::Result> { + pub fn GetConnectionProfiles() -> windows_core::Result> { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetConnectionProfiles)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1589,15 +1543,13 @@ impl NetworkInformation { (windows_core::Interface::vtable(this).GetInternetConnectionProfile)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetLanIdentifiers() -> windows_core::Result> { + pub fn GetLanIdentifiers() -> windows_core::Result> { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetLanIdentifiers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetHostNames() -> windows_core::Result> { + pub fn GetHostNames() -> windows_core::Result> { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetHostNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1612,10 +1564,9 @@ impl NetworkInformation { (windows_core::Interface::vtable(this).GetProxyConfigurationAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSortedEndpointPairs(destinationlist: P0, sortoptions: super::HostNameSortOptions) -> windows_core::Result> + pub fn GetSortedEndpointPairs(destinationlist: P0, sortoptions: super::HostNameSortOptions) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::INetworkInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1634,8 +1585,7 @@ impl NetworkInformation { pub fn RemoveNetworkStatusChanged(eventcookie: i64) -> windows_core::Result<()> { Self::INetworkInformationStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveNetworkStatusChanged)(windows_core::Interface::as_raw(this), eventcookie).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindConnectionProfilesAsync(pprofilefilter: P0) -> windows_core::Result>> + pub fn FindConnectionProfilesAsync(pprofilefilter: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -2004,8 +1954,7 @@ unsafe impl Sync for ProviderNetworkUsage {} pub struct ProxyConfiguration(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ProxyConfiguration, windows_core::IUnknown, windows_core::IInspectable); impl ProxyConfiguration { - #[cfg(feature = "Foundation_Collections")] - pub fn ProxyUris(&self) -> windows_core::Result> { + pub fn ProxyUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2211,8 +2160,7 @@ impl WwanConnectionProfileDetails { (windows_core::Interface::vtable(this).IPKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PurposeGuids(&self) -> windows_core::Result> { + pub fn PurposeGuids(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs b/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs index f5f047774f1..2e0a711c069 100644 --- a/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/NetworkOperators/mod.rs @@ -106,8 +106,7 @@ impl ESim { (windows_core::Interface::vtable(this).State)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetProfiles(&self) -> windows_core::Result> { + pub fn GetProfiles(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -273,8 +272,7 @@ unsafe impl Sync for ESimDiscoverEvent {} pub struct ESimDiscoverResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ESimDiscoverResult, windows_core::IUnknown, windows_core::IInspectable); impl ESimDiscoverResult { - #[cfg(feature = "Foundation_Collections")] - pub fn Events(&self) -> windows_core::Result> { + pub fn Events(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1207,10 +1205,7 @@ pub struct IESim_Vtbl { pub MobileBroadbandModemDeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Policy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub State: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ESimState) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetProfiles: usize, pub DeleteProfileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DownloadProfileMetadataAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ResetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1264,10 +1259,7 @@ impl windows_core::RuntimeType for IESimDiscoverResult { #[repr(C)] pub struct IESimDiscoverResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Events: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Events: usize, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ESimDiscoverResultKind) -> windows_core::HRESULT, pub ProfileMetadata: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Result: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1499,18 +1491,9 @@ impl windows_core::RuntimeType for IKnownCSimFilePathsStatics { #[repr(C)] pub struct IKnownCSimFilePathsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EFSpn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EFSpn: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid1: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid2: usize, } windows_core::imp::define_interface!(IKnownRuimFilePathsStatics, IKnownRuimFilePathsStatics_Vtbl, 0x3883c8b9_ff24_4571_a867_09f960426e14); impl windows_core::RuntimeType for IKnownRuimFilePathsStatics { @@ -1519,18 +1502,9 @@ impl windows_core::RuntimeType for IKnownRuimFilePathsStatics { #[repr(C)] pub struct IKnownRuimFilePathsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EFSpn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EFSpn: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid1: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid2: usize, } windows_core::imp::define_interface!(IKnownSimFilePathsStatics, IKnownSimFilePathsStatics_Vtbl, 0x80cd1a63_37a5_43d3_80a3_ccd23e8fecee); impl windows_core::RuntimeType for IKnownSimFilePathsStatics { @@ -1539,22 +1513,10 @@ impl windows_core::RuntimeType for IKnownSimFilePathsStatics { #[repr(C)] pub struct IKnownSimFilePathsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EFOns: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EFOns: usize, - #[cfg(feature = "Foundation_Collections")] pub EFSpn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EFSpn: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid1: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid2: usize, } windows_core::imp::define_interface!(IKnownUSimFilePathsStatics, IKnownUSimFilePathsStatics_Vtbl, 0x7c34e581_1f1b_43f4_9530_8b092d32d71f); impl windows_core::RuntimeType for IKnownUSimFilePathsStatics { @@ -1563,26 +1525,11 @@ impl windows_core::RuntimeType for IKnownUSimFilePathsStatics { #[repr(C)] pub struct IKnownUSimFilePathsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EFSpn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EFSpn: usize, - #[cfg(feature = "Foundation_Collections")] pub EFOpl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EFOpl: usize, - #[cfg(feature = "Foundation_Collections")] pub EFPnn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EFPnn: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid1: usize, - #[cfg(feature = "Foundation_Collections")] pub Gid2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Gid2: usize, } windows_core::imp::define_interface!(IMobileBroadbandAccount, IMobileBroadbandAccount_Vtbl, 0x36c24ccd_cee2_43e0_a603_ee86a36d6570); impl windows_core::RuntimeType for IMobileBroadbandAccount { @@ -1604,9 +1551,9 @@ impl windows_core::RuntimeType for IMobileBroadbandAccount2 { #[repr(C)] pub struct IMobileBroadbandAccount2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Networking_Connectivity"))] + #[cfg(feature = "Networking_Connectivity")] pub GetConnectionProfiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking_Connectivity")))] + #[cfg(not(feature = "Networking_Connectivity"))] GetConnectionProfiles: usize, } windows_core::imp::define_interface!(IMobileBroadbandAccount3, IMobileBroadbandAccount3_Vtbl, 0x092a1e21_9379_4b9b_ad31_d5fee2f748c6); @@ -1634,10 +1581,7 @@ impl windows_core::RuntimeType for IMobileBroadbandAccountStatics { #[repr(C)] pub struct IMobileBroadbandAccountStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AvailableNetworkAccountIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AvailableNetworkAccountIds: usize, pub CreateFromNetworkAccountId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IMobileBroadbandAccountUpdatedEventArgs, IMobileBroadbandAccountUpdatedEventArgs_Vtbl, 0x7bc31d88_a6bd_49e1_80ab_6b91354a57d4); @@ -1794,46 +1738,16 @@ impl windows_core::RuntimeType for IMobileBroadbandCellsInfo { #[repr(C)] pub struct IMobileBroadbandCellsInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub NeighboringCellsCdma: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NeighboringCellsCdma: usize, - #[cfg(feature = "Foundation_Collections")] pub NeighboringCellsGsm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NeighboringCellsGsm: usize, - #[cfg(feature = "Foundation_Collections")] pub NeighboringCellsLte: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NeighboringCellsLte: usize, - #[cfg(feature = "Foundation_Collections")] pub NeighboringCellsTdscdma: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NeighboringCellsTdscdma: usize, - #[cfg(feature = "Foundation_Collections")] pub NeighboringCellsUmts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NeighboringCellsUmts: usize, - #[cfg(feature = "Foundation_Collections")] pub ServingCellsCdma: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServingCellsCdma: usize, - #[cfg(feature = "Foundation_Collections")] pub ServingCellsGsm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServingCellsGsm: usize, - #[cfg(feature = "Foundation_Collections")] pub ServingCellsLte: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServingCellsLte: usize, - #[cfg(feature = "Foundation_Collections")] pub ServingCellsTdscdma: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServingCellsTdscdma: usize, - #[cfg(feature = "Foundation_Collections")] pub ServingCellsUmts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServingCellsUmts: usize, } windows_core::imp::define_interface!(IMobileBroadbandCellsInfo2, IMobileBroadbandCellsInfo2_Vtbl, 0x66205912_b89f_4e12_bbb6_d5cf09a820ca); impl windows_core::RuntimeType for IMobileBroadbandCellsInfo2 { @@ -1842,14 +1756,8 @@ impl windows_core::RuntimeType for IMobileBroadbandCellsInfo2 { #[repr(C)] pub struct IMobileBroadbandCellsInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub NeighboringCellsNR: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NeighboringCellsNR: usize, - #[cfg(feature = "Foundation_Collections")] pub ServingCellsNR: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServingCellsNR: usize, } windows_core::imp::define_interface!(IMobileBroadbandCurrentSlotIndexChangedEventArgs, IMobileBroadbandCurrentSlotIndexChangedEventArgs_Vtbl, 0xf718b184_c370_5fd4_a670_1846cb9bce47); impl windows_core::RuntimeType for IMobileBroadbandCurrentSlotIndexChangedEventArgs { @@ -1878,10 +1786,7 @@ pub struct IMobileBroadbandDeviceInformation_Vtbl { pub DataClasses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DataClasses) -> windows_core::HRESULT, pub CustomDataClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MobileEquipmentId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TelephoneNumbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TelephoneNumbers: usize, pub SubscriberId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SimIccId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeviceType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MobileBroadbandDeviceType) -> windows_core::HRESULT, @@ -1927,10 +1832,7 @@ impl windows_core::RuntimeType for IMobileBroadbandDeviceService { pub struct IMobileBroadbandDeviceService_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub DeviceServiceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedCommands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedCommands: usize, pub OpenDataSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub OpenCommandSession: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2061,10 +1963,7 @@ pub struct IMobileBroadbandModem_Vtbl { pub DeviceInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub MaxDeviceServiceCommandSizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub MaxDeviceServiceDataSizeInBytes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DeviceServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeviceServices: usize, pub GetDeviceService: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsResetSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ResetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2186,10 +2085,7 @@ impl windows_core::RuntimeType for IMobileBroadbandNetwork2 { pub struct IMobileBroadbandNetwork2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetVoiceCallSupportAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RegistrationUiccApps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegistrationUiccApps: usize, } windows_core::imp::define_interface!(IMobileBroadbandNetwork3, IMobileBroadbandNetwork3_Vtbl, 0x33670a8a_c7ef_444c_ab6c_df7ef7a390fe); impl windows_core::RuntimeType for IMobileBroadbandNetwork3 { @@ -2217,10 +2113,7 @@ impl windows_core::RuntimeType for IMobileBroadbandNetworkRegistrationStateChang #[repr(C)] pub struct IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub NetworkRegistrationStateChanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NetworkRegistrationStateChanges: usize, } windows_core::imp::define_interface!(IMobileBroadbandPco, IMobileBroadbandPco_Vtbl, 0xd4e4fcbe_e3a3_43c5_a87b_6c86d229d7fa); impl windows_core::RuntimeType for IMobileBroadbandPco { @@ -2283,10 +2176,7 @@ impl windows_core::RuntimeType for IMobileBroadbandPinLockStateChangeTriggerDeta #[repr(C)] pub struct IMobileBroadbandPinLockStateChangeTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub PinLockStateChanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PinLockStateChanges: usize, } windows_core::imp::define_interface!(IMobileBroadbandPinManager, IMobileBroadbandPinManager_Vtbl, 0x83567edd_6e1f_4b9b_a413_2b1f50cc36df); impl windows_core::RuntimeType for IMobileBroadbandPinManager { @@ -2295,10 +2185,7 @@ impl windows_core::RuntimeType for IMobileBroadbandPinManager { #[repr(C)] pub struct IMobileBroadbandPinManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SupportedPins: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedPins: usize, pub GetPin: unsafe extern "system" fn(*mut core::ffi::c_void, MobileBroadbandPinType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IMobileBroadbandPinOperationResult, IMobileBroadbandPinOperationResult_Vtbl, 0x11dddc32_31e7_49f5_b663_123d3bef0362); @@ -2328,10 +2215,7 @@ impl windows_core::RuntimeType for IMobileBroadbandRadioStateChangeTriggerDetail #[repr(C)] pub struct IMobileBroadbandRadioStateChangeTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RadioStateChanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RadioStateChanges: usize, } windows_core::imp::define_interface!(IMobileBroadbandSarManager, IMobileBroadbandSarManager_Vtbl, 0xe5b26833_967e_40c9_a485_19c0dd209e22); impl windows_core::RuntimeType for IMobileBroadbandSarManager { @@ -2343,19 +2227,13 @@ pub struct IMobileBroadbandSarManager_Vtbl { pub IsBackoffEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsWiFiHardwareIntegrated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsSarControlledByHardware: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Antennas: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Antennas: usize, pub HysteresisTimerPeriod: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub TransmissionStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveTransmissionStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub EnableBackoffAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableBackoffAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetConfigurationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetConfigurationAsync: usize, pub RevertSarToHardwareControlAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTransmissionStateChangedHysteresisAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetIsTransmittingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2397,10 +2275,7 @@ impl windows_core::RuntimeType for IMobileBroadbandSlotManager { #[repr(C)] pub struct IMobileBroadbandSlotManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SlotInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SlotInfos: usize, pub CurrentSlotIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetCurrentSlot: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut MobileBroadbandModemStatus) -> windows_core::HRESULT, pub SetCurrentSlotAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2440,14 +2315,8 @@ pub struct IMobileBroadbandUiccApp_Vtbl { #[cfg(not(feature = "Storage_Streams"))] Id: usize, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut UiccAppKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetRecordDetailsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRecordDetailsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub ReadRecordAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, i32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadRecordAsync: usize, } windows_core::imp::define_interface!(IMobileBroadbandUiccAppReadRecordResult, IMobileBroadbandUiccAppReadRecordResult_Vtbl, 0x64c95285_358e_47c5_8249_695f383b2bdb); impl windows_core::RuntimeType for IMobileBroadbandUiccAppReadRecordResult { @@ -2484,10 +2353,7 @@ impl windows_core::RuntimeType for IMobileBroadbandUiccAppsResult { pub struct IMobileBroadbandUiccAppsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MobileBroadbandUiccAppOperationStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub UiccApps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UiccApps: usize, } windows_core::imp::define_interface!(INetworkOperatorDataUsageTriggerDetails, INetworkOperatorDataUsageTriggerDetails_Vtbl, 0x50e3126d_a465_4eeb_9317_28a167630cea); impl windows_core::RuntimeType for INetworkOperatorDataUsageTriggerDetails { @@ -2559,10 +2425,7 @@ impl windows_core::RuntimeType for INetworkOperatorTetheringClient { pub struct INetworkOperatorTetheringClient_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MacAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub HostNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - HostNames: usize, } windows_core::imp::define_interface!(INetworkOperatorTetheringClientManager, INetworkOperatorTetheringClientManager_Vtbl, 0x91b14016_8dca_4225_bbed_eef8b8d718d7); impl windows_core::RuntimeType for INetworkOperatorTetheringClientManager { @@ -2571,10 +2434,7 @@ impl windows_core::RuntimeType for INetworkOperatorTetheringClientManager { #[repr(C)] pub struct INetworkOperatorTetheringClientManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetTetheringClients: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTetheringClients: usize, } windows_core::imp::define_interface!(INetworkOperatorTetheringEntitlementCheck, INetworkOperatorTetheringEntitlementCheck_Vtbl, 0x0108916d_9e9a_4af6_8da3_60493b19c204); impl windows_core::RuntimeType for INetworkOperatorTetheringEntitlementCheck { @@ -2800,22 +2660,19 @@ pub struct IUssdSessionStatics_Vtbl { } pub struct KnownCSimFilePaths; impl KnownCSimFilePaths { - #[cfg(feature = "Foundation_Collections")] - pub fn EFSpn() -> windows_core::Result> { + pub fn EFSpn() -> windows_core::Result> { Self::IKnownCSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EFSpn)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid1() -> windows_core::Result> { + pub fn Gid1() -> windows_core::Result> { Self::IKnownCSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid1)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid2() -> windows_core::Result> { + pub fn Gid2() -> windows_core::Result> { Self::IKnownCSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid2)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2831,22 +2688,19 @@ impl windows_core::RuntimeName for KnownCSimFilePaths { } pub struct KnownRuimFilePaths; impl KnownRuimFilePaths { - #[cfg(feature = "Foundation_Collections")] - pub fn EFSpn() -> windows_core::Result> { + pub fn EFSpn() -> windows_core::Result> { Self::IKnownRuimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EFSpn)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid1() -> windows_core::Result> { + pub fn Gid1() -> windows_core::Result> { Self::IKnownRuimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid1)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid2() -> windows_core::Result> { + pub fn Gid2() -> windows_core::Result> { Self::IKnownRuimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid2)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2862,29 +2716,25 @@ impl windows_core::RuntimeName for KnownRuimFilePaths { } pub struct KnownSimFilePaths; impl KnownSimFilePaths { - #[cfg(feature = "Foundation_Collections")] - pub fn EFOns() -> windows_core::Result> { + pub fn EFOns() -> windows_core::Result> { Self::IKnownSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EFOns)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn EFSpn() -> windows_core::Result> { + pub fn EFSpn() -> windows_core::Result> { Self::IKnownSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EFSpn)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid1() -> windows_core::Result> { + pub fn Gid1() -> windows_core::Result> { Self::IKnownSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid1)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid2() -> windows_core::Result> { + pub fn Gid2() -> windows_core::Result> { Self::IKnownSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid2)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2900,36 +2750,31 @@ impl windows_core::RuntimeName for KnownSimFilePaths { } pub struct KnownUSimFilePaths; impl KnownUSimFilePaths { - #[cfg(feature = "Foundation_Collections")] - pub fn EFSpn() -> windows_core::Result> { + pub fn EFSpn() -> windows_core::Result> { Self::IKnownUSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EFSpn)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn EFOpl() -> windows_core::Result> { + pub fn EFOpl() -> windows_core::Result> { Self::IKnownUSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EFOpl)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn EFPnn() -> windows_core::Result> { + pub fn EFPnn() -> windows_core::Result> { Self::IKnownUSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EFPnn)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid1() -> windows_core::Result> { + pub fn Gid1() -> windows_core::Result> { Self::IKnownUSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid1)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Gid2() -> windows_core::Result> { + pub fn Gid2() -> windows_core::Result> { Self::IKnownUSimFilePathsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Gid2)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2983,8 +2828,8 @@ impl MobileBroadbandAccount { (windows_core::Interface::vtable(this).CurrentDeviceInformation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Networking_Connectivity"))] - pub fn GetConnectionProfiles(&self) -> windows_core::Result> { + #[cfg(feature = "Networking_Connectivity")] + pub fn GetConnectionProfiles(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2998,8 +2843,7 @@ impl MobileBroadbandAccount { (windows_core::Interface::vtable(this).AccountExperienceUrl)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AvailableNetworkAccountIds() -> windows_core::Result> { + pub fn AvailableNetworkAccountIds() -> windows_core::Result> { Self::IMobileBroadbandAccountStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AvailableNetworkAccountIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3701,96 +3545,84 @@ unsafe impl Sync for MobileBroadbandCellUmts {} pub struct MobileBroadbandCellsInfo(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MobileBroadbandCellsInfo, windows_core::IUnknown, windows_core::IInspectable); impl MobileBroadbandCellsInfo { - #[cfg(feature = "Foundation_Collections")] - pub fn NeighboringCellsCdma(&self) -> windows_core::Result> { + pub fn NeighboringCellsCdma(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NeighboringCellsCdma)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn NeighboringCellsGsm(&self) -> windows_core::Result> { + pub fn NeighboringCellsGsm(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NeighboringCellsGsm)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn NeighboringCellsLte(&self) -> windows_core::Result> { + pub fn NeighboringCellsLte(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NeighboringCellsLte)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn NeighboringCellsTdscdma(&self) -> windows_core::Result> { + pub fn NeighboringCellsTdscdma(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NeighboringCellsTdscdma)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn NeighboringCellsUmts(&self) -> windows_core::Result> { + pub fn NeighboringCellsUmts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NeighboringCellsUmts)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServingCellsCdma(&self) -> windows_core::Result> { + pub fn ServingCellsCdma(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServingCellsCdma)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServingCellsGsm(&self) -> windows_core::Result> { + pub fn ServingCellsGsm(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServingCellsGsm)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServingCellsLte(&self) -> windows_core::Result> { + pub fn ServingCellsLte(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServingCellsLte)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServingCellsTdscdma(&self) -> windows_core::Result> { + pub fn ServingCellsTdscdma(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServingCellsTdscdma)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServingCellsUmts(&self) -> windows_core::Result> { + pub fn ServingCellsUmts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServingCellsUmts)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn NeighboringCellsNR(&self) -> windows_core::Result> { + pub fn NeighboringCellsNR(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NeighboringCellsNR)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServingCellsNR(&self) -> windows_core::Result> { + pub fn ServingCellsNR(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3897,8 +3729,7 @@ impl MobileBroadbandDeviceInformation { (windows_core::Interface::vtable(this).MobileEquipmentId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TelephoneNumbers(&self) -> windows_core::Result> { + pub fn TelephoneNumbers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4012,8 +3843,7 @@ impl MobileBroadbandDeviceService { (windows_core::Interface::vtable(this).DeviceServiceId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedCommands(&self) -> windows_core::Result> { + pub fn SupportedCommands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4392,8 +4222,7 @@ impl MobileBroadbandModem { (windows_core::Interface::vtable(this).MaxDeviceServiceDataSizeInBytes)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeviceServices(&self) -> windows_core::Result> { + pub fn DeviceServices(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4736,8 +4565,7 @@ impl MobileBroadbandNetwork { (windows_core::Interface::vtable(this).GetVoiceCallSupportAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RegistrationUiccApps(&self) -> windows_core::Result> { + pub fn RegistrationUiccApps(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4799,8 +4627,7 @@ unsafe impl Sync for MobileBroadbandNetworkRegistrationStateChange {} pub struct MobileBroadbandNetworkRegistrationStateChangeTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MobileBroadbandNetworkRegistrationStateChangeTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); impl MobileBroadbandNetworkRegistrationStateChangeTriggerDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn NetworkRegistrationStateChanges(&self) -> windows_core::Result> { + pub fn NetworkRegistrationStateChanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5060,8 +4887,7 @@ unsafe impl Sync for MobileBroadbandPinLockStateChange {} pub struct MobileBroadbandPinLockStateChangeTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MobileBroadbandPinLockStateChangeTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); impl MobileBroadbandPinLockStateChangeTriggerDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn PinLockStateChanges(&self) -> windows_core::Result> { + pub fn PinLockStateChanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5086,8 +4912,7 @@ unsafe impl Sync for MobileBroadbandPinLockStateChangeTriggerDetails {} pub struct MobileBroadbandPinManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MobileBroadbandPinManager, windows_core::IUnknown, windows_core::IInspectable); impl MobileBroadbandPinManager { - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedPins(&self) -> windows_core::Result> { + pub fn SupportedPins(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5218,8 +5043,7 @@ unsafe impl Sync for MobileBroadbandRadioStateChange {} pub struct MobileBroadbandRadioStateChangeTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MobileBroadbandRadioStateChangeTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); impl MobileBroadbandRadioStateChangeTriggerDetails { - #[cfg(feature = "Foundation_Collections")] - pub fn RadioStateChanges(&self) -> windows_core::Result> { + pub fn RadioStateChanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5265,8 +5089,7 @@ impl MobileBroadbandSarManager { (windows_core::Interface::vtable(this).IsSarControlledByHardware)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Antennas(&self) -> windows_core::Result> { + pub fn Antennas(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5308,10 +5131,9 @@ impl MobileBroadbandSarManager { (windows_core::Interface::vtable(this).DisableBackoffAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetConfigurationAsync(&self, antennas: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -5430,8 +5252,7 @@ unsafe impl Sync for MobileBroadbandSlotInfoChangedEventArgs {} pub struct MobileBroadbandSlotManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MobileBroadbandSlotManager, windows_core::IUnknown, windows_core::IInspectable); impl MobileBroadbandSlotManager { - #[cfg(feature = "Foundation_Collections")] - pub fn SlotInfos(&self) -> windows_core::Result> { + pub fn SlotInfos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -5598,10 +5419,9 @@ impl MobileBroadbandUiccApp { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetRecordDetailsAsync(&self, uiccfilepath: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -5609,10 +5429,9 @@ impl MobileBroadbandUiccApp { (windows_core::Interface::vtable(this).GetRecordDetailsAsync)(windows_core::Interface::as_raw(this), uiccfilepath.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ReadRecordAsync(&self, uiccfilepath: P0, recordindex: i32) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -5753,8 +5572,7 @@ impl MobileBroadbandUiccAppsResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn UiccApps(&self) -> windows_core::Result> { + pub fn UiccApps(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -6028,8 +5846,7 @@ impl NetworkOperatorTetheringClient { (windows_core::Interface::vtable(this).MacAddress)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn HostNames(&self) -> windows_core::Result> { + pub fn HostNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -6054,8 +5871,7 @@ unsafe impl Sync for NetworkOperatorTetheringClient {} pub struct NetworkOperatorTetheringManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(NetworkOperatorTetheringManager, windows_core::IUnknown, windows_core::IInspectable); impl NetworkOperatorTetheringManager { - #[cfg(feature = "Foundation_Collections")] - pub fn GetTetheringClients(&self) -> windows_core::Result> { + pub fn GetTetheringClients(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs index 31f5ef56fe7..d357ff6b9db 100644 --- a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs @@ -184,10 +184,7 @@ pub struct IPeerFinderStatics_Vtbl { pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SupportedDiscoveryTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PeerDiscoveryTypes) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AlternateIdentities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AlternateIdentities: usize, pub Start: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub StartWithMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Stop: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -195,10 +192,7 @@ pub struct IPeerFinderStatics_Vtbl { pub RemoveTriggeredConnectionStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub ConnectionRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveConnectionRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllPeersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllPeersAsync: usize, #[cfg(feature = "Networking_Sockets")] pub ConnectAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Networking_Sockets"))] @@ -574,8 +568,7 @@ impl PeerFinder { (windows_core::Interface::vtable(this).SupportedDiscoveryTypes)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn AlternateIdentities() -> windows_core::Result> { + pub fn AlternateIdentities() -> windows_core::Result> { Self::IPeerFinderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AlternateIdentities)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -614,8 +607,7 @@ impl PeerFinder { pub fn RemoveConnectionRequested(cookie: i64) -> windows_core::Result<()> { Self::IPeerFinderStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveConnectionRequested)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllPeersAsync() -> windows_core::Result>> { + pub fn FindAllPeersAsync() -> windows_core::Result>> { Self::IPeerFinderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllPeersAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs b/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs index daf953fdff5..c794579c6e3 100644 --- a/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/PushNotifications/mod.rs @@ -132,10 +132,7 @@ impl windows_core::RuntimeType for IRawNotification2 { #[repr(C)] pub struct IRawNotification2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Headers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Headers: usize, pub ChannelId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IRawNotification3, IRawNotification3_Vtbl, 0x62737dde_8a73_424c_ab44_5635f40a96e5); @@ -449,8 +446,7 @@ impl RawNotification { (windows_core::Interface::vtable(this).Content)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Headers(&self) -> windows_core::Result> { + pub fn Headers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs b/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs index 066534d38e8..a67b6605d02 100644 --- a/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs @@ -131,8 +131,7 @@ impl DnssdServiceInstance { let this = self; unsafe { (windows_core::Interface::vtable(this).SetWeight)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn TextAttributes(&self) -> windows_core::Result> { + pub fn TextAttributes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -218,18 +217,14 @@ impl windows_core::RuntimeName for DnssdServiceInstance { } unsafe impl Send for DnssdServiceInstance {} unsafe impl Sync for DnssdServiceInstance {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct DnssdServiceInstanceCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(DnssdServiceInstanceCollection, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(DnssdServiceInstanceCollection, super::super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(DnssdServiceInstanceCollection, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(DnssdServiceInstanceCollection, windows_collections::IIterable); impl DnssdServiceInstanceCollection { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -267,35 +262,28 @@ impl DnssdServiceInstanceCollection { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for DnssdServiceInstanceCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for DnssdServiceInstanceCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for DnssdServiceInstanceCollection { const NAME: &'static str = "Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstanceCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for DnssdServiceInstanceCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for DnssdServiceInstanceCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for DnssdServiceInstanceCollection { type Item = DnssdServiceInstance; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &DnssdServiceInstanceCollection { type Item = DnssdServiceInstance; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -420,10 +408,7 @@ pub struct IDnssdServiceInstance_Vtbl { pub SetPriority: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, pub Weight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub SetWeight: unsafe extern "system" fn(*mut core::ffi::c_void, u16) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TextAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TextAttributes: usize, #[cfg(feature = "Networking_Sockets")] pub RegisterStreamSocketListenerAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Networking_Sockets"))] diff --git a/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs b/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs index cbfbf0bff44..b1586c27591 100644 --- a/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Sockets/mod.rs @@ -339,8 +339,7 @@ impl DatagramSocket { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContextAndKeepAliveTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.param().abi(), keepalivetime).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetEndpointPairsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result>> + pub fn GetEndpointPairsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result>> where P0: windows_core::Param, { @@ -349,8 +348,7 @@ impl DatagramSocket { (windows_core::Interface::vtable(this).GetEndpointPairsAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetEndpointPairsWithSortOptionsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING, sortoptions: super::HostNameSortOptions) -> windows_core::Result>> + pub fn GetEndpointPairsWithSortOptionsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING, sortoptions: super::HostNameSortOptions) -> windows_core::Result>> where P0: windows_core::Param, { @@ -862,14 +860,8 @@ impl windows_core::RuntimeType for IDatagramSocketStatics { #[repr(C)] pub struct IDatagramSocketStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetEndpointPairsAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - GetEndpointPairsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetEndpointPairsWithSortOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::HostNameSortOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetEndpointPairsWithSortOptionsAsync: usize, } windows_core::imp::define_interface!(IMessageWebSocket, IMessageWebSocket_Vtbl, 0x33727d08_34d5_4746_ad7b_8dde5bc2ef88); impl windows_core::RuntimeType for IMessageWebSocket { @@ -1085,10 +1077,7 @@ impl windows_core::RuntimeType for ISocketActivityInformationStatics { #[repr(C)] pub struct ISocketActivityInformationStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AllSockets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllSockets: usize, } windows_core::imp::define_interface!(ISocketActivityTriggerDetails, ISocketActivityTriggerDetails_Vtbl, 0x45f406a7_fc9f_4f81_acad_355fef51e67b); impl windows_core::RuntimeType for ISocketActivityTriggerDetails { @@ -1183,9 +1172,9 @@ impl windows_core::RuntimeType for IStreamSocketControl2 { #[repr(C)] pub struct IStreamSocketControl2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub IgnorableServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] IgnorableServerCertificateErrors: usize, } windows_core::imp::define_interface!(IStreamSocketControl3, IStreamSocketControl3_Vtbl, 0xc56a444c_4e74_403e_894c_b31cae5c7342); @@ -1245,17 +1234,17 @@ impl windows_core::RuntimeType for IStreamSocketInformation2 { pub struct IStreamSocketInformation2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ServerCertificateErrorSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SocketSslErrorSeverity) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificateErrors: usize, #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificate: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerIntermediateCertificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerIntermediateCertificates: usize, } windows_core::imp::define_interface!(IStreamSocketListener, IStreamSocketListener_Vtbl, 0xff513437_df9f_4df0_bf82_0ec5d7b35aae); @@ -1349,14 +1338,8 @@ impl windows_core::RuntimeType for IStreamSocketStatics { #[repr(C)] pub struct IStreamSocketStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetEndpointPairsAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - GetEndpointPairsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetEndpointPairsWithSortOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::HostNameSortOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetEndpointPairsWithSortOptionsAsync: usize, } windows_core::imp::define_interface!(IStreamWebSocket, IStreamWebSocket_Vtbl, 0xbd4a49d8_b289_45bb_97eb_c7525205a843); impl windows_core::RuntimeType for IStreamWebSocket { @@ -1621,8 +1604,7 @@ impl IWebSocketControl { let this = self; unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedProtocols(&self) -> windows_core::Result> { + pub fn SupportedProtocols(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1630,11 +1612,11 @@ impl IWebSocketControl { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] +#[cfg(feature = "Security_Credentials")] impl windows_core::RuntimeName for IWebSocketControl { const NAME: &'static str = "Windows.Networking.Sockets.IWebSocketControl"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] +#[cfg(feature = "Security_Credentials")] pub trait IWebSocketControl_Impl: windows_core::IUnknownImpl { fn OutboundBufferSizeInBytes(&self) -> windows_core::Result; fn SetOutboundBufferSizeInBytes(&self, value: u32) -> windows_core::Result<()>; @@ -1642,9 +1624,9 @@ pub trait IWebSocketControl_Impl: windows_core::IUnknownImpl { fn SetServerCredential(&self, value: windows_core::Ref<'_, super::super::Security::Credentials::PasswordCredential>) -> windows_core::Result<()>; fn ProxyCredential(&self) -> windows_core::Result; fn SetProxyCredential(&self, value: windows_core::Ref<'_, super::super::Security::Credentials::PasswordCredential>) -> windows_core::Result<()>; - fn SupportedProtocols(&self) -> windows_core::Result>; + fn SupportedProtocols(&self) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] +#[cfg(feature = "Security_Credentials")] impl IWebSocketControl_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn OutboundBufferSizeInBytes(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { @@ -1752,10 +1734,7 @@ pub struct IWebSocketControl_Vtbl { pub SetProxyCredential: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Credentials"))] SetProxyCredential: usize, - #[cfg(feature = "Foundation_Collections")] pub SupportedProtocols: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedProtocols: usize, } windows_core::imp::define_interface!(IWebSocketControl2, IWebSocketControl2_Vtbl, 0x79c3be03_f2ca_461e_af4e_9665bc2d0620); impl windows_core::RuntimeType for IWebSocketControl2 { @@ -1764,8 +1743,8 @@ impl windows_core::RuntimeType for IWebSocketControl2 { windows_core::imp::interface_hierarchy!(IWebSocketControl2, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(IWebSocketControl2, IWebSocketControl); impl IWebSocketControl2 { - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1815,8 +1794,7 @@ impl IWebSocketControl2 { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedProtocols(&self) -> windows_core::Result> { + pub fn SupportedProtocols(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1824,15 +1802,15 @@ impl IWebSocketControl2 { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] +#[cfg(all(feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] impl windows_core::RuntimeName for IWebSocketControl2 { const NAME: &'static str = "Windows.Networking.Sockets.IWebSocketControl2"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] +#[cfg(all(feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] pub trait IWebSocketControl2_Impl: IWebSocketControl_Impl { - fn IgnorableServerCertificateErrors(&self) -> windows_core::Result>; + fn IgnorableServerCertificateErrors(&self) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] +#[cfg(all(feature = "Security_Credentials", feature = "Security_Cryptography_Certificates"))] impl IWebSocketControl2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn IgnorableServerCertificateErrors(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1860,9 +1838,9 @@ impl IWebSocketControl2_Vtbl { #[repr(C)] pub struct IWebSocketControl2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub IgnorableServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] IgnorableServerCertificateErrors: usize, } windows_core::imp::define_interface!(IWebSocketErrorStatics, IWebSocketErrorStatics_Vtbl, 0x27cdf35b_1f61_4709_8e02_61283ada4e9d); @@ -1993,16 +1971,16 @@ impl IWebSocketInformation2 { (windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerCertificateErrors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServerCertificateErrors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2031,18 +2009,18 @@ impl IWebSocketInformation2 { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] +#[cfg(feature = "Security_Cryptography_Certificates")] impl windows_core::RuntimeName for IWebSocketInformation2 { const NAME: &'static str = "Windows.Networking.Sockets.IWebSocketInformation2"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] +#[cfg(feature = "Security_Cryptography_Certificates")] pub trait IWebSocketInformation2_Impl: IWebSocketInformation_Impl { fn ServerCertificate(&self) -> windows_core::Result; fn ServerCertificateErrorSeverity(&self) -> windows_core::Result; - fn ServerCertificateErrors(&self) -> windows_core::Result>; - fn ServerIntermediateCertificates(&self) -> windows_core::Result>; + fn ServerCertificateErrors(&self) -> windows_core::Result>; + fn ServerIntermediateCertificates(&self) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] +#[cfg(feature = "Security_Cryptography_Certificates")] impl IWebSocketInformation2_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn ServerCertificate(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -2116,13 +2094,13 @@ pub struct IWebSocketInformation2_Vtbl { #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificate: usize, pub ServerCertificateErrorSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SocketSslErrorSeverity) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificateErrors: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerIntermediateCertificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerIntermediateCertificates: usize, } windows_core::imp::define_interface!(IWebSocketServerCustomValidationRequestedEventArgs, IWebSocketServerCustomValidationRequestedEventArgs_Vtbl, 0xffeffe48_022a_4ab7_8b36_e10af4640e6b); @@ -2137,13 +2115,13 @@ pub struct IWebSocketServerCustomValidationRequestedEventArgs_Vtbl { #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificate: usize, pub ServerCertificateErrorSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SocketSslErrorSeverity) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificateErrors: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerIntermediateCertificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerIntermediateCertificates: usize, pub Reject: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2398,16 +2376,15 @@ impl MessageWebSocketControl { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedProtocols(&self) -> windows_core::Result> { + pub fn SupportedProtocols(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedProtocols)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2469,16 +2446,16 @@ impl MessageWebSocketInformation { (windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerCertificateErrors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServerCertificateErrors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2928,8 +2905,7 @@ impl SocketActivityInformation { (windows_core::Interface::vtable(this).StreamSocketListener)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllSockets() -> windows_core::Result> { + pub fn AllSockets() -> windows_core::Result> { Self::ISocketActivityInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllSockets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3277,8 +3253,7 @@ impl StreamSocket { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).TransferOwnershipWithContextAndKeepAliveTime)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(socketid), data.param().abi(), keepalivetime).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetEndpointPairsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result>> + pub fn GetEndpointPairsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING) -> windows_core::Result>> where P0: windows_core::Param, { @@ -3287,8 +3262,7 @@ impl StreamSocket { (windows_core::Interface::vtable(this).GetEndpointPairsAsync)(windows_core::Interface::as_raw(this), remotehostname.param().abi(), core::mem::transmute_copy(remoteservicename), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetEndpointPairsWithSortOptionsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING, sortoptions: super::HostNameSortOptions) -> windows_core::Result>> + pub fn GetEndpointPairsWithSortOptionsAsync(remotehostname: P0, remoteservicename: &windows_core::HSTRING, sortoptions: super::HostNameSortOptions) -> windows_core::Result>> where P0: windows_core::Param, { @@ -3374,8 +3348,8 @@ impl StreamSocketControl { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOutboundUnicastHopLimit)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3516,8 +3490,8 @@ impl StreamSocketInformation { (windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerCertificateErrors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3532,8 +3506,8 @@ impl StreamSocketInformation { (windows_core::Interface::vtable(this).ServerCertificate)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3995,16 +3969,15 @@ impl StreamWebSocketControl { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProxyCredential)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedProtocols(&self) -> windows_core::Result> { + pub fn SupportedProtocols(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedProtocols)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4066,16 +4039,16 @@ impl StreamWebSocketInformation { (windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerCertificateErrors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServerCertificateErrors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4204,16 +4177,16 @@ impl WebSocketServerCustomValidationRequestedEventArgs { (windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerCertificateErrors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServerCertificateErrors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs b/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs index fcc77d0b992..f68526098a8 100644 --- a/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Vpn/mod.rs @@ -27,10 +27,7 @@ impl windows_core::RuntimeType for IVpnChannel { pub struct IVpnChannel_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AssociateTransport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Start: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, bool, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Start: usize, pub Stop: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Security_Cryptography_Certificates")] pub RequestCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, VpnCredentialType, bool, bool, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -45,10 +42,7 @@ pub struct IVpnChannel_Vtbl { pub SetPlugInContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub PlugInContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SystemHealth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RequestCustomPrompt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestCustomPrompt: usize, pub SetErrorMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAllowedSslTlsVersions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool) -> windows_core::HRESULT, } @@ -59,22 +53,13 @@ impl windows_core::RuntimeType for IVpnChannel2 { #[repr(C)] pub struct IVpnChannel2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub StartWithMainTransport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, bool, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartWithMainTransport: usize, - #[cfg(feature = "Foundation_Collections")] pub StartExistingTransports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartExistingTransports: usize, pub ActivityStateChange: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveActivityStateChange: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub GetVpnSendPacketBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetVpnReceivePacketBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RequestCustomPromptAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestCustomPromptAsync: usize, #[cfg(feature = "Security_Cryptography_Certificates")] pub RequestCredentialsWithCertificateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, VpnCredentialType, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Cryptography_Certificates"))] @@ -82,10 +67,7 @@ pub struct IVpnChannel2_Vtbl { pub RequestCredentialsWithOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, VpnCredentialType, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestCredentialsSimpleAsync: unsafe extern "system" fn(*mut core::ffi::c_void, VpnCredentialType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TerminateConnection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StartWithTrafficFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, bool, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartWithTrafficFilter: usize, } windows_core::imp::define_interface!(IVpnChannel4, IVpnChannel4_Vtbl, 0xd7266ede_2937_419d_9570_486aebb81803); impl windows_core::RuntimeType for IVpnChannel4 { @@ -95,10 +77,7 @@ impl windows_core::RuntimeType for IVpnChannel4 { pub struct IVpnChannel4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AddAndAssociateTransport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StartWithMultipleTransports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, bool, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartWithMultipleTransports: usize, pub ReplaceAndAssociateTransport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub StartReconnectingTransport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Networking_Sockets")] @@ -157,10 +136,7 @@ impl windows_core::RuntimeType for IVpnChannelConfiguration { pub struct IVpnChannelConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ServerServiceName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ServerHostNameList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServerHostNameList: usize, pub CustomField: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVpnChannelConfiguration2, IVpnChannelConfiguration2_Vtbl, 0xf30b574c_7824_471c_a118_63dbc93ae4c7); @@ -170,10 +146,7 @@ impl windows_core::RuntimeType for IVpnChannelConfiguration2 { #[repr(C)] pub struct IVpnChannelConfiguration2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ServerUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServerUris: usize, } windows_core::imp::define_interface!(IVpnChannelStatics, IVpnChannelStatics_Vtbl, 0x88eb062d_e818_4ffd_98a6_363e3736c95d); impl windows_core::RuntimeType for IVpnChannelStatics { @@ -366,14 +339,8 @@ impl windows_core::RuntimeType for IVpnCustomComboBox { #[repr(C)] pub struct IVpnCustomComboBox_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SetOptionsText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetOptionsText: usize, - #[cfg(feature = "Foundation_Collections")] pub OptionsText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - OptionsText: usize, pub Selected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVpnCustomEditBox, IVpnCustomEditBox_Vtbl, 0x3002d9a0_cfbf_4c0b_8f3c_66f503c20b39); @@ -679,10 +646,7 @@ impl windows_core::RuntimeType for IVpnCustomPromptOptionSelector { #[repr(C)] pub struct IVpnCustomPromptOptionSelector_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Options: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Options: usize, pub SelectedIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IVpnCustomPromptText, IVpnCustomPromptText_Vtbl, 0x3bc8bdee_3a42_49a3_abdd_07b2edea752d); @@ -725,10 +689,7 @@ impl windows_core::RuntimeType for IVpnDomainNameAssignment { #[repr(C)] pub struct IVpnDomainNameAssignment_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DomainNameList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DomainNameList: usize, pub SetProxyAutoConfigurationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProxyAutoConfigurationUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -743,14 +704,8 @@ pub struct IVpnDomainNameInfo_Vtbl { pub DomainName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDomainNameType: unsafe extern "system" fn(*mut core::ffi::c_void, VpnDomainNameType) -> windows_core::HRESULT, pub DomainNameType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VpnDomainNameType) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DnsServers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DnsServers: usize, - #[cfg(feature = "Foundation_Collections")] pub WebProxyServers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WebProxyServers: usize, } windows_core::imp::define_interface!(IVpnDomainNameInfo2, IVpnDomainNameInfo2_Vtbl, 0xab871151_6c53_4828_9883_d886de104407); impl windows_core::RuntimeType for IVpnDomainNameInfo2 { @@ -759,10 +714,7 @@ impl windows_core::RuntimeType for IVpnDomainNameInfo2 { #[repr(C)] pub struct IVpnDomainNameInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub WebProxyUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WebProxyUris: usize, } windows_core::imp::define_interface!(IVpnDomainNameInfoFactory, IVpnDomainNameInfoFactory_Vtbl, 0x2507bb75_028f_4688_8d3a_c4531df37da8); impl windows_core::RuntimeType for IVpnDomainNameInfoFactory { @@ -770,11 +722,10 @@ impl windows_core::RuntimeType for IVpnDomainNameInfoFactory { } windows_core::imp::interface_hierarchy!(IVpnDomainNameInfoFactory, windows_core::IUnknown, windows_core::IInspectable); impl IVpnDomainNameInfoFactory { - #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnDomainNameInfo(&self, name: &windows_core::HSTRING, nametype: VpnDomainNameType, dnsserverlist: P2, proxyserverlist: P3) -> windows_core::Result where - P2: windows_core::Param>, - P3: windows_core::Param>, + P2: windows_core::Param>, + P3: windows_core::Param>, { let this = self; unsafe { @@ -783,15 +734,12 @@ impl IVpnDomainNameInfoFactory { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IVpnDomainNameInfoFactory { const NAME: &'static str = "Windows.Networking.Vpn.IVpnDomainNameInfoFactory"; } -#[cfg(feature = "Foundation_Collections")] pub trait IVpnDomainNameInfoFactory_Impl: windows_core::IUnknownImpl { - fn CreateVpnDomainNameInfo(&self, name: &windows_core::HSTRING, nameType: VpnDomainNameType, dnsServerList: windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>, proxyServerList: windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result; + fn CreateVpnDomainNameInfo(&self, name: &windows_core::HSTRING, nameType: VpnDomainNameType, dnsServerList: windows_core::Ref<'_, windows_collections::IIterable>, proxyServerList: windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IVpnDomainNameInfoFactory_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateVpnDomainNameInfo(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, nametype: VpnDomainNameType, dnsserverlist: *mut core::ffi::c_void, proxyserverlist: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -819,10 +767,7 @@ impl IVpnDomainNameInfoFactory_Vtbl { #[repr(C)] pub struct IVpnDomainNameInfoFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateVpnDomainNameInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, VpnDomainNameType, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateVpnDomainNameInfo: usize, } windows_core::imp::define_interface!(IVpnForegroundActivatedEventArgs, IVpnForegroundActivatedEventArgs_Vtbl, 0x85b465b0_cadb_4d70_ac92_543a24dc9ebc); impl windows_core::RuntimeType for IVpnForegroundActivatedEventArgs { @@ -919,10 +864,7 @@ pub struct IVpnManagementAgent_Vtbl { pub AddProfileFromObjectAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UpdateProfileFromXmlAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UpdateProfileFromObjectAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetProfilesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetProfilesAsync: usize, pub DeleteProfileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ConnectProfileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Security_Credentials")] @@ -938,14 +880,8 @@ impl windows_core::RuntimeType for IVpnNamespaceAssignment { #[repr(C)] pub struct IVpnNamespaceAssignment_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SetNamespaceList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetNamespaceList: usize, - #[cfg(feature = "Foundation_Collections")] pub NamespaceList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NamespaceList: usize, pub SetProxyAutoConfigUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProxyAutoConfigUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -958,22 +894,10 @@ pub struct IVpnNamespaceInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SetNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Namespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetDnsServers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetDnsServers: usize, - #[cfg(feature = "Foundation_Collections")] pub DnsServers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DnsServers: usize, - #[cfg(feature = "Foundation_Collections")] pub SetWebProxyServers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetWebProxyServers: usize, - #[cfg(feature = "Foundation_Collections")] pub WebProxyServers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WebProxyServers: usize, } windows_core::imp::define_interface!(IVpnNamespaceInfoFactory, IVpnNamespaceInfoFactory_Vtbl, 0xcb3e951a_b0ce_442b_acbb_5f99b202c31c); impl windows_core::RuntimeType for IVpnNamespaceInfoFactory { @@ -981,11 +905,10 @@ impl windows_core::RuntimeType for IVpnNamespaceInfoFactory { } windows_core::imp::interface_hierarchy!(IVpnNamespaceInfoFactory, windows_core::IUnknown, windows_core::IInspectable); impl IVpnNamespaceInfoFactory { - #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnNamespaceInfo(&self, name: &windows_core::HSTRING, dnsserverlist: P1, proxyserverlist: P2) -> windows_core::Result where - P1: windows_core::Param>, - P2: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param>, { let this = self; unsafe { @@ -994,15 +917,12 @@ impl IVpnNamespaceInfoFactory { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IVpnNamespaceInfoFactory { const NAME: &'static str = "Windows.Networking.Vpn.IVpnNamespaceInfoFactory"; } -#[cfg(feature = "Foundation_Collections")] pub trait IVpnNamespaceInfoFactory_Impl: windows_core::IUnknownImpl { - fn CreateVpnNamespaceInfo(&self, name: &windows_core::HSTRING, dnsServerList: windows_core::Ref<'_, super::super::Foundation::Collections::IVector>, proxyServerList: windows_core::Ref<'_, super::super::Foundation::Collections::IVector>) -> windows_core::Result; + fn CreateVpnNamespaceInfo(&self, name: &windows_core::HSTRING, dnsServerList: windows_core::Ref<'_, windows_collections::IVector>, proxyServerList: windows_core::Ref<'_, windows_collections::IVector>) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IVpnNamespaceInfoFactory_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateVpnNamespaceInfo(this: *mut core::ffi::c_void, name: *mut core::ffi::c_void, dnsserverlist: *mut core::ffi::c_void, proxyserverlist: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1030,10 +950,7 @@ impl IVpnNamespaceInfoFactory_Vtbl { #[repr(C)] pub struct IVpnNamespaceInfoFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateVpnNamespaceInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateVpnNamespaceInfo: usize, } windows_core::imp::define_interface!(IVpnNativeProfile, IVpnNativeProfile_Vtbl, 0xa4aee29e_6417_4333_9842_f0a66db69802); impl windows_core::RuntimeType for IVpnNativeProfile { @@ -1042,10 +959,7 @@ impl windows_core::RuntimeType for IVpnNativeProfile { #[repr(C)] pub struct IVpnNativeProfile_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Servers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Servers: usize, pub RoutingPolicyType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VpnRoutingPolicyType) -> windows_core::HRESULT, pub SetRoutingPolicyType: unsafe extern "system" fn(*mut core::ffi::c_void, VpnRoutingPolicyType) -> windows_core::HRESULT, pub NativeProtocolType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VpnNativeProtocolType) -> windows_core::HRESULT, @@ -1155,13 +1069,10 @@ pub struct IVpnPacketBufferFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateVpnPacketBuffer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IVpnPacketBufferList, IVpnPacketBufferList_Vtbl, 0xc2f891fc_4d5c_4a63_b70d_4e307eacce77); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IVpnPacketBufferList { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IVpnPacketBufferList_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -1174,13 +1085,10 @@ pub struct IVpnPacketBufferList_Vtbl { pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VpnPacketBufferStatus) -> windows_core::HRESULT, pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IVpnPacketBufferList2, IVpnPacketBufferList2_Vtbl, 0x3e7acfe5_ea1e_482a_8d98_c065f57d89ea); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IVpnPacketBufferList2 { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IVpnPacketBufferList2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -1233,7 +1141,6 @@ impl IVpnPlugIn { let this = self; unsafe { (windows_core::Interface::vtable(this).GetKeepAlivePayload)(windows_core::Interface::as_raw(this), channel.param().abi(), keepalivepacket as *mut _ as _).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Encapsulate(&self, channel: P0, packets: P1, encapulatedpackets: P2) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1243,7 +1150,6 @@ impl IVpnPlugIn { let this = self; unsafe { (windows_core::Interface::vtable(this).Encapsulate)(windows_core::Interface::as_raw(this), channel.param().abi(), packets.param().abi(), encapulatedpackets.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Decapsulate(&self, channel: P0, encapbuffer: P1, decapsulatedpackets: P2, controlpacketstosend: P3) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1255,11 +1161,9 @@ impl IVpnPlugIn { unsafe { (windows_core::Interface::vtable(this).Decapsulate)(windows_core::Interface::as_raw(this), channel.param().abi(), encapbuffer.param().abi(), decapsulatedpackets.param().abi(), controlpacketstosend.param().abi()).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IVpnPlugIn { const NAME: &'static str = "Windows.Networking.Vpn.IVpnPlugIn"; } -#[cfg(feature = "Foundation_Collections")] pub trait IVpnPlugIn_Impl: windows_core::IUnknownImpl { fn Connect(&self, channel: windows_core::Ref<'_, VpnChannel>) -> windows_core::Result<()>; fn Disconnect(&self, channel: windows_core::Ref<'_, VpnChannel>) -> windows_core::Result<()>; @@ -1267,7 +1171,6 @@ pub trait IVpnPlugIn_Impl: windows_core::IUnknownImpl { fn Encapsulate(&self, channel: windows_core::Ref<'_, VpnChannel>, packets: windows_core::Ref<'_, VpnPacketBufferList>, encapulatedPackets: windows_core::Ref<'_, VpnPacketBufferList>) -> windows_core::Result<()>; fn Decapsulate(&self, channel: windows_core::Ref<'_, VpnChannel>, encapBuffer: windows_core::Ref<'_, VpnPacketBuffer>, decapsulatedPackets: windows_core::Ref<'_, VpnPacketBufferList>, controlPacketsToSend: windows_core::Ref<'_, VpnPacketBufferList>) -> windows_core::Result<()>; } -#[cfg(feature = "Foundation_Collections")] impl IVpnPlugIn_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Connect(this: *mut core::ffi::c_void, channel: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1319,14 +1222,8 @@ pub struct IVpnPlugIn_Vtbl { pub Connect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Disconnect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetKeepAlivePayload: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Encapsulate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Encapsulate: usize, - #[cfg(feature = "Foundation_Collections")] pub Decapsulate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Decapsulate: usize, } windows_core::imp::define_interface!(IVpnPlugInProfile, IVpnPlugInProfile_Vtbl, 0x0edf0da4_4f00_4589_8d7b_4bf988f6542c); impl windows_core::RuntimeType for IVpnPlugInProfile { @@ -1335,10 +1232,7 @@ impl windows_core::RuntimeType for IVpnPlugInProfile { #[repr(C)] pub struct IVpnPlugInProfile_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ServerUris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ServerUris: usize, pub CustomConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCustomConfiguration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub VpnPluginPackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1415,32 +1309,28 @@ impl IVpnProfile { let this = self; unsafe { (windows_core::Interface::vtable(this).SetProfileName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AppTriggers(&self) -> windows_core::Result> { + pub fn AppTriggers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AppTriggers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Routes(&self) -> windows_core::Result> { + pub fn Routes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Routes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DomainNameInfoList(&self) -> windows_core::Result> { + pub fn DomainNameInfoList(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DomainNameInfoList)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TrafficFilters(&self) -> windows_core::Result> { + pub fn TrafficFilters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1470,24 +1360,21 @@ impl IVpnProfile { unsafe { (windows_core::Interface::vtable(this).SetAlwaysOn)(windows_core::Interface::as_raw(this), value).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IVpnProfile { const NAME: &'static str = "Windows.Networking.Vpn.IVpnProfile"; } -#[cfg(feature = "Foundation_Collections")] pub trait IVpnProfile_Impl: windows_core::IUnknownImpl { fn ProfileName(&self) -> windows_core::Result; fn SetProfileName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; - fn AppTriggers(&self) -> windows_core::Result>; - fn Routes(&self) -> windows_core::Result>; - fn DomainNameInfoList(&self) -> windows_core::Result>; - fn TrafficFilters(&self) -> windows_core::Result>; + fn AppTriggers(&self) -> windows_core::Result>; + fn Routes(&self) -> windows_core::Result>; + fn DomainNameInfoList(&self) -> windows_core::Result>; + fn TrafficFilters(&self) -> windows_core::Result>; fn RememberCredentials(&self) -> windows_core::Result; fn SetRememberCredentials(&self, value: bool) -> windows_core::Result<()>; fn AlwaysOn(&self) -> windows_core::Result; fn SetAlwaysOn(&self, value: bool) -> windows_core::Result<()>; } -#[cfg(feature = "Foundation_Collections")] impl IVpnProfile_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn ProfileName(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1620,22 +1507,10 @@ pub struct IVpnProfile_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ProfileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetProfileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AppTriggers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppTriggers: usize, - #[cfg(feature = "Foundation_Collections")] pub Routes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Routes: usize, - #[cfg(feature = "Foundation_Collections")] pub DomainNameInfoList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DomainNameInfoList: usize, - #[cfg(feature = "Foundation_Collections")] pub TrafficFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TrafficFilters: usize, pub RememberCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetRememberCredentials: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub AlwaysOn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -1660,38 +1535,14 @@ impl windows_core::RuntimeType for IVpnRouteAssignment { #[repr(C)] pub struct IVpnRouteAssignment_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SetIpv4InclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetIpv4InclusionRoutes: usize, - #[cfg(feature = "Foundation_Collections")] pub SetIpv6InclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetIpv6InclusionRoutes: usize, - #[cfg(feature = "Foundation_Collections")] pub Ipv4InclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Ipv4InclusionRoutes: usize, - #[cfg(feature = "Foundation_Collections")] pub Ipv6InclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Ipv6InclusionRoutes: usize, - #[cfg(feature = "Foundation_Collections")] pub SetIpv4ExclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetIpv4ExclusionRoutes: usize, - #[cfg(feature = "Foundation_Collections")] pub SetIpv6ExclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetIpv6ExclusionRoutes: usize, - #[cfg(feature = "Foundation_Collections")] pub Ipv4ExclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Ipv4ExclusionRoutes: usize, - #[cfg(feature = "Foundation_Collections")] pub Ipv6ExclusionRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Ipv6ExclusionRoutes: usize, pub SetExcludeLocalSubnets: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub ExcludeLocalSubnets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } @@ -1765,28 +1616,13 @@ pub struct IVpnTrafficFilter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AppId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAppId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AppClaims: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppClaims: usize, pub Protocol: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VpnIPProtocol) -> windows_core::HRESULT, pub SetProtocol: unsafe extern "system" fn(*mut core::ffi::c_void, VpnIPProtocol) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub LocalPortRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LocalPortRanges: usize, - #[cfg(feature = "Foundation_Collections")] pub RemotePortRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RemotePortRanges: usize, - #[cfg(feature = "Foundation_Collections")] pub LocalAddressRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LocalAddressRanges: usize, - #[cfg(feature = "Foundation_Collections")] pub RemoteAddressRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RemoteAddressRanges: usize, pub RoutingPolicyType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VpnRoutingPolicyType) -> windows_core::HRESULT, pub SetRoutingPolicyType: unsafe extern "system" fn(*mut core::ffi::c_void, VpnRoutingPolicyType) -> windows_core::HRESULT, } @@ -1797,10 +1633,7 @@ impl windows_core::RuntimeType for IVpnTrafficFilterAssignment { #[repr(C)] pub struct IVpnTrafficFilterAssignment_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub TrafficFilterList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TrafficFilterList: usize, pub AllowOutbound: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetAllowOutbound: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub AllowInbound: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -1908,11 +1741,10 @@ impl VpnChannel { let this = self; unsafe { (windows_core::Interface::vtable(this).AssociateTransport)(windows_core::Interface::as_raw(this), mainoutertunneltransport.param().abi(), optionaloutertunneltransport.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Start(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, routescope: P3, namespacescope: P4, mtusize: u32, maxframesize: u32, optimizeforlowcostnetwork: bool, mainoutertunneltransport: P8, optionaloutertunneltransport: P9) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, @@ -1994,10 +1826,9 @@ impl VpnChannel { (windows_core::Interface::vtable(this).SystemHealth)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestCustomPrompt(&self, customprompt: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).RequestCustomPrompt)(windows_core::Interface::as_raw(this), customprompt.param().abi()).ok() } @@ -2013,11 +1844,10 @@ impl VpnChannel { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowedSslTlsVersions)(windows_core::Interface::as_raw(this), tunneltransport.param().abi(), usetls12).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn StartWithMainTransport(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, assignedroutes: P3, assigneddomainname: P4, mtusize: u32, maxframesize: u32, reserved: bool, mainoutertunneltransport: P8) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, @@ -2026,11 +1856,10 @@ impl VpnChannel { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartWithMainTransport)(windows_core::Interface::as_raw(this), assignedclientipv4list.param().abi(), assignedclientipv6list.param().abi(), vpninterfaceid.param().abi(), assignedroutes.param().abi(), assigneddomainname.param().abi(), mtusize, maxframesize, reserved, mainoutertunneltransport.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn StartExistingTransports(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, assignedroutes: P3, assigneddomainname: P4, mtusize: u32, maxframesize: u32, reserved: bool) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, @@ -2066,10 +1895,9 @@ impl VpnChannel { (windows_core::Interface::vtable(this).GetVpnReceivePacketBuffer)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestCustomPromptAsync(&self, custompromptelement: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2106,11 +1934,10 @@ impl VpnChannel { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).TerminateConnection)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(message)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn StartWithTrafficFilter(&self, assignedclientipv4list: P0, assignedclientipv6list: P1, vpninterfaceid: P2, assignedroutes: P3, assignednamespace: P4, mtusize: u32, maxframesize: u32, reserved: bool, mainoutertunneltransport: P8, optionaloutertunneltransport: P9, assignedtrafficfilters: P10) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, @@ -2129,15 +1956,14 @@ impl VpnChannel { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).AddAndAssociateTransport)(windows_core::Interface::as_raw(this), transport.param().abi(), context.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn StartWithMultipleTransports(&self, assignedclientipv4addresses: P0, assignedclientipv6addresses: P1, vpninterfaceid: P2, assignedroutes: P3, assignednamespace: P4, mtusize: u32, maxframesize: u32, reserved: bool, transports: P8, assignedtrafficfilters: P9) -> windows_core::Result<()> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, P3: windows_core::Param, P4: windows_core::Param, - P8: windows_core::Param>, + P8: windows_core::Param>, P9: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -2309,8 +2135,7 @@ impl VpnChannelConfiguration { (windows_core::Interface::vtable(this).ServerServiceName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServerHostNameList(&self) -> windows_core::Result> { + pub fn ServerHostNameList(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2324,8 +2149,7 @@ impl VpnChannelConfiguration { (windows_core::Interface::vtable(this).CustomField)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ServerUris(&self) -> windows_core::Result> { + pub fn ServerUris(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2549,16 +2373,14 @@ impl VpnCustomComboBox { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] pub fn SetOptionsText(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetOptionsText)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn OptionsText(&self) -> windows_core::Result> { + pub fn OptionsText(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2888,8 +2710,7 @@ impl VpnCustomPromptOptionSelector { (windows_core::Interface::vtable(this).Emphasized)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Options(&self) -> windows_core::Result> { + pub fn Options(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3169,8 +2990,7 @@ impl VpnDomainNameAssignment { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn DomainNameList(&self) -> windows_core::Result> { + pub fn DomainNameList(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3235,35 +3055,31 @@ impl VpnDomainNameInfo { (windows_core::Interface::vtable(this).DomainNameType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DnsServers(&self) -> windows_core::Result> { + pub fn DnsServers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DnsServers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn WebProxyServers(&self) -> windows_core::Result> { + pub fn WebProxyServers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WebProxyServers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn WebProxyUris(&self) -> windows_core::Result> { + pub fn WebProxyUris(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WebProxyUris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnDomainNameInfo(name: &windows_core::HSTRING, nametype: VpnDomainNameType, dnsserverlist: P2, proxyserverlist: P3) -> windows_core::Result where - P2: windows_core::Param>, - P3: windows_core::Param>, + P2: windows_core::Param>, + P3: windows_core::Param>, { Self::IVpnDomainNameInfoFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3503,8 +3319,7 @@ impl VpnManagementAgent { (windows_core::Interface::vtable(this).UpdateProfileFromObjectAsync)(windows_core::Interface::as_raw(this), profile.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetProfilesAsync(&self) -> windows_core::Result>> { + pub fn GetProfilesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3623,16 +3438,14 @@ impl VpnNamespaceAssignment { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] pub fn SetNamespaceList(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetNamespaceList)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn NamespaceList(&self) -> windows_core::Result> { + pub fn NamespaceList(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3683,43 +3496,38 @@ impl VpnNamespaceInfo { (windows_core::Interface::vtable(this).Namespace)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetDnsServers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDnsServers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn DnsServers(&self) -> windows_core::Result> { + pub fn DnsServers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DnsServers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetWebProxyServers(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetWebProxyServers)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn WebProxyServers(&self) -> windows_core::Result> { + pub fn WebProxyServers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WebProxyServers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateVpnNamespaceInfo(name: &windows_core::HSTRING, dnsserverlist: P1, proxyserverlist: P2) -> windows_core::Result where - P1: windows_core::Param>, - P2: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param>, { Self::IVpnNamespaceInfoFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3756,8 +3564,7 @@ impl VpnNativeProfile { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Servers(&self) -> windows_core::Result> { + pub fn Servers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3848,32 +3655,28 @@ impl VpnNativeProfile { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProfileName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AppTriggers(&self) -> windows_core::Result> { + pub fn AppTriggers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AppTriggers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Routes(&self) -> windows_core::Result> { + pub fn Routes(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Routes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DomainNameInfoList(&self) -> windows_core::Result> { + pub fn DomainNameInfoList(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DomainNameInfoList)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TrafficFilters(&self) -> windows_core::Result> { + pub fn TrafficFilters(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4012,18 +3815,14 @@ impl windows_core::RuntimeName for VpnPacketBuffer { } unsafe impl Send for VpnPacketBuffer {} unsafe impl Sync for VpnPacketBuffer {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct VpnPacketBufferList(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(VpnPacketBufferList, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(VpnPacketBufferList, super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(VpnPacketBufferList, windows_collections::IIterable); impl VpnPacketBufferList { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -4080,35 +3879,28 @@ impl VpnPacketBufferList { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for VpnPacketBufferList { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for VpnPacketBufferList { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for VpnPacketBufferList { const NAME: &'static str = "Windows.Networking.Vpn.VpnPacketBufferList"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for VpnPacketBufferList {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for VpnPacketBufferList {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for VpnPacketBufferList { type Item = VpnPacketBuffer; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &VpnPacketBufferList { type Item = VpnPacketBuffer; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -4180,8 +3972,7 @@ impl VpnPlugInProfile { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn ServerUris(&self) -> windows_core::Result> { + pub fn ServerUris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4239,32 +4030,28 @@ impl VpnPlugInProfile { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProfileName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AppTriggers(&self) -> windows_core::Result> { + pub fn AppTriggers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AppTriggers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Routes(&self) -> windows_core::Result> { + pub fn Routes(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Routes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DomainNameInfoList(&self) -> windows_core::Result> { + pub fn DomainNameInfoList(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DomainNameInfoList)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TrafficFilters(&self) -> windows_core::Result> { + pub fn TrafficFilters(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4375,64 +4162,56 @@ impl VpnRouteAssignment { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] pub fn SetIpv4InclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIpv4InclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn SetIpv6InclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIpv6InclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Ipv4InclusionRoutes(&self) -> windows_core::Result> { + pub fn Ipv4InclusionRoutes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Ipv4InclusionRoutes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Ipv6InclusionRoutes(&self) -> windows_core::Result> { + pub fn Ipv6InclusionRoutes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Ipv6InclusionRoutes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetIpv4ExclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIpv4ExclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn SetIpv6ExclusionRoutes(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIpv6ExclusionRoutes)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Ipv4ExclusionRoutes(&self) -> windows_core::Result> { + pub fn Ipv4ExclusionRoutes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Ipv4ExclusionRoutes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Ipv6ExclusionRoutes(&self) -> windows_core::Result> { + pub fn Ipv6ExclusionRoutes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4521,8 +4300,7 @@ impl VpnTrafficFilter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAppId)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AppClaims(&self) -> windows_core::Result> { + pub fn AppClaims(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4540,32 +4318,28 @@ impl VpnTrafficFilter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetProtocol)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn LocalPortRanges(&self) -> windows_core::Result> { + pub fn LocalPortRanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).LocalPortRanges)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RemotePortRanges(&self) -> windows_core::Result> { + pub fn RemotePortRanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RemotePortRanges)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn LocalAddressRanges(&self) -> windows_core::Result> { + pub fn LocalAddressRanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).LocalAddressRanges)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RemoteAddressRanges(&self) -> windows_core::Result> { + pub fn RemoteAddressRanges(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4621,8 +4395,7 @@ impl VpnTrafficFilterAssignment { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn TrafficFilterList(&self) -> windows_core::Result> { + pub fn TrafficFilterList(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs b/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs index db2d0b2c4df..b1c57ebf2af 100644 --- a/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/XboxLive/mod.rs @@ -105,10 +105,7 @@ pub struct IXboxLiveEndpointPairTemplate_Vtbl { pub InitiatorBoundPortRangeUpper: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub AcceptorBoundPortRangeLower: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, pub AcceptorBoundPortRangeUpper: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u16) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub EndpointPairs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EndpointPairs: usize, } windows_core::imp::define_interface!(IXboxLiveEndpointPairTemplateStatics, IXboxLiveEndpointPairTemplateStatics_Vtbl, 0x1e13137b_737b_4a23_bc64_0870f75655ba); impl windows_core::RuntimeType for IXboxLiveEndpointPairTemplateStatics { @@ -118,10 +115,7 @@ impl windows_core::RuntimeType for IXboxLiveEndpointPairTemplateStatics { pub struct IXboxLiveEndpointPairTemplateStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetTemplateByName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Templates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Templates: usize, } windows_core::imp::define_interface!(IXboxLiveInboundEndpointPairCreatedEventArgs, IXboxLiveInboundEndpointPairCreatedEventArgs_Vtbl, 0xdc183b62_22ba_48d2_80de_c23968bd198b); impl windows_core::RuntimeType for IXboxLiveInboundEndpointPairCreatedEventArgs { @@ -140,24 +134,12 @@ impl windows_core::RuntimeType for IXboxLiveQualityOfServiceMeasurement { pub struct IXboxLiveQualityOfServiceMeasurement_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub MeasureAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetMetricResultsForDevice: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMetricResultsForDevice: usize, - #[cfg(feature = "Foundation_Collections")] pub GetMetricResultsForMetric: unsafe extern "system" fn(*mut core::ffi::c_void, XboxLiveQualityOfServiceMetric, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetMetricResultsForMetric: usize, pub GetMetricResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, XboxLiveQualityOfServiceMetric, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPrivatePayloadResult: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Metrics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Metrics: usize, - #[cfg(feature = "Foundation_Collections")] pub DeviceAddresses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeviceAddresses: usize, pub ShouldRequestPrivatePayloads: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetShouldRequestPrivatePayloads: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub TimeoutInMilliseconds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -165,14 +147,8 @@ pub struct IXboxLiveQualityOfServiceMeasurement_Vtbl { pub NumberOfProbesToAttempt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetNumberOfProbesToAttempt: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub NumberOfResultsPending: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub MetricResults: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MetricResults: usize, - #[cfg(feature = "Foundation_Collections")] pub PrivatePayloadResults: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PrivatePayloadResults: usize, } windows_core::imp::define_interface!(IXboxLiveQualityOfServiceMeasurementStatics, IXboxLiveQualityOfServiceMeasurementStatics_Vtbl, 0x6e352dca_23cf_440a_b077_5e30857a8234); impl windows_core::RuntimeType for IXboxLiveQualityOfServiceMeasurementStatics { @@ -724,8 +700,7 @@ impl XboxLiveEndpointPairTemplate { (windows_core::Interface::vtable(this).AcceptorBoundPortRangeUpper)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn EndpointPairs(&self) -> windows_core::Result> { + pub fn EndpointPairs(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -738,8 +713,7 @@ impl XboxLiveEndpointPairTemplate { (windows_core::Interface::vtable(this).GetTemplateByName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Templates() -> windows_core::Result> { + pub fn Templates() -> windows_core::Result> { Self::IXboxLiveEndpointPairTemplateStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Templates)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -820,8 +794,7 @@ impl XboxLiveQualityOfServiceMeasurement { (windows_core::Interface::vtable(this).MeasureAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMetricResultsForDevice(&self, deviceaddress: P0) -> windows_core::Result> + pub fn GetMetricResultsForDevice(&self, deviceaddress: P0) -> windows_core::Result> where P0: windows_core::Param, { @@ -831,8 +804,7 @@ impl XboxLiveQualityOfServiceMeasurement { (windows_core::Interface::vtable(this).GetMetricResultsForDevice)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetMetricResultsForMetric(&self, metric: XboxLiveQualityOfServiceMetric) -> windows_core::Result> { + pub fn GetMetricResultsForMetric(&self, metric: XboxLiveQualityOfServiceMetric) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -859,16 +831,14 @@ impl XboxLiveQualityOfServiceMeasurement { (windows_core::Interface::vtable(this).GetPrivatePayloadResult)(windows_core::Interface::as_raw(this), deviceaddress.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Metrics(&self) -> windows_core::Result> { + pub fn Metrics(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Metrics)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeviceAddresses(&self) -> windows_core::Result> { + pub fn DeviceAddresses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -915,16 +885,14 @@ impl XboxLiveQualityOfServiceMeasurement { (windows_core::Interface::vtable(this).NumberOfResultsPending)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn MetricResults(&self) -> windows_core::Result> { + pub fn MetricResults(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).MetricResults)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PrivatePayloadResults(&self) -> windows_core::Result> { + pub fn PrivatePayloadResults(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs index e12516f2c90..9ceb64dcecc 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/Surfaces/mod.rs @@ -90,17 +90,17 @@ impl windows_core::RuntimeType for ISpatialSurfaceMeshOptionsStatics { #[repr(C)] pub struct ISpatialSurfaceMeshOptionsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] + #[cfg(feature = "Graphics_DirectX")] pub SupportedVertexPositionFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX")))] + #[cfg(not(feature = "Graphics_DirectX"))] SupportedVertexPositionFormats: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] + #[cfg(feature = "Graphics_DirectX")] pub SupportedTriangleIndexFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX")))] + #[cfg(not(feature = "Graphics_DirectX"))] SupportedTriangleIndexFormats: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] + #[cfg(feature = "Graphics_DirectX")] pub SupportedVertexNormalFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_DirectX")))] + #[cfg(not(feature = "Graphics_DirectX"))] SupportedVertexNormalFormats: usize, } windows_core::imp::define_interface!(ISpatialSurfaceObserver, ISpatialSurfaceObserver_Vtbl, 0x10b69819_ddca_3483_ac3a_748fe8c86df5); @@ -110,15 +110,9 @@ impl windows_core::RuntimeType for ISpatialSurfaceObserver { #[repr(C)] pub struct ISpatialSurfaceObserver_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetObservedSurfaces: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetObservedSurfaces: usize, pub SetBoundingVolume: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetBoundingVolumes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetBoundingVolumes: usize, pub ObservedSurfacesChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveObservedSurfacesChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -371,22 +365,22 @@ impl SpatialSurfaceMeshOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIncludeVertexNormals)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] - pub fn SupportedVertexPositionFormats() -> windows_core::Result> { + #[cfg(feature = "Graphics_DirectX")] + pub fn SupportedVertexPositionFormats() -> windows_core::Result> { Self::ISpatialSurfaceMeshOptionsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedVertexPositionFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] - pub fn SupportedTriangleIndexFormats() -> windows_core::Result> { + #[cfg(feature = "Graphics_DirectX")] + pub fn SupportedTriangleIndexFormats() -> windows_core::Result> { Self::ISpatialSurfaceMeshOptionsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedTriangleIndexFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_DirectX"))] - pub fn SupportedVertexNormalFormats() -> windows_core::Result> { + #[cfg(feature = "Graphics_DirectX")] + pub fn SupportedVertexNormalFormats() -> windows_core::Result> { Self::ISpatialSurfaceMeshOptionsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedVertexNormalFormats)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -421,8 +415,7 @@ impl SpatialSurfaceObserver { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetObservedSurfaces(&self) -> windows_core::Result> { + pub fn GetObservedSurfaces(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -436,10 +429,9 @@ impl SpatialSurfaceObserver { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBoundingVolume)(windows_core::Interface::as_raw(this), bounds.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn SetBoundingVolumes(&self, bounds: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBoundingVolumes)(windows_core::Interface::as_raw(this), bounds.param().abi()).ok() } diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs index 9d51816744e..8f31f5f7926 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs @@ -102,10 +102,7 @@ impl windows_core::RuntimeType for ISpatialAnchorStore { #[repr(C)] pub struct ISpatialAnchorStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAllSavedAnchors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllSavedAnchors: usize, pub TrySave: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub Remove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -120,13 +117,13 @@ impl windows_core::RuntimeType for ISpatialAnchorTransferManagerStatics { #[repr(C)] pub struct ISpatialAnchorTransferManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub TryImportAnchorsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] TryImportAnchorsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub TryExportAnchorsAsync: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] TryExportAnchorsAsync: usize, pub RequestAccessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -683,8 +680,7 @@ unsafe impl Sync for SpatialAnchorRawCoordinateSystemAdjustedEventArgs {} pub struct SpatialAnchorStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SpatialAnchorStore, windows_core::IUnknown, windows_core::IInspectable); impl SpatialAnchorStore { - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllSavedAnchors(&self) -> windows_core::Result> { + pub fn GetAllSavedAnchors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -726,8 +722,8 @@ unsafe impl Sync for SpatialAnchorStore {} pub struct SpatialAnchorTransferManager; #[cfg(feature = "deprecated")] impl SpatialAnchorTransferManager { - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn TryImportAnchorsAsync(stream: P0) -> windows_core::Result>> + #[cfg(feature = "Storage_Streams")] + pub fn TryImportAnchorsAsync(stream: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -736,10 +732,10 @@ impl SpatialAnchorTransferManager { (windows_core::Interface::vtable(this).TryImportAnchorsAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn TryExportAnchorsAsync(anchors: P0, stream: P1) -> windows_core::Result> where - P0: windows_core::Param>>, + P0: windows_core::Param>>, P1: windows_core::Param, { Self::ISpatialAnchorTransferManagerStatics(|this| unsafe { diff --git a/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs b/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs index d0aa90397bf..f43c38c851a 100644 --- a/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Management/Deployment/mod.rs @@ -60,8 +60,7 @@ unsafe impl Send for Enterprise {} unsafe impl Sync for Enterprise {} pub struct EnterpriseEnrollmentManager; impl EnterpriseEnrollmentManager { - #[cfg(feature = "Foundation_Collections")] - pub fn EnrolledEnterprises() -> windows_core::Result> { + pub fn EnrolledEnterprises() -> windows_core::Result> { Self::IEnterpriseEnrollmentManager(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EnrolledEnterprises)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -182,10 +181,7 @@ impl windows_core::RuntimeType for IEnterpriseEnrollmentManager { #[repr(C)] pub struct IEnterpriseEnrollmentManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EnrolledEnterprises: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EnrolledEnterprises: usize, pub CurrentEnterprise: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ValidateEnterprisesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestEnrollmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -210,17 +206,14 @@ pub struct IInstallationManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AddPackageAsync: 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, pub AddPackagePreloadedAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetPendingPackageInstalls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPendingPackageInstalls: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesForCurrentPublisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesForCurrentPublisher: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackages: usize, } windows_core::imp::define_interface!(IInstallationManagerStatics2, IInstallationManagerStatics2_Vtbl, 0x7c6c2cbd_fa4a_4c8e_ab97_d959452f19e5); @@ -234,13 +227,13 @@ pub struct IInstallationManagerStatics2_Vtbl { pub RemovePackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Management::Deployment::RemovalOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Management_Deployment"))] RemovePackageAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment"))] + #[cfg(feature = "Management_Deployment")] pub RegisterPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Management::Deployment::DeploymentOptions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Management_Deployment")))] + #[cfg(not(feature = "Management_Deployment"))] RegisterPackageAsync: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindPackagesByNamePublisher: 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, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindPackagesByNamePublisher: usize, } windows_core::imp::define_interface!(IPackageInstallResult, IPackageInstallResult_Vtbl, 0x33e8eed5_0f7e_4473_967c_7d6e1c0e7de1); @@ -286,22 +279,21 @@ impl InstallationManager { (windows_core::Interface::vtable(this).AddPackagePreloadedAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(title), sourcelocation.param().abi(), core::mem::transmute_copy(instanceid), core::mem::transmute_copy(offerid), license.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPendingPackageInstalls() -> windows_core::Result>> { + pub fn GetPendingPackageInstalls() -> windows_core::Result>> { Self::IInstallationManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPendingPackageInstalls)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesForCurrentPublisher() -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesForCurrentPublisher() -> windows_core::Result> { Self::IInstallationManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesForCurrentPublisher)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackages() -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackages() -> windows_core::Result> { Self::IInstallationManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -314,19 +306,19 @@ impl InstallationManager { (windows_core::Interface::vtable(this).RemovePackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefullname), removaloptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Management_Deployment"))] + #[cfg(feature = "Management_Deployment")] pub fn RegisterPackageAsync(manifesturi: P0, dependencypackageuris: P1, deploymentoptions: super::super::super::Management::Deployment::DeploymentOptions) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IInstallationManagerStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RegisterPackageAsync)(windows_core::Interface::as_raw(this), manifesturi.param().abi(), dependencypackageuris.param().abi(), deploymentoptions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindPackagesByNamePublisher(packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { + #[cfg(feature = "ApplicationModel")] + pub fn FindPackagesByNamePublisher(packagename: &windows_core::HSTRING, packagepublisher: &windows_core::HSTRING) -> windows_core::Result> { Self::IInstallationManagerStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindPackagesByNamePublisher)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagename), core::mem::transmute_copy(packagepublisher), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs b/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs index 6da21b6cf1f..acc84fee583 100644 --- a/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/Notification/Management/mod.rs @@ -18,8 +18,7 @@ impl AccessoryManager { { Self::IAccessoryManager(|this| unsafe { (windows_core::Interface::vtable(this).ProcessTriggerDetails)(windows_core::Interface::as_raw(this), pdetails.param().abi()).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn PhoneLineDetails() -> windows_core::Result> { + pub fn PhoneLineDetails() -> windows_core::Result> { Self::IAccessoryManager(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PhoneLineDetails)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -145,8 +144,7 @@ impl AccessoryManager { (windows_core::Interface::vtable(this).BatterySaverState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetApps() -> windows_core::Result> { + pub fn GetApps() -> windows_core::Result> { Self::IAccessoryManager(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetApps)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -192,8 +190,7 @@ impl AccessoryManager { pub fn RingDevice() -> windows_core::Result<()> { Self::IAccessoryManager2(|this| unsafe { (windows_core::Interface::vtable(this).RingDevice)(windows_core::Interface::as_raw(this)).ok() }) } - #[cfg(feature = "Foundation_Collections")] - pub fn SpeedDialList() -> windows_core::Result> { + pub fn SpeedDialList() -> windows_core::Result> { Self::IAccessoryManager2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SpeedDialList)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -226,15 +223,13 @@ impl AccessoryManager { (windows_core::Interface::vtable(this).VolumeInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllEmailAccounts() -> windows_core::Result> { + pub fn GetAllEmailAccounts() -> windows_core::Result> { Self::IAccessoryManager2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAllEmailAccounts)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFolders(emailaccount: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetFolders(emailaccount: &windows_core::HSTRING) -> windows_core::Result> { Self::IAccessoryManager2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFolders)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(emailaccount), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -246,10 +241,9 @@ impl AccessoryManager { pub fn DisableEmailNotificationEmailAccount(emailaccount: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IAccessoryManager2(|this| unsafe { (windows_core::Interface::vtable(this).DisableEmailNotificationEmailAccount)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(emailaccount)).ok() }) } - #[cfg(feature = "Foundation_Collections")] pub fn EnableEmailNotificationFolderFilter(emailaccount: &windows_core::HSTRING, folders: P1) -> windows_core::Result<()> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IAccessoryManager2(|this| unsafe { (windows_core::Interface::vtable(this).EnableEmailNotificationFolderFilter)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(emailaccount), folders.param().abi()).ok() }) } @@ -972,10 +966,7 @@ pub struct IAccessoryManager_Vtbl { pub RegisterAccessoryApp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetNextTriggerDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProcessTriggerDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PhoneLineDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PhoneLineDetails: usize, pub GetPhoneLineDetails: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AcceptPhoneCall: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub AcceptPhoneCallOnEndpoint: unsafe extern "system" fn(*mut core::ffi::c_void, u32, PhoneCallAudioEndpoint) -> windows_core::HRESULT, @@ -1007,10 +998,7 @@ pub struct IAccessoryManager_Vtbl { pub DoNotDisturbEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub DrivingModeEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub BatterySaverState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetApps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetApps: usize, pub EnableNotificationsForApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableNotificationsForApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsNotificationEnabledForApplication: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -1031,10 +1019,7 @@ impl windows_core::RuntimeType for IAccessoryManager2 { pub struct IAccessoryManager2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub RingDevice: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SpeedDialList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SpeedDialList: usize, pub ClearToast: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsPhonePinLocked: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IncreaseVolume: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, @@ -1042,20 +1027,11 @@ pub struct IAccessoryManager2_Vtbl { pub SetMute: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub SetRingerVibrate: unsafe extern "system" fn(*mut core::ffi::c_void, bool, bool) -> windows_core::HRESULT, pub VolumeInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAllEmailAccounts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllEmailAccounts: usize, - #[cfg(feature = "Foundation_Collections")] pub GetFolders: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFolders: usize, pub EnableEmailNotificationEmailAccount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DisableEmailNotificationEmailAccount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub EnableEmailNotificationFolderFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EnableEmailNotificationFolderFilter: usize, pub UpdateEmailReadStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAccessoryManager3, IAccessoryManager3_Vtbl, 0x81f75137_edc7_47e0_b2f7_7e577c833f7d); @@ -1394,10 +1370,7 @@ pub struct IPhoneCallDetails_Vtbl { pub EndTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, pub PhoneNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ContactName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PresetTextResponses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PresetTextResponses: usize, } windows_core::imp::define_interface!(IPhoneLineDetails, IPhoneLineDetails_Vtbl, 0x47eb32dc_33ed_49b9_995c_a296bac82b77); impl windows_core::RuntimeType for IPhoneLineDetails { @@ -1748,8 +1721,7 @@ impl PhoneCallDetails { (windows_core::Interface::vtable(this).ContactName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PresetTextResponses(&self) -> windows_core::Result> { + pub fn PresetTextResponses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs b/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs index 6111982215c..7dd85452bd7 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/Provisioning/mod.rs @@ -69,32 +69,24 @@ impl windows_core::RuntimeType for IMessagePartnerProvisioningManagerStatics { #[repr(C)] pub struct IMessagePartnerProvisioningManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ImportSmsToSystemAsync: unsafe extern "system" fn(*mut core::ffi::c_void, bool, bool, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ImportSmsToSystemAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub ImportMmsToSystemAsync: unsafe extern "system" fn(*mut core::ffi::c_void, bool, bool, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::DateTime, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ImportMmsToSystemAsync: usize, } pub struct MessagePartnerProvisioningManager; impl MessagePartnerProvisioningManager { - #[cfg(feature = "Foundation_Collections")] pub fn ImportSmsToSystemAsync(incoming: bool, read: bool, body: &windows_core::HSTRING, sender: &windows_core::HSTRING, recipients: P4, deliverytime: super::super::super::Foundation::DateTime) -> windows_core::Result where - P4: windows_core::Param>, + P4: windows_core::Param>, { Self::IMessagePartnerProvisioningManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ImportSmsToSystemAsync)(windows_core::Interface::as_raw(this), incoming, read, core::mem::transmute_copy(body), core::mem::transmute_copy(sender), recipients.param().abi(), deliverytime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn ImportMmsToSystemAsync(incoming: bool, read: bool, subject: &windows_core::HSTRING, sender: &windows_core::HSTRING, recipients: P4, deliverytime: super::super::super::Foundation::DateTime, attachments: P6) -> windows_core::Result where - P4: windows_core::Param>, - P6: windows_core::Param>>, + P4: windows_core::Param>, + P6: windows_core::Param>>, { Self::IMessagePartnerProvisioningManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs b/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs index 14b1183f188..77c5b9684a4 100644 --- a/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/PersonalInformation/mod.rs @@ -234,8 +234,7 @@ impl ContactInformation { (windows_core::Interface::vtable(this).DisplayPicture)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPropertiesAsync(&self) -> windows_core::Result>> { + pub fn GetPropertiesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -297,8 +296,7 @@ impl ContactQueryOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn DesiredFields(&self) -> windows_core::Result> { + pub fn DesiredFields(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -341,16 +339,14 @@ impl ContactQueryResult { (windows_core::Interface::vtable(this).GetContactCountAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetContactsAsync(&self) -> windows_core::Result>> { + pub fn GetContactsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetContactsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetContactsAsyncInRange(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { + pub fn GetContactsAsyncInRange(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -448,26 +444,23 @@ impl ContactStore { (windows_core::Interface::vtable(this).RevisionNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetChangesAsync(&self, baserevisionnumber: u64) -> windows_core::Result>> { + pub fn GetChangesAsync(&self, baserevisionnumber: u64) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetChangesAsync)(windows_core::Interface::as_raw(this), baserevisionnumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn LoadExtendedPropertiesAsync(&self) -> windows_core::Result>> { + pub fn LoadExtendedPropertiesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).LoadExtendedPropertiesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SaveExtendedPropertiesAsync(&self, data: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -655,8 +648,7 @@ impl IContactInformation { (windows_core::Interface::vtable(this).DisplayPicture)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPropertiesAsync(&self) -> windows_core::Result>> { + pub fn GetPropertiesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -680,11 +672,11 @@ impl IContactInformation { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl windows_core::RuntimeName for IContactInformation { const NAME: &'static str = "Windows.Phone.PersonalInformation.IContactInformation"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] pub trait IContactInformation_Impl: windows_core::IUnknownImpl { fn DisplayName(&self) -> windows_core::Result; fn SetDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -699,11 +691,11 @@ pub trait IContactInformation_Impl: windows_core::IUnknownImpl { fn GetDisplayPictureAsync(&self) -> windows_core::Result>; fn SetDisplayPictureAsync(&self, stream: windows_core::Ref<'_, super::super::Storage::Streams::IInputStream>) -> windows_core::Result; fn DisplayPicture(&self) -> windows_core::Result; - fn GetPropertiesAsync(&self) -> windows_core::Result>>; + fn GetPropertiesAsync(&self) -> windows_core::Result>>; fn ToVcardAsync(&self) -> windows_core::Result>; fn ToVcardWithOptionsAsync(&self, format: VCardFormat) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl IContactInformation_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn DisplayName(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -928,10 +920,7 @@ pub struct IContactInformation_Vtbl { pub DisplayPicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] DisplayPicture: usize, - #[cfg(feature = "Foundation_Collections")] pub GetPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPropertiesAsync: usize, #[cfg(feature = "Storage_Streams")] pub ToVcardAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -1021,10 +1010,7 @@ impl windows_core::RuntimeType for IContactQueryOptions { #[repr(C)] pub struct IContactQueryOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DesiredFields: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DesiredFields: usize, pub OrderBy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ContactQueryResultOrdering) -> windows_core::HRESULT, pub SetOrderBy: unsafe extern "system" fn(*mut core::ffi::c_void, ContactQueryResultOrdering) -> windows_core::HRESULT, } @@ -1036,14 +1022,8 @@ impl windows_core::RuntimeType for IContactQueryResult { pub struct IContactQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetContactCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetContactsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetContactsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetContactsAsyncInRange: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetContactsAsyncInRange: usize, pub GetCurrentQueryOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IContactStore, IContactStore_Vtbl, 0xb2cd6fef_2bfd_4fad_8552_4e698097e8eb); @@ -1060,18 +1040,9 @@ pub struct IContactStore_Vtbl { pub CreateContactQueryWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RevisionNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetChangesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetChangesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub LoadExtendedPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LoadExtendedPropertiesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub SaveExtendedPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SaveExtendedPropertiesAsync: usize, } windows_core::imp::define_interface!(IContactStore2, IContactStore2_Vtbl, 0x65f1b64f_d653_43a7_b236_b30c0f4d7269); impl windows_core::RuntimeType for IContactStore2 { @@ -1146,10 +1117,7 @@ pub struct IStoredContact_Vtbl { pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoteId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRemoteId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetExtendedPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetExtendedPropertiesAsync: usize, pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ReplaceExistingContactAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1471,8 +1439,7 @@ impl StoredContact { (windows_core::Interface::vtable(this).DisplayPicture)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPropertiesAsync(&self) -> windows_core::Result>> { + pub fn GetPropertiesAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1531,8 +1498,7 @@ impl StoredContact { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRemoteId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetExtendedPropertiesAsync(&self) -> windows_core::Result>> { + pub fn GetExtendedPropertiesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs index eaa95be0abc..1e0a562d67f 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Identity/Core/mod.rs @@ -9,14 +9,8 @@ pub struct IMicrosoftAccountMultiFactorAuthenticationManager_Vtbl { pub AddDeviceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveDeviceAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UpdateWnsChannelAsync: 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, - #[cfg(feature = "Foundation_Collections")] pub GetSessionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSessionsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetSessionsAndUnregisteredAccountsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSessionsAndUnregisteredAccountsAsync: usize, pub ApproveSessionUsingAuthSessionInfoAsync: unsafe extern "system" fn(*mut core::ffi::c_void, MicrosoftAccountMultiFactorSessionAuthenticationStatus, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ApproveSessionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, MicrosoftAccountMultiFactorSessionAuthenticationStatus, *mut core::ffi::c_void, *mut core::ffi::c_void, MicrosoftAccountMultiFactorAuthenticationType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DenySessionUsingAuthSessionInfoAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -38,10 +32,7 @@ impl windows_core::RuntimeType for IMicrosoftAccountMultiFactorGetSessionsResult #[repr(C)] pub struct IMicrosoftAccountMultiFactorGetSessionsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Sessions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Sessions: usize, pub ServiceResponse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MicrosoftAccountMultiFactorServiceResponse) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IMicrosoftAccountMultiFactorOneTimeCodedInfo, IMicrosoftAccountMultiFactorOneTimeCodedInfo_Vtbl, 0x82ba264b_d87c_4668_a976_40cfae547d08); @@ -78,14 +69,8 @@ impl windows_core::RuntimeType for IMicrosoftAccountMultiFactorUnregisteredAccou #[repr(C)] pub struct IMicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Sessions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Sessions: usize, - #[cfg(feature = "Foundation_Collections")] pub UnregisteredAccounts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UnregisteredAccounts: usize, pub ServiceResponse: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MicrosoftAccountMultiFactorServiceResponse) -> windows_core::HRESULT, } #[repr(transparent)] @@ -121,10 +106,9 @@ impl MicrosoftAccountMultiFactorAuthenticationManager { (windows_core::Interface::vtable(this).UpdateWnsChannelAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(useraccountid), core::mem::transmute_copy(channeluri), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetSessionsAsync(&self, useraccountidlist: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -132,10 +116,9 @@ impl MicrosoftAccountMultiFactorAuthenticationManager { (windows_core::Interface::vtable(this).GetSessionsAsync)(windows_core::Interface::as_raw(this), useraccountidlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetSessionsAndUnregisteredAccountsAsync(&self, useraccountidlist: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -218,8 +201,7 @@ impl windows_core::RuntimeType for MicrosoftAccountMultiFactorAuthenticationType pub struct MicrosoftAccountMultiFactorGetSessionsResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorGetSessionsResult, windows_core::IUnknown, windows_core::IInspectable); impl MicrosoftAccountMultiFactorGetSessionsResult { - #[cfg(feature = "Foundation_Collections")] - pub fn Sessions(&self) -> windows_core::Result> { + pub fn Sessions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -424,16 +406,14 @@ unsafe impl Sync for MicrosoftAccountMultiFactorSessionInfo {} pub struct MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo, windows_core::IUnknown, windows_core::IInspectable); impl MicrosoftAccountMultiFactorUnregisteredAccountsAndSessionInfo { - #[cfg(feature = "Foundation_Collections")] - pub fn Sessions(&self) -> windows_core::Result> { + pub fn Sessions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Sessions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn UnregisteredAccounts(&self) -> windows_core::Result> { + pub fn UnregisteredAccounts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs index cce2eac02f2..25a2b91b47b 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Identity/mod.rs @@ -58,8 +58,7 @@ unsafe impl Sync for EnterpriseKeyCredentialRegistrationInfo {} pub struct EnterpriseKeyCredentialRegistrationManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(EnterpriseKeyCredentialRegistrationManager, windows_core::IUnknown, windows_core::IInspectable); impl EnterpriseKeyCredentialRegistrationManager { - #[cfg(feature = "Foundation_Collections")] - pub fn GetRegistrationsAsync(&self) -> windows_core::Result>> { + pub fn GetRegistrationsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -109,10 +108,7 @@ impl windows_core::RuntimeType for IEnterpriseKeyCredentialRegistrationManager { #[repr(C)] pub struct IEnterpriseKeyCredentialRegistrationManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetRegistrationsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRegistrationsAsync: usize, } windows_core::imp::define_interface!(IEnterpriseKeyCredentialRegistrationManagerStatics, IEnterpriseKeyCredentialRegistrationManagerStatics_Vtbl, 0x77b85e9e_acf4_4bc0_bac2_40bb46efbb3f); impl windows_core::RuntimeType for IEnterpriseKeyCredentialRegistrationManagerStatics { diff --git a/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs index 283b794b4cc..1457a70d55e 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/OnlineId/mod.rs @@ -20,10 +20,7 @@ impl windows_core::RuntimeType for IOnlineIdAuthenticator { pub struct IOnlineIdAuthenticator_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AuthenticateUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AuthenticateUserAsyncAdvanced: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, CredentialPromptType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AuthenticateUserAsyncAdvanced: usize, pub SignOutUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetApplicationId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, pub ApplicationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, @@ -117,10 +114,7 @@ impl windows_core::RuntimeType for IUserIdentity { #[repr(C)] pub struct IUserIdentity_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Tickets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Tickets: usize, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SafeCustomerId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SignInName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -151,10 +145,9 @@ impl OnlineIdAuthenticator { (windows_core::Interface::vtable(this).AuthenticateUserAsync)(windows_core::Interface::as_raw(this), request.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn AuthenticateUserAsyncAdvanced(&self, requests: P0, credentialprompttype: CredentialPromptType) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -459,8 +452,7 @@ pub type UserAuthenticationOperation = super::super::super::Foundation::IAsyncOp pub struct UserIdentity(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(UserIdentity, windows_core::IUnknown, windows_core::IInspectable); impl UserIdentity { - #[cfg(feature = "Foundation_Collections")] - pub fn Tickets(&self) -> windows_core::Result> { + pub fn Tickets(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs index aeff004cda4..8fecbf879db 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/Core/mod.rs @@ -3,8 +3,8 @@ pub struct FindAllAccountsResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(FindAllAccountsResult, windows_core::IUnknown, windows_core::IInspectable); impl FindAllAccountsResult { - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] - pub fn Accounts(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Credentials")] + pub fn Accounts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -60,9 +60,9 @@ impl windows_core::RuntimeType for IFindAllAccountsResult { #[repr(C)] pub struct IFindAllAccountsResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub Accounts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] Accounts: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FindAllWebAccountsStatus) -> windows_core::HRESULT, pub ProviderError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -114,10 +114,7 @@ pub struct IWebAuthenticationAddAccountResponse_Vtbl { pub WebAccount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Credentials"))] WebAccount: usize, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IWebAuthenticationAddAccountResponseFactory, IWebAuthenticationAddAccountResponseFactory_Vtbl, 0x325f903e_77be_5365_81d9_0321cdd82195); impl windows_core::RuntimeType for IWebAuthenticationAddAccountResponseFactory { @@ -191,9 +188,9 @@ impl windows_core::RuntimeType for IWebAuthenticationCoreManagerStatics3 { #[repr(C)] pub struct IWebAuthenticationCoreManagerStatics3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub CreateWebAccountMonitor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] CreateWebAccountMonitor: usize, } windows_core::imp::define_interface!(IWebAuthenticationCoreManagerStatics4, IWebAuthenticationCoreManagerStatics4_Vtbl, 0x54e633fe_96e0_41e8_9832_1298897c2aaf); @@ -246,10 +243,7 @@ pub struct IWebAuthenticationTransferTokenRequest_Vtbl { WebAccountProvider: usize, pub TransferToken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTransferToken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub CorrelationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCorrelationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -278,10 +272,7 @@ pub struct IWebProviderError_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ErrorCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ErrorMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IWebProviderErrorFactory, IWebProviderErrorFactory_Vtbl, 0xe3c40a2d_89ef_4e37_847f_a8b9d5a32910); impl windows_core::RuntimeType for IWebProviderErrorFactory { @@ -306,10 +297,7 @@ pub struct IWebTokenRequest_Vtbl { pub Scope: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClientId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub PromptType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WebTokenRequestPromptType) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IWebTokenRequest2, IWebTokenRequest2_Vtbl, 0xd700c079_30c8_4397_9654_961c3be8b855); impl windows_core::RuntimeType for IWebTokenRequest2 { @@ -318,10 +306,7 @@ impl windows_core::RuntimeType for IWebTokenRequest2 { #[repr(C)] pub struct IWebTokenRequest2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AppProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppProperties: usize, } windows_core::imp::define_interface!(IWebTokenRequest3, IWebTokenRequest3_Vtbl, 0x5a755b51_3bb1_41a5_a63d_90bc32c7db9a); impl windows_core::RuntimeType for IWebTokenRequest3 { @@ -364,10 +349,7 @@ impl windows_core::RuntimeType for IWebTokenRequestResult { #[repr(C)] pub struct IWebTokenRequestResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ResponseData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ResponseData: usize, pub ResponseStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WebTokenRequestStatus) -> windows_core::HRESULT, pub ResponseError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub InvalidateCacheAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -385,10 +367,7 @@ pub struct IWebTokenResponse_Vtbl { pub WebAccount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Credentials"))] WebAccount: usize, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(IWebTokenResponseFactory, IWebTokenResponseFactory_Vtbl, 0xab6bf7f8_5450_4ef6_97f7_052b0431c0f0); impl windows_core::RuntimeType for IWebTokenResponseFactory { @@ -520,8 +499,7 @@ impl WebAuthenticationAddAccountResponse { (windows_core::Interface::vtable(this).WebAccount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -686,10 +664,10 @@ impl WebAuthenticationCoreManager { (windows_core::Interface::vtable(this).FindAccountProviderWithAuthorityForUserAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(webaccountproviderid), core::mem::transmute_copy(authority), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub fn CreateWebAccountMonitor(webaccounts: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IWebAuthenticationCoreManagerStatics3(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -797,8 +775,7 @@ impl WebAuthenticationTransferTokenRequest { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTransferToken)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -872,8 +849,7 @@ impl WebProviderError { (windows_core::Interface::vtable(this).ErrorMessage)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -937,16 +913,14 @@ impl WebTokenRequest { (windows_core::Interface::vtable(this).PromptType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Properties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AppProperties(&self) -> windows_core::Result> { + pub fn AppProperties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1039,8 +1013,7 @@ impl windows_core::RuntimeType for WebTokenRequestPromptType { pub struct WebTokenRequestResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WebTokenRequestResult, windows_core::IUnknown, windows_core::IInspectable); impl WebTokenRequestResult { - #[cfg(feature = "Foundation_Collections")] - pub fn ResponseData(&self) -> windows_core::Result> { + pub fn ResponseData(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1132,8 +1105,7 @@ impl WebTokenResponse { (windows_core::Interface::vtable(this).WebAccount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs index 857829fd719..cfa494db799 100644 --- a/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authentication/Web/Provider/mod.rs @@ -26,25 +26,25 @@ impl windows_core::RuntimeType for IWebAccountManagerStatics { #[repr(C)] pub struct IWebAccountManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub UpdateWebAccountPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] UpdateWebAccountPropertiesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub AddWebAccountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] AddWebAccountAsync: usize, #[cfg(feature = "Security_Credentials")] pub DeleteWebAccountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Credentials"))] DeleteWebAccountAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub FindAllProviderWebAccountsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] FindAllProviderWebAccountsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http"))] + #[cfg(feature = "Web_Http")] pub PushCookiesAsync: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Web_Http")))] + #[cfg(not(feature = "Web_Http"))] PushCookiesAsync: usize, #[cfg(feature = "Security_Credentials")] pub SetViewAsync: 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,9 +54,9 @@ pub struct IWebAccountManagerStatics_Vtbl { pub ClearViewAsync: 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, #[cfg(not(feature = "Security_Credentials"))] ClearViewAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub GetViewsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] GetViewsAsync: usize, #[cfg(all(feature = "Security_Credentials", feature = "Storage_Streams"))] pub SetWebAccountPictureAsync: 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, @@ -83,21 +83,21 @@ impl windows_core::RuntimeType for IWebAccountManagerStatics3 { #[repr(C)] pub struct IWebAccountManagerStatics3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] + #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub FindAllProviderWebAccountsForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System")))] + #[cfg(not(all(feature = "Security_Credentials", feature = "System")))] FindAllProviderWebAccountsForUserAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] + #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub AddWebAccountForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System")))] + #[cfg(not(all(feature = "Security_Credentials", feature = "System")))] AddWebAccountForUserAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] + #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub AddWebAccountWithScopeForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, WebAccountScope, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System")))] + #[cfg(not(all(feature = "Security_Credentials", feature = "System")))] AddWebAccountWithScopeForUserAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] + #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub AddWebAccountWithScopeAndMapForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, WebAccountScope, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System")))] + #[cfg(not(all(feature = "Security_Credentials", feature = "System")))] AddWebAccountWithScopeAndMapForUserAsync: usize, } windows_core::imp::define_interface!(IWebAccountManagerStatics4, IWebAccountManagerStatics4_Vtbl, 0x59ebc2d2_f7db_412f_bc3f_f2fea04430b4); @@ -120,9 +120,9 @@ impl windows_core::RuntimeType for IWebAccountMapManagerStatics { #[repr(C)] pub struct IWebAccountMapManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub AddWebAccountWithScopeAndMapAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, WebAccountScope, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] AddWebAccountWithScopeAndMapAsync: usize, #[cfg(feature = "Security_Credentials")] pub SetPerAppToPerUserAccountAsync: 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, @@ -286,9 +286,9 @@ impl windows_core::RuntimeType for IWebAccountProviderRetrieveCookiesOperation { pub struct IWebAccountProviderRetrieveCookiesOperation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Context: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http"))] + #[cfg(feature = "Web_Http")] pub Cookies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Web_Http")))] + #[cfg(not(feature = "Web_Http"))] Cookies: usize, pub SetUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Uri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -504,8 +504,7 @@ impl IWebAccountProviderTokenOperation { (windows_core::Interface::vtable(this).ProviderRequest)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProviderResponses(&self) -> windows_core::Result> { + pub fn ProviderResponses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -531,18 +530,15 @@ impl IWebAccountProviderTokenOperation { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IWebAccountProviderTokenOperation { const NAME: &'static str = "Windows.Security.Authentication.Web.Provider.IWebAccountProviderTokenOperation"; } -#[cfg(feature = "Foundation_Collections")] pub trait IWebAccountProviderTokenOperation_Impl: IWebAccountProviderOperation_Impl { fn ProviderRequest(&self) -> windows_core::Result; - fn ProviderResponses(&self) -> windows_core::Result>; + fn ProviderResponses(&self) -> windows_core::Result>; fn SetCacheExpirationTime(&self, value: &super::super::super::super::Foundation::DateTime) -> windows_core::Result<()>; fn CacheExpirationTime(&self) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IWebAccountProviderTokenOperation_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn ProviderRequest(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -605,10 +601,7 @@ impl IWebAccountProviderTokenOperation_Vtbl { pub struct IWebAccountProviderTokenOperation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ProviderRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ProviderResponses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProviderResponses: usize, pub SetCacheExpirationTime: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::super::Foundation::DateTime) -> windows_core::HRESULT, pub CacheExpirationTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::DateTime) -> windows_core::HRESULT, } @@ -674,9 +667,9 @@ impl windows_core::RuntimeType for IWebAccountScopeManagerStatics { #[repr(C)] pub struct IWebAccountScopeManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub AddWebAccountWithScopeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, WebAccountScope, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] AddWebAccountWithScopeAsync: usize, #[cfg(feature = "Security_Credentials")] pub SetScopeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, WebAccountScope, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -698,9 +691,9 @@ pub struct IWebProviderTokenRequest_Vtbl { pub ClientRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Authentication_Web_Core"))] ClientRequest: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub WebAccounts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Credentials")))] + #[cfg(not(feature = "Security_Credentials"))] WebAccounts: usize, pub WebAccountSelectionOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WebAccountSelectionOptions) -> windows_core::HRESULT, pub ApplicationCallbackUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -832,21 +825,21 @@ impl windows_core::RuntimeType for WebAccountClientViewType { } pub struct WebAccountManager; impl WebAccountManager { - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub fn UpdateWebAccountPropertiesAsync(webaccount: P0, webaccountusername: &windows_core::HSTRING, additionalproperties: P2) -> windows_core::Result where P0: windows_core::Param, - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).UpdateWebAccountPropertiesAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), core::mem::transmute_copy(webaccountusername), additionalproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub fn AddWebAccountAsync(webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P2) -> windows_core::Result> where - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -863,18 +856,18 @@ impl WebAccountManager { (windows_core::Interface::vtable(this).DeleteWebAccountAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] - pub fn FindAllProviderWebAccountsAsync() -> windows_core::Result>> { + #[cfg(feature = "Security_Credentials")] + pub fn FindAllProviderWebAccountsAsync() -> windows_core::Result>> { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllProviderWebAccountsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http"))] + #[cfg(feature = "Web_Http")] pub fn PushCookiesAsync(uri: P0, cookies: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IWebAccountManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -903,8 +896,8 @@ impl WebAccountManager { (windows_core::Interface::vtable(this).ClearViewAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), applicationcallbackuri.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] - pub fn GetViewsAsync(webaccount: P0) -> windows_core::Result>> + #[cfg(feature = "Security_Credentials")] + pub fn GetViewsAsync(webaccount: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -940,8 +933,8 @@ impl WebAccountManager { (windows_core::Interface::vtable(this).PullCookiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(uristring), core::mem::transmute_copy(callerpfn), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] - pub fn FindAllProviderWebAccountsForUserAsync(user: P0) -> windows_core::Result>> + #[cfg(all(feature = "Security_Credentials", feature = "System"))] + pub fn FindAllProviderWebAccountsForUserAsync(user: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -950,33 +943,33 @@ impl WebAccountManager { (windows_core::Interface::vtable(this).FindAllProviderWebAccountsForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] + #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub fn AddWebAccountForUserAsync(user: P0, webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P3) -> windows_core::Result> where P0: windows_core::Param, - P3: windows_core::Param>, + P3: windows_core::Param>, { Self::IWebAccountManagerStatics3(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AddWebAccountForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] + #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub fn AddWebAccountWithScopeForUserAsync(user: P0, webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P3, scope: WebAccountScope) -> windows_core::Result> where P0: windows_core::Param, - P3: windows_core::Param>, + P3: windows_core::Param>, { Self::IWebAccountManagerStatics3(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AddWebAccountWithScopeForUserAsync)(windows_core::Interface::as_raw(this), user.param().abi(), core::mem::transmute_copy(webaccountid), core::mem::transmute_copy(webaccountusername), props.param().abi(), scope, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials", feature = "System"))] + #[cfg(all(feature = "Security_Credentials", feature = "System"))] pub fn AddWebAccountWithScopeAndMapForUserAsync(user: P0, webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P3, scope: WebAccountScope, peruserwebaccountid: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, - P3: windows_core::Param>, + P3: windows_core::Param>, { Self::IWebAccountManagerStatics3(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -999,10 +992,10 @@ impl WebAccountManager { (windows_core::Interface::vtable(this).InvalidateAppCacheForAccountAsync)(windows_core::Interface::as_raw(this), webaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub fn AddWebAccountWithScopeAndMapAsync(webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P2, scope: WebAccountScope, peruserwebaccountid: &windows_core::HSTRING) -> windows_core::Result> where - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IWebAccountMapManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1039,10 +1032,10 @@ impl WebAccountManager { (windows_core::Interface::vtable(this).ClearPerUserFromPerAppAccountAsync)(windows_core::Interface::as_raw(this), perappaccount.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] + #[cfg(feature = "Security_Credentials")] pub fn AddWebAccountWithScopeAsync(webaccountid: &windows_core::HSTRING, webaccountusername: &windows_core::HSTRING, props: P2, scope: WebAccountScope) -> windows_core::Result> where - P2: windows_core::Param>, + P2: windows_core::Param>, { Self::IWebAccountScopeManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1217,8 +1210,7 @@ impl WebAccountProviderGetTokenSilentOperation { (windows_core::Interface::vtable(this).ProviderRequest)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProviderResponses(&self) -> windows_core::Result> { + pub fn ProviderResponses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1337,8 +1329,7 @@ impl WebAccountProviderRequestTokenOperation { (windows_core::Interface::vtable(this).ProviderRequest)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProviderResponses(&self) -> windows_core::Result> { + pub fn ProviderResponses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1405,8 +1396,8 @@ impl WebAccountProviderRetrieveCookiesOperation { (windows_core::Interface::vtable(this).Context)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http"))] - pub fn Cookies(&self) -> windows_core::Result> { + #[cfg(feature = "Web_Http")] + pub fn Cookies(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1613,8 +1604,8 @@ impl WebProviderTokenRequest { (windows_core::Interface::vtable(this).ClientRequest)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Credentials"))] - pub fn WebAccounts(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Credentials")] + pub fn WebAccounts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs b/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs index 240932fd4cf..6fcf164ceff 100644 --- a/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Authorization/AppCapabilityAccess/mod.rs @@ -57,21 +57,20 @@ impl AppCapability { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetDisplayMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RequestAccessForCapabilitiesAsync(capabilitynames: P0) -> windows_core::Result>> + pub fn RequestAccessForCapabilitiesAsync(capabilitynames: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IAppCapabilityStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RequestAccessForCapabilitiesAsync)(windows_core::Interface::as_raw(this), capabilitynames.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] - pub fn RequestAccessForCapabilitiesForUserAsync(user: P0, capabilitynames: P1) -> windows_core::Result>> + #[cfg(feature = "System")] + pub fn RequestAccessForCapabilitiesForUserAsync(user: P0, capabilitynames: P1) -> windows_core::Result>> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IAppCapabilityStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -186,13 +185,10 @@ impl windows_core::RuntimeType for IAppCapabilityStatics { #[repr(C)] pub struct IAppCapabilityStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RequestAccessForCapabilitiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestAccessForCapabilitiesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "System"))] + #[cfg(feature = "System")] pub RequestAccessForCapabilitiesForUserAsync: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System")))] + #[cfg(not(feature = "System"))] RequestAccessForCapabilitiesForUserAsync: usize, pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "System")] diff --git a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs index aa97f45824c..96cd6650d17 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs @@ -113,18 +113,9 @@ pub struct IPasswordVault_Vtbl { pub Add: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Remove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Retrieve: 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, - #[cfg(feature = "Foundation_Collections")] pub FindAllByResource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllByResource: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllByUserName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllByUserName: usize, - #[cfg(feature = "Foundation_Collections")] pub RetrieveAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RetrieveAll: usize, } windows_core::imp::define_interface!(IWebAccount, IWebAccount_Vtbl, 0x69473eb2_8031_49be_80bb_96cb46d99aba); impl windows_core::RuntimeType for IWebAccount { @@ -228,10 +219,7 @@ impl windows_core::RuntimeType for IWebAccount2 { pub struct IWebAccount2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, #[cfg(feature = "Storage_Streams")] pub GetPictureAsync: unsafe extern "system" fn(*mut core::ffi::c_void, WebAccountPictureSize, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -640,7 +628,7 @@ pub struct PasswordCredentialPropertyStore(windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(PasswordCredentialPropertyStore, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IPropertySet); #[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( PasswordCredentialPropertyStore , super::super::Foundation::Collections:: IIterable < super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , super::super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , super::super::Foundation::Collections:: IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); +windows_core::imp::required_hierarchy ! ( PasswordCredentialPropertyStore , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , super::super::Foundation::Collections:: IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); #[cfg(feature = "Foundation_Collections")] impl PasswordCredentialPropertyStore { pub fn new() -> windows_core::Result { @@ -650,36 +638,36 @@ impl PasswordCredentialPropertyStore { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -689,18 +677,18 @@ impl PasswordCredentialPropertyStore { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result @@ -737,16 +725,16 @@ unsafe impl Send for PasswordCredentialPropertyStore {} unsafe impl Sync for PasswordCredentialPropertyStore {} #[cfg(feature = "Foundation_Collections")] impl IntoIterator for PasswordCredentialPropertyStore { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } #[cfg(feature = "Foundation_Collections")] impl IntoIterator for &PasswordCredentialPropertyStore { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -784,24 +772,21 @@ impl PasswordVault { (windows_core::Interface::vtable(this).Retrieve)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(resource), core::mem::transmute_copy(username), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllByResource(&self, resource: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindAllByResource(&self, resource: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllByResource)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(resource), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllByUserName(&self, username: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindAllByUserName(&self, username: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllByUserName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(username), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RetrieveAll(&self) -> windows_core::Result> { + pub fn RetrieveAll(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -854,8 +839,7 @@ impl WebAccount { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs b/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs index 6cc87967db7..5e75b9b8161 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/Certificates/mod.rs @@ -3,10 +3,9 @@ pub struct Certificate(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Certificate, windows_core::IUnknown, windows_core::IInspectable); impl Certificate { - #[cfg(feature = "Foundation_Collections")] pub fn BuildChainAsync(&self, certificates: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -14,10 +13,9 @@ impl Certificate { (windows_core::Interface::vtable(this).BuildChainAsync)(windows_core::Interface::as_raw(this), certificates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn BuildChainWithParametersAsync(&self, certificates: P0, parameters: P1) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, { let this = self; @@ -97,8 +95,7 @@ impl Certificate { (windows_core::Interface::vtable(this).ValidTo)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn EnhancedKeyUsages(&self) -> windows_core::Result> { + pub fn EnhancedKeyUsages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -228,8 +225,7 @@ impl CertificateChain { (windows_core::Interface::vtable(this).ValidateWithParameters)(windows_core::Interface::as_raw(this), parameter.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCertificates(&self, includeroot: bool) -> windows_core::Result> { + pub fn GetCertificates(&self, includeroot: bool) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -511,8 +507,7 @@ impl CertificateQuery { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn EnhancedKeyUsages(&self) -> windows_core::Result> { + pub fn EnhancedKeyUsages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -814,8 +809,7 @@ impl CertificateRequestProperties { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetUseExistingKey)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SuppressedDefaults(&self) -> windows_core::Result> { + pub fn SuppressedDefaults(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -829,8 +823,7 @@ impl CertificateRequestProperties { (windows_core::Interface::vtable(this).SubjectAlternativeName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Extensions(&self) -> windows_core::Result> { + pub fn Extensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -891,15 +884,13 @@ unsafe impl Send for CertificateStore {} unsafe impl Sync for CertificateStore {} pub struct CertificateStores; impl CertificateStores { - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync() -> windows_core::Result>> { + pub fn FindAllAsync() -> windows_core::Result>> { Self::ICertificateStoresStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllWithQueryAsync(query: P0) -> windows_core::Result>> + pub fn FindAllWithQueryAsync(query: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -956,8 +947,7 @@ impl ChainBuildingParameters { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn EnhancedKeyUsages(&self) -> windows_core::Result> { + pub fn EnhancedKeyUsages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1019,8 +1009,7 @@ impl ChainBuildingParameters { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCurrentTimeValidationEnabled)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExclusiveTrustRoots(&self) -> windows_core::Result> { + pub fn ExclusiveTrustRoots(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1122,8 +1111,7 @@ impl windows_core::RuntimeType for ChainValidationResult { pub struct CmsAttachedSignature(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CmsAttachedSignature, windows_core::IUnknown, windows_core::IInspectable); impl CmsAttachedSignature { - #[cfg(feature = "Foundation_Collections")] - pub fn Certificates(&self) -> windows_core::Result> { + pub fn Certificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1137,8 +1125,7 @@ impl CmsAttachedSignature { (windows_core::Interface::vtable(this).Content)(windows_core::Interface::as_raw(this), windows_core::Array::::set_abi_len(core::mem::transmute(&mut result__)), result__.as_mut_ptr() as *mut _ as _).map(|| result__.assume_init()) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Signers(&self) -> windows_core::Result> { + pub fn Signers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1162,12 +1149,12 @@ impl CmsAttachedSignature { (windows_core::Interface::vtable(this).CreateCmsAttachedSignature)(windows_core::Interface::as_raw(this), inputblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn GenerateSignatureAsync(data: P0, signers: P1, certificates: P2) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, - P2: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param>, { Self::ICmsAttachedSignatureStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1200,16 +1187,14 @@ unsafe impl Sync for CmsAttachedSignature {} pub struct CmsDetachedSignature(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CmsDetachedSignature, windows_core::IUnknown, windows_core::IInspectable); impl CmsDetachedSignature { - #[cfg(feature = "Foundation_Collections")] - pub fn Certificates(&self) -> windows_core::Result> { + pub fn Certificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Certificates)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Signers(&self) -> windows_core::Result> { + pub fn Signers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1237,12 +1222,12 @@ impl CmsDetachedSignature { (windows_core::Interface::vtable(this).CreateCmsDetachedSignature)(windows_core::Interface::as_raw(this), inputblob.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn GenerateSignatureAsync(data: P0, signers: P1, certificates: P2) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, - P2: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param>, { Self::ICmsDetachedSignatureStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1339,8 +1324,7 @@ impl CmsTimestampInfo { (windows_core::Interface::vtable(this).SigningCertificate)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Certificates(&self) -> windows_core::Result> { + pub fn Certificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1436,14 +1420,8 @@ impl windows_core::RuntimeType for ICertificate { #[repr(C)] pub struct ICertificate_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub BuildChainAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BuildChainAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub BuildChainWithParametersAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - BuildChainWithParametersAsync: usize, pub SerialNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, pub GetHashValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, pub GetHashValueWithAlgorithm: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, @@ -1457,10 +1435,7 @@ pub struct ICertificate_Vtbl { pub IsStronglyProtected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ValidFrom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, pub ValidTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub EnhancedKeyUsages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EnhancedKeyUsages: usize, pub SetFriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub FriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1498,10 +1473,7 @@ pub struct ICertificateChain_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Validate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ChainValidationResult) -> windows_core::HRESULT, pub ValidateWithParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut ChainValidationResult) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetCertificates: unsafe extern "system" fn(*mut core::ffi::c_void, bool, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCertificates: usize, } windows_core::imp::define_interface!(ICertificateEnrollmentManagerStatics, ICertificateEnrollmentManagerStatics_Vtbl, 0x8846ef3f_a986_48fb_9fd7_9aec06935bf1); impl windows_core::RuntimeType for ICertificateEnrollmentManagerStatics { @@ -1591,10 +1563,7 @@ impl windows_core::RuntimeType for ICertificateQuery { #[repr(C)] pub struct ICertificateQuery_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EnhancedKeyUsages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EnhancedKeyUsages: usize, pub IssuerName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetIssuerName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub FriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1683,15 +1652,9 @@ impl windows_core::RuntimeType for ICertificateRequestProperties4 { #[repr(C)] pub struct ICertificateRequestProperties4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SuppressedDefaults: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SuppressedDefaults: usize, pub SubjectAlternativeName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Extensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Extensions: usize, } windows_core::imp::define_interface!(ICertificateStore, ICertificateStore_Vtbl, 0xb0bff720_344e_4331_af14_a7f7a7ebc93a); impl windows_core::RuntimeType for ICertificateStore { @@ -1719,14 +1682,8 @@ impl windows_core::RuntimeType for ICertificateStoresStatics { #[repr(C)] pub struct ICertificateStoresStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllWithQueryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllWithQueryAsync: usize, pub TrustedRootCertificationAuthorities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IntermediateCertificationAuthorities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetStoreByName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1747,10 +1704,7 @@ impl windows_core::RuntimeType for IChainBuildingParameters { #[repr(C)] pub struct IChainBuildingParameters_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EnhancedKeyUsages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EnhancedKeyUsages: usize, pub ValidationTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, pub SetValidationTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::DateTime) -> windows_core::HRESULT, pub RevocationCheckEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, @@ -1761,10 +1715,7 @@ pub struct IChainBuildingParameters_Vtbl { pub SetAuthorityInformationAccessEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub CurrentTimeValidationEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetCurrentTimeValidationEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ExclusiveTrustRoots: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExclusiveTrustRoots: usize, } windows_core::imp::define_interface!(IChainValidationParameters, IChainValidationParameters_Vtbl, 0xc4743b4a_7eb0_4b56_a040_b9c8e655ddf3); impl windows_core::RuntimeType for IChainValidationParameters { @@ -1791,15 +1742,9 @@ impl windows_core::RuntimeType for ICmsAttachedSignature { #[repr(C)] pub struct ICmsAttachedSignature_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Certificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Certificates: usize, pub Content: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Signers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Signers: usize, pub VerifySignature: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SignatureValidationResult) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICmsAttachedSignatureFactory, ICmsAttachedSignatureFactory_Vtbl, 0xd0c8fc15_f757_4c64_a362_52cc1c77cffb); @@ -1821,9 +1766,9 @@ impl windows_core::RuntimeType for ICmsAttachedSignatureStatics { #[repr(C)] pub struct ICmsAttachedSignatureStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GenerateSignatureAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GenerateSignatureAsync: usize, } windows_core::imp::define_interface!(ICmsDetachedSignature, ICmsDetachedSignature_Vtbl, 0x0f1ef154_f65e_4536_8339_5944081db2ca); @@ -1833,14 +1778,8 @@ impl windows_core::RuntimeType for ICmsDetachedSignature { #[repr(C)] pub struct ICmsDetachedSignature_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Certificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Certificates: usize, - #[cfg(feature = "Foundation_Collections")] pub Signers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Signers: usize, #[cfg(feature = "Storage_Streams")] pub VerifySignatureAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -1865,9 +1804,9 @@ impl windows_core::RuntimeType for ICmsDetachedSignatureStatics { #[repr(C)] pub struct ICmsDetachedSignatureStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GenerateSignatureAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GenerateSignatureAsync: usize, } windows_core::imp::define_interface!(ICmsSignerInfo, ICmsSignerInfo_Vtbl, 0x50d020db_1d2f_4c1a_b5c5_d0188ff91f47); @@ -1891,10 +1830,7 @@ impl windows_core::RuntimeType for ICmsTimestampInfo { pub struct ICmsTimestampInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SigningCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Certificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Certificates: usize, pub Timestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IKeyAlgorithmNamesStatics, IKeyAlgorithmNamesStatics_Vtbl, 0x479065d7_7ac7_4581_8c3b_d07027140448); @@ -2002,30 +1938,12 @@ impl windows_core::RuntimeType for ISubjectAlternativeNameInfo { #[repr(C)] pub struct ISubjectAlternativeNameInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EmailName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EmailName: usize, - #[cfg(feature = "Foundation_Collections")] pub IPAddress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - IPAddress: usize, - #[cfg(feature = "Foundation_Collections")] pub Url: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Url: usize, - #[cfg(feature = "Foundation_Collections")] pub DnsName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DnsName: usize, - #[cfg(feature = "Foundation_Collections")] pub DistinguishedName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DistinguishedName: usize, - #[cfg(feature = "Foundation_Collections")] pub PrincipalName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PrincipalName: usize, } windows_core::imp::define_interface!(ISubjectAlternativeNameInfo2, ISubjectAlternativeNameInfo2_Vtbl, 0x437a78c6_1c51_41ea_b34a_3d654398a370); impl windows_core::RuntimeType for ISubjectAlternativeNameInfo2 { @@ -2034,30 +1952,12 @@ impl windows_core::RuntimeType for ISubjectAlternativeNameInfo2 { #[repr(C)] pub struct ISubjectAlternativeNameInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub EmailNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - EmailNames: usize, - #[cfg(feature = "Foundation_Collections")] pub IPAddresses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - IPAddresses: usize, - #[cfg(feature = "Foundation_Collections")] pub Urls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Urls: usize, - #[cfg(feature = "Foundation_Collections")] pub DnsNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DnsNames: usize, - #[cfg(feature = "Foundation_Collections")] pub DistinguishedNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DistinguishedNames: usize, - #[cfg(feature = "Foundation_Collections")] pub PrincipalNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PrincipalNames: usize, pub Extension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IUserCertificateEnrollmentManager, IUserCertificateEnrollmentManager_Vtbl, 0x96313718_22e1_4819_b20b_ab46a6eca06e); @@ -2469,96 +2369,84 @@ impl SubjectAlternativeNameInfo { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn EmailName(&self) -> windows_core::Result> { + pub fn EmailName(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EmailName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn IPAddress(&self) -> windows_core::Result> { + pub fn IPAddress(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IPAddress)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Url(&self) -> windows_core::Result> { + pub fn Url(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Url)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DnsName(&self) -> windows_core::Result> { + pub fn DnsName(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DnsName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DistinguishedName(&self) -> windows_core::Result> { + pub fn DistinguishedName(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DistinguishedName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PrincipalName(&self) -> windows_core::Result> { + pub fn PrincipalName(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PrincipalName)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn EmailNames(&self) -> windows_core::Result> { + pub fn EmailNames(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).EmailNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn IPAddresses(&self) -> windows_core::Result> { + pub fn IPAddresses(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IPAddresses)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Urls(&self) -> windows_core::Result> { + pub fn Urls(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Urls)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DnsNames(&self) -> windows_core::Result> { + pub fn DnsNames(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DnsNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DistinguishedNames(&self) -> windows_core::Result> { + pub fn DistinguishedNames(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DistinguishedNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PrincipalNames(&self) -> windows_core::Result> { + pub fn PrincipalNames(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs b/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs index ce8fd535da6..f82f800eaf8 100644 --- a/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Cryptography/Core/mod.rs @@ -817,8 +817,7 @@ impl EccCurveNames { (windows_core::Interface::vtable(this).X962P256v1)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn AllEccCurveNames() -> windows_core::Result> { + pub fn AllEccCurveNames() -> windows_core::Result> { Self::IEccCurveNamesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AllEccCurveNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1189,10 +1188,7 @@ pub struct IEccCurveNamesStatics_Vtbl { pub X962P239v2: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub X962P239v3: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub X962P256v1: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AllEccCurveNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllEccCurveNames: usize, } windows_core::imp::define_interface!(IEncryptedAndAuthenticatedData, IEncryptedAndAuthenticatedData_Vtbl, 0x6fa42fe7_1ecb_4b00_bea5_60b83f862f17); impl windows_core::RuntimeType for IEncryptedAndAuthenticatedData { diff --git a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs index 09eeb31b5a0..cef0dc392f3 100644 --- a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs @@ -308,11 +308,11 @@ impl FileProtectionManager { (windows_core::Interface::vtable(this).LoadFileFromContainerWithTargetAndNameCollisionOptionAsync)(windows_core::Interface::as_raw(this), containerfile.param().abi(), target.param().abi(), collisionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn SaveFileAsContainerWithSharingAsync(protectedfile: P0, sharedwithidentities: P1) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IFileProtectionManagerStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -591,9 +591,9 @@ pub struct IFileProtectionManagerStatics2_Vtbl { pub LoadFileFromContainerWithTargetAndNameCollisionOptionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Storage::NameCollisionOption, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] LoadFileFromContainerWithTargetAndNameCollisionOptionAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub SaveFileAsContainerWithSharingAsync: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] SaveFileAsContainerWithSharingAsync: usize, } windows_core::imp::define_interface!(IFileProtectionManagerStatics3, IFileProtectionManagerStatics3_Vtbl, 0x6918849a_624f_46d6_b241_e9cd5fdf3e3f); @@ -662,10 +662,7 @@ impl windows_core::RuntimeType for IProtectedAccessResumedEventArgs { #[repr(C)] pub struct IProtectedAccessResumedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Identities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Identities: usize, } windows_core::imp::define_interface!(IProtectedAccessSuspendingEventArgs, IProtectedAccessSuspendingEventArgs_Vtbl, 0x75a193e0_a344_429f_b975_04fc1f88c185); impl windows_core::RuntimeType for IProtectedAccessSuspendingEventArgs { @@ -674,10 +671,7 @@ impl windows_core::RuntimeType for IProtectedAccessSuspendingEventArgs { #[repr(C)] pub struct IProtectedAccessSuspendingEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Identities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Identities: usize, pub Deadline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -714,10 +708,7 @@ impl windows_core::RuntimeType for IProtectedContentRevokedEventArgs { #[repr(C)] pub struct IProtectedContentRevokedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Identities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Identities: usize, } windows_core::imp::define_interface!(IProtectedFileCreateResult, IProtectedFileCreateResult_Vtbl, 0x28e3ed6a_e9e7_4a03_9f53_bdb16172699b); impl windows_core::RuntimeType for IProtectedFileCreateResult { @@ -848,21 +839,21 @@ pub struct IProtectionPolicyManagerStatics4_Vtbl { pub IsRoamableProtectionEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub RequestAccessWithBehaviorAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, ProtectionPolicyRequestAccessBehavior, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestAccessForAppWithBehaviorAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, ProtectionPolicyRequestAccessBehavior, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub RequestAccessToFilesForAppAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] RequestAccessToFilesForAppAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub RequestAccessToFilesForAppWithMessageAndBehaviorAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, ProtectionPolicyRequestAccessBehavior, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] RequestAccessToFilesForAppWithMessageAndBehaviorAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub RequestAccessToFilesForProcessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] RequestAccessToFilesForProcessAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub RequestAccessToFilesForProcessWithMessageAndBehaviorAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut core::ffi::c_void, ProtectionPolicyRequestAccessBehavior, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] RequestAccessToFilesForProcessWithMessageAndBehaviorAsync: usize, #[cfg(feature = "Storage")] pub IsFileProtectionRequiredAsync: 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, @@ -888,8 +879,7 @@ pub struct IThreadNetworkContext_Vtbl { pub struct ProtectedAccessResumedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ProtectedAccessResumedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl ProtectedAccessResumedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Identities(&self) -> windows_core::Result> { + pub fn Identities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -914,8 +904,7 @@ unsafe impl Sync for ProtectedAccessResumedEventArgs {} pub struct ProtectedAccessSuspendingEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ProtectedAccessSuspendingEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl ProtectedAccessSuspendingEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Identities(&self) -> windows_core::Result> { + pub fn Identities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1020,8 +1009,7 @@ unsafe impl Sync for ProtectedContainerImportResult {} pub struct ProtectedContentRevokedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ProtectedContentRevokedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl ProtectedContentRevokedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Identities(&self) -> windows_core::Result> { + pub fn Identities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1443,10 +1431,10 @@ impl ProtectionPolicyManager { (windows_core::Interface::vtable(this).RequestAccessForAppWithBehaviorAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sourceidentity), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub fn RequestAccessToFilesForAppAsync(sourceitemlist: P0, apppackagefamilyname: &windows_core::HSTRING, auditinfo: P2) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P2: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { @@ -1454,10 +1442,10 @@ impl ProtectionPolicyManager { (windows_core::Interface::vtable(this).RequestAccessToFilesForAppAsync)(windows_core::Interface::as_raw(this), sourceitemlist.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub fn RequestAccessToFilesForAppWithMessageAndBehaviorAsync(sourceitemlist: P0, apppackagefamilyname: &windows_core::HSTRING, auditinfo: P2, messagefromapp: &windows_core::HSTRING, behavior: ProtectionPolicyRequestAccessBehavior) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P2: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { @@ -1465,10 +1453,10 @@ impl ProtectionPolicyManager { (windows_core::Interface::vtable(this).RequestAccessToFilesForAppWithMessageAndBehaviorAsync)(windows_core::Interface::as_raw(this), sourceitemlist.param().abi(), core::mem::transmute_copy(apppackagefamilyname), auditinfo.param().abi(), core::mem::transmute_copy(messagefromapp), behavior, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub fn RequestAccessToFilesForProcessAsync(sourceitemlist: P0, processid: u32, auditinfo: P2) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P2: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { @@ -1476,10 +1464,10 @@ impl ProtectionPolicyManager { (windows_core::Interface::vtable(this).RequestAccessToFilesForProcessAsync)(windows_core::Interface::as_raw(this), sourceitemlist.param().abi(), processid, auditinfo.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub fn RequestAccessToFilesForProcessWithMessageAndBehaviorAsync(sourceitemlist: P0, processid: u32, auditinfo: P2, messagefromapp: &windows_core::HSTRING, behavior: ProtectionPolicyRequestAccessBehavior) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P2: windows_core::Param, { Self::IProtectionPolicyManagerStatics4(|this| unsafe { diff --git a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs index 29f4b8600ad..f3d8a4a75d7 100644 --- a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs @@ -1,38 +1,38 @@ -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] windows_core::imp::define_interface!(HostMessageReceivedCallback, HostMessageReceivedCallback_Vtbl, 0xfaf26ffa_8ce1_4cc1_b278_322d31a5e4a3); -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] impl windows_core::RuntimeType for HostMessageReceivedCallback { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] impl HostMessageReceivedCallback { - pub fn new>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { + pub fn new>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { let com = HostMessageReceivedCallbackBox { vtable: &HostMessageReceivedCallbackBox::::VTABLE, count: windows_core::imp::RefCount::new(1), invoke }; unsafe { core::mem::transmute(windows_core::imp::Box::new(com)) } } pub fn Invoke(&self, receiverid: windows_core::GUID, message: P1) -> windows_core::Result<()> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), receiverid, message.param().abi()).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] #[repr(C)] pub struct HostMessageReceivedCallback_Vtbl { base__: windows_core::IUnknown_Vtbl, Invoke: unsafe extern "system" fn(this: *mut core::ffi::c_void, receiverid: windows_core::GUID, message: *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] #[repr(C)] -struct HostMessageReceivedCallbackBox>) -> windows_core::Result<()> + Send + 'static> { +struct HostMessageReceivedCallbackBox>) -> windows_core::Result<()> + Send + 'static> { vtable: *const HostMessageReceivedCallback_Vtbl, invoke: F, count: windows_core::imp::RefCount, } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -impl>) -> windows_core::Result<()> + Send + 'static> HostMessageReceivedCallbackBox { +#[cfg(feature = "deprecated")] +impl>) -> windows_core::Result<()> + Send + 'static> HostMessageReceivedCallbackBox { const VTABLE: HostMessageReceivedCallback_Vtbl = HostMessageReceivedCallback_Vtbl { base__: windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { @@ -91,10 +91,7 @@ pub struct IIsolatedWindowsEnvironment_Vtbl { pub LaunchFileWithUIAndTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TerminateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TerminateWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RegisterMessageReceiver: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterMessageReceiver: usize, pub UnregisterMessageReceiver: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, } #[cfg(feature = "deprecated")] @@ -107,14 +104,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironment2 { #[repr(C)] pub struct IIsolatedWindowsEnvironment2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub PostMessageToReceiverAsync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PostMessageToReceiverAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub PostMessageToReceiverWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PostMessageToReceiverWithTelemetryAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironment3, IIsolatedWindowsEnvironment3_Vtbl, 0xcb7fc7d2_d06e_4c26_8ada_dacdaaad03f5); @@ -181,10 +172,7 @@ pub struct IIsolatedWindowsEnvironmentFactory_Vtbl { pub CreateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateWithTelemetryAsync: 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, pub GetById: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindByOwnerId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindByOwnerId: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentFile, IIsolatedWindowsEnvironmentFile_Vtbl, 0x4d5ae1ef_029f_4101_8c35_fe91bf9cd5f0); @@ -224,10 +212,7 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentHostStatics { pub struct IIsolatedWindowsEnvironmentHostStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsReady: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub HostErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - HostErrors: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentLaunchFileResult, IIsolatedWindowsEnvironmentLaunchFileResult_Vtbl, 0x685d4176_f6e0_4569_b1aa_215c0ff5b257); @@ -311,22 +296,10 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentOwnerRegistrationD #[repr(C)] pub struct IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ShareableFolders: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ShareableFolders: usize, - #[cfg(feature = "Foundation_Collections")] pub ProcessesRunnableAsSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProcessesRunnableAsSystem: usize, - #[cfg(feature = "Foundation_Collections")] pub ProcessesRunnableAsUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProcessesRunnableAsUser: usize, - #[cfg(feature = "Foundation_Collections")] pub ActivationFileExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ActivationFileExtensions: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentOwnerRegistrationResult, IIsolatedWindowsEnvironmentOwnerRegistrationResult_Vtbl, 0x6dab9451_6169_55df_8f51_790e99d7277d); @@ -499,10 +472,7 @@ impl windows_core::RuntimeType for IIsolatedWindowsHostMessengerStatics { #[repr(C)] pub struct IIsolatedWindowsHostMessengerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub PostMessageToReceiver: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PostMessageToReceiver: usize, pub GetFileId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, } #[cfg(feature = "deprecated")] @@ -515,10 +485,7 @@ impl windows_core::RuntimeType for IIsolatedWindowsHostMessengerStatics2 { #[repr(C)] pub struct IIsolatedWindowsHostMessengerStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RegisterHostMessageReceiver: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RegisterHostMessageReceiver: usize, pub UnregisterHostMessageReceiver: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, } #[cfg(feature = "deprecated")] @@ -608,7 +575,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).TerminateWithTelemetryAsync)(windows_core::Interface::as_raw(this), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RegisterMessageReceiver(&self, receiverid: windows_core::GUID, messagereceivedcallback: P1) -> windows_core::Result<()> where P1: windows_core::Param, @@ -620,10 +586,9 @@ impl IsolatedWindowsEnvironment { let this = self; unsafe { (windows_core::Interface::vtable(this).UnregisterMessageReceiver)(windows_core::Interface::as_raw(this), receiverid).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverAsync(&self, receiverid: windows_core::GUID, message: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -631,10 +596,9 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).PostMessageToReceiverAsync)(windows_core::Interface::as_raw(this), receiverid, message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverWithTelemetryAsync(&self, receiverid: windows_core::GUID, message: P1, telemetryparameters: P2) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -700,8 +664,7 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).GetById)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(environmentid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindByOwnerId(environmentownerid: &windows_core::HSTRING) -> windows_core::Result> { + pub fn FindByOwnerId(environmentownerid: &windows_core::HSTRING) -> windows_core::Result> { Self::IIsolatedWindowsEnvironmentFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindByOwnerId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(environmentownerid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1044,8 +1007,7 @@ impl IsolatedWindowsEnvironmentHost { (windows_core::Interface::vtable(this).IsReady)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn HostErrors() -> windows_core::Result> { + pub fn HostErrors() -> windows_core::Result> { Self::IIsolatedWindowsEnvironmentHostStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HostErrors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1352,32 +1314,28 @@ impl IsolatedWindowsEnvironmentOwnerRegistrationData { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn ShareableFolders(&self) -> windows_core::Result> { + pub fn ShareableFolders(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ShareableFolders)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProcessesRunnableAsSystem(&self) -> windows_core::Result> { + pub fn ProcessesRunnableAsSystem(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ProcessesRunnableAsSystem)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProcessesRunnableAsUser(&self) -> windows_core::Result> { + pub fn ProcessesRunnableAsUser(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ProcessesRunnableAsUser)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ActivationFileExtensions(&self) -> windows_core::Result> { + pub fn ActivationFileExtensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1989,10 +1947,9 @@ unsafe impl Sync for IsolatedWindowsEnvironmentUserInfo {} pub struct IsolatedWindowsHostMessenger; #[cfg(feature = "deprecated")] impl IsolatedWindowsHostMessenger { - #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiver(receiverid: windows_core::GUID, message: P1) -> windows_core::Result<()> where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { (windows_core::Interface::vtable(this).PostMessageToReceiver)(windows_core::Interface::as_raw(this), receiverid, message.param().abi()).ok() }) } @@ -2002,7 +1959,6 @@ impl IsolatedWindowsHostMessenger { (windows_core::Interface::vtable(this).GetFileId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] pub fn RegisterHostMessageReceiver(receiverid: windows_core::GUID, hostmessagereceivedcallback: P1) -> windows_core::Result<()> where P1: windows_core::Param, @@ -2025,41 +1981,41 @@ impl IsolatedWindowsHostMessenger { impl windows_core::RuntimeName for IsolatedWindowsHostMessenger { const NAME: &'static str = "Windows.Security.Isolation.IsolatedWindowsHostMessenger"; } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] windows_core::imp::define_interface!(MessageReceivedCallback, MessageReceivedCallback_Vtbl, 0xf5b4c8ff_1d9d_4995_9fea_4d15257c0757); -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] impl windows_core::RuntimeType for MessageReceivedCallback { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] impl MessageReceivedCallback { - pub fn new>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { + pub fn new>) -> windows_core::Result<()> + Send + 'static>(invoke: F) -> Self { let com = MessageReceivedCallbackBox { vtable: &MessageReceivedCallbackBox::::VTABLE, count: windows_core::imp::RefCount::new(1), invoke }; unsafe { core::mem::transmute(windows_core::imp::Box::new(com)) } } pub fn Invoke(&self, receiverid: windows_core::GUID, message: P1) -> windows_core::Result<()> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).Invoke)(windows_core::Interface::as_raw(this), receiverid, message.param().abi()).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] #[repr(C)] pub struct MessageReceivedCallback_Vtbl { base__: windows_core::IUnknown_Vtbl, Invoke: unsafe extern "system" fn(this: *mut core::ffi::c_void, receiverid: windows_core::GUID, message: *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] +#[cfg(feature = "deprecated")] #[repr(C)] -struct MessageReceivedCallbackBox>) -> windows_core::Result<()> + Send + 'static> { +struct MessageReceivedCallbackBox>) -> windows_core::Result<()> + Send + 'static> { vtable: *const MessageReceivedCallback_Vtbl, invoke: F, count: windows_core::imp::RefCount, } -#[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] -impl>) -> windows_core::Result<()> + Send + 'static> MessageReceivedCallbackBox { +#[cfg(feature = "deprecated")] +impl>) -> windows_core::Result<()> + Send + 'static> MessageReceivedCallbackBox { const VTABLE: MessageReceivedCallback_Vtbl = MessageReceivedCallback_Vtbl { base__: windows_core::IUnknown_Vtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, Invoke: Self::Invoke }; unsafe extern "system" fn QueryInterface(this: *mut core::ffi::c_void, iid: *const windows_core::GUID, interface: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { unsafe { diff --git a/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs index e8a48f8dde9..0744cc0046a 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/Guidance/mod.rs @@ -41,8 +41,7 @@ impl GuidanceAudioNotificationRequestedEventArgs { (windows_core::Interface::vtable(this).AudioNotification)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AudioFilePaths(&self) -> windows_core::Result> { + pub fn AudioFilePaths(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -824,8 +823,7 @@ impl GuidanceRoadSignpost { (windows_core::Interface::vtable(this).ForegroundColor)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ExitDirections(&self) -> windows_core::Result> { + pub fn ExitDirections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -864,8 +862,7 @@ impl GuidanceRoute { (windows_core::Interface::vtable(this).Distance)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Maneuvers(&self) -> windows_core::Result> { + pub fn Maneuvers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -888,8 +885,7 @@ impl GuidanceRoute { (windows_core::Interface::vtable(this).Path)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RoadSegments(&self) -> windows_core::Result> { + pub fn RoadSegments(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1099,8 +1095,7 @@ impl GuidanceUpdatedEventArgs { (windows_core::Interface::vtable(this).IsNewManeuver)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn LaneInfo(&self) -> windows_core::Result> { + pub fn LaneInfo(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1128,10 +1123,7 @@ impl windows_core::RuntimeType for IGuidanceAudioNotificationRequestedEventArgs pub struct IGuidanceAudioNotificationRequestedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AudioNotification: unsafe extern "system" fn(*mut core::ffi::c_void, *mut GuidanceAudioNotificationKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AudioFilePaths: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AudioFilePaths: usize, pub AudioText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IGuidanceLaneInfo, IGuidanceLaneInfo_Vtbl, 0x8404d114_6581_43b7_ac15_c9079bf90df1); @@ -1310,10 +1302,7 @@ pub struct IGuidanceRoadSignpost_Vtbl { pub ForegroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::UI::Color) -> windows_core::HRESULT, #[cfg(not(feature = "UI"))] ForegroundColor: usize, - #[cfg(feature = "Foundation_Collections")] pub ExitDirections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExitDirections: usize, } windows_core::imp::define_interface!(IGuidanceRoute, IGuidanceRoute_Vtbl, 0x3a14545d_801a_40bd_a286_afb2010cce6c); impl windows_core::RuntimeType for IGuidanceRoute { @@ -1324,10 +1313,7 @@ pub struct IGuidanceRoute_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Duration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub Distance: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Maneuvers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Maneuvers: usize, #[cfg(feature = "Devices_Geolocation")] pub BoundingBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Devices_Geolocation"))] @@ -1336,10 +1322,7 @@ pub struct IGuidanceRoute_Vtbl { pub Path: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Devices_Geolocation"))] Path: usize, - #[cfg(feature = "Foundation_Collections")] pub RoadSegments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RoadSegments: usize, pub ConvertToMapRoute: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IGuidanceRouteStatics, IGuidanceRouteStatics_Vtbl, 0xf56d926a_55ed_49c1_b09c_4b8223b50db3); @@ -1396,8 +1379,5 @@ pub struct IGuidanceUpdatedEventArgs_Vtbl { pub Route: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CurrentLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsNewManeuver: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub LaneInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LaneInfo: usize, } diff --git a/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs index dbd5124d35a..cdf66f672b7 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/LocalSearch/mod.rs @@ -41,10 +41,7 @@ pub struct ILocalLocation2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Category: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RatingInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub HoursOfOperation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - HoursOfOperation: usize, } windows_core::imp::define_interface!(ILocalLocationFinderResult, ILocalLocationFinderResult_Vtbl, 0xd09b6cc6_f338_4191_9fd8_5440b9a68f52); impl windows_core::RuntimeType for ILocalLocationFinderResult { @@ -53,10 +50,7 @@ impl windows_core::RuntimeType for ILocalLocationFinderResult { #[repr(C)] pub struct ILocalLocationFinderResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub LocalLocations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LocalLocations: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut LocalLocationFinderStatus) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ILocalLocationFinderStatics, ILocalLocationFinderStatics_Vtbl, 0xd2ef7344_a0de_48ca_81a8_07c7dcfd37ab); @@ -232,8 +226,7 @@ impl LocalLocation { (windows_core::Interface::vtable(this).RatingInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn HoursOfOperation(&self) -> windows_core::Result> { + pub fn HoursOfOperation(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -278,8 +271,7 @@ impl windows_core::RuntimeName for LocalLocationFinder { pub struct LocalLocationFinderResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(LocalLocationFinderResult, windows_core::IUnknown, windows_core::IInspectable); impl LocalLocationFinderResult { - #[cfg(feature = "Foundation_Collections")] - pub fn LocalLocations(&self) -> windows_core::Result> { + pub fn LocalLocations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs index 1c273593bda..d37160572c1 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/OfflineMaps/mod.rs @@ -21,10 +21,7 @@ impl windows_core::RuntimeType for IOfflineMapPackageQueryResult { pub struct IOfflineMapPackageQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut OfflineMapPackageQueryStatus) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Packages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Packages: usize, } windows_core::imp::define_interface!(IOfflineMapPackageStartDownloadResult, IOfflineMapPackageStartDownloadResult_Vtbl, 0xd965b918_d4d6_4afe_9378_3ec71ef11c3d); impl windows_core::RuntimeType for IOfflineMapPackageStartDownloadResult { @@ -168,8 +165,7 @@ impl OfflineMapPackageQueryResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Packages(&self) -> windows_core::Result> { + pub fn Packages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Services/Maps/mod.rs b/crates/libs/windows/src/Windows/Services/Maps/mod.rs index cb1a0370103..686dfb710d5 100644 --- a/crates/libs/windows/src/Windows/Services/Maps/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Maps/mod.rs @@ -140,10 +140,7 @@ impl windows_core::RuntimeType for IMapLocationFinderResult { #[repr(C)] pub struct IMapLocationFinderResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Locations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Locations: usize, pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MapLocationFinderStatus) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IMapLocationFinderStatics, IMapLocationFinderStatics_Vtbl, 0x318adb5d_1c5d_4f35_a2df_aaca94959517); @@ -205,10 +202,7 @@ pub struct IMapRoute_Vtbl { pub Path: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Devices_Geolocation"))] Path: usize, - #[cfg(feature = "Foundation_Collections")] pub Legs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Legs: usize, pub IsTrafficBased: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IMapRoute2, IMapRoute2_Vtbl, 0xd1c5d40c_2213_4ab0_a260_46b38169beac); @@ -283,10 +277,7 @@ impl windows_core::RuntimeType for IMapRouteFinderResult2 { #[repr(C)] pub struct IMapRouteFinderResult2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AlternateRoutes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AlternateRoutes: usize, } windows_core::imp::define_interface!(IMapRouteFinderStatics, IMapRouteFinderStatics_Vtbl, 0xb8a5c50f_1c64_4c3a_81eb_1f7c152afbbb); impl windows_core::RuntimeType for IMapRouteFinderStatics { @@ -311,29 +302,29 @@ pub struct IMapRouteFinderStatics_Vtbl { pub GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, MapRouteOptimization, MapRouteRestrictions, f64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Devices_Geolocation"))] GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub GetDrivingRouteFromWaypointsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Geolocation"))] GetDrivingRouteFromWaypointsAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub GetDrivingRouteFromWaypointsAndOptimizationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, MapRouteOptimization, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Geolocation"))] GetDrivingRouteFromWaypointsAndOptimizationAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, MapRouteOptimization, MapRouteRestrictions, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Geolocation"))] GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, MapRouteOptimization, MapRouteRestrictions, f64, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Geolocation"))] GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync: usize, #[cfg(feature = "Devices_Geolocation")] pub GetWalkingRouteAsync: 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, #[cfg(not(feature = "Devices_Geolocation"))] GetWalkingRouteAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub GetWalkingRouteFromWaypointsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Devices_Geolocation"))] GetWalkingRouteFromWaypointsAsync: usize, } windows_core::imp::define_interface!(IMapRouteFinderStatics2, IMapRouteFinderStatics2_Vtbl, 0xafcc2c73_7760_49af_b3bd_baf135b703e1); @@ -355,14 +346,8 @@ impl windows_core::RuntimeType for IMapRouteFinderStatics3 { #[repr(C)] pub struct IMapRouteFinderStatics3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetDrivingRouteFromEnhancedWaypointsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDrivingRouteFromEnhancedWaypointsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync: usize, } windows_core::imp::define_interface!(IMapRouteLeg, IMapRouteLeg_Vtbl, 0x96f8b2f6_5bba_4d17_9db6_1a263fec7471); impl windows_core::RuntimeType for IMapRouteLeg { @@ -381,10 +366,7 @@ pub struct IMapRouteLeg_Vtbl { Path: usize, pub LengthInMeters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub EstimatedDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Maneuvers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Maneuvers: usize, } windows_core::imp::define_interface!(IMapRouteLeg2, IMapRouteLeg2_Vtbl, 0x02e2062d_c9c6_45b8_8e54_1a10b57a17e8); impl windows_core::RuntimeType for IMapRouteLeg2 { @@ -431,10 +413,7 @@ impl windows_core::RuntimeType for IMapRouteManeuver3 { #[repr(C)] pub struct IMapRouteManeuver3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Warnings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Warnings: usize, } windows_core::imp::define_interface!(IMapServiceStatics, IMapServiceStatics_Vtbl, 0x0144ad85_c04c_4cdd_871a_a0726d097cd4); impl windows_core::RuntimeType for IMapServiceStatics { @@ -883,8 +862,7 @@ impl windows_core::RuntimeName for MapLocationFinder { pub struct MapLocationFinderResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(MapLocationFinderResult, windows_core::IUnknown, windows_core::IInspectable); impl MapLocationFinderResult { - #[cfg(feature = "Foundation_Collections")] - pub fn Locations(&self) -> windows_core::Result> { + pub fn Locations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1027,8 +1005,7 @@ impl MapRoute { (windows_core::Interface::vtable(this).Path)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Legs(&self) -> windows_core::Result> { + pub fn Legs(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1222,40 +1199,40 @@ impl MapRouteFinder { (windows_core::Interface::vtable(this).GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), optimization, restrictions, headingindegrees, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteFromWaypointsAsync(waypoints: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteFromWaypointsAndOptimizationAsync(waypoints: P0, optimization: MapRouteOptimization) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsAndOptimizationAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), optimization, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync(waypoints: P0, optimization: MapRouteOptimization, restrictions: MapRouteRestrictions) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDrivingRouteFromWaypointsOptimizationAndRestrictionsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), optimization, restrictions, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub fn GetDrivingRouteFromWaypointsOptimizationRestrictionsAndHeadingAsync(waypoints: P0, optimization: MapRouteOptimization, restrictions: MapRouteRestrictions, headingindegrees: f64) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1273,10 +1250,10 @@ impl MapRouteFinder { (windows_core::Interface::vtable(this).GetWalkingRouteAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] + #[cfg(feature = "Devices_Geolocation")] pub fn GetWalkingRouteFromWaypointsAsync(waypoints: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1295,20 +1272,18 @@ impl MapRouteFinder { (windows_core::Interface::vtable(this).GetDrivingRouteWithOptionsAsync)(windows_core::Interface::as_raw(this), startpoint.param().abi(), endpoint.param().abi(), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn GetDrivingRouteFromEnhancedWaypointsAsync(waypoints: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IMapRouteFinderStatics3(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDrivingRouteFromEnhancedWaypointsAsync)(windows_core::Interface::as_raw(this), waypoints.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn GetDrivingRouteFromEnhancedWaypointsWithOptionsAsync(waypoints: P0, options: P1) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, { Self::IMapRouteFinderStatics3(|this| unsafe { @@ -1351,8 +1326,7 @@ impl MapRouteFinderResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AlternateRoutes(&self) -> windows_core::Result> { + pub fn AlternateRoutes(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1428,8 +1402,7 @@ impl MapRouteLeg { (windows_core::Interface::vtable(this).EstimatedDuration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Maneuvers(&self) -> windows_core::Result> { + pub fn Maneuvers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1532,8 +1505,7 @@ impl MapRouteManeuver { (windows_core::Interface::vtable(this).StreetName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Warnings(&self) -> windows_core::Result> { + pub fn Warnings(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Services/Store/mod.rs b/crates/libs/windows/src/Windows/Services/Store/mod.rs index d98c0cce1ff..5f5868ed384 100644 --- a/crates/libs/windows/src/Windows/Services/Store/mod.rs +++ b/crates/libs/windows/src/Windows/Services/Store/mod.rs @@ -20,10 +20,7 @@ pub struct IStoreAppLicense_Vtbl { pub IsTrial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub ExtendedJsonData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AddOnLicenses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddOnLicenses: usize, pub TrialTimeRemaining: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub IsTrialOwnedByThisUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub TrialUniqueId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -107,26 +104,11 @@ pub struct IStoreContext_Vtbl { pub GetCustomerCollectionsIdAsync: 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, pub GetAppLicenseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetStoreProductForCurrentAppAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetStoreProductsAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - GetStoreProductsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAssociatedStoreProductsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAssociatedStoreProductsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAssociatedStoreProductsWithPagingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAssociatedStoreProductsWithPagingAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetUserCollectionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUserCollectionAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetUserCollectionWithPagingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUserCollectionWithPagingAsync: usize, pub ReportConsumableFulfillmentAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetConsumableBalanceRemainingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "ApplicationModel")] @@ -135,22 +117,10 @@ pub struct IStoreContext_Vtbl { AcquireStoreLicenseForOptionalPackageAsync: usize, pub RequestPurchaseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestPurchaseWithPurchasePropertiesAsync: 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, - #[cfg(feature = "Foundation_Collections")] pub GetAppAndOptionalStorePackageUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAppAndOptionalStorePackageUpdatesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RequestDownloadStorePackageUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestDownloadStorePackageUpdatesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RequestDownloadAndInstallStorePackageUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestDownloadAndInstallStorePackageUpdatesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RequestDownloadAndInstallStorePackagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestDownloadAndInstallStorePackagesAsync: usize, } windows_core::imp::define_interface!(IStoreContext2, IStoreContext2_Vtbl, 0x18bc54da_7bd9_452c_9116_3bbd06ffc63a); impl windows_core::RuntimeType for IStoreContext2 { @@ -159,9 +129,9 @@ impl windows_core::RuntimeType for IStoreContext2 { #[repr(C)] pub struct IStoreContext2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindStoreProductForPackageAsync: 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, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindStoreProductForPackageAsync: usize, } windows_core::imp::define_interface!(IStoreContext3, IStoreContext3_Vtbl, 0xe26226ca_1a01_4730_85a6_ecc896e4ae38); @@ -172,39 +142,18 @@ impl windows_core::RuntimeType for IStoreContext3 { pub struct IStoreContext3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CanSilentlyDownloadStorePackageUpdates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TrySilentDownloadStorePackageUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TrySilentDownloadStorePackageUpdatesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub TrySilentDownloadAndInstallStorePackageUpdatesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TrySilentDownloadAndInstallStorePackageUpdatesAsync: usize, #[cfg(feature = "ApplicationModel")] pub CanAcquireStoreLicenseForOptionalPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "ApplicationModel"))] CanAcquireStoreLicenseForOptionalPackageAsync: usize, pub CanAcquireStoreLicenseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetStoreProductsWithOptionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStoreProductsWithOptionsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAssociatedStoreQueueItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAssociatedStoreQueueItemsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetStoreQueueItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStoreQueueItemsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub DownloadAndInstallStorePackagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DownloadAndInstallStorePackagesAsync: usize, #[cfg(feature = "ApplicationModel")] pub RequestUninstallStorePackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "ApplicationModel"))] @@ -224,10 +173,7 @@ impl windows_core::RuntimeType for IStoreContext4 { pub struct IStoreContext4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub RequestRateAndReviewAppAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SetInstallOrderForAssociatedStoreQueueItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetInstallOrderForAssociatedStoreQueueItemsAsync: usize, } windows_core::imp::define_interface!(IStoreContext5, IStoreContext5_Vtbl, 0x6de6c52b_c43a_5953_b39a_71643c57d96e); impl windows_core::RuntimeType for IStoreContext5 { @@ -236,14 +182,8 @@ impl windows_core::RuntimeType for IStoreContext5 { #[repr(C)] pub struct IStoreContext5_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetUserPurchaseHistoryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUserPurchaseHistoryAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAssociatedStoreProductsByInAppOfferTokenAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAssociatedStoreProductsByInAppOfferTokenAsync: usize, pub RequestPurchaseByInAppOfferTokenAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IStoreContextStatics, IStoreContextStatics_Vtbl, 0x9c06ee5f_15c0_4e72_9330_d6191cebd19c); @@ -332,10 +272,7 @@ impl windows_core::RuntimeType for IStorePackageUpdateResult { pub struct IStorePackageUpdateResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OverallState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut StorePackageUpdateState) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StorePackageUpdateStatuses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StorePackageUpdateStatuses: usize, } windows_core::imp::define_interface!(IStorePackageUpdateResult2, IStorePackageUpdateResult2_Vtbl, 0x071d012e_bc62_4f2e_87ea_99d801aeaf98); impl windows_core::RuntimeType for IStorePackageUpdateResult2 { @@ -344,10 +281,7 @@ impl windows_core::RuntimeType for IStorePackageUpdateResult2 { #[repr(C)] pub struct IStorePackageUpdateResult2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub StoreQueueItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StoreQueueItems: usize, } windows_core::imp::define_interface!(IStorePrice, IStorePrice_Vtbl, 0x55ba94c4_15f1_407c_8f06_006380f4df0b); impl windows_core::RuntimeType for IStorePrice { @@ -387,22 +321,10 @@ pub struct IStoreProduct_Vtbl { pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProductKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub HasDigitalDownload: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Keywords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Keywords: usize, - #[cfg(feature = "Foundation_Collections")] pub Images: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Images: usize, - #[cfg(feature = "Foundation_Collections")] pub Videos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Videos: usize, - #[cfg(feature = "Foundation_Collections")] pub Skus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Skus: usize, pub IsInUserCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub Price: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ExtendedJsonData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -419,10 +341,7 @@ impl windows_core::RuntimeType for IStoreProductOptions { #[repr(C)] pub struct IStoreProductOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ActionFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ActionFilters: usize, } windows_core::imp::define_interface!(IStoreProductPagedQueryResult, IStoreProductPagedQueryResult_Vtbl, 0xc92718c5_4dd5_4869_a462_ecc6872e43c5); impl windows_core::RuntimeType for IStoreProductPagedQueryResult { @@ -431,10 +350,7 @@ impl windows_core::RuntimeType for IStoreProductPagedQueryResult { #[repr(C)] pub struct IStoreProductPagedQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Products: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Products: usize, pub HasMoreResults: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, pub GetNextAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -446,10 +362,7 @@ impl windows_core::RuntimeType for IStoreProductQueryResult { #[repr(C)] pub struct IStoreProductQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Products: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Products: usize, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IStoreProductResult, IStoreProductResult_Vtbl, 0xb7674f73_3c87_4ee1_8201_f428359bd3af); @@ -597,25 +510,13 @@ pub struct IStoreSku_Vtbl { pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsTrial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub CustomDeveloperData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Images: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Images: usize, - #[cfg(feature = "Foundation_Collections")] pub Videos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Videos: usize, - #[cfg(feature = "Foundation_Collections")] pub Availabilities: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Availabilities: usize, pub Price: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ExtendedJsonData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsInUserCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub BundledSkus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BundledSkus: usize, pub CollectionData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetIsInstalledAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestPurchaseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -732,8 +633,7 @@ impl StoreAppLicense { (windows_core::Interface::vtable(this).ExtendedJsonData)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AddOnLicenses(&self) -> windows_core::Result> { + pub fn AddOnLicenses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1089,11 +989,10 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetStoreProductForCurrentAppAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetStoreProductsAsync(&self, productkinds: P0, storeids: P1) -> windows_core::Result> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -1101,10 +1000,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetStoreProductsAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), storeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsAsync(&self, productkinds: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1112,10 +1010,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetAssociatedStoreProductsAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsWithPagingAsync(&self, productkinds: P0, maxitemstoretrieveperpage: u32) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1123,10 +1020,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetAssociatedStoreProductsWithPagingAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), maxitemstoretrieveperpage, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetUserCollectionAsync(&self, productkinds: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1134,10 +1030,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetUserCollectionAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetUserCollectionWithPagingAsync(&self, productkinds: P0, maxitemstoretrieveperpage: u32) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1187,18 +1082,16 @@ impl StoreContext { (windows_core::Interface::vtable(this).RequestPurchaseWithPurchasePropertiesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(storeid), storepurchaseproperties.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAppAndOptionalStorePackageUpdatesAsync(&self) -> windows_core::Result>> { + pub fn GetAppAndOptionalStorePackageUpdatesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAppAndOptionalStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1206,10 +1099,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).RequestDownloadStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1217,10 +1109,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackagesAsync(&self, storeids: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -1228,10 +1119,10 @@ impl StoreContext { (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesAsync)(windows_core::Interface::as_raw(this), storeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub fn FindStoreProductForPackageAsync(&self, productkinds: P0, package: P1) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -1247,10 +1138,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).CanSilentlyDownloadStorePackageUpdates)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn TrySilentDownloadStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1258,10 +1148,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).TrySilentDownloadStorePackageUpdatesAsync)(windows_core::Interface::as_raw(this), storepackageupdates.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn TrySilentDownloadAndInstallStorePackageUpdatesAsync(&self, storepackageupdates: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1287,11 +1176,10 @@ impl StoreContext { (windows_core::Interface::vtable(this).CanAcquireStoreLicenseAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(productstoreid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetStoreProductsWithOptionsAsync(&self, productkinds: P0, storeids: P1, storeproductoptions: P2) -> windows_core::Result> where - P0: windows_core::Param>, - P1: windows_core::Param>, + P0: windows_core::Param>, + P1: windows_core::Param>, P2: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -1300,18 +1188,16 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetStoreProductsWithOptionsAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), storeids.param().abi(), storeproductoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAssociatedStoreQueueItemsAsync(&self) -> windows_core::Result>> { + pub fn GetAssociatedStoreQueueItemsAsync(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAssociatedStoreQueueItemsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStoreQueueItemsAsync(&self, storeids: P0) -> windows_core::Result>> + pub fn GetStoreQueueItemsAsync(&self, storeids: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1319,10 +1205,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetStoreQueueItemsAsync)(windows_core::Interface::as_raw(this), storeids.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync(&self, storeids: P0, storepackageinstalloptions: P1) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, P1: windows_core::Param, { let this = &windows_core::Interface::cast::(self)?; @@ -1331,10 +1216,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).RequestDownloadAndInstallStorePackagesWithInstallOptionsAsync)(windows_core::Interface::as_raw(this), storeids.param().abi(), storepackageinstalloptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn DownloadAndInstallStorePackagesAsync(&self, storeids: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1385,10 +1269,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).RequestRateAndReviewAppAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SetInstallOrderForAssociatedStoreQueueItemsAsync(&self, items: P0) -> windows_core::Result>> + pub fn SetInstallOrderForAssociatedStoreQueueItemsAsync(&self, items: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1396,10 +1279,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).SetInstallOrderForAssociatedStoreQueueItemsAsync)(windows_core::Interface::as_raw(this), items.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetUserPurchaseHistoryAsync(&self, productkinds: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1407,10 +1289,9 @@ impl StoreContext { (windows_core::Interface::vtable(this).GetUserPurchaseHistoryAsync)(windows_core::Interface::as_raw(this), productkinds.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetAssociatedStoreProductsByInAppOfferTokenAsync(&self, inappoffertokens: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1718,16 +1599,14 @@ impl StorePackageUpdateResult { (windows_core::Interface::vtable(this).OverallState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn StorePackageUpdateStatuses(&self) -> windows_core::Result> { + pub fn StorePackageUpdateStatuses(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).StorePackageUpdateStatuses)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn StoreQueueItems(&self) -> windows_core::Result> { + pub fn StoreQueueItems(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1911,32 +1790,28 @@ impl StoreProduct { (windows_core::Interface::vtable(this).HasDigitalDownload)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Keywords(&self) -> windows_core::Result> { + pub fn Keywords(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Keywords)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Images(&self) -> windows_core::Result> { + pub fn Images(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Images)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Videos(&self) -> windows_core::Result> { + pub fn Videos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Videos)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Skus(&self) -> windows_core::Result> { + pub fn Skus(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2027,8 +1902,7 @@ impl StoreProductOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn ActionFilters(&self) -> windows_core::Result> { + pub fn ActionFilters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2053,8 +1927,7 @@ unsafe impl Sync for StoreProductOptions {} pub struct StoreProductPagedQueryResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(StoreProductPagedQueryResult, windows_core::IUnknown, windows_core::IInspectable); impl StoreProductPagedQueryResult { - #[cfg(feature = "Foundation_Collections")] - pub fn Products(&self) -> windows_core::Result> { + pub fn Products(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2100,8 +1973,7 @@ unsafe impl Sync for StoreProductPagedQueryResult {} pub struct StoreProductQueryResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(StoreProductQueryResult, windows_core::IUnknown, windows_core::IInspectable); impl StoreProductQueryResult { - #[cfg(feature = "Foundation_Collections")] - pub fn Products(&self) -> windows_core::Result> { + pub fn Products(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2654,24 +2526,21 @@ impl StoreSku { (windows_core::Interface::vtable(this).CustomDeveloperData)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Images(&self) -> windows_core::Result> { + pub fn Images(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Images)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Videos(&self) -> windows_core::Result> { + pub fn Videos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Videos)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Availabilities(&self) -> windows_core::Result> { + pub fn Availabilities(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2699,8 +2568,7 @@ impl StoreSku { (windows_core::Interface::vtable(this).IsInUserCollection)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn BundledSkus(&self) -> windows_core::Result> { + pub fn BundledSkus(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs b/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs index b15c48df419..24cf7385f9e 100644 --- a/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs +++ b/crates/libs/windows/src/Windows/Services/TargetedContent/mod.rs @@ -37,18 +37,9 @@ pub struct ITargetedContentCollection_Vtbl { pub ReportInteraction: unsafe extern "system" fn(*mut core::ffi::c_void, TargetedContentInteraction) -> windows_core::HRESULT, pub ReportCustomInteraction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Path: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, - #[cfg(feature = "Foundation_Collections")] pub Collections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Collections: usize, - #[cfg(feature = "Foundation_Collections")] pub Items: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, } windows_core::imp::define_interface!(ITargetedContentContainer, ITargetedContentContainer_Vtbl, 0xbc2494c9_8837_47c2_850f_d79d64595926); impl windows_core::RuntimeType for ITargetedContentContainer { @@ -96,14 +87,8 @@ pub struct ITargetedContentItem_Vtbl { pub ReportInteraction: unsafe extern "system" fn(*mut core::ffi::c_void, TargetedContentInteraction) -> windows_core::HRESULT, pub ReportCustomInteraction: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub State: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, - #[cfg(feature = "Foundation_Collections")] pub Collections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Collections: usize, } windows_core::imp::define_interface!(ITargetedContentItemState, ITargetedContentItemState_Vtbl, 0x73935454_4c65_4b47_a441_472de53c79b6); impl windows_core::RuntimeType for ITargetedContentItemState { @@ -162,14 +147,8 @@ pub struct ITargetedContentSubscriptionOptions_Vtbl { pub SubscriptionId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub AllowPartialContentAvailability: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetAllowPartialContentAvailability: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CloudQueryParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CloudQueryParameters: usize, - #[cfg(feature = "Foundation_Collections")] pub LocalFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - LocalFilters: usize, pub Update: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ITargetedContentSubscriptionStatics, ITargetedContentSubscriptionStatics_Vtbl, 0xfaddfe80_360d_4916_b53c_7ea27090d02a); @@ -204,34 +183,19 @@ pub struct ITargetedContentValue_Vtbl { #[cfg(not(feature = "Storage_Streams"))] ImageFile: usize, pub Action: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Strings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Strings: usize, - #[cfg(feature = "Foundation_Collections")] pub Uris: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Uris: usize, - #[cfg(feature = "Foundation_Collections")] pub Numbers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Numbers: usize, - #[cfg(feature = "Foundation_Collections")] pub Booleans: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Booleans: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub Files: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] Files: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ImageFiles: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ImageFiles: usize, - #[cfg(feature = "Foundation_Collections")] pub Actions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Actions: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -370,24 +334,21 @@ impl TargetedContentCollection { (windows_core::Interface::vtable(this).Path)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Properties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Collections(&self) -> windows_core::Result> { + pub fn Collections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Collections)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -603,16 +564,14 @@ impl TargetedContentItem { (windows_core::Interface::vtable(this).State)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Properties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Collections(&self) -> windows_core::Result> { + pub fn Collections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -862,16 +821,14 @@ impl TargetedContentSubscriptionOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowPartialContentAvailability)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn CloudQueryParameters(&self) -> windows_core::Result> { + pub fn CloudQueryParameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CloudQueryParameters)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn LocalFilters(&self) -> windows_core::Result> { + pub fn LocalFilters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -965,56 +922,51 @@ impl TargetedContentValue { (windows_core::Interface::vtable(this).Action)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Strings(&self) -> windows_core::Result> { + pub fn Strings(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Strings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Uris(&self) -> windows_core::Result> { + pub fn Uris(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Uris)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Numbers(&self) -> windows_core::Result> { + pub fn Numbers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Numbers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Booleans(&self) -> windows_core::Result> { + pub fn Booleans(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Booleans)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Files)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn ImageFiles(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn ImageFiles(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ImageFiles)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Actions(&self) -> windows_core::Result> { + pub fn Actions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs b/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs index d29f55bac91..47c9f510b59 100644 --- a/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/AccessCache/mod.rs @@ -59,18 +59,14 @@ impl windows_core::TypeKind for AccessListEntry { impl windows_core::RuntimeType for AccessListEntry { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Storage.AccessCache.AccessListEntry;string;string)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct AccessListEntryView(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(AccessListEntryView, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(AccessListEntryView, super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(AccessListEntryView, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(AccessListEntryView, windows_collections::IIterable); impl AccessListEntryView { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -105,31 +101,26 @@ impl AccessListEntryView { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for AccessListEntryView { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for AccessListEntryView { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for AccessListEntryView { const NAME: &'static str = "Windows.Storage.AccessCache.AccessListEntryView"; } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for AccessListEntryView { type Item = AccessListEntry; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &AccessListEntryView { type Item = AccessListEntry; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -280,7 +271,6 @@ impl IStorageItemAccessList { (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn Entries(&self) -> windows_core::Result { let this = self; unsafe { @@ -296,11 +286,11 @@ impl IStorageItemAccessList { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search", feature = "Storage_Streams"))] +#[cfg(all(feature = "Storage_Search", feature = "Storage_Streams"))] impl windows_core::RuntimeName for IStorageItemAccessList { const NAME: &'static str = "Windows.Storage.AccessCache.IStorageItemAccessList"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search", feature = "Storage_Streams"))] +#[cfg(all(feature = "Storage_Search", feature = "Storage_Streams"))] pub trait IStorageItemAccessList_Impl: windows_core::IUnknownImpl { fn AddOverloadDefaultMetadata(&self, file: windows_core::Ref<'_, super::IStorageItem>) -> windows_core::Result; fn Add(&self, file: windows_core::Ref<'_, super::IStorageItem>, metadata: &windows_core::HSTRING) -> windows_core::Result; @@ -319,7 +309,7 @@ pub trait IStorageItemAccessList_Impl: windows_core::IUnknownImpl { fn Entries(&self) -> windows_core::Result; fn MaximumItemsAllowed(&self) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search", feature = "Storage_Streams"))] +#[cfg(all(feature = "Storage_Search", feature = "Storage_Streams"))] impl IStorageItemAccessList_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn AddOverloadDefaultMetadata(this: *mut core::ffi::c_void, file: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -552,10 +542,7 @@ pub struct IStorageItemAccessList_Vtbl { pub ContainsItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub CheckAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Entries: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Entries: usize, pub MaximumItemsAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IStorageItemMostRecentlyUsedList, IStorageItemMostRecentlyUsedList_Vtbl, 0x016239d5_510d_411e_8cf1_c3d1effa4c33); @@ -770,7 +757,6 @@ impl StorageItemAccessList { (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn Entries(&self) -> windows_core::Result { let this = self; unsafe { @@ -907,7 +893,6 @@ impl StorageItemMostRecentlyUsedList { (windows_core::Interface::vtable(this).CheckAccess)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn Entries(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { diff --git a/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs b/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs index d58b31096ec..15b017a4c89 100644 --- a/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/BulkAccess/mod.rs @@ -395,48 +395,46 @@ impl windows_core::RuntimeName for FileInformation { pub struct FileInformationFactory(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(FileInformationFactory, windows_core::IUnknown, windows_core::IInspectable); impl FileInformationFactory { - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetItemsAsync)(windows_core::Interface::as_raw(this), startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { + pub fn GetItemsAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetItemsAsyncDefaultStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsync)(windows_core::Interface::as_raw(this), startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncDefaultStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] - pub fn GetFoldersAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + #[cfg(feature = "Storage_Search")] + pub fn GetFoldersAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsync)(windows_core::Interface::as_raw(this), startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] - pub fn GetFoldersAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Search")] + pub fn GetFoldersAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -583,24 +581,22 @@ impl FolderInformation { (windows_core::Interface::vtable(this).GetItemAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultOptionsStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { + pub fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultOptionsStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>> { + pub fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -686,40 +682,37 @@ impl FolderInformation { (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsync(&self, query: super::Search::CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsync(&self, query: super::Search::CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsync)(windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: super::Search::CommonFileQuery) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: super::Search::CommonFileQuery) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultStartAndCount)(windows_core::Interface::as_raw(this), query, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsync(&self, query: super::Search::CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + pub fn GetFoldersAsync(&self, query: super::Search::CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsync)(windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: super::Search::CommonFolderQuery) -> windows_core::Result>> { + pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: super::Search::CommonFolderQuery) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultStartAndCount)(windows_core::Interface::as_raw(this), query, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -995,29 +988,23 @@ impl windows_core::RuntimeType for IFileInformationFactory { #[repr(C)] pub struct IFileInformationFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsyncDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsyncDefaultStartAndCount: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFilesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFilesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFilesAsyncDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFilesAsyncDefaultStartAndCount: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] + #[cfg(feature = "Storage_Search")] pub GetFoldersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Search")))] + #[cfg(not(feature = "Storage_Search"))] GetFoldersAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] + #[cfg(feature = "Storage_Search")] pub GetFoldersAsyncDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Search")))] + #[cfg(not(feature = "Storage_Search"))] GetFoldersAsyncDefaultStartAndCount: usize, pub GetVirtualizedItemsVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetVirtualizedFilesVector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs b/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs index 6e629f38818..626e0df0f81 100644 --- a/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/FileProperties/mod.rs @@ -25,10 +25,9 @@ impl BasicProperties { (windows_core::Interface::vtable(this).ItemDate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -36,10 +35,9 @@ impl BasicProperties { (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -71,8 +69,7 @@ pub struct DocumentProperties(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DocumentProperties, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(DocumentProperties, IStorageItemExtraProperties); impl DocumentProperties { - #[cfg(feature = "Foundation_Collections")] - pub fn Author(&self) -> windows_core::Result> { + pub fn Author(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -90,8 +87,7 @@ impl DocumentProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Keywords(&self) -> windows_core::Result> { + pub fn Keywords(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -109,10 +105,9 @@ impl DocumentProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -120,10 +115,9 @@ impl DocumentProperties { (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -209,16 +203,10 @@ impl windows_core::RuntimeType for IDocumentProperties { #[repr(C)] pub struct IDocumentProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Author: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Author: usize, pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Keywords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Keywords: usize, pub Comment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetComment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -251,10 +239,7 @@ pub struct IImageProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Rating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetRating: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Keywords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Keywords: usize, pub DateTaken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub SetDateTaken: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime) -> windows_core::HRESULT, pub Width: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -268,10 +253,7 @@ pub struct IImageProperties_Vtbl { pub CameraModel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCameraModel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Orientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PhotoOrientation) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PeopleNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PeopleNames: usize, } windows_core::imp::define_interface!(IMusicProperties, IMusicProperties_Vtbl, 0xbc8aab62_66ec_419a_bc5d_ca65a4cb46da); impl windows_core::RuntimeType for IMusicProperties { @@ -284,10 +266,7 @@ pub struct IMusicProperties_Vtbl { pub SetAlbum: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Artist: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetArtist: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Genre: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Genre: usize, pub TrackNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetTrackNumber: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -298,26 +277,14 @@ pub struct IMusicProperties_Vtbl { pub Bitrate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub AlbumArtist: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAlbumArtist: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Composers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Composers: usize, - #[cfg(feature = "Foundation_Collections")] pub Conductors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Conductors: usize, pub Subtitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSubtitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Producers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Producers: usize, pub Publisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPublisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Writers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Writers: usize, pub Year: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetYear: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } @@ -339,10 +306,9 @@ impl windows_core::RuntimeType for IStorageItemExtraProperties { } windows_core::imp::interface_hierarchy!(IStorageItemExtraProperties, windows_core::IUnknown, windows_core::IInspectable); impl IStorageItemExtraProperties { - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -350,10 +316,9 @@ impl IStorageItemExtraProperties { (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = self; unsafe { @@ -369,17 +334,14 @@ impl IStorageItemExtraProperties { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IStorageItemExtraProperties { const NAME: &'static str = "Windows.Storage.FileProperties.IStorageItemExtraProperties"; } -#[cfg(feature = "Foundation_Collections")] pub trait IStorageItemExtraProperties_Impl: windows_core::IUnknownImpl { - fn RetrievePropertiesAsync(&self, propertiesToRetrieve: windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result>>; - fn SavePropertiesAsync(&self, propertiesToSave: windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>>) -> windows_core::Result; + fn RetrievePropertiesAsync(&self, propertiesToRetrieve: windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result>>; + fn SavePropertiesAsync(&self, propertiesToSave: windows_core::Ref<'_, windows_collections::IIterable>>) -> windows_core::Result; fn SavePropertiesAsyncOverloadDefault(&self) -> windows_core::Result; } -#[cfg(feature = "Foundation_Collections")] impl IStorageItemExtraProperties_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn RetrievePropertiesAsync(this: *mut core::ffi::c_void, propertiestoretrieve: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -435,14 +397,8 @@ impl IStorageItemExtraProperties_Vtbl { #[repr(C)] pub struct IStorageItemExtraProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RetrievePropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RetrievePropertiesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub SavePropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SavePropertiesAsync: usize, pub SavePropertiesAsyncOverloadDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IThumbnailProperties, IThumbnailProperties_Vtbl, 0x693dd42f_dbe7_49b5_b3b3_2893ac5d3423); @@ -466,10 +422,7 @@ pub struct IVideoProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Rating: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetRating: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Keywords: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Keywords: usize, pub Width: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Height: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Duration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, @@ -479,23 +432,14 @@ pub struct IVideoProperties_Vtbl { pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Subtitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSubtitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Producers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Producers: usize, pub Publisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetPublisher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Writers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Writers: usize, pub Year: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetYear: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub Bitrate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Directors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Directors: usize, pub Orientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut VideoOrientation) -> windows_core::HRESULT, } #[repr(transparent)] @@ -515,8 +459,7 @@ impl ImageProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRating)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Keywords(&self) -> windows_core::Result> { + pub fn Keywords(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -602,18 +545,16 @@ impl ImageProperties { (windows_core::Interface::vtable(this).Orientation)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn PeopleNames(&self) -> windows_core::Result> { + pub fn PeopleNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PeopleNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -621,10 +562,9 @@ impl ImageProperties { (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -678,8 +618,7 @@ impl MusicProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetArtist)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Genre(&self) -> windows_core::Result> { + pub fn Genre(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -744,16 +683,14 @@ impl MusicProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAlbumArtist)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Composers(&self) -> windows_core::Result> { + pub fn Composers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Composers)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Conductors(&self) -> windows_core::Result> { + pub fn Conductors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -771,8 +708,7 @@ impl MusicProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSubtitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Producers(&self) -> windows_core::Result> { + pub fn Producers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -790,8 +726,7 @@ impl MusicProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPublisher)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Writers(&self) -> windows_core::Result> { + pub fn Writers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -809,10 +744,9 @@ impl MusicProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetYear)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -820,10 +754,9 @@ impl MusicProperties { (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -953,10 +886,9 @@ impl StorageItemContentProperties { (windows_core::Interface::vtable(this).GetDocumentPropertiesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -964,10 +896,9 @@ impl StorageItemContentProperties { (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1239,10 +1170,9 @@ pub struct VideoProperties(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(VideoProperties, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(VideoProperties, IStorageItemExtraProperties); impl VideoProperties { - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, propertiestoretrieve: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1250,10 +1180,9 @@ impl VideoProperties { (windows_core::Interface::vtable(this).RetrievePropertiesAsync)(windows_core::Interface::as_raw(this), propertiestoretrieve.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SavePropertiesAsync(&self, propertiestosave: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1279,8 +1208,7 @@ impl VideoProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRating)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Keywords(&self) -> windows_core::Result> { + pub fn Keywords(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1344,8 +1272,7 @@ impl VideoProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSubtitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Producers(&self) -> windows_core::Result> { + pub fn Producers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1363,8 +1290,7 @@ impl VideoProperties { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPublisher)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Writers(&self) -> windows_core::Result> { + pub fn Writers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1389,8 +1315,7 @@ impl VideoProperties { (windows_core::Interface::vtable(this).Bitrate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Directors(&self) -> windows_core::Result> { + pub fn Directors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs b/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs index 77a57177d21..85618eb8678 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs @@ -51,8 +51,7 @@ impl FileOpenPickerUI { (windows_core::Interface::vtable(this).CanAddFile)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllowedFileTypes(&self) -> windows_core::Result> { + pub fn AllowedFileTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -170,8 +169,7 @@ impl FileSavePickerUI { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AllowedFileTypes(&self) -> windows_core::Result> { + pub fn AllowedFileTypes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -268,10 +266,7 @@ pub struct IFileOpenPickerUI_Vtbl { pub CanAddFile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] CanAddFile: usize, - #[cfg(feature = "Foundation_Collections")] pub AllowedFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllowedFileTypes: usize, pub SelectionMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FileSelectionMode) -> windows_core::HRESULT, pub SettingsIdentifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -308,10 +303,7 @@ pub struct IFileSavePickerUI_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AllowedFileTypes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AllowedFileTypes: usize, pub SettingsIdentifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub TrySetFileName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut SetFileNameResult) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs index 4abec4a99e3..36252c7d230 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs @@ -1,17 +1,13 @@ #[cfg(feature = "Storage_Pickers_Provider")] pub mod Provider; -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct FileExtensionVector(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(FileExtensionVector, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(FileExtensionVector, super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(FileExtensionVector, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVector); +windows_core::imp::required_hierarchy!(FileExtensionVector, windows_collections::IIterable); impl FileExtensionVector { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -31,7 +27,7 @@ impl FileExtensionVector { (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -81,35 +77,28 @@ impl FileExtensionVector { unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for FileExtensionVector { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for FileExtensionVector { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for FileExtensionVector { const NAME: &'static str = "Windows.Storage.Pickers.FileExtensionVector"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for FileExtensionVector {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for FileExtensionVector {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for FileExtensionVector { type Item = windows_core::HSTRING; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &FileExtensionVector { type Item = windows_core::HSTRING; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -170,8 +159,7 @@ impl FileOpenPicker { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCommitButtonText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FileTypeFilter(&self) -> windows_core::Result> { + pub fn FileTypeFilter(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -186,8 +174,8 @@ impl FileOpenPicker { (windows_core::Interface::vtable(this).PickSingleFileAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn PickMultipleFilesAsync(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn PickMultipleFilesAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -266,24 +254,20 @@ impl windows_core::RuntimeName for FileOpenPicker { } unsafe impl Send for FileOpenPicker {} unsafe impl Sync for FileOpenPicker {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct FilePickerFileTypesOrderedMap(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy ! ( FilePickerFileTypesOrderedMap , windows_core::IUnknown , windows_core::IInspectable , super::super::Foundation::Collections:: IMap < windows_core::HSTRING , super::super::Foundation::Collections:: IVector < windows_core::HSTRING > > ); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(FilePickerFileTypesOrderedMap, super::super::Foundation::Collections::IIterable>>); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy ! ( FilePickerFileTypesOrderedMap , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMap < windows_core::HSTRING , windows_collections:: IVector < windows_core::HSTRING > > ); +windows_core::imp::required_hierarchy!(FilePickerFileTypesOrderedMap, windows_collections::IIterable>>); impl FilePickerFileTypesOrderedMap { - pub fn First(&self) -> windows_core::Result>>> { - let this = &windows_core::Interface::cast::>>>(self)?; + pub fn First(&self) -> windows_core::Result>>> { + let this = &windows_core::Interface::cast::>>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result> { + pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -304,7 +288,7 @@ impl FilePickerFileTypesOrderedMap { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result>> { + pub fn GetView(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -313,7 +297,7 @@ impl FilePickerFileTypesOrderedMap { } pub fn Insert(&self, key: &windows_core::HSTRING, value: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -330,51 +314,44 @@ impl FilePickerFileTypesOrderedMap { unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for FilePickerFileTypesOrderedMap { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for FilePickerFileTypesOrderedMap { - type Vtable = > as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = > as windows_core::Interface>::IID; + type Vtable = > as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = > as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for FilePickerFileTypesOrderedMap { const NAME: &'static str = "Windows.Storage.Pickers.FilePickerFileTypesOrderedMap"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for FilePickerFileTypesOrderedMap {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for FilePickerFileTypesOrderedMap {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for FilePickerFileTypesOrderedMap { - type Item = super::super::Foundation::Collections::IKeyValuePair>; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair>; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &FilePickerFileTypesOrderedMap { - type Item = super::super::Foundation::Collections::IKeyValuePair>; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair>; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct FilePickerSelectedFilesArray(windows_core::IUnknown); -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] -windows_core::imp::interface_hierarchy!(FilePickerSelectedFilesArray, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVectorView); -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] -windows_core::imp::required_hierarchy!(FilePickerSelectedFilesArray, super::super::Foundation::Collections::IIterable); -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] +windows_core::imp::interface_hierarchy!(FilePickerSelectedFilesArray, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +#[cfg(feature = "Storage_Streams")] +windows_core::imp::required_hierarchy!(FilePickerSelectedFilesArray, windows_collections::IIterable); +#[cfg(feature = "Storage_Streams")] impl FilePickerSelectedFilesArray { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -412,35 +389,35 @@ impl FilePickerSelectedFilesArray { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl windows_core::RuntimeType for FilePickerSelectedFilesArray { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] unsafe impl windows_core::Interface for FilePickerSelectedFilesArray { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl windows_core::RuntimeName for FilePickerSelectedFilesArray { const NAME: &'static str = "Windows.Storage.Pickers.FilePickerSelectedFilesArray"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] unsafe impl Send for FilePickerSelectedFilesArray {} -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] unsafe impl Sync for FilePickerSelectedFilesArray {} -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl IntoIterator for FilePickerSelectedFilesArray { type Item = super::StorageFile; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl IntoIterator for &FilePickerSelectedFilesArray { type Item = super::StorageFile; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -490,8 +467,7 @@ impl FileSavePicker { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCommitButtonText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FileTypeChoices(&self) -> windows_core::Result>> { + pub fn FileTypeChoices(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -659,8 +635,7 @@ impl FolderPicker { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCommitButtonText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FileTypeFilter(&self) -> windows_core::Result> { + pub fn FileTypeFilter(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -738,17 +713,14 @@ pub struct IFileOpenPicker_Vtbl { pub SetSuggestedStartLocation: unsafe extern "system" fn(*mut core::ffi::c_void, PickerLocationId) -> windows_core::HRESULT, pub CommitButtonText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCommitButtonText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FileTypeFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FileTypeFilter: usize, #[cfg(feature = "Storage_Streams")] pub PickSingleFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] PickSingleFileAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub PickMultipleFilesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] PickMultipleFilesAsync: usize, } windows_core::imp::define_interface!(IFileOpenPicker2, IFileOpenPicker2_Vtbl, 0x8ceb6cd2_b446_46f7_b265_90f8e55ad650); @@ -832,10 +804,7 @@ pub struct IFileSavePicker_Vtbl { pub SetSuggestedStartLocation: unsafe extern "system" fn(*mut core::ffi::c_void, PickerLocationId) -> windows_core::HRESULT, pub CommitButtonText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCommitButtonText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FileTypeChoices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FileTypeChoices: usize, pub DefaultFileExtension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDefaultFileExtension: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -918,10 +887,7 @@ pub struct IFolderPicker_Vtbl { pub SetSuggestedStartLocation: unsafe extern "system" fn(*mut core::ffi::c_void, PickerLocationId) -> windows_core::HRESULT, pub CommitButtonText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetCommitButtonText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FileTypeFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FileTypeFilter: usize, #[cfg(feature = "Storage_Search")] pub PickSingleFolderAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Search"))] diff --git a/crates/libs/windows/src/Windows/Storage/Provider/mod.rs b/crates/libs/windows/src/Windows/Storage/Provider/mod.rs index b1a907c522a..f9d0d32005d 100644 --- a/crates/libs/windows/src/Windows/Storage/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Provider/mod.rs @@ -425,10 +425,7 @@ impl windows_core::RuntimeType for IStorageProviderItemPropertiesStatics { #[repr(C)] pub struct IStorageProviderItemPropertiesStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SetAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - SetAsync: usize, } windows_core::imp::define_interface!(IStorageProviderItemProperty, IStorageProviderItemProperty_Vtbl, 0x476cb558_730b_4188_b7b5_63b716ed476d); impl windows_core::RuntimeType for IStorageProviderItemProperty { @@ -462,8 +459,7 @@ impl windows_core::RuntimeType for IStorageProviderItemPropertySource { } windows_core::imp::interface_hierarchy!(IStorageProviderItemPropertySource, windows_core::IUnknown, windows_core::IInspectable); impl IStorageProviderItemPropertySource { - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemProperties(&self, itempath: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetItemProperties(&self, itempath: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -471,15 +467,12 @@ impl IStorageProviderItemPropertySource { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IStorageProviderItemPropertySource { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderItemPropertySource"; } -#[cfg(feature = "Foundation_Collections")] pub trait IStorageProviderItemPropertySource_Impl: windows_core::IUnknownImpl { - fn GetItemProperties(&self, itemPath: &windows_core::HSTRING) -> windows_core::Result>; + fn GetItemProperties(&self, itemPath: &windows_core::HSTRING) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IStorageProviderItemPropertySource_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetItemProperties(this: *mut core::ffi::c_void, itempath: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -507,10 +500,7 @@ impl IStorageProviderItemPropertySource_Vtbl { #[repr(C)] pub struct IStorageProviderItemPropertySource_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetItemProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemProperties: usize, } windows_core::imp::define_interface!(IStorageProviderKnownFolderEntry, IStorageProviderKnownFolderEntry_Vtbl, 0xeffa7db0_1d44_596b_8464_928800c5e2d8); impl windows_core::RuntimeType for IStorageProviderKnownFolderEntry { @@ -533,10 +523,7 @@ pub struct IStorageProviderKnownFolderSyncInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ProviderDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetProviderDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub KnownFolderEntries: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - KnownFolderEntries: usize, pub SyncRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSyncRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -683,10 +670,7 @@ impl windows_core::RuntimeType for IStorageProviderKnownFolderSyncRequestArgs { #[repr(C)] pub struct IStorageProviderKnownFolderSyncRequestArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub KnownFolders: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - KnownFolders: usize, #[cfg(feature = "Storage_Search")] pub Source: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Search"))] @@ -780,10 +764,9 @@ impl windows_core::RuntimeType for IStorageProviderShareLinkSource { } windows_core::imp::interface_hierarchy!(IStorageProviderShareLinkSource, windows_core::IUnknown, windows_core::IInspectable); impl IStorageProviderShareLinkSource { - #[cfg(feature = "Foundation_Collections")] pub fn CreateLinkAsync(&self, storageitemlist: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -791,10 +774,9 @@ impl IStorageProviderShareLinkSource { (windows_core::Interface::vtable(this).CreateLinkAsync)(windows_core::Interface::as_raw(this), storageitemlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetDefaultAccessControlStringAsync(&self, storageitemlist: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -802,10 +784,9 @@ impl IStorageProviderShareLinkSource { (windows_core::Interface::vtable(this).GetDefaultAccessControlStringAsync)(windows_core::Interface::as_raw(this), storageitemlist.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn GetState(&self, storageitemlist: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -814,17 +795,14 @@ impl IStorageProviderShareLinkSource { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IStorageProviderShareLinkSource { const NAME: &'static str = "Windows.Storage.Provider.IStorageProviderShareLinkSource"; } -#[cfg(feature = "Foundation_Collections")] pub trait IStorageProviderShareLinkSource_Impl: windows_core::IUnknownImpl { - fn CreateLinkAsync(&self, storageItemList: windows_core::Ref<'_, super::super::Foundation::Collections::IVectorView>) -> windows_core::Result>; - fn GetDefaultAccessControlStringAsync(&self, storageItemList: windows_core::Ref<'_, super::super::Foundation::Collections::IVectorView>) -> windows_core::Result>; - fn GetState(&self, storageItemList: windows_core::Ref<'_, super::super::Foundation::Collections::IVectorView>) -> windows_core::Result>; + fn CreateLinkAsync(&self, storageItemList: windows_core::Ref<'_, windows_collections::IVectorView>) -> windows_core::Result>; + fn GetDefaultAccessControlStringAsync(&self, storageItemList: windows_core::Ref<'_, windows_collections::IVectorView>) -> windows_core::Result>; + fn GetState(&self, storageItemList: windows_core::Ref<'_, windows_collections::IVectorView>) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IStorageProviderShareLinkSource_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateLinkAsync(this: *mut core::ffi::c_void, storageitemlist: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -880,18 +858,9 @@ impl IStorageProviderShareLinkSource_Vtbl { #[repr(C)] pub struct IStorageProviderShareLinkSource_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateLinkAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateLinkAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetDefaultAccessControlStringAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDefaultAccessControlStringAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetState: usize, } windows_core::imp::define_interface!(IStorageProviderStatusUI, IStorageProviderStatusUI_Vtbl, 0xd6b6a758_198d_5b80_977f_5ff73da33118); impl windows_core::RuntimeType for IStorageProviderStatusUI { @@ -914,14 +883,8 @@ pub struct IStorageProviderStatusUI_Vtbl { pub SetMoreInfoUI: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProviderPrimaryCommand: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetProviderPrimaryCommand: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ProviderSecondaryCommands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProviderSecondaryCommands: usize, - #[cfg(feature = "Foundation_Collections")] pub SetProviderSecondaryCommands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetProviderSecondaryCommands: usize, } windows_core::imp::define_interface!(IStorageProviderStatusUISource, IStorageProviderStatusUISource_Vtbl, 0xa306c249_3d66_5e70_9007_e43df96051ff); impl windows_core::RuntimeType for IStorageProviderStatusUISource { @@ -1100,10 +1063,7 @@ pub struct IStorageProviderSyncRootInfo_Vtbl { pub SetProtectionMode: unsafe extern "system" fn(*mut core::ffi::c_void, StorageProviderProtectionMode) -> windows_core::HRESULT, pub AllowPinning: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetAllowPinning: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StorageProviderItemPropertyDefinitions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StorageProviderItemPropertyDefinitions: usize, pub RecycleBinUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRecycleBinUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1124,10 +1084,7 @@ impl windows_core::RuntimeType for IStorageProviderSyncRootInfo3 { #[repr(C)] pub struct IStorageProviderSyncRootInfo3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FallbackFileTypeInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FallbackFileTypeInfo: usize, } windows_core::imp::define_interface!(IStorageProviderSyncRootManagerStatics, IStorageProviderSyncRootManagerStatics_Vtbl, 0x3e99fbbf_8fe3_4b40_abc7_f6fc3d74c98e); impl windows_core::RuntimeType for IStorageProviderSyncRootManagerStatics { @@ -1140,10 +1097,7 @@ pub struct IStorageProviderSyncRootManagerStatics_Vtbl { pub Unregister: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSyncRootInformationForFolder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetSyncRootInformationForId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetCurrentSyncRoots: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCurrentSyncRoots: usize, } windows_core::imp::define_interface!(IStorageProviderSyncRootManagerStatics2, IStorageProviderSyncRootManagerStatics2_Vtbl, 0xefb6cfee_1374_544e_9df1_5598d2e9cfdd); impl windows_core::RuntimeType for IStorageProviderSyncRootManagerStatics2 { @@ -1670,11 +1624,10 @@ impl core::ops::Not for StorageProviderInSyncPolicy { } pub struct StorageProviderItemProperties; impl StorageProviderItemProperties { - #[cfg(feature = "Foundation_Collections")] pub fn SetAsync(item: P0, itemproperties: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IStorageProviderItemPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1864,8 +1817,7 @@ impl StorageProviderKnownFolderSyncInfo { let this = self; unsafe { (windows_core::Interface::vtable(this).SetProviderDisplayName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn KnownFolderEntries(&self) -> windows_core::Result> { + pub fn KnownFolderEntries(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1904,8 +1856,7 @@ unsafe impl Sync for StorageProviderKnownFolderSyncInfo {} pub struct StorageProviderKnownFolderSyncRequestArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(StorageProviderKnownFolderSyncRequestArgs, windows_core::IUnknown, windows_core::IInspectable); impl StorageProviderKnownFolderSyncRequestArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn KnownFolders(&self) -> windows_core::Result> { + pub fn KnownFolders(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2299,18 +2250,16 @@ impl StorageProviderStatusUI { let this = self; unsafe { (windows_core::Interface::vtable(this).SetProviderPrimaryCommand)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn ProviderSecondaryCommands(&self) -> windows_core::Result> { + pub fn ProviderSecondaryCommands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ProviderSecondaryCommands)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetProviderSecondaryCommands(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetProviderSecondaryCommands)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -2502,8 +2451,7 @@ impl StorageProviderSyncRootInfo { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowPinning)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn StorageProviderItemPropertyDefinitions(&self) -> windows_core::Result> { + pub fn StorageProviderItemPropertyDefinitions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2535,8 +2483,7 @@ impl StorageProviderSyncRootInfo { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProviderId)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FallbackFileTypeInfo(&self) -> windows_core::Result> { + pub fn FallbackFileTypeInfo(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2582,8 +2529,7 @@ impl StorageProviderSyncRootManager { (windows_core::Interface::vtable(this).GetSyncRootInformationForId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCurrentSyncRoots() -> windows_core::Result> { + pub fn GetCurrentSyncRoots() -> windows_core::Result> { Self::IStorageProviderSyncRootManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetCurrentSyncRoots)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Storage/Search/mod.rs b/crates/libs/windows/src/Windows/Storage/Search/mod.rs index bee0dc926c2..823b2973057 100644 --- a/crates/libs/windows/src/Windows/Storage/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Search/mod.rs @@ -71,10 +71,9 @@ impl ContentIndexer { (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(contentid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn DeleteMultipleAsync(&self, contentids: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -89,10 +88,9 @@ impl ContentIndexer { (windows_core::Interface::vtable(this).DeleteAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RetrievePropertiesAsync(&self, contentid: &windows_core::HSTRING, propertiestoretrieve: P1) -> windows_core::Result>> + pub fn RetrievePropertiesAsync(&self, contentid: &windows_core::HSTRING, propertiestoretrieve: P1) -> windows_core::Result>> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -107,11 +105,10 @@ impl ContentIndexer { (windows_core::Interface::vtable(this).Revision)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateQueryWithSortOrderAndLanguage(&self, searchfilter: &windows_core::HSTRING, propertiestoretrieve: P1, sortorder: P2, searchfilterlanguage: &windows_core::HSTRING) -> windows_core::Result where - P1: windows_core::Param>, - P2: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -119,11 +116,10 @@ impl ContentIndexer { (windows_core::Interface::vtable(this).CreateQueryWithSortOrderAndLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.param().abi(), sortorder.param().abi(), core::mem::transmute_copy(searchfilterlanguage), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateQueryWithSortOrder(&self, searchfilter: &windows_core::HSTRING, propertiestoretrieve: P1, sortorder: P2) -> windows_core::Result where - P1: windows_core::Param>, - P2: windows_core::Param>, + P1: windows_core::Param>, + P2: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -131,10 +127,9 @@ impl ContentIndexer { (windows_core::Interface::vtable(this).CreateQueryWithSortOrder)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(searchfilter), propertiestoretrieve.param().abi(), sortorder.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateQuery(&self, searchfilter: &windows_core::HSTRING, propertiestoretrieve: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -183,32 +178,28 @@ impl ContentIndexerQuery { (windows_core::Interface::vtable(this).GetCountAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPropertiesAsync(&self) -> windows_core::Result>>> { + pub fn GetPropertiesAsync(&self) -> windows_core::Result>>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPropertiesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetPropertiesRangeAsync(&self, startindex: u32, maxitems: u32) -> windows_core::Result>>> { + pub fn GetPropertiesRangeAsync(&self, startindex: u32, maxitems: u32) -> windows_core::Result>>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPropertiesRangeAsync)(windows_core::Interface::as_raw(this), startindex, maxitems, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAsync(&self) -> windows_core::Result>> { + pub fn GetAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRangeAsync(&self, startindex: u32, maxitems: u32) -> windows_core::Result>> { + pub fn GetRangeAsync(&self, startindex: u32, maxitems: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -272,15 +263,9 @@ pub struct IContentIndexer_Vtbl { pub AddAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UpdateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DeleteMultipleAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeleteMultipleAsync: usize, pub DeleteAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RetrievePropertiesAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - RetrievePropertiesAsync: usize, pub Revision: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IContentIndexerQuery, IContentIndexerQuery_Vtbl, 0x70e3b0f8_4bfc_428a_8889_cc51da9a7b9d); @@ -291,22 +276,10 @@ impl windows_core::RuntimeType for IContentIndexerQuery { pub struct IContentIndexerQuery_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetCountAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPropertiesAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetPropertiesRangeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetPropertiesRangeAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetRangeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRangeAsync: usize, pub QueryFolder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IContentIndexerQueryOperations, IContentIndexerQueryOperations_Vtbl, 0x28823e10_4786_42f1_9730_792b3566b150); @@ -316,18 +289,9 @@ impl windows_core::RuntimeType for IContentIndexerQueryOperations { #[repr(C)] pub struct IContentIndexerQueryOperations_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateQueryWithSortOrderAndLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateQueryWithSortOrderAndLanguage: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateQueryWithSortOrder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateQueryWithSortOrder: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateQuery: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateQuery: usize, } windows_core::imp::define_interface!(IContentIndexerStatics, IContentIndexerStatics_Vtbl, 0x8c488375_b37e_4c60_9ba8_b760fda3e59d); impl windows_core::RuntimeType for IContentIndexerStatics { @@ -356,8 +320,7 @@ impl IIndexableContent { let this = self; unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -392,21 +355,21 @@ impl IIndexableContent { unsafe { (windows_core::Interface::vtable(this).SetStreamContentType)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl windows_core::RuntimeName for IIndexableContent { const NAME: &'static str = "Windows.Storage.Search.IIndexableContent"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] pub trait IIndexableContent_Impl: windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn SetId(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; - fn Properties(&self) -> windows_core::Result>; + fn Properties(&self) -> windows_core::Result>; fn Stream(&self) -> windows_core::Result; fn SetStream(&self, value: windows_core::Ref<'_, super::Streams::IRandomAccessStream>) -> windows_core::Result<()>; fn StreamContentType(&self) -> windows_core::Result; fn SetStreamContentType(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl IIndexableContent_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -499,10 +462,7 @@ pub struct IIndexableContent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, #[cfg(feature = "Storage_Streams")] pub Stream: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] @@ -521,10 +481,7 @@ impl windows_core::RuntimeType for IQueryOptions { #[repr(C)] pub struct IQueryOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FileTypeFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FileTypeFilter: usize, pub FolderDepth: unsafe extern "system" fn(*mut core::ffi::c_void, *mut FolderDepth) -> windows_core::HRESULT, pub SetFolderDepth: unsafe extern "system" fn(*mut core::ffi::c_void, FolderDepth) -> windows_core::HRESULT, pub ApplicationSearchFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -535,10 +492,7 @@ pub struct IQueryOptions_Vtbl { pub SetLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IndexerOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IndexerOption) -> windows_core::HRESULT, pub SetIndexerOption: unsafe extern "system" fn(*mut core::ffi::c_void, IndexerOption) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SortOrder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SortOrder: usize, pub GroupPropertyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DateStackOption: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DateStackOption) -> windows_core::HRESULT, pub SaveToString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -547,9 +501,9 @@ pub struct IQueryOptions_Vtbl { pub SetThumbnailPrefetch: unsafe extern "system" fn(*mut core::ffi::c_void, super::FileProperties::ThumbnailMode, u32, super::FileProperties::ThumbnailOptions) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_FileProperties"))] SetThumbnailPrefetch: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties"))] + #[cfg(feature = "Storage_FileProperties")] pub SetPropertyPrefetch: unsafe extern "system" fn(*mut core::ffi::c_void, super::FileProperties::PropertyPrefetchOptions, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_FileProperties")))] + #[cfg(not(feature = "Storage_FileProperties"))] SetPropertyPrefetch: usize, } windows_core::imp::define_interface!(IQueryOptionsFactory, IQueryOptionsFactory_Vtbl, 0x032e1f8c_a9c1_4e71_8011_0dee9d4811a3); @@ -559,10 +513,7 @@ impl windows_core::RuntimeType for IQueryOptionsFactory { #[repr(C)] pub struct IQueryOptionsFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateCommonFileQuery: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFileQuery, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateCommonFileQuery: usize, pub CreateCommonFolderQuery: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFolderQuery, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IQueryOptionsWithProviderFilter, IQueryOptionsWithProviderFilter_Vtbl, 0x5b9d1026_15c4_44dd_b89a_47a59b7d7c4f); @@ -572,10 +523,7 @@ impl windows_core::RuntimeType for IQueryOptionsWithProviderFilter { #[repr(C)] pub struct IQueryOptionsWithProviderFilter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub StorageProviderIdFilter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StorageProviderIdFilter: usize, } windows_core::imp::define_interface!(IStorageFileQueryResult, IStorageFileQueryResult_Vtbl, 0x52fda447_2baa_412c_b29f_d4b1778efa1e); impl windows_core::RuntimeType for IStorageFileQueryResult { @@ -584,13 +532,13 @@ impl windows_core::RuntimeType for IStorageFileQueryResult { #[repr(C)] pub struct IStorageFileQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFilesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFilesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFilesAsyncDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFilesAsyncDefaultStartAndCount: usize, } windows_core::imp::define_interface!(IStorageFileQueryResult2, IStorageFileQueryResult2_Vtbl, 0x4e5db9dd_7141_46c4_8be3_e9dc9e27275c); @@ -600,9 +548,9 @@ impl windows_core::RuntimeType for IStorageFileQueryResult2 { #[repr(C)] pub struct IStorageFileQueryResult2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Data_Text", feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(all(feature = "Data_Text", feature = "Storage_Streams"))] pub GetMatchingPropertiesWithRanges: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Data_Text", feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(all(feature = "Data_Text", feature = "Storage_Streams")))] GetMatchingPropertiesWithRanges: usize, } windows_core::imp::define_interface!(IStorageFolderQueryOperations, IStorageFolderQueryOperations_Vtbl, 0xcb43ccc9_446b_4a4f_be97_757771be5203); @@ -683,40 +631,37 @@ impl IStorageFolderQueryOperations { (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsync(&self, query: CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsync(&self, query: CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsync)(windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: CommonFileQuery) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: CommonFileQuery) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultStartAndCount)(windows_core::Interface::as_raw(this), query, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsync(&self, query: CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + pub fn GetFoldersAsync(&self, query: CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsync)(windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: CommonFolderQuery) -> windows_core::Result>> { + pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: CommonFolderQuery) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultStartAndCount)(windows_core::Interface::as_raw(this), query, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -748,11 +693,11 @@ impl IStorageFolderQueryOperations { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl windows_core::RuntimeName for IStorageFolderQueryOperations { const NAME: &'static str = "Windows.Storage.Search.IStorageFolderQueryOperations"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] pub trait IStorageFolderQueryOperations_Impl: windows_core::IUnknownImpl { fn GetIndexedStateAsync(&self) -> windows_core::Result>; fn CreateFileQueryOverloadDefault(&self) -> windows_core::Result; @@ -763,16 +708,16 @@ pub trait IStorageFolderQueryOperations_Impl: windows_core::IUnknownImpl { fn CreateFolderQueryWithOptions(&self, queryOptions: windows_core::Ref<'_, QueryOptions>) -> windows_core::Result; fn CreateItemQuery(&self) -> windows_core::Result; fn CreateItemQueryWithOptions(&self, queryOptions: windows_core::Ref<'_, QueryOptions>) -> windows_core::Result; - fn GetFilesAsync(&self, query: CommonFileQuery, startIndex: u32, maxItemsToRetrieve: u32) -> windows_core::Result>>; - fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: CommonFileQuery) -> windows_core::Result>>; - fn GetFoldersAsync(&self, query: CommonFolderQuery, startIndex: u32, maxItemsToRetrieve: u32) -> windows_core::Result>>; - fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: CommonFolderQuery) -> windows_core::Result>>; - fn GetItemsAsync(&self, startIndex: u32, maxItemsToRetrieve: u32) -> windows_core::Result>>; + fn GetFilesAsync(&self, query: CommonFileQuery, startIndex: u32, maxItemsToRetrieve: u32) -> windows_core::Result>>; + fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: CommonFileQuery) -> windows_core::Result>>; + fn GetFoldersAsync(&self, query: CommonFolderQuery, startIndex: u32, maxItemsToRetrieve: u32) -> windows_core::Result>>; + fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: CommonFolderQuery) -> windows_core::Result>>; + fn GetItemsAsync(&self, startIndex: u32, maxItemsToRetrieve: u32) -> windows_core::Result>>; fn AreQueryOptionsSupported(&self, queryOptions: windows_core::Ref<'_, QueryOptions>) -> windows_core::Result; fn IsCommonFolderQuerySupported(&self, query: CommonFolderQuery) -> windows_core::Result; fn IsCommonFileQuerySupported(&self, query: CommonFileQuery) -> windows_core::Result; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl IStorageFolderQueryOperations_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn GetIndexedStateAsync(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1030,26 +975,17 @@ pub struct IStorageFolderQueryOperations_Vtbl { pub CreateFolderQueryWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateItemQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateItemQueryWithOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFilesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFileQuery, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFilesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFilesAsyncOverloadDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFileQuery, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFilesAsyncOverloadDefaultStartAndCount: usize, - #[cfg(feature = "Foundation_Collections")] pub GetFoldersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFolderQuery, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFoldersAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetFoldersAsyncOverloadDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFolderQuery, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFoldersAsyncOverloadDefaultStartAndCount: usize, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsync: usize, pub AreQueryOptionsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsCommonFolderQuerySupported: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFolderQuery, *mut bool) -> windows_core::HRESULT, pub IsCommonFileQuerySupported: unsafe extern "system" fn(*mut core::ffi::c_void, CommonFileQuery, *mut bool) -> windows_core::HRESULT, @@ -1061,14 +997,8 @@ impl windows_core::RuntimeType for IStorageFolderQueryResult { #[repr(C)] pub struct IStorageFolderQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetFoldersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFoldersAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetFoldersAsyncDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFoldersAsyncDefaultStartAndCount: usize, } windows_core::imp::define_interface!(IStorageItemQueryResult, IStorageItemQueryResult_Vtbl, 0xe8948079_9d58_47b8_b2b2_41b07f4795f9); impl windows_core::RuntimeType for IStorageItemQueryResult { @@ -1077,14 +1007,8 @@ impl windows_core::RuntimeType for IStorageItemQueryResult { #[repr(C)] pub struct IStorageItemQueryResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsyncDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsyncDefaultStartAndCount: usize, } windows_core::imp::define_interface!(IStorageLibraryChangeTrackerTriggerDetails, IStorageLibraryChangeTrackerTriggerDetails_Vtbl, 0x1dc7a369_b7a3_4df2_9d61_eba85a0343d2); impl windows_core::RuntimeType for IStorageLibraryChangeTrackerTriggerDetails { @@ -1354,8 +1278,7 @@ impl IndexableContent { let this = self; unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1444,8 +1367,7 @@ impl QueryOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn FileTypeFilter(&self) -> windows_core::Result> { + pub fn FileTypeFilter(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1507,8 +1429,7 @@ impl QueryOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIndexerOption)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn SortOrder(&self) -> windows_core::Result> { + pub fn SortOrder(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1545,18 +1466,17 @@ impl QueryOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetThumbnailPrefetch)(windows_core::Interface::as_raw(this), mode, requestedsize, options).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties"))] + #[cfg(feature = "Storage_FileProperties")] pub fn SetPropertyPrefetch(&self, options: super::FileProperties::PropertyPrefetchOptions, propertiestoretrieve: P1) -> windows_core::Result<()> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPropertyPrefetch)(windows_core::Interface::as_raw(this), options, propertiestoretrieve.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateCommonFileQuery(query: CommonFileQuery, filetypefilter: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IQueryOptionsFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1569,8 +1489,7 @@ impl QueryOptions { (windows_core::Interface::vtable(this).CreateCommonFolderQuery)(windows_core::Interface::as_raw(this), query, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn StorageProviderIdFilter(&self) -> windows_core::Result> { + pub fn StorageProviderIdFilter(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1606,18 +1525,14 @@ impl windows_core::TypeKind for SortEntry { impl windows_core::RuntimeType for SortEntry { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"struct(Windows.Storage.Search.SortEntry;string;b1)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct SortEntryVector(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(SortEntryVector, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(SortEntryVector, super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(SortEntryVector, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVector); +windows_core::imp::required_hierarchy!(SortEntryVector, windows_collections::IIterable); impl SortEntryVector { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1637,7 +1552,7 @@ impl SortEntryVector { (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1687,31 +1602,26 @@ impl SortEntryVector { unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for SortEntryVector { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for SortEntryVector { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for SortEntryVector { const NAME: &'static str = "Windows.Storage.Search.SortEntryVector"; } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for SortEntryVector { type Item = SortEntry; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &SortEntryVector { type Item = SortEntry; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1722,24 +1632,24 @@ pub struct StorageFileQueryResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(StorageFileQueryResult, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(StorageFileQueryResult, IStorageQueryResultBase); impl StorageFileQueryResult { - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsync(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsync(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsync)(windows_core::Interface::as_raw(this), startindex, maxnumberofitems, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncDefaultStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Data_Text", feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetMatchingPropertiesWithRanges(&self, file: P0) -> windows_core::Result>> + #[cfg(all(feature = "Data_Text", feature = "Storage_Streams"))] + pub fn GetMatchingPropertiesWithRanges(&self, file: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -1832,16 +1742,14 @@ pub struct StorageFolderQueryResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(StorageFolderQueryResult, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(StorageFolderQueryResult, IStorageQueryResultBase); impl StorageFolderQueryResult { - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsync(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { + pub fn GetFoldersAsync(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsync)(windows_core::Interface::as_raw(this), startindex, maxnumberofitems, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { + pub fn GetFoldersAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1931,16 +1839,14 @@ pub struct StorageItemQueryResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(StorageItemQueryResult, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(StorageItemQueryResult, IStorageQueryResultBase); impl StorageItemQueryResult { - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsync(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { + pub fn GetItemsAsync(&self, startindex: u32, maxnumberofitems: u32) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetItemsAsync)(windows_core::Interface::as_raw(this), startindex, maxnumberofitems, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { + pub fn GetItemsAsyncDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Storage/mod.rs b/crates/libs/windows/src/Windows/Storage/mod.rs index faa0c32e97c..5b109b45d0b 100644 --- a/crates/libs/windows/src/Windows/Storage/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/mod.rs @@ -294,7 +294,7 @@ pub struct ApplicationDataCompositeValue(windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(ApplicationDataCompositeValue, windows_core::IUnknown, windows_core::IInspectable, super::Foundation::Collections::IPropertySet); #[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( ApplicationDataCompositeValue , super::Foundation::Collections:: IIterable < super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , super::Foundation::Collections:: IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); +windows_core::imp::required_hierarchy ! ( ApplicationDataCompositeValue , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , super::Foundation::Collections:: IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); #[cfg(feature = "Foundation_Collections")] impl ApplicationDataCompositeValue { pub fn new() -> windows_core::Result { @@ -304,36 +304,36 @@ impl ApplicationDataCompositeValue { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -343,18 +343,18 @@ impl ApplicationDataCompositeValue { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result @@ -391,16 +391,16 @@ unsafe impl Send for ApplicationDataCompositeValue {} unsafe impl Sync for ApplicationDataCompositeValue {} #[cfg(feature = "Foundation_Collections")] impl IntoIterator for ApplicationDataCompositeValue { - type Item = super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } #[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ApplicationDataCompositeValue { - type Item = super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -433,8 +433,7 @@ impl ApplicationDataContainer { (windows_core::Interface::vtable(this).Values)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Containers(&self) -> windows_core::Result> { + pub fn Containers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -476,39 +475,39 @@ pub struct ApplicationDataContainerSettings(windows_core::IUnknown); #[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(ApplicationDataContainerSettings, windows_core::IUnknown, windows_core::IInspectable, super::Foundation::Collections::IPropertySet); #[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( ApplicationDataContainerSettings , super::Foundation::Collections:: IIterable < super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , super::Foundation::Collections:: IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); +windows_core::imp::required_hierarchy ! ( ApplicationDataContainerSettings , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::IInspectable > , super::Foundation::Collections:: IObservableMap < windows_core::HSTRING , windows_core::IInspectable > ); #[cfg(feature = "Foundation_Collections")] impl ApplicationDataContainerSettings { - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -518,18 +517,18 @@ impl ApplicationDataContainerSettings { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn MapChanged(&self, vhnd: P0) -> windows_core::Result @@ -566,16 +565,16 @@ unsafe impl Send for ApplicationDataContainerSettings {} unsafe impl Sync for ApplicationDataContainerSettings {} #[cfg(feature = "Foundation_Collections")] impl IntoIterator for ApplicationDataContainerSettings { - type Item = super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } #[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ApplicationDataContainerSettings { - type Item = super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -926,8 +925,8 @@ impl FileIO { (windows_core::Interface::vtable(this).AppendTextWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(contents), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn ReadLinesAsync(file: P0) -> windows_core::Result>> + #[cfg(feature = "Storage_Streams")] + pub fn ReadLinesAsync(file: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -936,8 +935,8 @@ impl FileIO { (windows_core::Interface::vtable(this).ReadLinesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn ReadLinesWithEncodingAsync(file: P0, encoding: Streams::UnicodeEncoding) -> windows_core::Result>> + #[cfg(feature = "Storage_Streams")] + pub fn ReadLinesWithEncodingAsync(file: P0, encoding: Streams::UnicodeEncoding) -> windows_core::Result>> where P0: windows_core::Param, { @@ -946,44 +945,44 @@ impl FileIO { (windows_core::Interface::vtable(this).ReadLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn WriteLinesAsync(file: P0, lines: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WriteLinesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn WriteLinesWithEncodingAsync(file: P0, lines: P1, encoding: Streams::UnicodeEncoding) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), file.param().abi(), lines.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn AppendLinesAsync(file: P0, lines: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AppendLinesAsync)(windows_core::Interface::as_raw(this), file.param().abi(), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn AppendLinesWithEncodingAsync(file: P0, lines: P1, encoding: Streams::UnicodeEncoding) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IFileIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1131,10 +1130,7 @@ pub struct IApplicationDataContainer_Vtbl { pub Values: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] Values: usize, - #[cfg(feature = "Foundation_Collections")] pub Containers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Containers: usize, pub CreateContainer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, ApplicationDataCreateDisposition, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteContainer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1254,29 +1250,29 @@ pub struct IFileIOStatics_Vtbl { pub AppendTextWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] AppendTextWithEncodingAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ReadLinesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ReadLinesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ReadLinesWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ReadLinesWithEncodingAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub WriteLinesAsync: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] WriteLinesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub WriteLinesWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] WriteLinesWithEncodingAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub AppendLinesAsync: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] AppendLinesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub AppendLinesWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] AppendLinesWithEncodingAsync: usize, #[cfg(feature = "Storage_Streams")] pub ReadBufferAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1434,29 +1430,20 @@ pub struct IPathIOStatics_Vtbl { pub AppendTextWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] AppendTextWithEncodingAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub ReadLinesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadLinesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub ReadLinesWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] ReadLinesWithEncodingAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub WriteLinesAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - WriteLinesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub WriteLinesWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] WriteLinesWithEncodingAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub AppendLinesAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - AppendLinesAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub AppendLinesWithEncodingAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, Streams::UnicodeEncoding, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] AppendLinesWithEncodingAsync: usize, #[cfg(feature = "Storage_Streams")] pub ReadBufferAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2142,24 +2129,23 @@ impl IStorageFolder { (windows_core::Interface::vtable(this).GetItemAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultOptionsStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] - pub fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Search")] + pub fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultOptionsStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>> { + pub fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2238,11 +2224,11 @@ impl IStorageFolder { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties", feature = "Storage_Search", feature = "Storage_Streams"))] +#[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Search", feature = "Storage_Streams"))] impl windows_core::RuntimeName for IStorageFolder { const NAME: &'static str = "Windows.Storage.IStorageFolder"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties", feature = "Storage_Search", feature = "Storage_Streams"))] +#[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Search", feature = "Storage_Streams"))] pub trait IStorageFolder_Impl: IStorageItem_Impl { fn CreateFileAsyncOverloadDefaultOptions(&self, desiredName: &windows_core::HSTRING) -> windows_core::Result>; fn CreateFileAsync(&self, desiredName: &windows_core::HSTRING, options: CreationCollisionOption) -> windows_core::Result>; @@ -2251,11 +2237,11 @@ pub trait IStorageFolder_Impl: IStorageItem_Impl { fn GetFileAsync(&self, name: &windows_core::HSTRING) -> windows_core::Result>; fn GetFolderAsync(&self, name: &windows_core::HSTRING) -> windows_core::Result>; fn GetItemAsync(&self, name: &windows_core::HSTRING) -> windows_core::Result>; - fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>>; - fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>>; - fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>>; + fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>>; + fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>>; + fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_FileProperties", feature = "Storage_Search", feature = "Storage_Streams"))] +#[cfg(all(feature = "Storage_FileProperties", feature = "Storage_Search", feature = "Storage_Streams"))] impl IStorageFolder_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn CreateFileAsyncOverloadDefaultOptions(this: *mut core::ffi::c_void, desiredname: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -2434,18 +2420,15 @@ pub struct IStorageFolder_Vtbl { #[cfg(not(feature = "Storage_Search"))] GetFolderAsync: usize, pub GetItemAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub GetFilesAsyncOverloadDefaultOptionsStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] + #[cfg(not(feature = "Storage_Streams"))] GetFilesAsyncOverloadDefaultOptionsStartAndCount: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Search"))] + #[cfg(feature = "Storage_Search")] pub GetFoldersAsyncOverloadDefaultOptionsStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Search")))] + #[cfg(not(feature = "Storage_Search"))] GetFoldersAsyncOverloadDefaultOptionsStartAndCount: usize, - #[cfg(feature = "Foundation_Collections")] pub GetItemsAsyncOverloadDefaultStartAndCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetItemsAsyncOverloadDefaultStartAndCount: usize, } windows_core::imp::define_interface!(IStorageFolder2, IStorageFolder2_Vtbl, 0xe827e8b9_08d9_4a8e_a0ac_fe5ed3cbbbd3); impl windows_core::RuntimeType for IStorageFolder2 { @@ -3476,10 +3459,7 @@ impl windows_core::RuntimeType for IStorageLibraryChangeReader { #[repr(C)] pub struct IStorageLibraryChangeReader_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ReadBatchAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ReadBatchAsync: usize, pub AcceptChangesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IStorageLibraryChangeReader2, IStorageLibraryChangeReader2_Vtbl, 0xabf4868b_fbcc_4a4f_999e_e7ab7c646dbe); @@ -4080,54 +4060,51 @@ impl PathIO { (windows_core::Interface::vtable(this).AppendTextWithEncodingAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), core::mem::transmute_copy(contents), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn ReadLinesAsync(absolutepath: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn ReadLinesAsync(absolutepath: &windows_core::HSTRING) -> windows_core::Result>> { Self::IPathIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ReadLinesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn ReadLinesWithEncodingAsync(absolutepath: &windows_core::HSTRING, encoding: Streams::UnicodeEncoding) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn ReadLinesWithEncodingAsync(absolutepath: &windows_core::HSTRING, encoding: Streams::UnicodeEncoding) -> windows_core::Result>> { Self::IPathIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ReadLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn WriteLinesAsync(absolutepath: &windows_core::HSTRING, lines: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WriteLinesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn WriteLinesWithEncodingAsync(absolutepath: &windows_core::HSTRING, lines: P1, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WriteLinesWithEncodingAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.param().abi(), encoding, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn AppendLinesAsync(absolutepath: &windows_core::HSTRING, lines: P1) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AppendLinesAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(absolutepath), lines.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] + #[cfg(feature = "Storage_Streams")] pub fn AppendLinesWithEncodingAsync(absolutepath: &windows_core::HSTRING, lines: P1, encoding: Streams::UnicodeEncoding) -> windows_core::Result where - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IPathIOStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -4716,24 +4693,22 @@ impl StorageFolder { (windows_core::Interface::vtable(this).GetItemAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultOptionsStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { + pub fn GetFoldersAsyncOverloadDefaultOptionsStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultOptionsStartAndCount)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>> { + pub fn GetItemsAsyncOverloadDefaultStartAndCount(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4826,40 +4801,37 @@ impl StorageFolder { (windows_core::Interface::vtable(this).CreateItemQueryWithOptions)(windows_core::Interface::as_raw(this), queryoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsync(&self, query: Search::CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsync(&self, query: Search::CommonFileQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsync)(windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: Search::CommonFileQuery) -> windows_core::Result>> { + #[cfg(feature = "Storage_Streams")] + pub fn GetFilesAsyncOverloadDefaultStartAndCount(&self, query: Search::CommonFileQuery) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFilesAsyncOverloadDefaultStartAndCount)(windows_core::Interface::as_raw(this), query, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsync(&self, query: Search::CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + pub fn GetFoldersAsync(&self, query: Search::CommonFolderQuery, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsync)(windows_core::Interface::as_raw(this), query, startindex, maxitemstoretrieve, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: Search::CommonFolderQuery) -> windows_core::Result>> { + pub fn GetFoldersAsyncOverloadDefaultStartAndCount(&self, query: Search::CommonFolderQuery) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFoldersAsyncOverloadDefaultStartAndCount)(windows_core::Interface::as_raw(this), query, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { + pub fn GetItemsAsync(&self, startindex: u32, maxitemstoretrieve: u32) -> windows_core::Result>> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -5308,8 +5280,7 @@ unsafe impl Sync for StorageLibraryChange {} pub struct StorageLibraryChangeReader(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(StorageLibraryChangeReader, windows_core::IUnknown, windows_core::IInspectable); impl StorageLibraryChangeReader { - #[cfg(feature = "Foundation_Collections")] - pub fn ReadBatchAsync(&self) -> windows_core::Result>> { + pub fn ReadBatchAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs index dde821abb45..7b929f65fea 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/DevicePortal/mod.rs @@ -183,8 +183,7 @@ impl DevicePortalConnectionRequestReceivedEventArgs { (windows_core::Interface::vtable(this).IsWebSocketUpgradeRequest)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn WebSocketProtocolsRequested(&self) -> windows_core::Result> { + pub fn WebSocketProtocolsRequested(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -296,9 +295,6 @@ impl windows_core::RuntimeType for IDevicePortalWebSocketConnectionRequestReceiv pub struct IDevicePortalWebSocketConnectionRequestReceivedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsWebSocketUpgradeRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub WebSocketProtocolsRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WebSocketProtocolsRequested: usize, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs index c1bc336d1f7..3073afc990d 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/TraceReporting/mod.rs @@ -6,22 +6,13 @@ impl windows_core::RuntimeType for IPlatformDiagnosticActionsStatics { pub struct IPlatformDiagnosticActionsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsScenarioEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TryEscalateScenario: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, PlatformDiagnosticEscalationType, *mut core::ffi::c_void, bool, bool, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TryEscalateScenario: usize, pub DownloadLatestSettingsForNamespace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, bool, bool, bool, *mut PlatformDiagnosticActionState) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetActiveScenarioList: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetActiveScenarioList: usize, pub ForceUpload: unsafe extern "system" fn(*mut core::ffi::c_void, PlatformDiagnosticEventBufferLatencies, bool, bool, *mut PlatformDiagnosticActionState) -> windows_core::HRESULT, pub IsTraceRunning: unsafe extern "system" fn(*mut core::ffi::c_void, PlatformDiagnosticTraceSlotType, windows_core::GUID, u64, *mut PlatformDiagnosticTraceSlotState) -> windows_core::HRESULT, pub GetActiveTraceRuntime: unsafe extern "system" fn(*mut core::ffi::c_void, PlatformDiagnosticTraceSlotType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetKnownTraceList: unsafe extern "system" fn(*mut core::ffi::c_void, PlatformDiagnosticTraceSlotType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetKnownTraceList: usize, } windows_core::imp::define_interface!(IPlatformDiagnosticTraceInfo, IPlatformDiagnosticTraceInfo_Vtbl, 0xf870ed97_d597_4bf7_88dc_cf5c7dc2a1d2); impl windows_core::RuntimeType for IPlatformDiagnosticTraceInfo { @@ -69,10 +60,9 @@ impl PlatformDiagnosticActions { (windows_core::Interface::vtable(this).IsScenarioEnabled)(windows_core::Interface::as_raw(this), scenarioid, &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] pub fn TryEscalateScenario(scenarioid: windows_core::GUID, escalationtype: PlatformDiagnosticEscalationType, outputdirectory: &windows_core::HSTRING, timestampoutputdirectory: bool, forceescalationupload: bool, triggers: P5) -> windows_core::Result where - P5: windows_core::Param>, + P5: windows_core::Param>, { Self::IPlatformDiagnosticActionsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -85,8 +75,7 @@ impl PlatformDiagnosticActions { (windows_core::Interface::vtable(this).DownloadLatestSettingsForNamespace)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(partner), core::mem::transmute_copy(feature), isscenarionamespace, downloadovercostednetwork, downloadoverbattery, &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetActiveScenarioList() -> windows_core::Result> { + pub fn GetActiveScenarioList() -> windows_core::Result> { Self::IPlatformDiagnosticActionsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetActiveScenarioList)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -110,8 +99,7 @@ impl PlatformDiagnosticActions { (windows_core::Interface::vtable(this).GetActiveTraceRuntime)(windows_core::Interface::as_raw(this), slottype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetKnownTraceList(slottype: PlatformDiagnosticTraceSlotType) -> windows_core::Result> { + pub fn GetKnownTraceList(slottype: PlatformDiagnosticTraceSlotType) -> windows_core::Result> { Self::IPlatformDiagnosticActionsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetKnownTraceList)(windows_core::Interface::as_raw(this), slottype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs index 3b26b6f23ae..321027223a8 100644 --- a/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/System/Diagnostics/mod.rs @@ -60,7 +60,7 @@ impl windows_core::RuntimeType for DiagnosticActionState { pub struct DiagnosticInvoker(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DiagnosticInvoker, windows_core::IUnknown, windows_core::IInspectable); impl DiagnosticInvoker { - #[cfg(all(feature = "Data_Json", feature = "Foundation_Collections"))] + #[cfg(feature = "Data_Json")] pub fn RunDiagnosticActionAsync(&self, context: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -136,9 +136,9 @@ impl windows_core::RuntimeType for IDiagnosticInvoker { #[repr(C)] pub struct IDiagnosticInvoker_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Data_Json", feature = "Foundation_Collections"))] + #[cfg(feature = "Data_Json")] pub RunDiagnosticActionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Data_Json", feature = "Foundation_Collections")))] + #[cfg(not(feature = "Data_Json"))] RunDiagnosticActionAsync: usize, } windows_core::imp::define_interface!(IDiagnosticInvoker2, IDiagnosticInvoker2_Vtbl, 0xe3bf945c_155a_4b52_a8ec_070c44f95000); @@ -202,10 +202,7 @@ impl windows_core::RuntimeType for IProcessDiagnosticInfo2 { #[repr(C)] pub struct IProcessDiagnosticInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAppDiagnosticInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAppDiagnosticInfos: usize, pub IsPackaged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IProcessDiagnosticInfoStatics, IProcessDiagnosticInfoStatics_Vtbl, 0x2f41b260_b49f_428c_aa0e_84744f49ca95); @@ -215,10 +212,7 @@ impl windows_core::RuntimeType for IProcessDiagnosticInfoStatics { #[repr(C)] pub struct IProcessDiagnosticInfoStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetForProcesses: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetForProcesses: usize, pub GetForCurrentProcess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IProcessDiagnosticInfoStatics2, IProcessDiagnosticInfoStatics2_Vtbl, 0x4a869897_9899_4a44_a29b_091663be09b6); @@ -462,8 +456,7 @@ impl ProcessDiagnosticInfo { (windows_core::Interface::vtable(this).CpuUsage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAppDiagnosticInfos(&self) -> windows_core::Result> { + pub fn GetAppDiagnosticInfos(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -477,8 +470,7 @@ impl ProcessDiagnosticInfo { (windows_core::Interface::vtable(this).IsPackaged)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetForProcesses() -> windows_core::Result> { + pub fn GetForProcesses() -> windows_core::Result> { Self::IProcessDiagnosticInfoStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetForProcesses)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/System/Inventory/mod.rs b/crates/libs/windows/src/Windows/System/Inventory/mod.rs index 64d392535fe..2bbe7a3f0ab 100644 --- a/crates/libs/windows/src/Windows/System/Inventory/mod.rs +++ b/crates/libs/windows/src/Windows/System/Inventory/mod.rs @@ -17,10 +17,7 @@ impl windows_core::RuntimeType for IInstalledDesktopAppStatics { #[repr(C)] pub struct IInstalledDesktopAppStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetInventoryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetInventoryAsync: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -56,8 +53,7 @@ impl InstalledDesktopApp { (windows_core::Interface::vtable(this).DisplayVersion)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetInventoryAsync() -> windows_core::Result>> { + pub fn GetInventoryAsync() -> windows_core::Result>> { Self::IInstalledDesktopAppStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetInventoryAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/System/Profile/mod.rs b/crates/libs/windows/src/Windows/System/Profile/mod.rs index f4b07b9a277..9e985c26734 100644 --- a/crates/libs/windows/src/Windows/System/Profile/mod.rs +++ b/crates/libs/windows/src/Windows/System/Profile/mod.rs @@ -14,10 +14,9 @@ impl AnalyticsInfo { (windows_core::Interface::vtable(this).DeviceForm)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetSystemPropertiesAsync(attributenames: P0) -> windows_core::Result>> + pub fn GetSystemPropertiesAsync(attributenames: P0) -> windows_core::Result>> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IAnalyticsInfoStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -77,10 +76,9 @@ unsafe impl Send for AnalyticsVersionInfo {} unsafe impl Sync for AnalyticsVersionInfo {} pub struct AppApplicability; impl AppApplicability { - #[cfg(feature = "Foundation_Collections")] - pub fn GetUnsupportedAppRequirements(capabilities: P0) -> windows_core::Result> + pub fn GetUnsupportedAppRequirements(capabilities: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IAppApplicabilityStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -190,10 +188,7 @@ impl windows_core::RuntimeType for IAnalyticsInfoStatics2 { #[repr(C)] pub struct IAnalyticsInfoStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetSystemPropertiesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetSystemPropertiesAsync: usize, } windows_core::imp::define_interface!(IAnalyticsVersionInfo, IAnalyticsVersionInfo_Vtbl, 0x926130b8_9955_4c74_bdc1_7cd0decf9b03); impl windows_core::RuntimeType for IAnalyticsVersionInfo { @@ -221,10 +216,7 @@ impl windows_core::RuntimeType for IAppApplicabilityStatics { #[repr(C)] pub struct IAppApplicabilityStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetUnsupportedAppRequirements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUnsupportedAppRequirements: usize, } windows_core::imp::define_interface!(IEducationSettingsStatics, IEducationSettingsStatics_Vtbl, 0xfc53f0ef_4d3e_4e13_9b23_505f4d091e92); impl windows_core::RuntimeType for IEducationSettingsStatics { @@ -326,10 +318,7 @@ impl windows_core::RuntimeType for IRetailInfoStatics { pub struct IRetailInfoStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsDemoModeEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, } windows_core::imp::define_interface!(ISharedModeSettingsStatics, ISharedModeSettingsStatics_Vtbl, 0x893df40e_cad6_4d50_8c49_6fcfc03edb29); impl windows_core::RuntimeType for ISharedModeSettingsStatics { @@ -647,8 +636,7 @@ impl RetailInfo { (windows_core::Interface::vtable(this).IsDemoModeEnabled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties() -> windows_core::Result> { + pub fn Properties() -> windows_core::Result> { Self::IRetailInfoStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Properties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs b/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs index 0ac859cb033..a58e4a8508b 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/Provider/mod.rs @@ -87,10 +87,7 @@ impl windows_core::RuntimeType for IRemoteDesktopRegistrarStatics { #[repr(C)] pub struct IRemoteDesktopRegistrarStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub DesktopInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DesktopInfos: usize, pub IsSwitchToLocalSessionEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } #[repr(transparent)] @@ -311,8 +308,7 @@ impl windows_core::RuntimeType for RemoteDesktopLocalAction { } pub struct RemoteDesktopRegistrar; impl RemoteDesktopRegistrar { - #[cfg(feature = "Foundation_Collections")] - pub fn DesktopInfos() -> windows_core::Result> { + pub fn DesktopInfos() -> windows_core::Result> { Self::IRemoteDesktopRegistrarStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).DesktopInfos)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs b/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs index 34061ef4451..8f7280a1cd8 100644 --- a/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteSystems/mod.rs @@ -59,10 +59,7 @@ impl windows_core::RuntimeType for IRemoteSystem5 { #[repr(C)] pub struct IRemoteSystem5_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Apps: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Apps: usize, } windows_core::imp::define_interface!(IRemoteSystem6, IRemoteSystem6_Vtbl, 0xd4cda942_c027_533e_9384_3a19b4f7eef3); impl windows_core::RuntimeType for IRemoteSystem6 { @@ -93,10 +90,7 @@ pub struct IRemoteSystemApp_Vtbl { pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsAvailableByProximity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsAvailableBySpatialProximity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Attributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Attributes: usize, } windows_core::imp::define_interface!(IRemoteSystemApp2, IRemoteSystemApp2_Vtbl, 0x6369bf15_0a96_577a_8ff6_c35904dfa8f3); impl windows_core::RuntimeType for IRemoteSystemApp2 { @@ -116,10 +110,7 @@ impl windows_core::RuntimeType for IRemoteSystemAppRegistration { pub struct IRemoteSystemAppRegistration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub User: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Attributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Attributes: usize, pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IRemoteSystemAppRegistrationStatics, IRemoteSystemAppRegistrationStatics_Vtbl, 0x01b99840_cfd2_453f_ae25_c2539f086afd); @@ -280,10 +271,7 @@ impl windows_core::RuntimeType for IRemoteSystemKindFilter { #[repr(C)] pub struct IRemoteSystemKindFilter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RemoteSystemKinds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RemoteSystemKinds: usize, } windows_core::imp::define_interface!(IRemoteSystemKindFilterFactory, IRemoteSystemKindFilterFactory_Vtbl, 0xa1fb18ee_99ea_40bc_9a39_c670aa804a28); impl windows_core::RuntimeType for IRemoteSystemKindFilterFactory { @@ -292,10 +280,7 @@ impl windows_core::RuntimeType for IRemoteSystemKindFilterFactory { #[repr(C)] pub struct IRemoteSystemKindFilterFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, } windows_core::imp::define_interface!(IRemoteSystemKindStatics, IRemoteSystemKindStatics_Vtbl, 0xf6317633_ab14_41d0_9553_796aadb882db); impl windows_core::RuntimeType for IRemoteSystemKindStatics { @@ -516,9 +501,9 @@ impl windows_core::RuntimeType for IRemoteSystemSessionParticipant { pub struct IRemoteSystemSessionParticipant_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub RemoteSystem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] + #[cfg(feature = "Networking")] pub GetHostNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Networking")))] + #[cfg(not(feature = "Networking"))] GetHostNames: usize, } windows_core::imp::define_interface!(IRemoteSystemSessionParticipantAddedEventArgs, IRemoteSystemSessionParticipantAddedEventArgs_Vtbl, 0xd35a57d8_c9a1_4bb7_b6b0_79bb91adf93d); @@ -625,10 +610,7 @@ pub struct IRemoteSystemStatics_Vtbl { #[cfg(not(feature = "Networking"))] FindByHostNameAsync: usize, pub CreateWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateWatcherWithFilters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWatcherWithFilters: usize, pub RequestAccessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IRemoteSystemStatics2, IRemoteSystemStatics2_Vtbl, 0x0c98edca_6f99_4c52_a272_ea4f36471744); @@ -648,10 +630,7 @@ impl windows_core::RuntimeType for IRemoteSystemStatics3 { pub struct IRemoteSystemStatics3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateWatcherForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateWatcherWithFiltersForUser: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWatcherWithFiltersForUser: usize, } windows_core::imp::define_interface!(IRemoteSystemStatusTypeFilter, IRemoteSystemStatusTypeFilter_Vtbl, 0x0c39514e_cbb6_4777_8534_2e0c521affa2); impl windows_core::RuntimeType for IRemoteSystemStatusTypeFilter { @@ -859,8 +838,7 @@ impl RemoteSystem { (windows_core::Interface::vtable(this).Platform)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Apps(&self) -> windows_core::Result> { + pub fn Apps(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -890,10 +868,9 @@ impl RemoteSystem { (windows_core::Interface::vtable(this).CreateWatcher)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithFilters(filters: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IRemoteSystemStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -921,11 +898,10 @@ impl RemoteSystem { (windows_core::Interface::vtable(this).CreateWatcherForUser)(windows_core::Interface::as_raw(this), user.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateWatcherWithFiltersForUser(user: P0, filters: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { Self::IRemoteSystemStatics3(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1030,8 +1006,7 @@ impl RemoteSystemApp { (windows_core::Interface::vtable(this).IsAvailableBySpatialProximity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Attributes(&self) -> windows_core::Result> { + pub fn Attributes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1077,8 +1052,7 @@ impl RemoteSystemAppRegistration { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Attributes(&self) -> windows_core::Result> { + pub fn Attributes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1370,18 +1344,16 @@ pub struct RemoteSystemKindFilter(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(RemoteSystemKindFilter, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(RemoteSystemKindFilter, IRemoteSystemFilter); impl RemoteSystemKindFilter { - #[cfg(feature = "Foundation_Collections")] - pub fn RemoteSystemKinds(&self) -> windows_core::Result> { + pub fn RemoteSystemKinds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RemoteSystemKinds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(remotesystemkinds: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IRemoteSystemKindFilterFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2054,7 +2026,7 @@ impl RemoteSystemSessionMessageChannel { pub fn SendValueSetToParticipantsAsync(&self, messagedata: P0, participants: P1) -> windows_core::Result> where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -2172,8 +2144,8 @@ impl RemoteSystemSessionParticipant { (windows_core::Interface::vtable(this).RemoteSystem)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Networking"))] - pub fn GetHostNames(&self) -> windows_core::Result> { + #[cfg(feature = "Networking")] + pub fn GetHostNames(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/System/Update/mod.rs b/crates/libs/windows/src/Windows/System/Update/mod.rs index db8060da59d..8b41fbff97f 100644 --- a/crates/libs/windows/src/Windows/System/Update/mod.rs +++ b/crates/libs/windows/src/Windows/System/Update/mod.rs @@ -45,17 +45,11 @@ pub struct ISystemUpdateManagerStatics_Vtbl { pub LastUpdateCheckTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub LastUpdateInstallTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub LastErrorInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAutomaticRebootBlockIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAutomaticRebootBlockIds: usize, pub BlockAutomaticRebootAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub UnblockAutomaticRebootAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetUpdateItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetUpdateItems: usize, pub AttentionRequiredReason: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SystemUpdateAttentionRequiredReason) -> windows_core::HRESULT, pub SetFlightRing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub GetFlightRing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -292,8 +286,7 @@ impl SystemUpdateManager { (windows_core::Interface::vtable(this).LastErrorInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAutomaticRebootBlockIds() -> windows_core::Result> { + pub fn GetAutomaticRebootBlockIds() -> windows_core::Result> { Self::ISystemUpdateManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAutomaticRebootBlockIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -317,8 +310,7 @@ impl SystemUpdateManager { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetUpdateItems() -> windows_core::Result> { + pub fn GetUpdateItems() -> windows_core::Result> { Self::ISystemUpdateManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetUpdateItems)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs index ea52a7373a2..1e4d0fc02b6 100644 --- a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs +++ b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs @@ -182,15 +182,11 @@ impl windows_core::RuntimeName for DiagnosticsSettings { } unsafe impl Send for DiagnosticsSettings {} unsafe impl Sync for DiagnosticsSettings {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct FirstSignInSettings(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(FirstSignInSettings, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( FirstSignInSettings , super::super::Foundation::Collections:: IIterable < super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , super::super::Foundation::Collections:: IMapView < windows_core::HSTRING , windows_core::IInspectable > ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( FirstSignInSettings , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::IInspectable > > , windows_collections:: IMapView < windows_core::HSTRING , windows_core::IInspectable > ); impl FirstSignInSettings { pub fn GetDefault() -> windows_core::Result { Self::IFirstSignInSettingsStatics(|this| unsafe { @@ -198,36 +194,36 @@ impl FirstSignInSettings { (windows_core::Interface::vtable(this).GetDefault)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn Split(&self, first: &mut Option>, second: &mut Option>) -> windows_core::Result<()> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Split)(windows_core::Interface::as_raw(this), first as *mut _ as _, second as *mut _ as _).ok() } } fn IFirstSignInSettingsStatics windows_core::Result>(callback: F) -> windows_core::Result { @@ -235,64 +231,53 @@ impl FirstSignInSettings { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for FirstSignInSettings { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for FirstSignInSettings { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for FirstSignInSettings { const NAME: &'static str = "Windows.System.UserProfile.FirstSignInSettings"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for FirstSignInSettings {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for FirstSignInSettings {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for FirstSignInSettings { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &FirstSignInSettings { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } pub struct GlobalizationPreferences; impl GlobalizationPreferences { - #[cfg(feature = "Foundation_Collections")] - pub fn Calendars() -> windows_core::Result> { + pub fn Calendars() -> windows_core::Result> { Self::IGlobalizationPreferencesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Calendars)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Clocks() -> windows_core::Result> { + pub fn Clocks() -> windows_core::Result> { Self::IGlobalizationPreferencesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Clocks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Currencies() -> windows_core::Result> { + pub fn Currencies() -> windows_core::Result> { Self::IGlobalizationPreferencesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Currencies)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages() -> windows_core::Result> { + pub fn Languages() -> windows_core::Result> { Self::IGlobalizationPreferencesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Languages)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -317,10 +302,9 @@ impl GlobalizationPreferences { (windows_core::Interface::vtable(this).TrySetHomeGeographicRegion)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(region), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] pub fn TrySetLanguages(languagetags: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { Self::IGlobalizationPreferencesStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -364,32 +348,28 @@ impl GlobalizationPreferencesForUser { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Calendars(&self) -> windows_core::Result> { + pub fn Calendars(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Calendars)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Clocks(&self) -> windows_core::Result> { + pub fn Clocks(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Clocks)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Currencies(&self) -> windows_core::Result> { + pub fn Currencies(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Currencies)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Languages(&self) -> windows_core::Result> { + pub fn Languages(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -493,13 +473,10 @@ pub struct IDiagnosticsSettingsStatics_Vtbl { pub GetDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetForUser: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] windows_core::imp::define_interface!(IFirstSignInSettings, IFirstSignInSettings_Vtbl, 0x3e945153_3a5e_452e_a601_f5baad2a4870); -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for IFirstSignInSettings { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_interface::(); } -#[cfg(feature = "Foundation_Collections")] #[repr(C)] pub struct IFirstSignInSettings_Vtbl { pub base__: windows_core::IInspectable_Vtbl, @@ -511,10 +488,7 @@ impl windows_core::RuntimeType for IFirstSignInSettingsStatics { #[repr(C)] pub struct IFirstSignInSettingsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetDefault: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDefault: usize, } windows_core::imp::define_interface!(IGlobalizationPreferencesForUser, IGlobalizationPreferencesForUser_Vtbl, 0x150f0795_4f6e_40ba_a010_e27d81bda7f5); impl windows_core::RuntimeType for IGlobalizationPreferencesForUser { @@ -524,22 +498,10 @@ impl windows_core::RuntimeType for IGlobalizationPreferencesForUser { pub struct IGlobalizationPreferencesForUser_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub User: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Calendars: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Calendars: usize, - #[cfg(feature = "Foundation_Collections")] pub Clocks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Clocks: usize, - #[cfg(feature = "Foundation_Collections")] pub Currencies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Currencies: usize, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, pub HomeGeographicRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Globalization")] pub WeekStartsOn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Globalization::DayOfWeek) -> windows_core::HRESULT, @@ -553,22 +515,10 @@ impl windows_core::RuntimeType for IGlobalizationPreferencesStatics { #[repr(C)] pub struct IGlobalizationPreferencesStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Calendars: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Calendars: usize, - #[cfg(feature = "Foundation_Collections")] pub Clocks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Clocks: usize, - #[cfg(feature = "Foundation_Collections")] pub Currencies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Currencies: usize, - #[cfg(feature = "Foundation_Collections")] pub Languages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Languages: usize, pub HomeGeographicRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Globalization")] pub WeekStartsOn: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Globalization::DayOfWeek) -> windows_core::HRESULT, @@ -583,10 +533,7 @@ impl windows_core::RuntimeType for IGlobalizationPreferencesStatics2 { pub struct IGlobalizationPreferencesStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub TrySetHomeGeographicRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TrySetLanguages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TrySetLanguages: usize, } windows_core::imp::define_interface!(IGlobalizationPreferencesStatics3, IGlobalizationPreferencesStatics3_Vtbl, 0x1e059733_35f5_40d8_b9e8_aef3ef856fce); impl windows_core::RuntimeType for IGlobalizationPreferencesStatics3 { diff --git a/crates/libs/windows/src/Windows/System/mod.rs b/crates/libs/windows/src/Windows/System/mod.rs index d16fc0a8d6c..07da49ffa5a 100644 --- a/crates/libs/windows/src/Windows/System/mod.rs +++ b/crates/libs/windows/src/Windows/System/mod.rs @@ -65,8 +65,7 @@ impl AppDiagnosticInfo { (windows_core::Interface::vtable(this).AppInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetResourceGroups(&self) -> windows_core::Result> { + pub fn GetResourceGroups(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -87,8 +86,7 @@ impl AppDiagnosticInfo { (windows_core::Interface::vtable(this).LaunchAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RequestInfoAsync() -> windows_core::Result>> { + pub fn RequestInfoAsync() -> windows_core::Result>> { Self::IAppDiagnosticInfoStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RequestInfoAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -106,22 +104,19 @@ impl AppDiagnosticInfo { (windows_core::Interface::vtable(this).RequestAccessAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn RequestInfoForPackageAsync(packagefamilyname: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn RequestInfoForPackageAsync(packagefamilyname: &windows_core::HSTRING) -> windows_core::Result>> { Self::IAppDiagnosticInfoStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RequestInfoForPackageAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn RequestInfoForAppAsync() -> windows_core::Result>> { + pub fn RequestInfoForAppAsync() -> windows_core::Result>> { Self::IAppDiagnosticInfoStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RequestInfoForAppAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn RequestInfoForAppUserModelId(appusermodelid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn RequestInfoForAppUserModelId(appusermodelid: &windows_core::HSTRING) -> windows_core::Result>> { Self::IAppDiagnosticInfoStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RequestInfoForAppUserModelId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appusermodelid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -499,8 +494,7 @@ impl AppResourceGroupInfo { (windows_core::Interface::vtable(this).IsShared)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetBackgroundTaskReports(&self) -> windows_core::Result> { + pub fn GetBackgroundTaskReports(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -514,8 +508,8 @@ impl AppResourceGroupInfo { (windows_core::Interface::vtable(this).GetMemoryReport)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "System_Diagnostics"))] - pub fn GetProcessDiagnosticInfos(&self) -> windows_core::Result> { + #[cfg(feature = "System_Diagnostics")] + pub fn GetProcessDiagnosticInfos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -671,8 +665,7 @@ unsafe impl Sync for AppResourceGroupInfoWatcher {} pub struct AppResourceGroupInfoWatcherEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcherEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl AppResourceGroupInfoWatcherEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn AppDiagnosticInfos(&self) -> windows_core::Result> { + pub fn AppDiagnosticInfos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -704,8 +697,7 @@ unsafe impl Sync for AppResourceGroupInfoWatcherEventArgs {} pub struct AppResourceGroupInfoWatcherExecutionStateChangedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AppResourceGroupInfoWatcherExecutionStateChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl AppResourceGroupInfoWatcherExecutionStateChangedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn AppDiagnosticInfos(&self) -> windows_core::Result> { + pub fn AppDiagnosticInfos(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -903,18 +895,16 @@ impl AppUriHandlerRegistration { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAppAddedHostsAsync(&self) -> windows_core::Result>> { + pub fn GetAppAddedHostsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAppAddedHostsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetAppAddedHostsAsync(&self, hosts: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -922,18 +912,16 @@ impl AppUriHandlerRegistration { (windows_core::Interface::vtable(this).SetAppAddedHostsAsync)(windows_core::Interface::as_raw(this), hosts.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetAllHosts(&self) -> windows_core::Result> { + pub fn GetAllHosts(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAllHosts)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateHosts(&self, hosts: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).UpdateHosts)(windows_core::Interface::as_raw(this), hosts.param().abi()).ok() } @@ -1395,8 +1383,8 @@ impl FolderLauncherOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] - pub fn ItemsToSelect(&self) -> windows_core::Result> { + #[cfg(feature = "Storage")] + pub fn ItemsToSelect(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1458,10 +1446,7 @@ impl windows_core::RuntimeType for IAppDiagnosticInfo2 { #[repr(C)] pub struct IAppDiagnosticInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetResourceGroups: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetResourceGroups: usize, pub CreateResourceGroupWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAppDiagnosticInfo3, IAppDiagnosticInfo3_Vtbl, 0xc895c63d_dd61_4c65_babd_81a10b4f9815); @@ -1480,10 +1465,7 @@ impl windows_core::RuntimeType for IAppDiagnosticInfoStatics { #[repr(C)] pub struct IAppDiagnosticInfoStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub RequestInfoAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestInfoAsync: usize, } windows_core::imp::define_interface!(IAppDiagnosticInfoStatics2, IAppDiagnosticInfoStatics2_Vtbl, 0x05b24b86_1000_4c90_bb9f_7235071c50fe); impl windows_core::RuntimeType for IAppDiagnosticInfoStatics2 { @@ -1494,18 +1476,9 @@ pub struct IAppDiagnosticInfoStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestAccessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RequestInfoForPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestInfoForPackageAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RequestInfoForAppAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestInfoForAppAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub RequestInfoForAppUserModelId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RequestInfoForAppUserModelId: usize, } windows_core::imp::define_interface!(IAppDiagnosticInfoWatcher, IAppDiagnosticInfoWatcher_Vtbl, 0x75575070_01d3_489a_9325_52f9cc6ede0a); impl windows_core::RuntimeType for IAppDiagnosticInfoWatcher { @@ -1596,14 +1569,11 @@ pub struct IAppResourceGroupInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub InstanceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub IsShared: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetBackgroundTaskReports: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetBackgroundTaskReports: usize, pub GetMemoryReport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "System_Diagnostics"))] + #[cfg(feature = "System_Diagnostics")] pub GetProcessDiagnosticInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "System_Diagnostics")))] + #[cfg(not(feature = "System_Diagnostics"))] GetProcessDiagnosticInfos: usize, pub GetStateReport: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -1646,10 +1616,7 @@ impl windows_core::RuntimeType for IAppResourceGroupInfoWatcherEventArgs { #[repr(C)] pub struct IAppResourceGroupInfoWatcherEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AppDiagnosticInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppDiagnosticInfos: usize, pub AppResourceGroupInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs, IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs_Vtbl, 0x1bdbedd7_fee6_4fd4_98dd_e92a2cc299f3); @@ -1659,10 +1626,7 @@ impl windows_core::RuntimeType for IAppResourceGroupInfoWatcherExecutionStateCha #[repr(C)] pub struct IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AppDiagnosticInfos: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppDiagnosticInfos: usize, pub AppResourceGroupInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAppResourceGroupMemoryReport, IAppResourceGroupMemoryReport_Vtbl, 0x2c8c06b1_7db1_4c51_a225_7fae2d49e431); @@ -1725,14 +1689,8 @@ pub struct IAppUriHandlerRegistration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub User: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetAppAddedHostsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAppAddedHostsAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub SetAppAddedHostsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetAppAddedHostsAsync: usize, } windows_core::imp::define_interface!(IAppUriHandlerRegistration2, IAppUriHandlerRegistration2_Vtbl, 0xd54dac97_cb39_5f1f_883e_01853730bd6d); impl windows_core::RuntimeType for IAppUriHandlerRegistration2 { @@ -1741,14 +1699,8 @@ impl windows_core::RuntimeType for IAppUriHandlerRegistration2 { #[repr(C)] pub struct IAppUriHandlerRegistration2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetAllHosts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAllHosts: usize, - #[cfg(feature = "Foundation_Collections")] pub UpdateHosts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateHosts: usize, pub PackageFamilyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IAppUriHandlerRegistrationManager, IAppUriHandlerRegistrationManager_Vtbl, 0xe62c9a52_ac94_5750_ac1b_6cfb6f250263); @@ -1884,9 +1836,9 @@ impl windows_core::RuntimeType for IFolderLauncherOptions { #[repr(C)] pub struct IFolderLauncherOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] + #[cfg(feature = "Storage")] pub ItemsToSelect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage")))] + #[cfg(not(feature = "Storage"))] ItemsToSelect: usize, } windows_core::imp::define_interface!(IKnownUserPropertiesStatics, IKnownUserPropertiesStatics_Vtbl, 0x7755911a_70c5_48e5_b637_5ba3441e4ee4); @@ -2031,17 +1983,17 @@ pub struct ILauncherStatics2_Vtbl { pub QueryFileSupportWithPackageFamilyNameAsync: 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, #[cfg(not(feature = "Storage_Streams"))] QueryFileSupportWithPackageFamilyNameAsync: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindUriSchemeHandlersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindUriSchemeHandlersAsync: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindUriSchemeHandlersWithLaunchUriTypeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, LaunchQuerySupportType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindUriSchemeHandlersWithLaunchUriTypeAsync: usize, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindFileHandlersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindFileHandlersAsync: usize, } windows_core::imp::define_interface!(ILauncherStatics3, ILauncherStatics3_Vtbl, 0x234261a8_9db3_4683_aa42_dc6f51d33847); @@ -2069,9 +2021,9 @@ pub struct ILauncherStatics4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub QueryAppUriSupportAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub QueryAppUriSupportWithPackageFamilyNameAsync: 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, - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] + #[cfg(feature = "ApplicationModel")] pub FindAppUriHandlersAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel", feature = "Foundation_Collections")))] + #[cfg(not(feature = "ApplicationModel"))] FindAppUriHandlersAsync: usize, pub LaunchUriForUserAsync: 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, pub LaunchUriWithOptionsForUserAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2318,10 +2270,7 @@ pub struct IRemoteLauncherOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub FallbackUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetFallbackUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub PreferredAppIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - PreferredAppIds: usize, } windows_core::imp::define_interface!(IRemoteLauncherStatics, IRemoteLauncherStatics_Vtbl, 0xd7db7a93_a30c_48b7_9f21_051026a4e517); impl windows_core::RuntimeType for IRemoteLauncherStatics { @@ -2372,10 +2321,7 @@ impl windows_core::RuntimeType for ITimeZoneSettingsStatics { pub struct ITimeZoneSettingsStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CurrentTimeZoneDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SupportedTimeZoneDisplayNames: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SupportedTimeZoneDisplayNames: usize, pub CanChangeTimeZone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ChangeTimeZoneByDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2454,10 +2400,7 @@ impl windows_core::RuntimeType for IUserChangedEventArgs2 { #[repr(C)] pub struct IUserChangedEventArgs2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ChangedPropertyKinds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ChangedPropertyKinds: usize, } windows_core::imp::define_interface!(IUserDeviceAssociationChangedEventArgs, IUserDeviceAssociationChangedEventArgs_Vtbl, 0xbd1f6f6c_bb5d_4d7b_a5f0_c8cd11a38d42); impl windows_core::RuntimeType for IUserDeviceAssociationChangedEventArgs { @@ -2511,17 +2454,14 @@ impl windows_core::RuntimeType for IUserStatics { pub struct IUserStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateWatcher: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub FindAllAsyncByType: unsafe extern "system" fn(*mut core::ffi::c_void, UserType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] FindAllAsyncByType: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "deprecated")] pub FindAllAsyncByTypeAndStatus: unsafe extern "system" fn(*mut core::ffi::c_void, UserType, UserAuthenticationStatus, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "deprecated"))] FindAllAsyncByTypeAndStatus: usize, pub GetFromId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -2840,22 +2780,22 @@ impl Launcher { (windows_core::Interface::vtable(this).QueryFileSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), file.param().abi(), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindUriSchemeHandlersAsync(scheme: &windows_core::HSTRING) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel")] + pub fn FindUriSchemeHandlersAsync(scheme: &windows_core::HSTRING) -> windows_core::Result>> { Self::ILauncherStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindUriSchemeHandlersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scheme), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindUriSchemeHandlersWithLaunchUriTypeAsync(scheme: &windows_core::HSTRING, launchquerysupporttype: LaunchQuerySupportType) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel")] + pub fn FindUriSchemeHandlersWithLaunchUriTypeAsync(scheme: &windows_core::HSTRING, launchquerysupporttype: LaunchQuerySupportType) -> windows_core::Result>> { Self::ILauncherStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindUriSchemeHandlersWithLaunchUriTypeAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(scheme), launchquerysupporttype, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindFileHandlersAsync(extension: &windows_core::HSTRING) -> windows_core::Result>> { + #[cfg(feature = "ApplicationModel")] + pub fn FindFileHandlersAsync(extension: &windows_core::HSTRING) -> windows_core::Result>> { Self::ILauncherStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindFileHandlersAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(extension), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2900,8 +2840,8 @@ impl Launcher { (windows_core::Interface::vtable(this).QueryAppUriSupportWithPackageFamilyNameAsync)(windows_core::Interface::as_raw(this), uri.param().abi(), core::mem::transmute_copy(packagefamilyname), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "ApplicationModel", feature = "Foundation_Collections"))] - pub fn FindAppUriHandlersAsync(uri: P0) -> windows_core::Result>> + #[cfg(feature = "ApplicationModel")] + pub fn FindAppUriHandlersAsync(uri: P0) -> windows_core::Result>> where P0: windows_core::Param, { @@ -3663,8 +3603,7 @@ impl RemoteLauncherOptions { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFallbackUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn PreferredAppIds(&self) -> windows_core::Result> { + pub fn PreferredAppIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3737,8 +3676,7 @@ impl TimeZoneSettings { (windows_core::Interface::vtable(this).CurrentTimeZoneDisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn SupportedTimeZoneDisplayNames() -> windows_core::Result> { + pub fn SupportedTimeZoneDisplayNames() -> windows_core::Result> { Self::ITimeZoneSettingsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SupportedTimeZoneDisplayNames)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3807,7 +3745,7 @@ impl User { #[cfg(feature = "Foundation_Collections")] pub fn GetPropertiesAsync(&self, values: P0) -> windows_core::Result> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -3836,22 +3774,21 @@ impl User { (windows_core::Interface::vtable(this).CreateWatcher)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync() -> windows_core::Result>> { + pub fn FindAllAsync() -> windows_core::Result>> { Self::IUserStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn FindAllAsyncByType(r#type: UserType) -> windows_core::Result>> { + #[cfg(feature = "deprecated")] + pub fn FindAllAsyncByType(r#type: UserType) -> windows_core::Result>> { Self::IUserStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsyncByType)(windows_core::Interface::as_raw(this), r#type, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] - pub fn FindAllAsyncByTypeAndStatus(r#type: UserType, status: UserAuthenticationStatus) -> windows_core::Result>> { + #[cfg(feature = "deprecated")] + pub fn FindAllAsyncByTypeAndStatus(r#type: UserType, status: UserAuthenticationStatus) -> windows_core::Result>> { Self::IUserStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsyncByTypeAndStatus)(windows_core::Interface::as_raw(this), r#type, status, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -4014,8 +3951,7 @@ impl UserChangedEventArgs { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ChangedPropertyKinds(&self) -> windows_core::Result> { + pub fn ChangedPropertyKinds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs index 2ea62558e14..a4eee467785 100644 --- a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs @@ -86,32 +86,29 @@ impl windows_core::RuntimeName for AccountsSettingsPane { pub struct AccountsSettingsPaneCommandsRequestedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AccountsSettingsPaneCommandsRequestedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl AccountsSettingsPaneCommandsRequestedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn WebAccountProviderCommands(&self) -> windows_core::Result> { + pub fn WebAccountProviderCommands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WebAccountProviderCommands)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn WebAccountCommands(&self) -> windows_core::Result> { + pub fn WebAccountCommands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).WebAccountCommands)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CredentialCommands(&self) -> windows_core::Result> { + pub fn CredentialCommands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CredentialCommands)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] - pub fn Commands(&self) -> windows_core::Result> { + #[cfg(feature = "UI_Popups")] + pub fn Commands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -316,21 +313,12 @@ impl windows_core::RuntimeType for IAccountsSettingsPaneCommandsRequestedEventAr #[repr(C)] pub struct IAccountsSettingsPaneCommandsRequestedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub WebAccountProviderCommands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WebAccountProviderCommands: usize, - #[cfg(feature = "Foundation_Collections")] pub WebAccountCommands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WebAccountCommands: usize, - #[cfg(feature = "Foundation_Collections")] pub CredentialCommands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CredentialCommands: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] + #[cfg(feature = "UI_Popups")] pub Commands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Popups")))] + #[cfg(not(feature = "UI_Popups"))] Commands: usize, pub HeaderText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetHeaderText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -469,9 +457,9 @@ impl windows_core::RuntimeType for ISettingsPaneCommandsRequest { #[repr(C)] pub struct ISettingsPaneCommandsRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] + #[cfg(feature = "UI_Popups")] pub ApplicationCommands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Popups")))] + #[cfg(not(feature = "UI_Popups"))] ApplicationCommands: usize, } #[cfg(feature = "deprecated")] @@ -721,8 +709,8 @@ pub struct SettingsPaneCommandsRequest(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SettingsPaneCommandsRequest, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SettingsPaneCommandsRequest { - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] - pub fn ApplicationCommands(&self) -> windows_core::Result> { + #[cfg(feature = "UI_Popups")] + pub fn ApplicationCommands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs index a1e7c3562b2..13672ead6a2 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Desktop/mod.rs @@ -59,7 +59,6 @@ impl DesktopWindowTarget { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -67,7 +66,6 @@ impl DesktopWindowTarget { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, diff --git a/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs index c164fff2a40..86ea344a7b0 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Interactions/mod.rs @@ -96,7 +96,6 @@ impl CompositionConditionalValue { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -104,7 +103,6 @@ impl CompositionConditionalValue { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -166,15 +164,11 @@ impl windows_core::RuntimeName for CompositionConditionalValue { } unsafe impl Send for CompositionConditionalValue {} unsafe impl Sync for CompositionConditionalValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompositionInteractionSourceCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(CompositionInteractionSourceCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CompositionInteractionSourceCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, super::super::super::Foundation::Collections::IIterable, super::CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(CompositionInteractionSourceCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, windows_collections::IIterable, super::CompositionObject); impl CompositionInteractionSourceCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -307,43 +301,36 @@ impl CompositionInteractionSourceCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CompositionInteractionSourceCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CompositionInteractionSourceCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CompositionInteractionSourceCollection { const NAME: &'static str = "Windows.UI.Composition.Interactions.CompositionInteractionSourceCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CompositionInteractionSourceCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CompositionInteractionSourceCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CompositionInteractionSourceCollection { type Item = ICompositionInteractionSource; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CompositionInteractionSourceCollection { type Item = ICompositionInteractionSource; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -423,10 +410,7 @@ impl windows_core::RuntimeType for IInteractionTracker { #[repr(C)] pub struct IInteractionTracker_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub InteractionSources: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InteractionSources: usize, pub IsPositionRoundingSuggested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] pub MaxPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, @@ -476,18 +460,9 @@ pub struct IInteractionTracker_Vtbl { pub ScaleVelocityInPercentPerSecond: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub AdjustPositionXIfGreaterThanThreshold: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32) -> windows_core::HRESULT, pub AdjustPositionYIfGreaterThanThreshold: unsafe extern "system" fn(*mut core::ffi::c_void, f32, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ConfigurePositionXInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigurePositionXInertiaModifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub ConfigurePositionYInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigurePositionYInertiaModifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub ConfigureScaleInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureScaleInertiaModifiers: usize, #[cfg(feature = "Foundation_Numerics")] pub TryUpdatePosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, *mut i32) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] @@ -521,14 +496,8 @@ impl windows_core::RuntimeType for IInteractionTracker2 { #[repr(C)] pub struct IInteractionTracker2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ConfigureCenterPointXInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureCenterPointXInertiaModifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub ConfigureCenterPointYInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureCenterPointYInertiaModifiers: usize, } windows_core::imp::define_interface!(IInteractionTracker3, IInteractionTracker3_Vtbl, 0xe6c5d7a2_5c4b_42c6_84b7_f69441b18091); impl windows_core::RuntimeType for IInteractionTracker3 { @@ -537,10 +506,7 @@ impl windows_core::RuntimeType for IInteractionTracker3 { #[repr(C)] pub struct IInteractionTracker3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ConfigureVector2PositionInertiaModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureVector2PositionInertiaModifiers: usize, } windows_core::imp::define_interface!(IInteractionTracker4, IInteractionTracker4_Vtbl, 0xebd222bc_04af_4ac7_847d_06ea36e80a16); impl windows_core::RuntimeType for IInteractionTracker4 { @@ -1007,26 +973,11 @@ pub struct IVisualInteractionSource2_Vtbl { PositionVelocity: usize, pub Scale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub ScaleVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ConfigureCenterPointXModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureCenterPointXModifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub ConfigureCenterPointYModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureCenterPointYModifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub ConfigureDeltaPositionXModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureDeltaPositionXModifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub ConfigureDeltaPositionYModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureDeltaPositionYModifiers: usize, - #[cfg(feature = "Foundation_Collections")] pub ConfigureDeltaScaleModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ConfigureDeltaScaleModifiers: usize, } windows_core::imp::define_interface!(IVisualInteractionSource3, IVisualInteractionSource3_Vtbl, 0xd941ef2a_0d5c_4057_92d7_c9711533204f); impl windows_core::RuntimeType for IVisualInteractionSource3 { @@ -1186,7 +1137,6 @@ impl InteractionSourceConfiguration { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1194,7 +1144,6 @@ impl InteractionSourceConfiguration { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1373,7 +1322,6 @@ impl InteractionTracker { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1381,7 +1329,6 @@ impl InteractionTracker { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1426,7 +1373,6 @@ impl InteractionTracker { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InteractionSources(&self) -> windows_core::Result { let this = self; unsafe { @@ -1579,26 +1525,23 @@ impl InteractionTracker { let this = self; unsafe { (windows_core::Interface::vtable(this).AdjustPositionYIfGreaterThanThreshold)(windows_core::Interface::as_raw(this), adjustment, positionthreshold).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigurePositionXInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).ConfigurePositionXInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigurePositionYInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).ConfigurePositionYInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureScaleInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).ConfigureScaleInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } @@ -1664,26 +1607,23 @@ impl InteractionTracker { (windows_core::Interface::vtable(this).TryUpdateScaleWithAdditionalVelocity)(windows_core::Interface::as_raw(this), velocityinpercentpersecond, centerpoint, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointXInertiaModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointXInertiaModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointYInertiaModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointYInertiaModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureVector2PositionInertiaModifiers(&self, modifiers: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureVector2PositionInertiaModifiers)(windows_core::Interface::as_raw(this), modifiers.param().abi()).ok() } @@ -1914,7 +1854,6 @@ impl InteractionTrackerInertiaModifier { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1922,7 +1861,6 @@ impl InteractionTrackerInertiaModifier { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2041,7 +1979,6 @@ impl InteractionTrackerInertiaMotion { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2049,7 +1986,6 @@ impl InteractionTrackerInertiaMotion { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2209,7 +2145,6 @@ impl InteractionTrackerInertiaNaturalMotion { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2217,7 +2152,6 @@ impl InteractionTrackerInertiaNaturalMotion { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2377,7 +2311,6 @@ impl InteractionTrackerInertiaRestingValue { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2385,7 +2318,6 @@ impl InteractionTrackerInertiaRestingValue { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2739,7 +2671,6 @@ impl InteractionTrackerVector2InertiaModifier { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2747,7 +2678,6 @@ impl InteractionTrackerVector2InertiaModifier { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2866,7 +2796,6 @@ impl InteractionTrackerVector2InertiaNaturalMotion { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2874,7 +2803,6 @@ impl InteractionTrackerVector2InertiaNaturalMotion { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3034,7 +2962,6 @@ impl VisualInteractionSource { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3042,7 +2969,6 @@ impl VisualInteractionSource { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3246,42 +3172,37 @@ impl VisualInteractionSource { (windows_core::Interface::vtable(this).ScaleVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointXModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointXModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureCenterPointYModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureCenterPointYModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaPositionXModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaPositionXModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaPositionYModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaPositionYModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ConfigureDeltaScaleModifiers(&self, conditionalvalues: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ConfigureDeltaScaleModifiers)(windows_core::Interface::as_raw(this), conditionalvalues.param().abi()).ok() } diff --git a/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs index 22c0aaa1be7..f5b2f48c3ec 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/Scenes/mod.rs @@ -123,10 +123,7 @@ pub struct ISceneMeshRendererComponent_Vtbl { pub SetMaterial: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Mesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMesh: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub UVMappings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UVMappings: usize, } windows_core::imp::define_interface!(ISceneMeshRendererComponentStatics, ISceneMeshRendererComponentStatics_Vtbl, 0x4954f37a_4459_4521_bd6e_2b38b8d711ea); impl windows_core::RuntimeType for ISceneMeshRendererComponentStatics { @@ -230,14 +227,8 @@ impl windows_core::RuntimeType for ISceneNode { #[repr(C)] pub struct ISceneNode_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Children: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Children: usize, - #[cfg(feature = "Foundation_Collections")] pub Components: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Components: usize, pub Parent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Transform: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub FindFirstComponentOfType: unsafe extern "system" fn(*mut core::ffi::c_void, SceneComponentType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -468,7 +459,6 @@ impl SceneBoundingBox { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -476,7 +466,6 @@ impl SceneBoundingBox { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -635,7 +624,6 @@ impl SceneComponent { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -643,7 +631,6 @@ impl SceneComponent { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -708,15 +695,11 @@ impl windows_core::RuntimeName for SceneComponent { } unsafe impl Send for SceneComponent {} unsafe impl Sync for SceneComponent {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct SceneComponentCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(SceneComponentCollection, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(SceneComponentCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, super::super::super::Foundation::Collections::IIterable, SceneObject, super::CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(SceneComponentCollection, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVector); +windows_core::imp::required_hierarchy!(SceneComponentCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, windows_collections::IIterable, SceneObject, super::CompositionObject); impl SceneComponentCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -824,8 +807,8 @@ impl SceneComponentCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -845,7 +828,7 @@ impl SceneComponentCollection { (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -907,35 +890,28 @@ impl SceneComponentCollection { unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for SceneComponentCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for SceneComponentCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for SceneComponentCollection { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneComponentCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for SceneComponentCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for SceneComponentCollection { type Item = SceneComponent; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &SceneComponentCollection { type Item = SceneComponent; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1013,7 +989,6 @@ impl SceneMaterial { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1021,7 +996,6 @@ impl SceneMaterial { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1140,7 +1114,6 @@ impl SceneMaterialInput { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1148,7 +1121,6 @@ impl SceneMaterialInput { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1267,7 +1239,6 @@ impl SceneMesh { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1275,7 +1246,6 @@ impl SceneMesh { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1374,15 +1344,11 @@ impl windows_core::RuntimeName for SceneMesh { } unsafe impl Send for SceneMesh {} unsafe impl Sync for SceneMesh {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct SceneMeshMaterialAttributeMap(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(SceneMeshMaterialAttributeMap, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( SceneMeshMaterialAttributeMap , super:: IAnimationObject , super::super::super::Foundation:: IClosable , super::super::super::Foundation::Collections:: IIterable < super::super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , SceneAttributeSemantic > > , super::super::super::Foundation::Collections:: IMap < windows_core::HSTRING , SceneAttributeSemantic > , SceneObject , super:: CompositionObject ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( SceneMeshMaterialAttributeMap , super:: IAnimationObject , super::super::super::Foundation:: IClosable , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , SceneAttributeSemantic > > , windows_collections:: IMap < windows_core::HSTRING , SceneAttributeSemantic > , SceneObject , super:: CompositionObject ); impl SceneMeshMaterialAttributeMap { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -1490,86 +1456,79 @@ impl SceneMeshMaterialAttributeMap { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Insert(&self, key: &windows_core::HSTRING, value: SceneAttributeSemantic) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value, &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for SceneMeshMaterialAttributeMap { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for SceneMeshMaterialAttributeMap { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for SceneMeshMaterialAttributeMap { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneMeshMaterialAttributeMap"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for SceneMeshMaterialAttributeMap {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for SceneMeshMaterialAttributeMap {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for SceneMeshMaterialAttributeMap { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &SceneMeshMaterialAttributeMap { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1635,7 +1594,6 @@ impl SceneMeshRendererComponent { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1643,7 +1601,6 @@ impl SceneMeshRendererComponent { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1723,7 +1680,6 @@ impl SceneMeshRendererComponent { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMesh)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn UVMappings(&self) -> windows_core::Result { let this = self; unsafe { @@ -1818,7 +1774,6 @@ impl SceneMetallicRoughnessMaterial { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1826,7 +1781,6 @@ impl SceneMetallicRoughnessMaterial { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2131,7 +2085,6 @@ impl SceneModelTransform { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2139,7 +2092,6 @@ impl SceneModelTransform { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2332,7 +2284,6 @@ impl SceneNode { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2340,7 +2291,6 @@ impl SceneNode { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2385,7 +2335,6 @@ impl SceneNode { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { let this = self; unsafe { @@ -2393,7 +2342,6 @@ impl SceneNode { (windows_core::Interface::vtable(this).Children)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Components(&self) -> windows_core::Result { let this = self; unsafe { @@ -2448,15 +2396,11 @@ impl windows_core::RuntimeName for SceneNode { } unsafe impl Send for SceneNode {} unsafe impl Sync for SceneNode {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct SceneNodeCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(SceneNodeCollection, windows_core::IUnknown, windows_core::IInspectable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(SceneNodeCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, super::super::super::Foundation::Collections::IIterable, SceneObject, super::CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(SceneNodeCollection, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVector); +windows_core::imp::required_hierarchy!(SceneNodeCollection, super::IAnimationObject, super::super::super::Foundation::IClosable, windows_collections::IIterable, SceneObject, super::CompositionObject); impl SceneNodeCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -2564,8 +2508,8 @@ impl SceneNodeCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2585,7 +2529,7 @@ impl SceneNodeCollection { (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2647,35 +2591,28 @@ impl SceneNodeCollection { unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for SceneNodeCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for SceneNodeCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for SceneNodeCollection { const NAME: &'static str = "Windows.UI.Composition.Scenes.SceneNodeCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for SceneNodeCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for SceneNodeCollection { type Item = SceneNode; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &SceneNodeCollection { type Item = SceneNode; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -2741,7 +2678,6 @@ impl SceneObject { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2749,7 +2685,6 @@ impl SceneObject { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2868,7 +2803,6 @@ impl ScenePbrMaterial { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2876,7 +2810,6 @@ impl ScenePbrMaterial { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3105,7 +3038,6 @@ impl SceneRendererComponent { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3113,7 +3045,6 @@ impl SceneRendererComponent { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3239,7 +3170,6 @@ impl SceneSurfaceMaterialInput { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3247,7 +3177,6 @@ impl SceneSurfaceMaterialInput { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3426,7 +3355,6 @@ impl SceneVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3434,7 +3362,6 @@ impl SceneVisual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3479,7 +3406,6 @@ impl SceneVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { diff --git a/crates/libs/windows/src/Windows/UI/Composition/mod.rs b/crates/libs/windows/src/Windows/UI/Composition/mod.rs index 986fcfd386c..eb792b6bc0c 100644 --- a/crates/libs/windows/src/Windows/UI/Composition/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Composition/mod.rs @@ -49,7 +49,6 @@ impl AmbientLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Targets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -57,7 +56,6 @@ impl AmbientLight { (windows_core::Interface::vtable(this).Targets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ExclusionsFromTargets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -120,7 +118,6 @@ impl AmbientLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -128,7 +125,6 @@ impl AmbientLight { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -300,7 +296,6 @@ impl AnimationController { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -308,7 +303,6 @@ impl AnimationController { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -525,7 +519,6 @@ impl AnimationPropertyInfo { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -533,7 +526,6 @@ impl AnimationPropertyInfo { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -680,7 +672,6 @@ impl BackEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -688,7 +679,6 @@ impl BackEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -835,7 +825,6 @@ impl BooleanKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -894,7 +883,6 @@ impl BooleanKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -902,7 +890,6 @@ impl BooleanKeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1137,7 +1124,6 @@ impl BounceEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1145,7 +1131,6 @@ impl BounceEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1310,7 +1295,6 @@ impl BounceScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1369,7 +1353,6 @@ impl BounceScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1377,7 +1360,6 @@ impl BounceScalarNaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1614,7 +1596,6 @@ impl BounceVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1673,7 +1654,6 @@ impl BounceVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1681,7 +1661,6 @@ impl BounceVector2NaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1924,7 +1903,6 @@ impl BounceVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1983,7 +1961,6 @@ impl BounceVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1991,7 +1968,6 @@ impl BounceVector3NaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2195,7 +2171,6 @@ impl CircleEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2203,7 +2178,6 @@ impl CircleEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2368,7 +2342,6 @@ impl ColorKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2427,7 +2400,6 @@ impl ColorKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2435,7 +2407,6 @@ impl ColorKeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2673,7 +2644,6 @@ impl CompositionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2732,7 +2702,6 @@ impl CompositionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2740,7 +2709,6 @@ impl CompositionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2798,15 +2766,11 @@ impl windows_core::RuntimeName for CompositionAnimation { } unsafe impl Send for CompositionAnimation {} unsafe impl Sync for CompositionAnimation {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompositionAnimationGroup(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(CompositionAnimationGroup, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CompositionAnimationGroup, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, super::super::Foundation::Collections::IIterable, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(CompositionAnimationGroup, IAnimationObject, super::super::Foundation::IClosable, ICompositionAnimationBase, windows_collections::IIterable, CompositionObject); impl CompositionAnimationGroup { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -2939,43 +2903,36 @@ impl CompositionAnimationGroup { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CompositionAnimationGroup { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CompositionAnimationGroup { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CompositionAnimationGroup { const NAME: &'static str = "Windows.UI.Composition.CompositionAnimationGroup"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CompositionAnimationGroup {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CompositionAnimationGroup {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CompositionAnimationGroup { type Item = CompositionAnimation; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CompositionAnimationGroup { type Item = CompositionAnimation; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -3041,7 +2998,6 @@ impl CompositionBackdropBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3049,7 +3005,6 @@ impl CompositionBackdropBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3182,7 +3137,6 @@ impl CompositionBatchCompletedEventArgs { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3190,7 +3144,6 @@ impl CompositionBatchCompletedEventArgs { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3393,7 +3346,6 @@ impl CompositionBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3401,7 +3353,6 @@ impl CompositionBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3663,7 +3614,6 @@ impl CompositionClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3671,7 +3621,6 @@ impl CompositionClip { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3801,7 +3750,6 @@ impl CompositionColorBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3809,7 +3757,6 @@ impl CompositionColorBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3950,7 +3897,6 @@ impl CompositionColorGradientStop { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3958,7 +3904,6 @@ impl CompositionColorGradientStop { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -4016,39 +3961,35 @@ impl windows_core::RuntimeName for CompositionColorGradientStop { } unsafe impl Send for CompositionColorGradientStop {} unsafe impl Sync for CompositionColorGradientStop {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompositionColorGradientStopCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(CompositionColorGradientStopCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CompositionColorGradientStopCollection, super::super::Foundation::Collections::IIterable, super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(CompositionColorGradientStopCollection, windows_collections::IIterable, windows_collections::IVector); impl CompositionColorGradientStopCollection { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -4058,7 +3999,7 @@ impl CompositionColorGradientStopCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -4068,76 +4009,69 @@ impl CompositionColorGradientStopCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CompositionColorGradientStopCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CompositionColorGradientStopCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CompositionColorGradientStopCollection { const NAME: &'static str = "Windows.UI.Composition.CompositionColorGradientStopCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CompositionColorGradientStopCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CompositionColorGradientStopCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CompositionColorGradientStopCollection { type Item = CompositionColorGradientStop; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CompositionColorGradientStopCollection { type Item = CompositionColorGradientStop; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -4247,7 +4181,6 @@ impl CompositionCommitBatch { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4255,7 +4188,6 @@ impl CompositionCommitBatch { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -4345,7 +4277,6 @@ impl CompositionContainerShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Shapes(&self) -> windows_core::Result { let this = self; unsafe { @@ -4397,7 +4328,6 @@ impl CompositionContainerShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4405,7 +4335,6 @@ impl CompositionContainerShape { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -4654,7 +4583,6 @@ impl CompositionDrawingSurface { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4662,7 +4590,6 @@ impl CompositionDrawingSurface { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -4894,7 +4821,6 @@ impl CompositionEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4902,7 +4828,6 @@ impl CompositionEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -5053,7 +4978,6 @@ impl CompositionEffectBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5061,7 +4985,6 @@ impl CompositionEffectBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -5201,7 +5124,6 @@ impl CompositionEffectFactory { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5209,7 +5131,6 @@ impl CompositionEffectFactory { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -5447,7 +5368,6 @@ impl CompositionEllipseGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5455,7 +5375,6 @@ impl CompositionEllipseGeometry { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -5689,7 +5608,6 @@ impl CompositionGeometricClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5697,7 +5615,6 @@ impl CompositionGeometricClip { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -5849,7 +5766,6 @@ impl CompositionGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5857,7 +5773,6 @@ impl CompositionGeometry { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -5972,7 +5887,6 @@ impl CompositionGradientBrush { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ColorStops(&self) -> windows_core::Result { let this = self; unsafe { @@ -6118,7 +6032,6 @@ impl CompositionGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6126,7 +6039,6 @@ impl CompositionGradientBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -6320,7 +6232,6 @@ impl CompositionGraphicsDevice { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6328,7 +6239,6 @@ impl CompositionGraphicsDevice { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -6403,7 +6313,6 @@ impl CompositionLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Targets(&self) -> windows_core::Result { let this = self; unsafe { @@ -6411,7 +6320,6 @@ impl CompositionLight { (windows_core::Interface::vtable(this).Targets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ExclusionsFromTargets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6474,7 +6382,6 @@ impl CompositionLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6482,7 +6389,6 @@ impl CompositionLight { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -6660,7 +6566,6 @@ impl CompositionLineGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6668,7 +6573,6 @@ impl CompositionLineGeometry { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -6769,7 +6673,6 @@ impl CompositionLinearGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ColorStops(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6941,7 +6844,6 @@ impl CompositionLinearGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6949,7 +6851,6 @@ impl CompositionLinearGradientBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -7109,7 +7010,6 @@ impl CompositionMaskBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -7117,7 +7017,6 @@ impl CompositionMaskBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -7274,7 +7173,6 @@ impl CompositionMipmapSurface { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -7282,7 +7180,6 @@ impl CompositionMipmapSurface { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -7530,7 +7427,6 @@ impl CompositionNineGridBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -7538,7 +7434,6 @@ impl CompositionNineGridBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -7657,7 +7552,6 @@ impl CompositionObject { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -7665,7 +7559,6 @@ impl CompositionObject { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -7876,7 +7769,6 @@ impl CompositionPathGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -7884,7 +7776,6 @@ impl CompositionPathGeometry { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -8019,7 +7910,6 @@ impl CompositionProjectedShadow { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -8027,7 +7917,6 @@ impl CompositionProjectedShadow { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -8083,7 +7972,6 @@ impl CompositionProjectedShadow { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBlurRadiusMultiplier)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Casters(&self) -> windows_core::Result { let this = self; unsafe { @@ -8127,7 +8015,6 @@ impl CompositionProjectedShadow { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMinBlurRadius)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Receivers(&self) -> windows_core::Result { let this = self; unsafe { @@ -8209,7 +8096,6 @@ impl CompositionProjectedShadowCaster { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -8217,7 +8103,6 @@ impl CompositionProjectedShadowCaster { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -8303,15 +8188,11 @@ impl windows_core::RuntimeName for CompositionProjectedShadowCaster { } unsafe impl Send for CompositionProjectedShadowCaster {} unsafe impl Sync for CompositionProjectedShadowCaster {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompositionProjectedShadowCasterCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(CompositionProjectedShadowCasterCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CompositionProjectedShadowCasterCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(CompositionProjectedShadowCasterCollection, IAnimationObject, super::super::Foundation::IClosable, windows_collections::IIterable, CompositionObject); impl CompositionProjectedShadowCasterCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -8473,8 +8354,8 @@ impl CompositionProjectedShadowCasterCollection { (windows_core::Interface::vtable(this).MaxRespectedCasters)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -8485,35 +8366,28 @@ impl CompositionProjectedShadowCasterCollection { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CompositionProjectedShadowCasterCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CompositionProjectedShadowCasterCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CompositionProjectedShadowCasterCollection { const NAME: &'static str = "Windows.UI.Composition.CompositionProjectedShadowCasterCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CompositionProjectedShadowCasterCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CompositionProjectedShadowCasterCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CompositionProjectedShadowCasterCollection { type Item = CompositionProjectedShadowCaster; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CompositionProjectedShadowCasterCollection { type Item = CompositionProjectedShadowCaster; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -8579,7 +8453,6 @@ impl CompositionProjectedShadowReceiver { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -8587,7 +8460,6 @@ impl CompositionProjectedShadowReceiver { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -8659,15 +8531,11 @@ impl windows_core::RuntimeName for CompositionProjectedShadowReceiver { } unsafe impl Send for CompositionProjectedShadowReceiver {} unsafe impl Sync for CompositionProjectedShadowReceiver {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompositionProjectedShadowReceiverUnorderedCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(CompositionProjectedShadowReceiverUnorderedCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CompositionProjectedShadowReceiverUnorderedCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(CompositionProjectedShadowReceiverUnorderedCollection, IAnimationObject, super::super::Foundation::IClosable, windows_collections::IIterable, CompositionObject); impl CompositionProjectedShadowReceiverUnorderedCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -8800,43 +8668,36 @@ impl CompositionProjectedShadowReceiverUnorderedCollection { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveAll)(windows_core::Interface::as_raw(this)).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CompositionProjectedShadowReceiverUnorderedCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CompositionProjectedShadowReceiverUnorderedCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CompositionProjectedShadowReceiverUnorderedCollection { const NAME: &'static str = "Windows.UI.Composition.CompositionProjectedShadowReceiverUnorderedCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CompositionProjectedShadowReceiverUnorderedCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CompositionProjectedShadowReceiverUnorderedCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CompositionProjectedShadowReceiverUnorderedCollection { type Item = CompositionProjectedShadowReceiver; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CompositionProjectedShadowReceiverUnorderedCollection { type Item = CompositionProjectedShadowReceiver; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -8902,7 +8763,6 @@ impl CompositionPropertySet { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -8910,7 +8770,6 @@ impl CompositionPropertySet { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -9122,7 +8981,6 @@ impl CompositionRadialGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCenterPoint)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ColorStops(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -9268,7 +9126,6 @@ impl CompositionRadialGradientBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -9276,7 +9133,6 @@ impl CompositionRadialGradientBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -9467,7 +9323,6 @@ impl CompositionRectangleGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -9475,7 +9330,6 @@ impl CompositionRectangleGeometry { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -9653,7 +9507,6 @@ impl CompositionRoundedRectangleGeometry { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -9661,7 +9514,6 @@ impl CompositionRoundedRectangleGeometry { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -9819,7 +9671,6 @@ impl CompositionScopedBatch { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -9827,7 +9678,6 @@ impl CompositionScopedBatch { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -9986,7 +9836,6 @@ impl CompositionShadow { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -9994,7 +9843,6 @@ impl CompositionShadow { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -10113,7 +9961,6 @@ impl CompositionShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -10121,7 +9968,6 @@ impl CompositionShape { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -10253,15 +10099,11 @@ impl windows_core::RuntimeName for CompositionShape { } unsafe impl Send for CompositionShape {} unsafe impl Sync for CompositionShape {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompositionShapeCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(CompositionShapeCollection, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CompositionShapeCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(CompositionShapeCollection, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVector); +windows_core::imp::required_hierarchy!(CompositionShapeCollection, IAnimationObject, super::super::Foundation::IClosable, windows_collections::IIterable, CompositionObject); impl CompositionShapeCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -10369,8 +10211,8 @@ impl CompositionShapeCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -10390,7 +10232,7 @@ impl CompositionShapeCollection { (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -10452,35 +10294,28 @@ impl CompositionShapeCollection { unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CompositionShapeCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CompositionShapeCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CompositionShapeCollection { const NAME: &'static str = "Windows.UI.Composition.CompositionShapeCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CompositionShapeCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CompositionShapeCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CompositionShapeCollection { type Item = CompositionShape; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CompositionShapeCollection { type Item = CompositionShape; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -10546,7 +10381,6 @@ impl CompositionSpriteShape { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -10554,7 +10388,6 @@ impl CompositionSpriteShape { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -10726,7 +10559,6 @@ impl CompositionSpriteShape { let this = self; unsafe { (windows_core::Interface::vtable(this).SetStrokeBrush)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn StrokeDashArray(&self) -> windows_core::Result { let this = self; unsafe { @@ -10854,15 +10686,11 @@ impl windows_core::TypeKind for CompositionStrokeCap { impl windows_core::RuntimeType for CompositionStrokeCap { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::from_slice(b"enum(Windows.UI.Composition.CompositionStrokeCap;i4)"); } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct CompositionStrokeDashArray(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(CompositionStrokeDashArray, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(CompositionStrokeDashArray, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(CompositionStrokeDashArray, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVector); +windows_core::imp::required_hierarchy!(CompositionStrokeDashArray, IAnimationObject, super::super::Foundation::IClosable, windows_collections::IIterable, CompositionObject); impl CompositionStrokeDashArray { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -10970,8 +10798,8 @@ impl CompositionStrokeDashArray { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -10991,7 +10819,7 @@ impl CompositionStrokeDashArray { (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -11041,35 +10869,28 @@ impl CompositionStrokeDashArray { unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), items.as_ptr()).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for CompositionStrokeDashArray { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for CompositionStrokeDashArray { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for CompositionStrokeDashArray { const NAME: &'static str = "Windows.UI.Composition.CompositionStrokeDashArray"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for CompositionStrokeDashArray {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for CompositionStrokeDashArray {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for CompositionStrokeDashArray { type Item = f32; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &CompositionStrokeDashArray { type Item = f32; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -11150,7 +10971,6 @@ impl CompositionSurfaceBrush { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -11158,7 +10978,6 @@ impl CompositionSurfaceBrush { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -11433,7 +11252,6 @@ impl CompositionTarget { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -11441,7 +11259,6 @@ impl CompositionTarget { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -11574,7 +11391,6 @@ impl CompositionTexture { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -11582,7 +11398,6 @@ impl CompositionTexture { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -11740,7 +11555,6 @@ impl CompositionTransform { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -11748,7 +11562,6 @@ impl CompositionTransform { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -11867,7 +11680,6 @@ impl CompositionViewBox { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -11875,7 +11687,6 @@ impl CompositionViewBox { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -12109,7 +11920,6 @@ impl CompositionVirtualDrawingSurface { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -12117,7 +11927,6 @@ impl CompositionVirtualDrawingSurface { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -12241,7 +12050,6 @@ impl CompositionVisualSurface { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -12249,7 +12057,6 @@ impl CompositionVisualSurface { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -12411,11 +12218,11 @@ impl Compositor { (windows_core::Interface::vtable(this).CreateEffectFactory)(windows_core::Interface::as_raw(this), graphicseffect.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Effects"))] + #[cfg(feature = "Graphics_Effects")] pub fn CreateEffectFactoryWithProperties(&self, graphicseffect: P0, animatableproperties: P1) -> windows_core::Result where P0: windows_core::Param, - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -12552,7 +12359,6 @@ impl Compositor { (windows_core::Interface::vtable(this).CreateAmbientLight)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateAnimationGroup(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -12581,7 +12387,6 @@ impl Compositor { (windows_core::Interface::vtable(this).CreateDropShadow)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateImplicitAnimationCollection(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -13045,7 +12850,6 @@ impl ContainerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -13053,7 +12857,6 @@ impl ContainerVisual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -13098,7 +12901,6 @@ impl ContainerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { let this = self; unsafe { @@ -13444,7 +13246,6 @@ impl CubicBezierEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -13452,7 +13253,6 @@ impl CubicBezierEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -13587,7 +13387,6 @@ impl DelegatedInkTrailVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -13595,7 +13394,6 @@ impl DelegatedInkTrailVisual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -13979,7 +13777,6 @@ impl DistantLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Targets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -13987,7 +13784,6 @@ impl DistantLight { (windows_core::Interface::vtable(this).Targets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ExclusionsFromTargets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -14050,7 +13846,6 @@ impl DistantLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -14058,7 +13853,6 @@ impl DistantLight { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -14226,7 +14020,6 @@ impl DropShadow { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -14234,7 +14027,6 @@ impl DropShadow { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -14424,7 +14216,6 @@ impl ElasticEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -14432,7 +14223,6 @@ impl ElasticEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -14572,7 +14362,6 @@ impl ExponentialEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -14580,7 +14369,6 @@ impl ExponentialEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -14737,7 +14525,6 @@ impl ExpressionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -14796,7 +14583,6 @@ impl ExpressionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -14804,7 +14590,6 @@ impl ExpressionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -15123,10 +14908,7 @@ impl windows_core::RuntimeType for ICompositionAnimation3 { #[repr(C)] pub struct ICompositionAnimation3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub InitialValueExpressions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InitialValueExpressions: usize, } windows_core::imp::define_interface!(ICompositionAnimation4, ICompositionAnimation4_Vtbl, 0x770137be_76bc_4e23_bfed_fe9cc20f6ec9); impl windows_core::RuntimeType for ICompositionAnimation4 { @@ -15348,10 +15130,7 @@ impl windows_core::RuntimeType for ICompositionContainerShape { #[repr(C)] pub struct ICompositionContainerShape_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Shapes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Shapes: usize, } windows_core::imp::define_interface!(ICompositionDrawingSurface, ICompositionDrawingSurface_Vtbl, 0xa166c300_fad0_4d11_9e67_e433162ff49e); impl windows_core::RuntimeType for ICompositionDrawingSurface { @@ -15571,10 +15350,7 @@ pub struct ICompositionGradientBrush_Vtbl { pub SetCenterPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] SetCenterPoint: usize, - #[cfg(feature = "Foundation_Collections")] pub ColorStops: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ColorStops: usize, pub ExtendMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionGradientExtendMode) -> windows_core::HRESULT, pub SetExtendMode: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionGradientExtendMode) -> windows_core::HRESULT, pub InterpolationSpace: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionColorSpace) -> windows_core::HRESULT, @@ -15688,10 +15464,7 @@ impl windows_core::RuntimeType for ICompositionLight { #[repr(C)] pub struct ICompositionLight_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Targets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Targets: usize, } windows_core::imp::define_interface!(ICompositionLight2, ICompositionLight2_Vtbl, 0xa7bcda72_f35d_425d_9b98_23f4205f6669); impl windows_core::RuntimeType for ICompositionLight2 { @@ -15700,10 +15473,7 @@ impl windows_core::RuntimeType for ICompositionLight2 { #[repr(C)] pub struct ICompositionLight2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub ExclusionsFromTargets: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ExclusionsFromTargets: usize, } windows_core::imp::define_interface!(ICompositionLight3, ICompositionLight3_Vtbl, 0x4b0b00e4_df07_4959_b7a4_4f7e4233f838); impl windows_core::RuntimeType for ICompositionLight3 { @@ -15862,14 +15632,8 @@ pub struct ICompositionObject2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Comment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetComment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ImplicitAnimations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ImplicitAnimations: usize, - #[cfg(feature = "Foundation_Collections")] pub SetImplicitAnimations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetImplicitAnimations: usize, pub StartAnimationGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub StopAnimationGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -15966,20 +15730,14 @@ pub struct ICompositionProjectedShadow_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub BlurRadiusMultiplier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetBlurRadiusMultiplier: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Casters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Casters: usize, pub LightSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetLightSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub MaxBlurRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetMaxBlurRadius: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, pub MinBlurRadius: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub SetMinBlurRadius: unsafe extern "system" fn(*mut core::ffi::c_void, f32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Receivers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Receivers: usize, } windows_core::imp::define_interface!(ICompositionProjectedShadowCaster, ICompositionProjectedShadowCaster_Vtbl, 0xb1d7d426_1e36_5a62_be56_a16112fdd148); impl windows_core::RuntimeType for ICompositionProjectedShadowCaster { @@ -16295,10 +16053,7 @@ pub struct ICompositionSpriteShape_Vtbl { pub SetIsStrokeNonScaling: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub StrokeBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetStrokeBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StrokeDashArray: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StrokeDashArray: usize, pub StrokeDashCap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CompositionStrokeCap) -> windows_core::HRESULT, pub SetStrokeDashCap: unsafe extern "system" fn(*mut core::ffi::c_void, CompositionStrokeCap) -> windows_core::HRESULT, pub StrokeDashOffset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, @@ -16698,9 +16453,9 @@ pub struct ICompositor_Vtbl { pub CreateEffectFactory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Graphics_Effects"))] CreateEffectFactory: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Graphics_Effects"))] + #[cfg(feature = "Graphics_Effects")] pub CreateEffectFactoryWithProperties: 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, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Graphics_Effects")))] + #[cfg(not(feature = "Graphics_Effects"))] CreateEffectFactoryWithProperties: usize, pub CreateExpressionAnimation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateExpressionAnimationWithExpression: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -16728,17 +16483,11 @@ impl windows_core::RuntimeType for ICompositor2 { pub struct ICompositor2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateAmbientLight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateAnimationGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateAnimationGroup: usize, pub CreateBackdropBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateDistantLight: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateDropShadow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateImplicitAnimationCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateImplicitAnimationCollection: usize, pub CreateLayerVisual: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateMaskBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CreateNineGridBrush: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -16897,10 +16646,7 @@ impl windows_core::RuntimeType for IContainerVisual { #[repr(C)] pub struct IContainerVisual_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Children: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Children: usize, } windows_core::imp::define_interface!(IContainerVisualFactory, IContainerVisualFactory_Vtbl, 0x0363a65b_c7da_4d9a_95f4_69b5c8df670b); impl windows_core::RuntimeType for IContainerVisualFactory { @@ -17362,10 +17108,7 @@ impl windows_core::RuntimeType for IShapeVisual { #[repr(C)] pub struct IShapeVisual_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Shapes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Shapes: usize, pub ViewBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetViewBox: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -17885,15 +17628,11 @@ pub struct IVisualUnorderedCollection_Vtbl { pub Remove: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveAll: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct ImplicitAnimationCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(ImplicitAnimationCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( ImplicitAnimationCollection , IAnimationObject , super::super::Foundation:: IClosable , super::super::Foundation::Collections:: IIterable < super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , ICompositionAnimationBase > > , super::super::Foundation::Collections:: IMap < windows_core::HSTRING , ICompositionAnimationBase > , CompositionObject ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( ImplicitAnimationCollection , IAnimationObject , super::super::Foundation:: IClosable , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , ICompositionAnimationBase > > , windows_collections:: IMap < windows_core::HSTRING , ICompositionAnimationBase > , CompositionObject ); impl ImplicitAnimationCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -18001,36 +17740,36 @@ impl ImplicitAnimationCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -18040,63 +17779,52 @@ impl ImplicitAnimationCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), value.param().abi(), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for ImplicitAnimationCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for ImplicitAnimationCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for ImplicitAnimationCollection { const NAME: &'static str = "Windows.UI.Composition.ImplicitAnimationCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for ImplicitAnimationCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for ImplicitAnimationCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for ImplicitAnimationCollection { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &ImplicitAnimationCollection { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct InitialValueExpressionCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy ! ( InitialValueExpressionCollection , windows_core::IUnknown , windows_core::IInspectable , super::super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > ); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(InitialValueExpressionCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable>, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy ! ( InitialValueExpressionCollection , windows_core::IUnknown , windows_core::IInspectable , windows_collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > ); +windows_core::imp::required_hierarchy!(InitialValueExpressionCollection, IAnimationObject, super::super::Foundation::IClosable, windows_collections::IIterable>, CompositionObject); impl InitialValueExpressionCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -18204,8 +17932,8 @@ impl InitialValueExpressionCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -18232,7 +17960,7 @@ impl InitialValueExpressionCollection { (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { + pub fn GetView(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -18255,35 +17983,28 @@ impl InitialValueExpressionCollection { unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for InitialValueExpressionCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for InitialValueExpressionCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for InitialValueExpressionCollection { const NAME: &'static str = "Windows.UI.Composition.InitialValueExpressionCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for InitialValueExpressionCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for InitialValueExpressionCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for InitialValueExpressionCollection { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &InitialValueExpressionCollection { - type Item = super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -18448,7 +18169,6 @@ impl InsetClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -18456,7 +18176,6 @@ impl InsetClip { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -18643,7 +18362,6 @@ impl KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -18702,7 +18420,6 @@ impl KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -18710,7 +18427,6 @@ impl KeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -18924,7 +18640,6 @@ impl LayerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -18932,7 +18647,6 @@ impl LayerVisual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -18977,7 +18691,6 @@ impl LayerVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -19351,7 +19064,6 @@ impl LinearEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -19359,7 +19071,6 @@ impl LinearEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -19502,7 +19213,6 @@ impl NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -19561,7 +19271,6 @@ impl NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -19569,7 +19278,6 @@ impl NaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -19745,7 +19453,6 @@ impl PathKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -19804,7 +19511,6 @@ impl PathKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -19812,7 +19518,6 @@ impl PathKeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -19999,7 +19704,6 @@ impl PointLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Targets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -20007,7 +19711,6 @@ impl PointLight { (windows_core::Interface::vtable(this).Targets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ExclusionsFromTargets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -20070,7 +19773,6 @@ impl PointLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -20078,7 +19780,6 @@ impl PointLight { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -20301,7 +20002,6 @@ impl PowerEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -20309,7 +20009,6 @@ impl PowerEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -20466,7 +20165,6 @@ impl QuaternionKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -20525,7 +20223,6 @@ impl QuaternionKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -20533,7 +20230,6 @@ impl QuaternionKeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -20847,7 +20543,6 @@ impl RectangleClip { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -20855,7 +20550,6 @@ impl RectangleClip { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -21070,7 +20764,6 @@ impl RedirectVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -21078,7 +20771,6 @@ impl RedirectVisual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -21123,7 +20815,6 @@ impl RedirectVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -21483,7 +21174,6 @@ impl RenderingDeviceReplacedEventArgs { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -21491,7 +21181,6 @@ impl RenderingDeviceReplacedEventArgs { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -21641,7 +21330,6 @@ impl ScalarKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -21700,7 +21388,6 @@ impl ScalarKeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -21708,7 +21395,6 @@ impl ScalarKeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -21957,7 +21643,6 @@ impl ScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22016,7 +21701,6 @@ impl ScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22024,7 +21708,6 @@ impl ScalarNaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -22215,7 +21898,6 @@ impl ShapeVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22223,7 +21905,6 @@ impl ShapeVisual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -22268,7 +21949,6 @@ impl ShapeVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22276,7 +21956,6 @@ impl ShapeVisual { (windows_core::Interface::vtable(this).Children)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Shapes(&self) -> windows_core::Result { let this = self; unsafe { @@ -22636,7 +22315,6 @@ impl SineEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22644,7 +22322,6 @@ impl SineEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -22726,7 +22403,6 @@ impl SpotLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Targets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22734,7 +22410,6 @@ impl SpotLight { (windows_core::Interface::vtable(this).Targets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn ExclusionsFromTargets(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22797,7 +22472,6 @@ impl SpotLight { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -22805,7 +22479,6 @@ impl SpotLight { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -23131,7 +22804,6 @@ impl SpringScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -23190,7 +22862,6 @@ impl SpringScalarNaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -23198,7 +22869,6 @@ impl SpringScalarNaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -23435,7 +23105,6 @@ impl SpringVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -23494,7 +23163,6 @@ impl SpringVector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -23502,7 +23170,6 @@ impl SpringVector2NaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -23745,7 +23412,6 @@ impl SpringVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -23804,7 +23470,6 @@ impl SpringVector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -23812,7 +23477,6 @@ impl SpringVector3NaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -24031,7 +23695,6 @@ impl SpriteVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -24039,7 +23702,6 @@ impl SpriteVisual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -24084,7 +23746,6 @@ impl SpriteVisual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn Children(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -24458,7 +24119,6 @@ impl StepEasingFunction { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -24466,7 +24126,6 @@ impl StepEasingFunction { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -24664,7 +24323,6 @@ impl Vector2KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -24723,7 +24381,6 @@ impl Vector2KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -24731,7 +24388,6 @@ impl Vector2KeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -24982,7 +24638,6 @@ impl Vector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25041,7 +24696,6 @@ impl Vector2NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25049,7 +24703,6 @@ impl Vector2NaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -25270,7 +24923,6 @@ impl Vector3KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25329,7 +24981,6 @@ impl Vector3KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25337,7 +24988,6 @@ impl Vector3KeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -25588,7 +25238,6 @@ impl Vector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25647,7 +25296,6 @@ impl Vector3NaturalMotionAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25655,7 +25303,6 @@ impl Vector3NaturalMotionAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -25876,7 +25523,6 @@ impl Vector4KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetTarget)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InitialValueExpressions(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25935,7 +25581,6 @@ impl Vector4KeyFrameAnimation { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -25943,7 +25588,6 @@ impl Vector4KeyFrameAnimation { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -26170,7 +25814,6 @@ impl Visual { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetComment)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ImplicitAnimations(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -26178,7 +25821,6 @@ impl Visual { (windows_core::Interface::vtable(this).ImplicitAnimations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn SetImplicitAnimations(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -26500,15 +26142,11 @@ impl windows_core::RuntimeName for Visual { } unsafe impl Send for Visual {} unsafe impl Sync for Visual {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct VisualCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(VisualCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(VisualCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(VisualCollection, IAnimationObject, super::super::Foundation::IClosable, windows_collections::IIterable, CompositionObject); impl VisualCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -26616,8 +26254,8 @@ impl VisualCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -26672,48 +26310,37 @@ impl VisualCollection { unsafe { (windows_core::Interface::vtable(this).RemoveAll)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for VisualCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for VisualCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for VisualCollection { const NAME: &'static str = "Windows.UI.Composition.VisualCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for VisualCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for VisualCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for VisualCollection { type Item = Visual; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &VisualCollection { type Item = Visual; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct VisualUnorderedCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(VisualUnorderedCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(VisualUnorderedCollection, IAnimationObject, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, CompositionObject); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(VisualUnorderedCollection, IAnimationObject, super::super::Foundation::IClosable, windows_collections::IIterable, CompositionObject); impl VisualUnorderedCollection { pub fn PopulatePropertyInfo(&self, propertyname: &windows_core::HSTRING, propertyinfo: P1) -> windows_core::Result<()> where @@ -26821,8 +26448,8 @@ impl VisualUnorderedCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).StartAnimationWithController)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(propertyname), animation.param().abi(), animationcontroller.param().abi()).ok() } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -26854,35 +26481,28 @@ impl VisualUnorderedCollection { unsafe { (windows_core::Interface::vtable(this).RemoveAll)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for VisualUnorderedCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for VisualUnorderedCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for VisualUnorderedCollection { const NAME: &'static str = "Windows.UI.Composition.VisualUnorderedCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for VisualUnorderedCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for VisualUnorderedCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for VisualUnorderedCollection { type Item = Visual; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &VisualUnorderedCollection { type Item = Visual; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } diff --git a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs index 4da374ad3ef..123ede77ba6 100644 --- a/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/AnimationMetrics/mod.rs @@ -3,8 +3,7 @@ pub struct AnimationDescription(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AnimationDescription, windows_core::IUnknown, windows_core::IInspectable); impl AnimationDescription { - #[cfg(feature = "Foundation_Collections")] - pub fn Animations(&self) -> windows_core::Result> { + pub fn Animations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -147,10 +146,7 @@ impl windows_core::RuntimeType for IAnimationDescription { #[repr(C)] pub struct IAnimationDescription_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Animations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Animations: usize, pub StaggerDelay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub StaggerDelayFactor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, pub DelayLimit: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/UI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Core/mod.rs index bac6c788543..d136abdffc9 100644 --- a/crates/libs/windows/src/Windows/UI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/mod.rs @@ -1895,8 +1895,8 @@ impl CoreWindowDialog { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsInteractionDelayed)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] - pub fn Commands(&self) -> windows_core::Result> { + #[cfg(feature = "UI_Popups")] + pub fn Commands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2065,8 +2065,8 @@ impl CoreWindowFlyout { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsInteractionDelayed)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] - pub fn Commands(&self) -> windows_core::Result> { + #[cfg(feature = "UI_Popups")] + pub fn Commands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4478,9 +4478,9 @@ pub struct ICoreWindowDialog_Vtbl { pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsInteractionDelayed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetIsInteractionDelayed: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] + #[cfg(feature = "UI_Popups")] pub Commands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Popups")))] + #[cfg(not(feature = "UI_Popups"))] Commands: usize, pub DefaultCommandIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetDefaultCommandIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -4584,9 +4584,9 @@ pub struct ICoreWindowFlyout_Vtbl { pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsInteractionDelayed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i32) -> windows_core::HRESULT, pub SetIsInteractionDelayed: unsafe extern "system" fn(*mut core::ffi::c_void, i32) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] + #[cfg(feature = "UI_Popups")] pub Commands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Popups")))] + #[cfg(not(feature = "UI_Popups"))] Commands: usize, pub DefaultCommandIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetDefaultCommandIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -4762,9 +4762,9 @@ pub struct IPointerEventArgs_Vtbl { pub KeyModifiers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::System::VirtualKeyModifiers) -> windows_core::HRESULT, #[cfg(not(feature = "System"))] KeyModifiers: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Input"))] + #[cfg(feature = "UI_Input")] pub GetIntermediatePoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Input")))] + #[cfg(not(feature = "UI_Input"))] GetIntermediatePoints: usize, } windows_core::imp::define_interface!(ISystemNavigationManager, ISystemNavigationManager_Vtbl, 0x93023118_cf50_42a6_9706_69107fa122e1); @@ -5046,8 +5046,8 @@ impl PointerEventArgs { (windows_core::Interface::vtable(this).KeyModifiers)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Input"))] - pub fn GetIntermediatePoints(&self) -> windows_core::Result> { + #[cfg(feature = "UI_Input")] + pub fn GetIntermediatePoints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs index 22425cc0386..11d1fee05fa 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Analysis/mod.rs @@ -16,10 +16,7 @@ pub struct IInkAnalysisInkDrawing_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub DrawingKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut InkAnalysisDrawingKind) -> windows_core::HRESULT, pub Center: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::Point) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Points: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Points: usize, } windows_core::imp::define_interface!(IInkAnalysisInkWord, IInkAnalysisInkWord_Vtbl, 0x4bd228ad_83af_4034_8f3b_f8687dfff436); impl windows_core::RuntimeType for IInkAnalysisInkWord { @@ -29,10 +26,7 @@ impl windows_core::RuntimeType for IInkAnalysisInkWord { pub struct IInkAnalysisInkWord_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub RecognizedText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TextAlternates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TextAlternates: usize, } windows_core::imp::define_interface!(IInkAnalysisLine, IInkAnalysisLine_Vtbl, 0xa06d048d_2b8d_4754_ad5a_d0871193a956); impl windows_core::RuntimeType for IInkAnalysisLine { @@ -80,16 +74,14 @@ impl IInkAnalysisNode { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -103,8 +95,7 @@ impl IInkAnalysisNode { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -112,21 +103,18 @@ impl IInkAnalysisNode { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IInkAnalysisNode { const NAME: &'static str = "Windows.UI.Input.Inking.Analysis.IInkAnalysisNode"; } -#[cfg(feature = "Foundation_Collections")] pub trait IInkAnalysisNode_Impl: windows_core::IUnknownImpl { fn Id(&self) -> windows_core::Result; fn Kind(&self) -> windows_core::Result; fn BoundingRect(&self) -> windows_core::Result; - fn RotatedBoundingRect(&self) -> windows_core::Result>; - fn Children(&self) -> windows_core::Result>; + fn RotatedBoundingRect(&self) -> windows_core::Result>; + fn Children(&self) -> windows_core::Result>; fn Parent(&self) -> windows_core::Result; - fn GetStrokeIds(&self) -> windows_core::Result>; + fn GetStrokeIds(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IInkAnalysisNode_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Id(this: *mut core::ffi::c_void, result__: *mut u32) -> windows_core::HRESULT { @@ -238,19 +226,10 @@ pub struct IInkAnalysisNode_Vtbl { pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut InkAnalysisNodeKind) -> windows_core::HRESULT, pub BoundingRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::super::Foundation::Rect) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RotatedBoundingRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RotatedBoundingRect: usize, - #[cfg(feature = "Foundation_Collections")] pub Children: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Children: usize, pub Parent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetStrokeIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStrokeIds: usize, } windows_core::imp::define_interface!(IInkAnalysisParagraph, IInkAnalysisParagraph_Vtbl, 0xd9ad045c_0cd1_4dd4_a68b_eb1f12b3d727); impl windows_core::RuntimeType for IInkAnalysisParagraph { @@ -278,10 +257,7 @@ impl windows_core::RuntimeType for IInkAnalysisRoot { pub struct IInkAnalysisRoot_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub RecognizedText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindNodes: unsafe extern "system" fn(*mut core::ffi::c_void, InkAnalysisNodeKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindNodes: usize, } windows_core::imp::define_interface!(IInkAnalysisWritingRegion, IInkAnalysisWritingRegion_Vtbl, 0xdd6d6231_bd16_4663_b5ae_941d3043ef5b); impl windows_core::RuntimeType for IInkAnalysisWritingRegion { @@ -302,16 +278,10 @@ pub struct IInkAnalyzer_Vtbl { pub AnalysisRoot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsAnalyzing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub AddDataForStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AddDataForStrokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddDataForStrokes: usize, pub ClearDataForAllStrokes: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveDataForStroke: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RemoveDataForStrokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RemoveDataForStrokes: usize, pub ReplaceDataForStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetStrokeDataKind: unsafe extern "system" fn(*mut core::ffi::c_void, u32, InkAnalysisStrokeKind) -> windows_core::HRESULT, pub AnalyzeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -422,16 +392,14 @@ impl InkAnalysisInkBullet { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -445,8 +413,7 @@ impl InkAnalysisInkBullet { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -486,8 +453,7 @@ impl InkAnalysisInkDrawing { (windows_core::Interface::vtable(this).Center)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Points(&self) -> windows_core::Result> { + pub fn Points(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -515,16 +481,14 @@ impl InkAnalysisInkDrawing { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -538,8 +502,7 @@ impl InkAnalysisInkDrawing { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -572,8 +535,7 @@ impl InkAnalysisInkWord { (windows_core::Interface::vtable(this).RecognizedText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn TextAlternates(&self) -> windows_core::Result> { + pub fn TextAlternates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -601,16 +563,14 @@ impl InkAnalysisInkWord { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -624,8 +584,7 @@ impl InkAnalysisInkWord { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -686,16 +645,14 @@ impl InkAnalysisLine { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -709,8 +666,7 @@ impl InkAnalysisLine { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -764,16 +720,14 @@ impl InkAnalysisListItem { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -787,8 +741,7 @@ impl InkAnalysisListItem { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -834,16 +787,14 @@ impl InkAnalysisNode { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -857,8 +808,7 @@ impl InkAnalysisNode { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -925,16 +875,14 @@ impl InkAnalysisParagraph { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -948,8 +896,7 @@ impl InkAnalysisParagraph { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1028,16 +975,14 @@ impl InkAnalysisRoot { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1051,8 +996,7 @@ impl InkAnalysisRoot { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1066,8 +1010,7 @@ impl InkAnalysisRoot { (windows_core::Interface::vtable(this).RecognizedText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindNodes(&self, nodekind: InkAnalysisNodeKind) -> windows_core::Result> { + pub fn FindNodes(&self, nodekind: InkAnalysisNodeKind) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1141,16 +1084,14 @@ impl InkAnalysisWritingRegion { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn RotatedBoundingRect(&self) -> windows_core::Result> { + pub fn RotatedBoundingRect(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RotatedBoundingRect)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> windows_core::Result> { + pub fn Children(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1164,8 +1105,7 @@ impl InkAnalysisWritingRegion { (windows_core::Interface::vtable(this).Parent)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokeIds(&self) -> windows_core::Result> { + pub fn GetStrokeIds(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1225,10 +1165,9 @@ impl InkAnalyzer { let this = self; unsafe { (windows_core::Interface::vtable(this).AddDataForStroke)(windows_core::Interface::as_raw(this), stroke.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn AddDataForStrokes(&self, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).AddDataForStrokes)(windows_core::Interface::as_raw(this), strokes.param().abi()).ok() } @@ -1241,10 +1180,9 @@ impl InkAnalyzer { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveDataForStroke)(windows_core::Interface::as_raw(this), strokeid).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn RemoveDataForStrokes(&self, strokeids: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveDataForStrokes)(windows_core::Interface::as_raw(this), strokeids.param().abi()).ok() } diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs index c41bae86d7d..bd1f3464332 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/Core/mod.rs @@ -3,10 +3,9 @@ pub struct CoreIncrementalInkStroke(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CoreIncrementalInkStroke, windows_core::IUnknown, windows_core::IInspectable); impl CoreIncrementalInkStroke { - #[cfg(feature = "Foundation_Collections")] pub fn AppendInkPoints(&self, inkpoints: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -296,8 +295,7 @@ impl windows_core::RuntimeType for CoreWetStrokeDisposition { pub struct CoreWetStrokeUpdateEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CoreWetStrokeUpdateEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl CoreWetStrokeUpdateEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn NewInkPoints(&self) -> windows_core::Result> { + pub fn NewInkPoints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -450,10 +448,7 @@ impl windows_core::RuntimeType for ICoreIncrementalInkStroke { #[repr(C)] pub struct ICoreIncrementalInkStroke_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AppendInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::super::Foundation::Rect) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AppendInkPoints: usize, pub CreateInkStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub DrawingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Foundation_Numerics")] @@ -567,10 +562,7 @@ impl windows_core::RuntimeType for ICoreWetStrokeUpdateEventArgs { #[repr(C)] pub struct ICoreWetStrokeUpdateEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub NewInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - NewInkPoints: usize, pub PointerId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Disposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CoreWetStrokeDisposition) -> windows_core::HRESULT, pub SetDisposition: unsafe extern "system" fn(*mut core::ffi::c_void, CoreWetStrokeDisposition) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs index 494ccf9e7c1..81b1b821b18 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Inking/mod.rs @@ -149,10 +149,7 @@ pub struct IInkManager_Vtbl { pub ProcessPointerUpdate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProcessPointerUp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT, pub SetDefaultDrawingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RecognizeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, InkRecognitionTarget, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RecognizeAsync: usize, } windows_core::imp::define_interface!(IInkModelerAttributes, IInkModelerAttributes_Vtbl, 0xbad31f27_0cd9_4bfd_b6f3_9e03ba8d7454); impl windows_core::RuntimeType for IInkModelerAttributes { @@ -613,14 +610,8 @@ impl windows_core::RuntimeType for IInkRecognitionResult { pub struct IInkRecognitionResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub BoundingRect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetTextCandidates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTextCandidates: usize, - #[cfg(feature = "Foundation_Collections")] pub GetStrokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStrokes: usize, } windows_core::imp::define_interface!(IInkRecognizer, IInkRecognizer_Vtbl, 0x077ccea3_904d_442a_b151_aaca3631c43b); impl windows_core::RuntimeType for IInkRecognizer { @@ -644,8 +635,7 @@ impl IInkRecognizerContainer { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RecognizeAsync(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> + pub fn RecognizeAsync(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> where P0: windows_core::Param, { @@ -655,8 +645,7 @@ impl IInkRecognizerContainer { (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRecognizers(&self) -> windows_core::Result> { + pub fn GetRecognizers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -664,17 +653,14 @@ impl IInkRecognizerContainer { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IInkRecognizerContainer { const NAME: &'static str = "Windows.UI.Input.Inking.IInkRecognizerContainer"; } -#[cfg(feature = "Foundation_Collections")] pub trait IInkRecognizerContainer_Impl: windows_core::IUnknownImpl { fn SetDefaultRecognizer(&self, recognizer: windows_core::Ref<'_, InkRecognizer>) -> windows_core::Result<()>; - fn RecognizeAsync(&self, strokeCollection: windows_core::Ref<'_, InkStrokeContainer>, recognitionTarget: InkRecognitionTarget) -> windows_core::Result>>; - fn GetRecognizers(&self) -> windows_core::Result>; + fn RecognizeAsync(&self, strokeCollection: windows_core::Ref<'_, InkStrokeContainer>, recognitionTarget: InkRecognitionTarget) -> windows_core::Result>>; + fn GetRecognizers(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IInkRecognizerContainer_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn SetDefaultRecognizer(this: *mut core::ffi::c_void, recognizer: *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -724,14 +710,8 @@ impl IInkRecognizerContainer_Vtbl { pub struct IInkRecognizerContainer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SetDefaultRecognizer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub RecognizeAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, InkRecognitionTarget, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RecognizeAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub GetRecognizers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRecognizers: usize, } windows_core::imp::define_interface!(IInkStroke, IInkStroke_Vtbl, 0x15144d60_cce3_4fcf_9d52_11518ab6afd4); impl windows_core::RuntimeType for IInkStroke { @@ -746,10 +726,7 @@ pub struct IInkStroke_Vtbl { pub Selected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetSelected: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub Recognized: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetRenderingSegments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRenderingSegments: usize, pub Clone: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkStroke2, IInkStroke2_Vtbl, 0x5db9e4f4_bafa_4de1_89d3_201b1ed7d89b); @@ -767,10 +744,7 @@ pub struct IInkStroke2_Vtbl { pub SetPointTransform: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] SetPointTransform: usize, - #[cfg(feature = "Foundation_Collections")] pub GetInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetInkPoints: usize, } windows_core::imp::define_interface!(IInkStroke3, IInkStroke3_Vtbl, 0x4a807374_9499_411d_a1c4_68855d03d65f); impl windows_core::RuntimeType for IInkStroke3 { @@ -804,10 +778,7 @@ pub struct IInkStrokeBuilder_Vtbl { pub BeginStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub AppendToStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub EndStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CreateStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateStroke: usize, pub SetDefaultDrawingAttributes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkStrokeBuilder2, IInkStrokeBuilder2_Vtbl, 0xbd82bc27_731f_4cbc_bbbf_6d468044f1e5); @@ -817,9 +788,9 @@ impl windows_core::RuntimeType for IInkStrokeBuilder2 { #[repr(C)] pub struct IInkStrokeBuilder2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Foundation_Numerics"))] + #[cfg(feature = "Foundation_Numerics")] pub CreateStrokeFromInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Foundation_Numerics")))] + #[cfg(not(feature = "Foundation_Numerics"))] CreateStrokeFromInkPoints: usize, } windows_core::imp::define_interface!(IInkStrokeBuilder3, IInkStrokeBuilder3_Vtbl, 0xb2c71fcd_5472_46b1_a81d_c37a3d169441); @@ -829,9 +800,9 @@ impl windows_core::RuntimeType for IInkStrokeBuilder3 { #[repr(C)] pub struct IInkStrokeBuilder3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Foundation_Numerics"))] + #[cfg(feature = "Foundation_Numerics")] pub CreateStrokeFromInkPoints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Matrix3x2, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Foundation_Numerics")))] + #[cfg(not(feature = "Foundation_Numerics"))] CreateStrokeFromInkPoints: usize, } windows_core::imp::define_interface!(IInkStrokeContainer, IInkStrokeContainer_Vtbl, 0x22accbc6_faa9_4f14_b68c_f6cee670ae16); @@ -868,10 +839,9 @@ impl IInkStrokeContainer { (windows_core::Interface::vtable(this).MoveSelected)(windows_core::Interface::as_raw(this), translation, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -926,24 +896,21 @@ impl IInkStrokeContainer { (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokes(&self) -> windows_core::Result> { + pub fn GetStrokes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetStrokes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRecognitionResults(&self) -> windows_core::Result> { + pub fn GetRecognitionResults(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -951,28 +918,28 @@ impl IInkStrokeContainer { } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl windows_core::RuntimeName for IInkStrokeContainer { const NAME: &'static str = "Windows.UI.Input.Inking.IInkStrokeContainer"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] pub trait IInkStrokeContainer_Impl: windows_core::IUnknownImpl { fn BoundingRect(&self) -> windows_core::Result; fn AddStroke(&self, stroke: windows_core::Ref<'_, InkStroke>) -> windows_core::Result<()>; fn DeleteSelected(&self) -> windows_core::Result; fn MoveSelected(&self, translation: &super::super::super::Foundation::Point) -> windows_core::Result; - fn SelectWithPolyLine(&self, polyline: windows_core::Ref<'_, super::super::super::Foundation::Collections::IIterable>) -> windows_core::Result; + fn SelectWithPolyLine(&self, polyline: windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result; fn SelectWithLine(&self, from: &super::super::super::Foundation::Point, to: &super::super::super::Foundation::Point) -> windows_core::Result; fn CopySelectedToClipboard(&self) -> windows_core::Result<()>; fn PasteFromClipboard(&self, position: &super::super::super::Foundation::Point) -> windows_core::Result; fn CanPasteFromClipboard(&self) -> windows_core::Result; fn LoadAsync(&self, inputStream: windows_core::Ref<'_, super::super::super::Storage::Streams::IInputStream>) -> windows_core::Result>; fn SaveAsync(&self, outputStream: windows_core::Ref<'_, super::super::super::Storage::Streams::IOutputStream>) -> windows_core::Result>; - fn UpdateRecognitionResults(&self, recognitionResults: windows_core::Ref<'_, super::super::super::Foundation::Collections::IVectorView>) -> windows_core::Result<()>; - fn GetStrokes(&self) -> windows_core::Result>; - fn GetRecognitionResults(&self) -> windows_core::Result>; + fn UpdateRecognitionResults(&self, recognitionResults: windows_core::Ref<'_, windows_collections::IVectorView>) -> windows_core::Result<()>; + fn GetStrokes(&self) -> windows_core::Result>; + fn GetRecognitionResults(&self) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] +#[cfg(feature = "Storage_Streams")] impl IInkStrokeContainer_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn BoundingRect(this: *mut core::ffi::c_void, result__: *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT { @@ -1158,10 +1125,7 @@ pub struct IInkStrokeContainer_Vtbl { pub AddStroke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub DeleteSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT, pub MoveSelected: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SelectWithPolyLine: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SelectWithPolyLine: usize, pub SelectWithLine: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, super::super::super::Foundation::Point, *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT, pub CopySelectedToClipboard: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub PasteFromClipboard: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::Point, *mut super::super::super::Foundation::Rect) -> windows_core::HRESULT, @@ -1174,18 +1138,9 @@ pub struct IInkStrokeContainer_Vtbl { pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] SaveAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub UpdateRecognitionResults: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UpdateRecognitionResults: usize, - #[cfg(feature = "Foundation_Collections")] pub GetStrokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetStrokes: usize, - #[cfg(feature = "Foundation_Collections")] pub GetRecognitionResults: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetRecognitionResults: usize, } windows_core::imp::define_interface!(IInkStrokeContainer2, IInkStrokeContainer2_Vtbl, 0x8901d364_da36_4bcf_9e5c_d195825995b4); impl windows_core::RuntimeType for IInkStrokeContainer2 { @@ -1194,10 +1149,7 @@ impl windows_core::RuntimeType for IInkStrokeContainer2 { #[repr(C)] pub struct IInkStrokeContainer2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub AddStrokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AddStrokes: usize, pub Clear: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkStrokeContainer3, IInkStrokeContainer3_Vtbl, 0x3d07bea5_baea_4c82_a719_7b83da1067d2); @@ -1264,10 +1216,7 @@ impl windows_core::RuntimeType for IInkStrokesCollectedEventArgs { #[repr(C)] pub struct IInkStrokesCollectedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Strokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Strokes: usize, } windows_core::imp::define_interface!(IInkStrokesErasedEventArgs, IInkStrokesErasedEventArgs_Vtbl, 0xa4216a22_1503_4ebf_8ff5_2de84584a8aa); impl windows_core::RuntimeType for IInkStrokesErasedEventArgs { @@ -1276,10 +1225,7 @@ impl windows_core::RuntimeType for IInkStrokesErasedEventArgs { #[repr(C)] pub struct IInkStrokesErasedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Strokes: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Strokes: usize, } windows_core::imp::define_interface!(IInkSynchronizer, IInkSynchronizer_Vtbl, 0x9b9ea160_ae9b_45f9_8407_4b493b163661); impl windows_core::RuntimeType for IInkSynchronizer { @@ -1288,10 +1234,7 @@ impl windows_core::RuntimeType for IInkSynchronizer { #[repr(C)] pub struct IInkSynchronizer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub BeginDry: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - BeginDry: usize, pub EndDry: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IInkUnprocessedInput, IInkUnprocessedInput_Vtbl, 0xdb4445e0_8398_4921_ac3b_ab978c5ba256); @@ -1748,8 +1691,7 @@ impl InkManager { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), drawingattributes.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RecognizeAsync(&self, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> { + pub fn RecognizeAsync(&self, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1763,8 +1705,7 @@ impl InkManager { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RecognizeAsync2(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> + pub fn RecognizeAsync2(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> where P0: windows_core::Param, { @@ -1774,8 +1715,7 @@ impl InkManager { (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRecognizers(&self) -> windows_core::Result> { + pub fn GetRecognizers(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1810,10 +1750,9 @@ impl InkManager { (windows_core::Interface::vtable(this).MoveSelected)(windows_core::Interface::as_raw(this), translation, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1868,24 +1807,21 @@ impl InkManager { (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokes(&self) -> windows_core::Result> { + pub fn GetStrokes(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetStrokes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRecognitionResults(&self) -> windows_core::Result> { + pub fn GetRecognitionResults(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2533,16 +2469,14 @@ impl InkRecognitionResult { (windows_core::Interface::vtable(this).BoundingRect)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTextCandidates(&self) -> windows_core::Result> { + pub fn GetTextCandidates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetTextCandidates)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokes(&self) -> windows_core::Result> { + pub fn GetStrokes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2618,8 +2552,7 @@ impl InkRecognizerContainer { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDefaultRecognizer)(windows_core::Interface::as_raw(this), recognizer.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn RecognizeAsync(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> + pub fn RecognizeAsync(&self, strokecollection: P0, recognitiontarget: InkRecognitionTarget) -> windows_core::Result>> where P0: windows_core::Param, { @@ -2629,8 +2562,7 @@ impl InkRecognizerContainer { (windows_core::Interface::vtable(this).RecognizeAsync)(windows_core::Interface::as_raw(this), strokecollection.param().abi(), recognitiontarget, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRecognizers(&self) -> windows_core::Result> { + pub fn GetRecognizers(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2692,8 +2624,7 @@ impl InkStroke { (windows_core::Interface::vtable(this).Recognized)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRenderingSegments(&self) -> windows_core::Result> { + pub fn GetRenderingSegments(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2720,8 +2651,7 @@ impl InkStroke { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetPointTransform)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetInkPoints(&self) -> windows_core::Result> { + pub fn GetInkPoints(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2822,10 +2752,9 @@ impl InkStrokeBuilder { (windows_core::Interface::vtable(this).EndStroke)(windows_core::Interface::as_raw(this), pointerpoint.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateStroke(&self, points: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2840,10 +2769,10 @@ impl InkStrokeBuilder { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDefaultDrawingAttributes)(windows_core::Interface::as_raw(this), drawingattributes.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Foundation_Numerics"))] + #[cfg(feature = "Foundation_Numerics")] pub fn CreateStrokeFromInkPoints(&self, inkpoints: P0, transform: super::super::super::Foundation::Numerics::Matrix3x2) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2851,10 +2780,10 @@ impl InkStrokeBuilder { (windows_core::Interface::vtable(this).CreateStrokeFromInkPoints)(windows_core::Interface::as_raw(this), inkpoints.param().abi(), transform, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Foundation_Numerics"))] + #[cfg(feature = "Foundation_Numerics")] pub fn CreateStrokeFromInkPoints2(&self, inkpoints: P0, transform: super::super::super::Foundation::Numerics::Matrix3x2, strokestartedtime: P2, strokeduration: P3) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, P2: windows_core::Param>, P3: windows_core::Param>, { @@ -2915,10 +2844,9 @@ impl InkStrokeContainer { (windows_core::Interface::vtable(this).MoveSelected)(windows_core::Interface::as_raw(this), translation, &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] pub fn SelectWithPolyLine(&self, polyline: P0) -> windows_core::Result where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -2973,34 +2901,30 @@ impl InkStrokeContainer { (windows_core::Interface::vtable(this).SaveAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn UpdateRecognitionResults(&self, recognitionresults: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).UpdateRecognitionResults)(windows_core::Interface::as_raw(this), recognitionresults.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetStrokes(&self) -> windows_core::Result> { + pub fn GetStrokes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetStrokes)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetRecognitionResults(&self) -> windows_core::Result> { + pub fn GetRecognitionResults(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetRecognitionResults)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn AddStrokes(&self, strokes: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).AddStrokes)(windows_core::Interface::as_raw(this), strokes.param().abi()).ok() } @@ -3195,8 +3119,7 @@ unsafe impl Sync for InkStrokeRenderingSegment {} pub struct InkStrokesCollectedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(InkStrokesCollectedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl InkStrokesCollectedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Strokes(&self) -> windows_core::Result> { + pub fn Strokes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3219,8 +3142,7 @@ impl windows_core::RuntimeName for InkStrokesCollectedEventArgs { pub struct InkStrokesErasedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(InkStrokesErasedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl InkStrokesErasedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Strokes(&self) -> windows_core::Result> { + pub fn Strokes(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3243,8 +3165,7 @@ impl windows_core::RuntimeName for InkStrokesErasedEventArgs { pub struct InkSynchronizer(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(InkSynchronizer, windows_core::IUnknown, windows_core::IInspectable); impl InkSynchronizer { - #[cfg(feature = "Foundation_Collections")] - pub fn BeginDry(&self) -> windows_core::Result> { + pub fn BeginDry(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs index 0009055553e..d6b3b3b5351 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Preview/Injection/mod.rs @@ -117,19 +117,10 @@ impl windows_core::RuntimeType for IInputInjector { #[repr(C)] pub struct IInputInjector_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub InjectKeyboardInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InjectKeyboardInput: usize, - #[cfg(feature = "Foundation_Collections")] pub InjectMouseInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InjectMouseInput: usize, pub InitializeTouchInjection: unsafe extern "system" fn(*mut core::ffi::c_void, InjectedInputVisualizationMode) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub InjectTouchInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - InjectTouchInput: usize, pub UninitializeTouchInjection: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub InitializePenInjection: unsafe extern "system" fn(*mut core::ffi::c_void, InjectedInputVisualizationMode) -> windows_core::HRESULT, pub InjectPenInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -996,18 +987,16 @@ impl windows_core::RuntimeType for InjectedInputVisualizationMode { pub struct InputInjector(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(InputInjector, windows_core::IUnknown, windows_core::IInspectable); impl InputInjector { - #[cfg(feature = "Foundation_Collections")] pub fn InjectKeyboardInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).InjectKeyboardInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InjectMouseInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).InjectMouseInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } @@ -1016,10 +1005,9 @@ impl InputInjector { let this = self; unsafe { (windows_core::Interface::vtable(this).InitializeTouchInjection)(windows_core::Interface::as_raw(this), visualmode).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InjectTouchInput(&self, input: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).InjectTouchInput)(windows_core::Interface::as_raw(this), input.param().abi()).ok() } diff --git a/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs b/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs index 5d9aa7a0b33..50663c5cd0d 100644 --- a/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/Spatial/mod.rs @@ -185,9 +185,9 @@ pub struct ISpatialInteractionManager_Vtbl { pub RemoveSourceReleased: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub InteractionDetected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveInteractionDetected: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Perception"))] + #[cfg(feature = "Perception")] pub GetDetectedSourcesAtTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Perception")))] + #[cfg(not(feature = "Perception"))] GetDetectedSourcesAtTimestamp: usize, } windows_core::imp::define_interface!(ISpatialInteractionManagerStatics, ISpatialInteractionManagerStatics_Vtbl, 0x00e31fa6_8ca2_30bf_91fe_d9cb4a008990); @@ -1309,8 +1309,8 @@ impl SpatialInteractionManager { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveInteractionDetected)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Perception"))] - pub fn GetDetectedSourcesAtTimestamp(&self, timestamp: P0) -> windows_core::Result> + #[cfg(feature = "Perception")] + pub fn GetDetectedSourcesAtTimestamp(&self, timestamp: P0) -> windows_core::Result> where P0: windows_core::Param, { diff --git a/crates/libs/windows/src/Windows/UI/Input/mod.rs b/crates/libs/windows/src/Windows/UI/Input/mod.rs index 5083f2381b6..5f3b886e80f 100644 --- a/crates/libs/windows/src/Windows/UI/Input/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Input/mod.rs @@ -500,10 +500,9 @@ impl GestureRecognizer { let this = self; unsafe { (windows_core::Interface::vtable(this).ProcessDownEvent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ProcessMoveEvents(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).ProcessMoveEvents)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -1019,10 +1018,7 @@ pub struct IGestureRecognizer_Vtbl { pub MouseWheelParameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CanBeDoubleTap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ProcessDownEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ProcessMoveEvents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProcessMoveEvents: usize, pub ProcessUpEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub ProcessMouseWheelEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, bool) -> windows_core::HRESULT, pub ProcessInertia: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1284,10 +1280,7 @@ pub struct IPhysicalGestureRecognizer_Vtbl { pub TranslationMaxContactCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetTranslationMaxContactCount: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub ProcessDownEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ProcessMoveEvents: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProcessMoveEvents: usize, pub ProcessUpEvent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub CompleteGesture: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ManipulationStarted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, @@ -1379,15 +1372,9 @@ impl windows_core::RuntimeType for IPointerPointStatics { pub struct IPointerPointStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub GetCurrentPoint: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetIntermediatePoints: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetIntermediatePoints: usize, pub GetCurrentPointTransformed: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetIntermediatePointsTransformed: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetIntermediatePointsTransformed: usize, } windows_core::imp::define_interface!(IPointerPointTransform, IPointerPointTransform_Vtbl, 0x4d5fe14f_b87c_4028_bc9c_59e9947fb056); impl windows_core::RuntimeType for IPointerPointTransform { @@ -1611,10 +1598,7 @@ impl windows_core::RuntimeType for IRadialControllerConfiguration { #[repr(C)] pub struct IRadialControllerConfiguration_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub SetDefaultMenuItems: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetDefaultMenuItems: usize, pub ResetToDefaultMenuItems: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub TrySelectDefaultMenuItem: unsafe extern "system" fn(*mut core::ffi::c_void, RadialControllerSystemMenuItemKind, *mut bool) -> windows_core::HRESULT, } @@ -1680,10 +1664,7 @@ impl windows_core::RuntimeType for IRadialControllerMenu { #[repr(C)] pub struct IRadialControllerMenu_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Items: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub GetSelectedMenuItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2569,10 +2550,9 @@ impl PhysicalGestureRecognizer { let this = self; unsafe { (windows_core::Interface::vtable(this).ProcessDownEvent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn ProcessMoveEvents(&self, value: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).ProcessMoveEvents)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } @@ -2751,8 +2731,7 @@ impl PointerPoint { (windows_core::Interface::vtable(this).GetCurrentPoint)(windows_core::Interface::as_raw(this), pointerid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIntermediatePoints(pointerid: u32) -> windows_core::Result> { + pub fn GetIntermediatePoints(pointerid: u32) -> windows_core::Result> { Self::IPointerPointStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetIntermediatePoints)(windows_core::Interface::as_raw(this), pointerid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2767,8 +2746,7 @@ impl PointerPoint { (windows_core::Interface::vtable(this).GetCurrentPointTransformed)(windows_core::Interface::as_raw(this), pointerid, transform.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn GetIntermediatePointsTransformed(pointerid: u32, transform: P1) -> windows_core::Result> + pub fn GetIntermediatePointsTransformed(pointerid: u32, transform: P1) -> windows_core::Result> where P1: windows_core::Param, { @@ -3395,10 +3373,9 @@ unsafe impl Sync for RadialControllerButtonReleasedEventArgs {} pub struct RadialControllerConfiguration(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(RadialControllerConfiguration, windows_core::IUnknown, windows_core::IInspectable); impl RadialControllerConfiguration { - #[cfg(feature = "Foundation_Collections")] pub fn SetDefaultMenuItems(&self, buttons: P0) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDefaultMenuItems)(windows_core::Interface::as_raw(this), buttons.param().abi()).ok() } @@ -3532,8 +3509,7 @@ unsafe impl Sync for RadialControllerControlAcquiredEventArgs {} pub struct RadialControllerMenu(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(RadialControllerMenu, windows_core::IUnknown, windows_core::IInspectable); impl RadialControllerMenu { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs b/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs index 04b5a6a2d6a..895eee8ea2a 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/Management/mod.rs @@ -9,10 +9,7 @@ pub struct IUserNotificationListener_Vtbl { pub GetAccessStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut UserNotificationListenerAccessStatus) -> windows_core::HRESULT, pub NotificationChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveNotificationChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetNotificationsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::NotificationKinds, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetNotificationsAsync: usize, pub GetNotification: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ClearNotifications: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveNotification: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -59,8 +56,7 @@ impl UserNotificationListener { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveNotificationChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetNotificationsAsync(&self, kinds: super::NotificationKinds) -> windows_core::Result>> { + pub fn GetNotificationsAsync(&self, kinds: super::NotificationKinds) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Notifications/mod.rs b/crates/libs/windows/src/Windows/UI/Notifications/mod.rs index 44157f4096f..c67d00fa497 100644 --- a/crates/libs/windows/src/Windows/UI/Notifications/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Notifications/mod.rs @@ -34,8 +34,7 @@ impl AdaptiveNotificationText { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Hints(&self) -> windows_core::Result> { + pub fn Hints(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -300,8 +299,7 @@ impl IAdaptiveNotificationContent { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Hints(&self) -> windows_core::Result> { + pub fn Hints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -309,16 +307,13 @@ impl IAdaptiveNotificationContent { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for IAdaptiveNotificationContent { const NAME: &'static str = "Windows.UI.Notifications.IAdaptiveNotificationContent"; } -#[cfg(feature = "Foundation_Collections")] pub trait IAdaptiveNotificationContent_Impl: windows_core::IUnknownImpl { fn Kind(&self) -> windows_core::Result; - fn Hints(&self) -> windows_core::Result>; + fn Hints(&self) -> windows_core::Result>; } -#[cfg(feature = "Foundation_Collections")] impl IAdaptiveNotificationContent_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Kind(this: *mut core::ffi::c_void, result__: *mut AdaptiveNotificationContentKind) -> windows_core::HRESULT { @@ -360,10 +355,7 @@ impl IAdaptiveNotificationContent_Vtbl { pub struct IAdaptiveNotificationContent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut AdaptiveNotificationContentKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Hints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Hints: usize, } windows_core::imp::define_interface!(IAdaptiveNotificationText, IAdaptiveNotificationText_Vtbl, 0x46d4a3be_609a_4326_a40b_bfde872034a3); impl windows_core::RuntimeType for IAdaptiveNotificationText { @@ -531,14 +523,8 @@ pub struct INotificationBinding_Vtbl { pub SetTemplate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Hints: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Hints: usize, - #[cfg(feature = "Foundation_Collections")] pub GetTextElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTextElements: usize, } windows_core::imp::define_interface!(INotificationData, INotificationData_Vtbl, 0x9ffd2312_9d6a_4aaf_b6ac_ff17f0c1f280); impl windows_core::RuntimeType for INotificationData { @@ -547,10 +533,7 @@ impl windows_core::RuntimeType for INotificationData { #[repr(C)] pub struct INotificationData_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Values: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Values: usize, pub SequenceNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetSequenceNumber: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, } @@ -561,14 +544,8 @@ impl windows_core::RuntimeType for INotificationDataFactory { #[repr(C)] pub struct INotificationDataFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateNotificationDataWithValuesAndSequenceNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateNotificationDataWithValuesAndSequenceNumber: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateNotificationDataWithValues: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateNotificationDataWithValues: usize, } windows_core::imp::define_interface!(INotificationVisual, INotificationVisual_Vtbl, 0x68835b8e_aa56_4e11_86d3_5f9a6957bc5b); impl windows_core::RuntimeType for INotificationVisual { @@ -579,10 +556,7 @@ pub struct INotificationVisual_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Bindings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Bindings: usize, pub GetBinding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IScheduledTileNotification, IScheduledTileNotification_Vtbl, 0x0abca6d5_99dc_4c78_a11c_c9e7f86d7ef7); @@ -844,21 +818,12 @@ pub struct ITileUpdater_Vtbl { pub Setting: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NotificationSetting) -> windows_core::HRESULT, pub AddToSchedule: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveFromSchedule: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetScheduledTileNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetScheduledTileNotifications: usize, pub StartPeriodicUpdate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PeriodicUpdateRecurrence) -> windows_core::HRESULT, pub StartPeriodicUpdateAtTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, PeriodicUpdateRecurrence) -> windows_core::HRESULT, pub StopPeriodicUpdate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub StartPeriodicUpdateBatch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, PeriodicUpdateRecurrence) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartPeriodicUpdateBatch: usize, - #[cfg(feature = "Foundation_Collections")] pub StartPeriodicUpdateBatchAtTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::Foundation::DateTime, PeriodicUpdateRecurrence) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - StartPeriodicUpdateBatchAtTime: usize, } windows_core::imp::define_interface!(ITileUpdater2, ITileUpdater2_Vtbl, 0xa2266e12_15ee_43ed_83f5_65b352bb1a84); impl windows_core::RuntimeType for ITileUpdater2 { @@ -924,10 +889,7 @@ impl windows_core::RuntimeType for IToastCollectionManager { pub struct IToastCollectionManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub SaveToastCollectionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllToastCollectionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllToastCollectionsAsync: usize, pub GetToastCollectionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveToastCollectionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveAllToastCollectionsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1070,14 +1032,8 @@ impl windows_core::RuntimeType for IToastNotificationHistory2 { #[repr(C)] pub struct IToastNotificationHistory2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub GetHistory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetHistory: usize, - #[cfg(feature = "Foundation_Collections")] pub GetHistoryWithId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetHistoryWithId: usize, } windows_core::imp::define_interface!(IToastNotificationHistoryChangedTriggerDetail, IToastNotificationHistoryChangedTriggerDetail_Vtbl, 0xdb037ffa_0068_412c_9c83_267c37f65670); impl windows_core::RuntimeType for IToastNotificationHistoryChangedTriggerDetail { @@ -1192,10 +1148,7 @@ pub struct IToastNotifier_Vtbl { pub Setting: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NotificationSetting) -> windows_core::HRESULT, pub AddToSchedule: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RemoveFromSchedule: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetScheduledToastNotifications: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetScheduledToastNotifications: usize, } windows_core::imp::define_interface!(IToastNotifier2, IToastNotifier2_Vtbl, 0x354389c6_7c01_4bd5_9c20_604340cd2b74); impl windows_core::RuntimeType for IToastNotifier2 { @@ -1508,16 +1461,14 @@ impl NotificationBinding { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Hints(&self) -> windows_core::Result> { + pub fn Hints(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Hints)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTextElements(&self) -> windows_core::Result> { + pub fn GetTextElements(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1549,8 +1500,7 @@ impl NotificationData { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Values(&self) -> windows_core::Result> { + pub fn Values(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1568,20 +1518,18 @@ impl NotificationData { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSequenceNumber)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn CreateNotificationDataWithValuesAndSequenceNumber(initialvalues: P0, sequencenumber: u32) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { Self::INotificationDataFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateNotificationDataWithValuesAndSequenceNumber)(windows_core::Interface::as_raw(this), initialvalues.param().abi(), sequencenumber, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] pub fn CreateNotificationDataWithValues(initialvalues: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { Self::INotificationDataFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1710,8 +1658,7 @@ impl NotificationVisual { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLanguage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Bindings(&self) -> windows_core::Result> { + pub fn Bindings(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2548,8 +2495,7 @@ impl TileUpdater { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveFromSchedule)(windows_core::Interface::as_raw(this), scheduledtile.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetScheduledTileNotifications(&self) -> windows_core::Result> { + pub fn GetScheduledTileNotifications(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2574,18 +2520,16 @@ impl TileUpdater { let this = self; unsafe { (windows_core::Interface::vtable(this).StopPeriodicUpdate)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn StartPeriodicUpdateBatch(&self, tilecontents: P0, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateBatch)(windows_core::Interface::as_raw(this), tilecontents.param().abi(), requestedinterval).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn StartPeriodicUpdateBatchAtTime(&self, tilecontents: P0, starttime: super::super::Foundation::DateTime, requestedinterval: PeriodicUpdateRecurrence) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { (windows_core::Interface::vtable(this).StartPeriodicUpdateBatchAtTime)(windows_core::Interface::as_raw(this), tilecontents.param().abi(), starttime, requestedinterval).ok() } @@ -2735,8 +2679,7 @@ impl ToastCollectionManager { (windows_core::Interface::vtable(this).SaveToastCollectionAsync)(windows_core::Interface::as_raw(this), collection.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllToastCollectionsAsync(&self) -> windows_core::Result>> { + pub fn FindAllToastCollectionsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3122,16 +3065,14 @@ impl ToastNotificationHistory { let this = self; unsafe { (windows_core::Interface::vtable(this).ClearWithId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(applicationid)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetHistory(&self) -> windows_core::Result> { + pub fn GetHistory(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetHistory)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetHistoryWithId(&self, applicationid: &windows_core::HSTRING) -> windows_core::Result> { + pub fn GetHistoryWithId(&self, applicationid: &windows_core::HSTRING) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3408,8 +3349,7 @@ impl ToastNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveFromSchedule)(windows_core::Interface::as_raw(this), scheduledtoast.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetScheduledToastNotifications(&self) -> windows_core::Result> { + pub fn GetScheduledToastNotifications(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Popups/mod.rs b/crates/libs/windows/src/Windows/UI/Popups/mod.rs index 1c030ea3d2a..973ca8092d3 100644 --- a/crates/libs/windows/src/Windows/UI/Popups/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Popups/mod.rs @@ -7,10 +7,7 @@ pub struct IMessageDialog_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Commands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Commands: usize, pub DefaultCommandIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetDefaultCommandIndex: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, pub CancelCommandIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, @@ -38,10 +35,7 @@ impl windows_core::RuntimeType for IPopupMenu { #[repr(C)] pub struct IPopupMenu_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Commands: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Commands: usize, pub ShowAsync: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Point, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowAsyncWithRect: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Rect, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub ShowAsyncWithRectAndPlacement: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Rect, Placement, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -213,8 +207,7 @@ impl MessageDialog { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Commands(&self) -> windows_core::Result> { + pub fn Commands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -373,8 +366,7 @@ impl PopupMenu { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Commands(&self) -> windows_core::Result> { + pub fn Commands(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/UI/Shell/mod.rs index 3815f80bd67..1054d11f657 100644 --- a/crates/libs/windows/src/Windows/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Shell/mod.rs @@ -428,10 +428,7 @@ impl windows_core::RuntimeType for IWindowTabManager { #[repr(C)] pub struct IWindowTabManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Tabs: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Tabs: usize, pub SetActiveTab: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub TabSwitchRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveTabSwitchRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -922,39 +919,35 @@ impl windows_core::RuntimeName for WindowTabCloseRequestedEventArgs { } unsafe impl Send for WindowTabCloseRequestedEventArgs {} unsafe impl Sync for WindowTabCloseRequestedEventArgs {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct WindowTabCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(WindowTabCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(WindowTabCollection, super::super::Foundation::Collections::IIterable, super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(WindowTabCollection, windows_collections::IIterable, windows_collections::IVector); impl WindowTabCollection { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -964,7 +957,7 @@ impl WindowTabCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -974,44 +967,44 @@ impl WindowTabCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } pub fn MoveTab(&self, tab: P0, index: u32) -> windows_core::Result<()> @@ -1022,35 +1015,28 @@ impl WindowTabCollection { unsafe { (windows_core::Interface::vtable(this).MoveTab)(windows_core::Interface::as_raw(this), tab.param().abi(), index).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for WindowTabCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for WindowTabCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for WindowTabCollection { const NAME: &'static str = "Windows.UI.Shell.WindowTabCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for WindowTabCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for WindowTabCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for WindowTabCollection { type Item = WindowTab; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &WindowTabCollection { type Item = WindowTab; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1157,7 +1143,6 @@ unsafe impl Sync for WindowTabIcon {} pub struct WindowTabManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WindowTabManager, windows_core::IUnknown, windows_core::IInspectable); impl WindowTabManager { - #[cfg(feature = "Foundation_Collections")] pub fn Tabs(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs index 41f67b73b62..c1907a29642 100644 --- a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs +++ b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs @@ -18,10 +18,7 @@ impl windows_core::RuntimeType for IJumpList { #[repr(C)] pub struct IJumpList_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Items: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, pub SystemGroupKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut JumpListSystemGroupKind) -> windows_core::HRESULT, pub SetSystemGroupKind: unsafe extern "system" fn(*mut core::ffi::c_void, JumpListSystemGroupKind) -> windows_core::HRESULT, pub SaveAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -203,18 +200,9 @@ impl windows_core::RuntimeType for ISecondaryTileStatics { pub struct ISecondaryTileStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Exists: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub FindAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllForApplicationAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllForApplicationAsync: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllForPackageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllForPackageAsync: usize, } windows_core::imp::define_interface!(ISecondaryTileVisualElements, ISecondaryTileVisualElements_Vtbl, 0x1d8df333_815e_413f_9f50_a81da70a96b2); impl windows_core::RuntimeType for ISecondaryTileVisualElements { @@ -368,10 +356,7 @@ impl windows_core::RuntimeType for IVisualElementsRequest { pub struct IVisualElementsRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub VisualElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AlternateVisualElements: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AlternateVisualElements: usize, pub Deadline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -398,8 +383,7 @@ pub struct IVisualElementsRequestedEventArgs_Vtbl { pub struct JumpList(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(JumpList, windows_core::IUnknown, windows_core::IInspectable); impl JumpList { - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -902,22 +886,19 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).Exists)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), &mut result__).map(|| result__) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllAsync() -> windows_core::Result>> { + pub fn FindAllAsync() -> windows_core::Result>> { Self::ISecondaryTileStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllForApplicationAsync(applicationid: &windows_core::HSTRING) -> windows_core::Result>> { + pub fn FindAllForApplicationAsync(applicationid: &windows_core::HSTRING) -> windows_core::Result>> { Self::ISecondaryTileStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllForApplicationAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(applicationid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllForPackageAsync() -> windows_core::Result>> { + pub fn FindAllForPackageAsync() -> windows_core::Result>> { Self::ISecondaryTileStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllForPackageAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1374,8 +1355,7 @@ impl VisualElementsRequest { (windows_core::Interface::vtable(this).VisualElements)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn AlternateVisualElements(&self) -> windows_core::Result> { + pub fn AlternateVisualElements(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs index 375b6bda8f8..b09eed76f70 100644 --- a/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Text/Core/mod.rs @@ -10,8 +10,7 @@ impl CoreTextCompositionCompletedEventArgs { (windows_core::Interface::vtable(this).IsCanceled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn CompositionSegments(&self) -> windows_core::Result> { + pub fn CompositionSegments(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1034,10 +1033,7 @@ impl windows_core::RuntimeType for ICoreTextCompositionCompletedEventArgs { pub struct ICoreTextCompositionCompletedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsCanceled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CompositionSegments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CompositionSegments: usize, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICoreTextCompositionSegment, ICoreTextCompositionSegment_Vtbl, 0x776c6bd9_4ead_4da7_8f47_3a88b523cc34); diff --git a/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs b/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs index e7f7fb036c2..cffead7a1fa 100644 --- a/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ViewManagement/Core/mod.rs @@ -68,8 +68,7 @@ unsafe impl Sync for CoreFrameworkInputView {} pub struct CoreFrameworkInputViewAnimationStartingEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CoreFrameworkInputViewAnimationStartingEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl CoreFrameworkInputViewAnimationStartingEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Occlusions(&self) -> windows_core::Result> { + pub fn Occlusions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -108,8 +107,7 @@ unsafe impl Sync for CoreFrameworkInputViewAnimationStartingEventArgs {} pub struct CoreFrameworkInputViewOcclusionsChangedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CoreFrameworkInputViewOcclusionsChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl CoreFrameworkInputViewOcclusionsChangedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Occlusions(&self) -> windows_core::Result> { + pub fn Occlusions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -155,8 +153,7 @@ impl CoreInputView { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveOcclusionsChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetCoreInputViewOcclusions(&self) -> windows_core::Result> { + pub fn GetCoreInputViewOcclusions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -337,8 +334,7 @@ unsafe impl Sync for CoreInputView {} pub struct CoreInputViewAnimationStartingEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CoreInputViewAnimationStartingEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl CoreInputViewAnimationStartingEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Occlusions(&self) -> windows_core::Result> { + pub fn Occlusions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -470,8 +466,7 @@ impl windows_core::RuntimeType for CoreInputViewOcclusionKind { pub struct CoreInputViewOcclusionsChangedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(CoreInputViewOcclusionsChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); impl CoreInputViewOcclusionsChangedEventArgs { - #[cfg(feature = "Foundation_Collections")] - pub fn Occlusions(&self) -> windows_core::Result> { + pub fn Occlusions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -615,10 +610,7 @@ impl windows_core::RuntimeType for ICoreFrameworkInputViewAnimationStartingEvent #[repr(C)] pub struct ICoreFrameworkInputViewAnimationStartingEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Occlusions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Occlusions: usize, pub FrameworkAnimationRecommended: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub AnimationDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, } @@ -629,10 +621,7 @@ impl windows_core::RuntimeType for ICoreFrameworkInputViewOcclusionsChangedEvent #[repr(C)] pub struct ICoreFrameworkInputViewOcclusionsChangedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Occlusions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Occlusions: usize, pub Handled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } windows_core::imp::define_interface!(ICoreFrameworkInputViewStatics, ICoreFrameworkInputViewStatics_Vtbl, 0x6eebd9b6_eac2_5f8b_975f_772ee3e42eeb); @@ -654,10 +643,7 @@ pub struct ICoreInputView_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub OcclusionsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveOcclusionsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetCoreInputViewOcclusions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCoreInputViewOcclusions: usize, pub TryShowPrimaryView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub TryHidePrimaryView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } @@ -717,10 +703,7 @@ impl windows_core::RuntimeType for ICoreInputViewAnimationStartingEventArgs { #[repr(C)] pub struct ICoreInputViewAnimationStartingEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Occlusions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Occlusions: usize, pub Handled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub AnimationDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, @@ -751,10 +734,7 @@ impl windows_core::RuntimeType for ICoreInputViewOcclusionsChangedEventArgs { #[repr(C)] pub struct ICoreInputViewOcclusionsChangedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Occlusions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Occlusions: usize, pub Handled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetHandled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs index 340797aa9dc..c1e9930f2d9 100644 --- a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs @@ -332,8 +332,8 @@ impl ApplicationView { (windows_core::Interface::vtable(this).WindowingEnvironment)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "UI_WindowManagement"))] - pub fn GetDisplayRegions(&self) -> windows_core::Result> { + #[cfg(feature = "UI_WindowManagement")] + pub fn GetDisplayRegions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1092,9 +1092,9 @@ pub struct IApplicationView9_Vtbl { pub WindowingEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "UI_WindowManagement"))] WindowingEnvironment: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_WindowManagement"))] + #[cfg(feature = "UI_WindowManagement")] pub GetDisplayRegions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_WindowManagement")))] + #[cfg(not(feature = "UI_WindowManagement"))] GetDisplayRegions: usize, } windows_core::imp::define_interface!(IApplicationViewConsolidatedEventArgs, IApplicationViewConsolidatedEventArgs_Vtbl, 0x514449ec_7ea2_4de7_a6a6_7dfbaaebb6fb); diff --git a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs index a2cd0fceb80..5a133046be8 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs @@ -3054,8 +3054,8 @@ impl WebUIFileActivatedEventArgs { (windows_core::Interface::vtable(this).CurrentlyShownApplicationViewId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3220,8 +3220,8 @@ impl WebUIFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).ContinuationData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] - pub fn Files(&self) -> windows_core::Result> { + #[cfg(feature = "Storage_Streams")] + pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -4827,8 +4827,7 @@ impl WebUIView { (windows_core::Interface::vtable(this).Settings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeferredPermissionRequests(&self) -> windows_core::Result> { + pub fn DeferredPermissionRequests(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -4879,10 +4878,9 @@ impl WebUIView { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InvokeScriptAsync(&self, scriptname: &windows_core::HSTRING, arguments: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = &windows_core::Interface::cast::(self)?; unsafe { diff --git a/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs b/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs index dac6512eddf..d375c95e14e 100644 --- a/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WindowManagement/mod.rs @@ -98,8 +98,7 @@ impl AppWindow { (windows_core::Interface::vtable(this).GetPlacement)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetDisplayRegions(&self) -> windows_core::Result> { + pub fn GetDisplayRegions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -378,8 +377,8 @@ impl windows_core::RuntimeType for AppWindowClosedReason { pub struct AppWindowFrame(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(AppWindowFrame, windows_core::IUnknown, windows_core::IInspectable); impl AppWindowFrame { - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Composition"))] - pub fn DragRegionVisuals(&self) -> windows_core::Result> { + #[cfg(feature = "UI_Composition")] + pub fn DragRegionVisuals(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -741,8 +740,7 @@ impl AppWindowTitleBar { (windows_core::Interface::vtable(this).IsVisible)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetTitleBarOcclusions(&self) -> windows_core::Result> { + pub fn GetTitleBarOcclusions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1012,10 +1010,7 @@ pub struct IAppWindow_Vtbl { pub WindowingEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub CloseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub GetPlacement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetDisplayRegions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDisplayRegions: usize, pub RequestMoveToDisplayRegion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestMoveAdjacentToCurrentView: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestMoveAdjacentToWindow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1074,9 +1069,9 @@ impl windows_core::RuntimeType for IAppWindowFrame { #[repr(C)] pub struct IAppWindowFrame_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Composition"))] + #[cfg(feature = "UI_Composition")] pub DragRegionVisuals: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Composition")))] + #[cfg(not(feature = "UI_Composition"))] DragRegionVisuals: usize, } windows_core::imp::define_interface!(IAppWindowFrameStyle, IAppWindowFrameStyle_Vtbl, 0xac412946_e1ac_5230_944a_c60873dcf4a9); @@ -1174,10 +1169,7 @@ pub struct IAppWindowTitleBar_Vtbl { pub InactiveForegroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetInactiveForegroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsVisible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetTitleBarOcclusions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetTitleBarOcclusions: usize, } windows_core::imp::define_interface!(IAppWindowTitleBarOcclusion, IAppWindowTitleBarOcclusion_Vtbl, 0xfea3cffd_2ccf_5fc3_aeae_f843876bf37e); impl windows_core::RuntimeType for IAppWindowTitleBarOcclusion { @@ -1246,10 +1238,7 @@ impl windows_core::RuntimeType for IWindowServicesStatics { #[repr(C)] pub struct IWindowServicesStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAllTopLevelWindowIds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllTopLevelWindowIds: usize, } windows_core::imp::define_interface!(IWindowingEnvironment, IWindowingEnvironment_Vtbl, 0x264363c0_2a49_5417_b3ae_48a71c63a3bd); impl windows_core::RuntimeType for IWindowingEnvironment { @@ -1260,10 +1249,7 @@ pub struct IWindowingEnvironment_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub IsEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WindowingEnvironmentKind) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetDisplayRegions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDisplayRegions: usize, pub Changed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -1300,19 +1286,12 @@ impl windows_core::RuntimeType for IWindowingEnvironmentStatics { #[repr(C)] pub struct IWindowingEnvironmentStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub FindAll: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAll: usize, - #[cfg(feature = "Foundation_Collections")] pub FindAllWithKind: unsafe extern "system" fn(*mut core::ffi::c_void, WindowingEnvironmentKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindAllWithKind: usize, } pub struct WindowServices; impl WindowServices { - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllTopLevelWindowIds() -> windows_core::Result> { + pub fn FindAllTopLevelWindowIds() -> windows_core::Result> { Self::IWindowServicesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllTopLevelWindowIds)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1345,8 +1324,7 @@ impl WindowingEnvironment { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetDisplayRegions(&self) -> windows_core::Result> { + pub fn GetDisplayRegions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1367,15 +1345,13 @@ impl WindowingEnvironment { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAll() -> windows_core::Result> { + pub fn FindAll() -> windows_core::Result> { Self::IWindowingEnvironmentStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAll)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] - pub fn FindAllWithKind(kind: WindowingEnvironmentKind) -> windows_core::Result> { + pub fn FindAllWithKind(kind: WindowingEnvironmentKind) -> windows_core::Result> { Self::IWindowingEnvironmentStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).FindAllWithKind)(windows_core::Interface::as_raw(this), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) diff --git a/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs b/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs index 1946f4fdea7..0f6bbbd3fb7 100644 --- a/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs +++ b/crates/libs/windows/src/Windows/Web/AtomPub/mod.rs @@ -292,14 +292,8 @@ pub struct IResourceCollection_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Uri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Categories: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Categories: usize, - #[cfg(feature = "Foundation_Collections")] pub Accepts: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Accepts: usize, } #[cfg(feature = "Web_Syndication")] windows_core::imp::define_interface!(IServiceDocument, IServiceDocument_Vtbl, 0x8b7ec771_2ab3_4dbe_8bcc_778f92b75e51); @@ -311,10 +305,7 @@ impl windows_core::RuntimeType for IServiceDocument { #[repr(C)] pub struct IServiceDocument_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Workspaces: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Workspaces: usize, } #[cfg(feature = "Web_Syndication")] windows_core::imp::define_interface!(IWorkspace, IWorkspace_Vtbl, 0xb41da63b_a4b8_4036_89c5_83c31266ba49); @@ -327,10 +318,7 @@ impl windows_core::RuntimeType for IWorkspace { pub struct IWorkspace_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Title: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Collections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Collections: usize, } #[cfg(feature = "Web_Syndication")] #[repr(transparent)] @@ -356,16 +344,14 @@ impl ResourceCollection { (windows_core::Interface::vtable(this).Uri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Categories(&self) -> windows_core::Result> { + pub fn Categories(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Categories)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Accepts(&self) -> windows_core::Result> { + pub fn Accepts(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -430,16 +416,14 @@ impl ResourceCollection { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -482,8 +466,7 @@ windows_core::imp::interface_hierarchy!(ServiceDocument, windows_core::IUnknown, windows_core::imp::required_hierarchy!(ServiceDocument, super::Syndication::ISyndicationNode); #[cfg(feature = "Web_Syndication")] impl ServiceDocument { - #[cfg(feature = "Foundation_Collections")] - pub fn Workspaces(&self) -> windows_core::Result> { + pub fn Workspaces(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -548,16 +531,14 @@ impl ServiceDocument { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -658,16 +639,14 @@ impl Workspace { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -689,8 +668,7 @@ impl Workspace { (windows_core::Interface::vtable(this).Title)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Collections(&self) -> windows_core::Result> { + pub fn Collections(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs index 221de863714..c5cfc7612ba 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Diagnostics/mod.rs @@ -127,8 +127,7 @@ impl HttpDiagnosticProviderRequestResponseCompletedEventArgs { (windows_core::Interface::vtable(this).Initiator)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SourceLocations(&self) -> windows_core::Result> { + pub fn SourceLocations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -276,8 +275,7 @@ impl HttpDiagnosticProviderRequestSentEventArgs { (windows_core::Interface::vtable(this).Initiator)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] - pub fn SourceLocations(&self) -> windows_core::Result> { + pub fn SourceLocations(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -428,10 +426,7 @@ pub struct IHttpDiagnosticProviderRequestResponseCompletedEventArgs_Vtbl { pub ProcessId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ThreadId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Initiator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut HttpDiagnosticRequestInitiator) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SourceLocations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SourceLocations: usize, } windows_core::imp::define_interface!(IHttpDiagnosticProviderRequestResponseTimestamps, IHttpDiagnosticProviderRequestResponseTimestamps_Vtbl, 0xe0afde10_55cf_4c01_91d4_a20557d849f0); impl windows_core::RuntimeType for IHttpDiagnosticProviderRequestResponseTimestamps { @@ -463,10 +458,7 @@ pub struct IHttpDiagnosticProviderRequestSentEventArgs_Vtbl { pub ProcessId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub ThreadId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub Initiator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut HttpDiagnosticRequestInitiator) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub SourceLocations: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SourceLocations: usize, } windows_core::imp::define_interface!(IHttpDiagnosticProviderResponseReceivedEventArgs, IHttpDiagnosticProviderResponseReceivedEventArgs_Vtbl, 0xa0a2566c_ab5f_4d66_bb2d_084cf41635d0); impl windows_core::RuntimeType for IHttpDiagnosticProviderResponseReceivedEventArgs { diff --git a/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs b/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs index ce0af09d2a8..6e480bc278a 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Filters/mod.rs @@ -78,8 +78,8 @@ impl HttpBaseProtocolFilter { let this = self; unsafe { (windows_core::Interface::vtable(this).SetClientCertificate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn IgnorableServerCertificateErrors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -334,16 +334,16 @@ impl HttpServerCustomValidationRequestedEventArgs { (windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerCertificateErrors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServerCertificateErrors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -397,9 +397,9 @@ pub struct IHttpBaseProtocolFilter_Vtbl { pub SetClientCertificate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Security_Cryptography_Certificates"))] SetClientCertificate: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub IgnorableServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] IgnorableServerCertificateErrors: usize, pub MaxConnectionsPerServer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, pub SetMaxConnectionsPerServer: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, @@ -559,13 +559,13 @@ pub struct IHttpServerCustomValidationRequestedEventArgs_Vtbl { pub ServerCertificateErrorSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Networking::Sockets::SocketSslErrorSeverity) -> windows_core::HRESULT, #[cfg(not(feature = "Networking_Sockets"))] ServerCertificateErrorSeverity: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificateErrors: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerIntermediateCertificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerIntermediateCertificates: usize, pub Reject: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs b/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs index d182b79d836..bd969ed2da9 100644 --- a/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/Headers/mod.rs @@ -1,12 +1,8 @@ -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpCacheDirectiveHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpCacheDirectiveHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpCacheDirectiveHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpCacheDirectiveHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpCacheDirectiveHeaderValueCollection { pub fn MaxAge(&self) -> windows_core::Result> { let this = self; @@ -75,8 +71,8 @@ impl HttpCacheDirectiveHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -90,21 +86,21 @@ impl HttpCacheDirectiveHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -114,7 +110,7 @@ impl HttpCacheDirectiveHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -124,76 +120,69 @@ impl HttpCacheDirectiveHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpCacheDirectiveHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpCacheDirectiveHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpCacheDirectiveHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpCacheDirectiveHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpCacheDirectiveHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpCacheDirectiveHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpCacheDirectiveHeaderValueCollection { type Item = HttpNameValueHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpCacheDirectiveHeaderValueCollection { type Item = HttpNameValueHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -204,8 +193,7 @@ pub struct HttpChallengeHeaderValue(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HttpChallengeHeaderValue, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(HttpChallengeHeaderValue, super::super::super::Foundation::IStringable); impl HttpChallengeHeaderValue { - #[cfg(feature = "Foundation_Collections")] - pub fn Parameters(&self) -> windows_core::Result> { + pub fn Parameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -278,15 +266,11 @@ impl windows_core::RuntimeName for HttpChallengeHeaderValue { } unsafe impl Send for HttpChallengeHeaderValue {} unsafe impl Sync for HttpChallengeHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpChallengeHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpChallengeHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpChallengeHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpChallengeHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpChallengeHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -299,8 +283,8 @@ impl HttpChallengeHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -314,21 +298,21 @@ impl HttpChallengeHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -338,7 +322,7 @@ impl HttpChallengeHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -348,76 +332,69 @@ impl HttpChallengeHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpChallengeHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpChallengeHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpChallengeHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpChallengeHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpChallengeHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpChallengeHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpChallengeHeaderValueCollection { type Item = HttpChallengeHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpChallengeHeaderValueCollection { type Item = HttpChallengeHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -481,15 +458,11 @@ impl windows_core::RuntimeName for HttpConnectionOptionHeaderValue { } unsafe impl Send for HttpConnectionOptionHeaderValue {} unsafe impl Sync for HttpConnectionOptionHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpConnectionOptionHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpConnectionOptionHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpConnectionOptionHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpConnectionOptionHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpConnectionOptionHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -502,8 +475,8 @@ impl HttpConnectionOptionHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -517,21 +490,21 @@ impl HttpConnectionOptionHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -541,7 +514,7 @@ impl HttpConnectionOptionHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -551,76 +524,69 @@ impl HttpConnectionOptionHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpConnectionOptionHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpConnectionOptionHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpConnectionOptionHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpConnectionOptionHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpConnectionOptionHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpConnectionOptionHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpConnectionOptionHeaderValueCollection { type Item = HttpConnectionOptionHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpConnectionOptionHeaderValueCollection { type Item = HttpConnectionOptionHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -684,15 +650,11 @@ impl windows_core::RuntimeName for HttpContentCodingHeaderValue { } unsafe impl Send for HttpContentCodingHeaderValue {} unsafe impl Sync for HttpContentCodingHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpContentCodingHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpContentCodingHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpContentCodingHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpContentCodingHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpContentCodingHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -705,8 +667,8 @@ impl HttpContentCodingHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -720,21 +682,21 @@ impl HttpContentCodingHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -744,7 +706,7 @@ impl HttpContentCodingHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -754,76 +716,69 @@ impl HttpContentCodingHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpContentCodingHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpContentCodingHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpContentCodingHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentCodingHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpContentCodingHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpContentCodingHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpContentCodingHeaderValueCollection { type Item = HttpContentCodingHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpContentCodingHeaderValueCollection { type Item = HttpContentCodingHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -900,15 +855,11 @@ impl windows_core::RuntimeName for HttpContentCodingWithQualityHeaderValue { } unsafe impl Send for HttpContentCodingWithQualityHeaderValue {} unsafe impl Sync for HttpContentCodingWithQualityHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpContentCodingWithQualityHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpContentCodingWithQualityHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpContentCodingWithQualityHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpContentCodingWithQualityHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpContentCodingWithQualityHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -921,8 +872,8 @@ impl HttpContentCodingWithQualityHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -936,21 +887,21 @@ impl HttpContentCodingWithQualityHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -960,7 +911,7 @@ impl HttpContentCodingWithQualityHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -970,76 +921,69 @@ impl HttpContentCodingWithQualityHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpContentCodingWithQualityHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpContentCodingWithQualityHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpContentCodingWithQualityHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpContentCodingWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpContentCodingWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpContentCodingWithQualityHeaderValueCollection { type Item = HttpContentCodingWithQualityHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpContentCodingWithQualityHeaderValueCollection { type Item = HttpContentCodingWithQualityHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1094,8 +1038,7 @@ impl HttpContentDispositionHeaderValue { let this = self; unsafe { (windows_core::Interface::vtable(this).SetName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Parameters(&self) -> windows_core::Result> { + pub fn Parameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1162,15 +1105,11 @@ impl windows_core::RuntimeName for HttpContentDispositionHeaderValue { } unsafe impl Send for HttpContentDispositionHeaderValue {} unsafe impl Sync for HttpContentDispositionHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpContentHeaderCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpContentHeaderCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( HttpContentHeaderCollection , super::super::super::Foundation::Collections:: IIterable < super::super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , super::super::super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > , super::super::super::Foundation:: IStringable ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( HttpContentHeaderCollection , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > , super::super::super::Foundation:: IStringable ); impl HttpContentHeaderCollection { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1319,54 +1258,54 @@ impl HttpContentHeaderCollection { (windows_core::Interface::vtable(this).TryAppendWithoutValidation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), core::mem::transmute_copy(value), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| core::mem::transmute(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Insert(&self, key: &windows_core::HSTRING, value: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), core::mem::transmute_copy(value), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> windows_core::Result { @@ -1377,35 +1316,28 @@ impl HttpContentHeaderCollection { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpContentHeaderCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpContentHeaderCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpContentHeaderCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpContentHeaderCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpContentHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpContentHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpContentHeaderCollection { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpContentHeaderCollection { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1582,15 +1514,11 @@ impl windows_core::RuntimeName for HttpCookiePairHeaderValue { } unsafe impl Send for HttpCookiePairHeaderValue {} unsafe impl Sync for HttpCookiePairHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpCookiePairHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpCookiePairHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpCookiePairHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpCookiePairHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpCookiePairHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1603,8 +1531,8 @@ impl HttpCookiePairHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1618,21 +1546,21 @@ impl HttpCookiePairHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1642,7 +1570,7 @@ impl HttpCookiePairHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -1652,76 +1580,69 @@ impl HttpCookiePairHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpCookiePairHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpCookiePairHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpCookiePairHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpCookiePairHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpCookiePairHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpCookiePairHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpCookiePairHeaderValueCollection { type Item = HttpCookiePairHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpCookiePairHeaderValueCollection { type Item = HttpCookiePairHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1732,8 +1653,7 @@ pub struct HttpCredentialsHeaderValue(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HttpCredentialsHeaderValue, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(HttpCredentialsHeaderValue, super::super::super::Foundation::IStringable); impl HttpCredentialsHeaderValue { - #[cfg(feature = "Foundation_Collections")] - pub fn Parameters(&self) -> windows_core::Result> { + pub fn Parameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1886,8 +1806,7 @@ impl HttpExpectationHeaderValue { let this = self; unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Parameters(&self) -> windows_core::Result> { + pub fn Parameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1946,15 +1865,11 @@ impl windows_core::RuntimeName for HttpExpectationHeaderValue { } unsafe impl Send for HttpExpectationHeaderValue {} unsafe impl Sync for HttpExpectationHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpExpectationHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpExpectationHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpExpectationHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpExpectationHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpExpectationHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -1967,8 +1882,8 @@ impl HttpExpectationHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1982,21 +1897,21 @@ impl HttpExpectationHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2006,7 +1921,7 @@ impl HttpExpectationHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -2016,89 +1931,82 @@ impl HttpExpectationHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpExpectationHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpExpectationHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpExpectationHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpExpectationHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpExpectationHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpExpectationHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpExpectationHeaderValueCollection { type Item = HttpExpectationHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpExpectationHeaderValueCollection { type Item = HttpExpectationHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpLanguageHeaderValueCollection(windows_core::IUnknown); -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] windows_core::imp::interface_hierarchy!(HttpLanguageHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] -windows_core::imp::required_hierarchy!(HttpLanguageHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] +windows_core::imp::required_hierarchy!(HttpLanguageHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); +#[cfg(feature = "Globalization")] impl HttpLanguageHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -2111,8 +2019,8 @@ impl HttpLanguageHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2126,21 +2034,21 @@ impl HttpLanguageHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2150,7 +2058,7 @@ impl HttpLanguageHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -2160,76 +2068,76 @@ impl HttpLanguageHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] impl windows_core::RuntimeType for HttpLanguageHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] unsafe impl windows_core::Interface for HttpLanguageHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] impl windows_core::RuntimeName for HttpLanguageHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpLanguageHeaderValueCollection"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] unsafe impl Send for HttpLanguageHeaderValueCollection {} -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] unsafe impl Sync for HttpLanguageHeaderValueCollection {} -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] impl IntoIterator for HttpLanguageHeaderValueCollection { type Item = super::super::super::Globalization::Language; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] +#[cfg(feature = "Globalization")] impl IntoIterator for &HttpLanguageHeaderValueCollection { type Item = super::super::super::Globalization::Language; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -2306,15 +2214,11 @@ impl windows_core::RuntimeName for HttpLanguageRangeWithQualityHeaderValue { } unsafe impl Send for HttpLanguageRangeWithQualityHeaderValue {} unsafe impl Sync for HttpLanguageRangeWithQualityHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpLanguageRangeWithQualityHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpLanguageRangeWithQualityHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpLanguageRangeWithQualityHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpLanguageRangeWithQualityHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpLanguageRangeWithQualityHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -2327,8 +2231,8 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2342,21 +2246,21 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2366,7 +2270,7 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -2376,76 +2280,69 @@ impl HttpLanguageRangeWithQualityHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpLanguageRangeWithQualityHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpLanguageRangeWithQualityHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpLanguageRangeWithQualityHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpLanguageRangeWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpLanguageRangeWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpLanguageRangeWithQualityHeaderValueCollection { type Item = HttpLanguageRangeWithQualityHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpLanguageRangeWithQualityHeaderValueCollection { type Item = HttpLanguageRangeWithQualityHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -2478,8 +2375,7 @@ impl HttpMediaTypeHeaderValue { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMediaType)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Parameters(&self) -> windows_core::Result> { + pub fn Parameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2560,8 +2456,7 @@ impl HttpMediaTypeWithQualityHeaderValue { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMediaType)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Parameters(&self) -> windows_core::Result> { + pub fn Parameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2634,15 +2529,11 @@ impl windows_core::RuntimeName for HttpMediaTypeWithQualityHeaderValue { } unsafe impl Send for HttpMediaTypeWithQualityHeaderValue {} unsafe impl Sync for HttpMediaTypeWithQualityHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpMediaTypeWithQualityHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpMediaTypeWithQualityHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpMediaTypeWithQualityHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpMediaTypeWithQualityHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpMediaTypeWithQualityHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -2655,8 +2546,8 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2670,21 +2561,21 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2694,7 +2585,7 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -2704,89 +2595,78 @@ impl HttpMediaTypeWithQualityHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpMediaTypeWithQualityHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpMediaTypeWithQualityHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpMediaTypeWithQualityHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpMediaTypeWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpMediaTypeWithQualityHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpMediaTypeWithQualityHeaderValueCollection { type Item = HttpMediaTypeWithQualityHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpMediaTypeWithQualityHeaderValueCollection { type Item = HttpMediaTypeWithQualityHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpMethodHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpMethodHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpMethodHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpMethodHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpMethodHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -2799,8 +2679,8 @@ impl HttpMethodHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2814,21 +2694,21 @@ impl HttpMethodHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -2838,7 +2718,7 @@ impl HttpMethodHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -2848,76 +2728,69 @@ impl HttpMethodHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpMethodHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpMethodHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpMethodHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpMethodHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpMethodHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpMethodHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpMethodHeaderValueCollection { type Item = super::HttpMethod; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpMethodHeaderValueCollection { type Item = super::HttpMethod; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -3142,15 +3015,11 @@ impl windows_core::RuntimeName for HttpProductInfoHeaderValue { } unsafe impl Send for HttpProductInfoHeaderValue {} unsafe impl Sync for HttpProductInfoHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpProductInfoHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpProductInfoHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpProductInfoHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpProductInfoHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpProductInfoHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -3163,8 +3032,8 @@ impl HttpProductInfoHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3178,21 +3047,21 @@ impl HttpProductInfoHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3202,7 +3071,7 @@ impl HttpProductInfoHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -3212,89 +3081,78 @@ impl HttpProductInfoHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpProductInfoHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpProductInfoHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpProductInfoHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpProductInfoHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpProductInfoHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpProductInfoHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpProductInfoHeaderValueCollection { type Item = HttpProductInfoHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpProductInfoHeaderValueCollection { type Item = HttpProductInfoHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpRequestHeaderCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpRequestHeaderCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( HttpRequestHeaderCollection , super::super::super::Foundation::Collections:: IIterable < super::super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , super::super::super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > , super::super::super::Foundation:: IStringable ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( HttpRequestHeaderCollection , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > , super::super::super::Foundation:: IStringable ); impl HttpRequestHeaderCollection { pub fn Accept(&self) -> windows_core::Result { let this = self; @@ -3495,54 +3353,54 @@ impl HttpRequestHeaderCollection { (windows_core::Interface::vtable(this).TryAppendWithoutValidation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), core::mem::transmute_copy(value), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| core::mem::transmute(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Insert(&self, key: &windows_core::HSTRING, value: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), core::mem::transmute_copy(value), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> windows_core::Result { @@ -3553,48 +3411,37 @@ impl HttpRequestHeaderCollection { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpRequestHeaderCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpRequestHeaderCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpRequestHeaderCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpRequestHeaderCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpRequestHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpRequestHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpRequestHeaderCollection { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpRequestHeaderCollection { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpResponseHeaderCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpResponseHeaderCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy ! ( HttpResponseHeaderCollection , super::super::super::Foundation::Collections:: IIterable < super::super::super::Foundation::Collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , super::super::super::Foundation::Collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > , super::super::super::Foundation:: IStringable ); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy ! ( HttpResponseHeaderCollection , windows_collections:: IIterable < windows_collections:: IKeyValuePair < windows_core::HSTRING , windows_core::HSTRING > > , windows_collections:: IMap < windows_core::HSTRING , windows_core::HSTRING > , super::super::super::Foundation:: IStringable ); impl HttpResponseHeaderCollection { pub fn Age(&self) -> windows_core::Result> { let this = self; @@ -3705,54 +3552,54 @@ impl HttpResponseHeaderCollection { (windows_core::Interface::vtable(this).TryAppendWithoutValidation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), core::mem::transmute_copy(value), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result>> { - let this = &windows_core::Interface::cast::>>(self)?; + pub fn First(&self) -> windows_core::Result>> { + let this = &windows_core::Interface::cast::>>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Lookup(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Lookup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| core::mem::transmute(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } pub fn HasKey(&self, key: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).HasKey)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Insert(&self, key: &windows_core::HSTRING, value: &windows_core::HSTRING) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Insert)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key), core::mem::transmute_copy(value), &mut result__).map(|| result__) } } pub fn Remove(&self, key: &windows_core::HSTRING) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Remove)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(key)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn ToString(&self) -> windows_core::Result { @@ -3763,35 +3610,28 @@ impl HttpResponseHeaderCollection { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpResponseHeaderCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpResponseHeaderCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpResponseHeaderCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpResponseHeaderCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpResponseHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpResponseHeaderCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpResponseHeaderCollection { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpResponseHeaderCollection { - type Item = super::super::super::Foundation::Collections::IKeyValuePair; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type Item = windows_collections::IKeyValuePair; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -3802,8 +3642,7 @@ pub struct HttpTransferCodingHeaderValue(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HttpTransferCodingHeaderValue, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(HttpTransferCodingHeaderValue, super::super::super::Foundation::IStringable); impl HttpTransferCodingHeaderValue { - #[cfg(feature = "Foundation_Collections")] - pub fn Parameters(&self) -> windows_core::Result> { + pub fn Parameters(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -3863,15 +3702,11 @@ impl windows_core::RuntimeName for HttpTransferCodingHeaderValue { } unsafe impl Send for HttpTransferCodingHeaderValue {} unsafe impl Sync for HttpTransferCodingHeaderValue {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpTransferCodingHeaderValueCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpTransferCodingHeaderValueCollection, windows_core::IUnknown, windows_core::IInspectable); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpTransferCodingHeaderValueCollection, super::super::super::Foundation::Collections::IIterable, super::super::super::Foundation::IStringable, super::super::super::Foundation::Collections::IVector); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpTransferCodingHeaderValueCollection, windows_collections::IIterable, super::super::super::Foundation::IStringable, windows_collections::IVector); impl HttpTransferCodingHeaderValueCollection { pub fn ParseAdd(&self, input: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; @@ -3884,8 +3719,8 @@ impl HttpTransferCodingHeaderValueCollection { (windows_core::Interface::vtable(this).TryParseAdd)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(input), &mut result__).map(|| result__) } } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3899,21 +3734,21 @@ impl HttpTransferCodingHeaderValueCollection { } } pub fn GetAt(&self, index: u32) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAt)(windows_core::Interface::as_raw(this), index, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } pub fn Size(&self) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Size)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - pub fn GetView(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn GetView(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -3923,7 +3758,7 @@ impl HttpTransferCodingHeaderValueCollection { where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IndexOf)(windows_core::Interface::as_raw(this), value.param().abi(), index, &mut result__).map(|| result__) @@ -3933,76 +3768,69 @@ impl HttpTransferCodingHeaderValueCollection { where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).SetAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn InsertAt(&self, index: u32, value: P1) -> windows_core::Result<()> where P1: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).InsertAt)(windows_core::Interface::as_raw(this), index, value.param().abi()).ok() } } pub fn RemoveAt(&self, index: u32) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAt)(windows_core::Interface::as_raw(this), index).ok() } } pub fn Append(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Append)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } pub fn RemoveAtEnd(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveAtEnd)(windows_core::Interface::as_raw(this)).ok() } } pub fn Clear(&self) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).Clear)(windows_core::Interface::as_raw(this)).ok() } } pub fn GetMany(&self, startindex: u32, items: &mut [Option]) -> windows_core::Result { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetMany)(windows_core::Interface::as_raw(this), startindex, items.len().try_into().unwrap(), core::mem::transmute_copy(&items), &mut result__).map(|| result__) } } pub fn ReplaceAll(&self, items: &[Option]) -> windows_core::Result<()> { - let this = &windows_core::Interface::cast::>(self)?; + let this = &windows_core::Interface::cast::>(self)?; unsafe { (windows_core::Interface::vtable(this).ReplaceAll)(windows_core::Interface::as_raw(this), items.len().try_into().unwrap(), core::mem::transmute(items.as_ptr())).ok() } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpTransferCodingHeaderValueCollection { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpTransferCodingHeaderValueCollection { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpTransferCodingHeaderValueCollection { const NAME: &'static str = "Windows.Web.Http.Headers.HttpTransferCodingHeaderValueCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpTransferCodingHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpTransferCodingHeaderValueCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpTransferCodingHeaderValueCollection { type Item = HttpTransferCodingHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpTransferCodingHeaderValueCollection { type Item = HttpTransferCodingHeaderValue; - type IntoIter = super::super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -4032,10 +3860,7 @@ impl windows_core::RuntimeType for IHttpChallengeHeaderValue { #[repr(C)] pub struct IHttpChallengeHeaderValue_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Parameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parameters: usize, pub Scheme: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Token: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4200,10 +4025,7 @@ pub struct IHttpContentDispositionHeaderValue_Vtbl { pub SetFileNameStar: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Parameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parameters: usize, pub Size: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4235,13 +4057,10 @@ pub struct IHttpContentHeaderCollection_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub ContentDisposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetContentDisposition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ContentEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ContentEncoding: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Globalization"))] + #[cfg(feature = "Globalization")] pub ContentLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Globalization")))] + #[cfg(not(feature = "Globalization"))] ContentLanguage: usize, pub ContentLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetContentLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -4348,10 +4167,7 @@ impl windows_core::RuntimeType for IHttpCredentialsHeaderValue { #[repr(C)] pub struct IHttpCredentialsHeaderValue_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Parameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parameters: usize, pub Scheme: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Token: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4405,10 +4221,7 @@ pub struct IHttpExpectationHeaderValue_Vtbl { pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Parameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parameters: usize, } windows_core::imp::define_interface!(IHttpExpectationHeaderValueCollection, IHttpExpectationHeaderValueCollection_Vtbl, 0xe78521b3_a0e2_4ac4_9e66_79706cb9fd58); impl windows_core::RuntimeType for IHttpExpectationHeaderValueCollection { @@ -4501,10 +4314,7 @@ pub struct IHttpMediaTypeHeaderValue_Vtbl { pub SetCharSet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub MediaType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Parameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parameters: usize, } windows_core::imp::define_interface!(IHttpMediaTypeHeaderValueFactory, IHttpMediaTypeHeaderValueFactory_Vtbl, 0xbed747a8_cd17_42dd_9367_ab9c5b56dd7d); impl windows_core::RuntimeType for IHttpMediaTypeHeaderValueFactory { @@ -4536,10 +4346,7 @@ pub struct IHttpMediaTypeWithQualityHeaderValue_Vtbl { pub SetCharSet: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub MediaType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMediaType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Parameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parameters: usize, pub Quality: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetQuality: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, } @@ -4691,38 +4498,17 @@ impl windows_core::RuntimeType for IHttpRequestHeaderCollection { #[repr(C)] pub struct IHttpRequestHeaderCollection_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Accept: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Accept: usize, - #[cfg(feature = "Foundation_Collections")] pub AcceptEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AcceptEncoding: usize, - #[cfg(feature = "Foundation_Collections")] pub AcceptLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AcceptLanguage: usize, pub Authorization: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAuthorization: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub CacheControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CacheControl: usize, - #[cfg(feature = "Foundation_Collections")] pub Connection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Connection: usize, - #[cfg(feature = "Foundation_Collections")] pub Cookie: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Cookie: usize, pub Date: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Expect: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Expect: usize, pub From: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetFrom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Networking")] @@ -4743,14 +4529,8 @@ pub struct IHttpRequestHeaderCollection_Vtbl { pub SetProxyAuthorization: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Referer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetReferer: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TransferEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransferEncoding: usize, - #[cfg(feature = "Foundation_Collections")] pub UserAgent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - UserAgent: usize, pub Append: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryAppendWithoutValidation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } @@ -4763,36 +4543,18 @@ pub struct IHttpResponseHeaderCollection_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Age: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetAge: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Allow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Allow: usize, - #[cfg(feature = "Foundation_Collections")] pub CacheControl: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CacheControl: usize, - #[cfg(feature = "Foundation_Collections")] pub Connection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Connection: usize, pub Date: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Location: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub ProxyAuthenticate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ProxyAuthenticate: usize, pub RetryAfter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRetryAfter: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub TransferEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransferEncoding: usize, - #[cfg(feature = "Foundation_Collections")] pub WwwAuthenticate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - WwwAuthenticate: usize, pub Append: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub TryAppendWithoutValidation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, } @@ -4803,10 +4565,7 @@ impl windows_core::RuntimeType for IHttpTransferCodingHeaderValue { #[repr(C)] pub struct IHttpTransferCodingHeaderValue_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Parameters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Parameters: usize, pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IHttpTransferCodingHeaderValueCollection, IHttpTransferCodingHeaderValueCollection_Vtbl, 0x202c8c34_2c03_49b8_9665_73e27cb2fc79); diff --git a/crates/libs/windows/src/Windows/Web/Http/mod.rs b/crates/libs/windows/src/Windows/Web/Http/mod.rs index e932e98c9d4..f335383de01 100644 --- a/crates/libs/windows/src/Windows/Web/Http/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Http/mod.rs @@ -34,7 +34,7 @@ impl HttpBufferContent { (windows_core::Interface::vtable(this).CreateFromBufferWithOffset)(windows_core::Interface::as_raw(this), content.param().abi(), offset, count, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { let this = self; unsafe { @@ -235,7 +235,7 @@ impl HttpClient { (windows_core::Interface::vtable(this).SendRequestWithOptionAsync)(windows_core::Interface::as_raw(this), request.param().abi(), completionoption, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn DefaultRequestHeaders(&self) -> windows_core::Result { let this = self; unsafe { @@ -507,18 +507,14 @@ impl windows_core::RuntimeName for HttpCookie { } unsafe impl Send for HttpCookie {} unsafe impl Sync for HttpCookie {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpCookieCollection(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::interface_hierarchy!(HttpCookieCollection, windows_core::IUnknown, windows_core::IInspectable, super::super::Foundation::Collections::IVectorView); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpCookieCollection, super::super::Foundation::Collections::IIterable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::interface_hierarchy!(HttpCookieCollection, windows_core::IUnknown, windows_core::IInspectable, windows_collections::IVectorView); +windows_core::imp::required_hierarchy!(HttpCookieCollection, windows_collections::IIterable); impl HttpCookieCollection { - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -556,35 +552,28 @@ impl HttpCookieCollection { } } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpCookieCollection { - const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); + const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::>(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpCookieCollection { - type Vtable = as windows_core::Interface>::Vtable; - const IID: windows_core::GUID = as windows_core::Interface>::IID; + type Vtable = as windows_core::Interface>::Vtable; + const IID: windows_core::GUID = as windows_core::Interface>::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpCookieCollection { const NAME: &'static str = "Windows.Web.Http.HttpCookieCollection"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpCookieCollection {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpCookieCollection {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpCookieCollection { type Item = HttpCookie; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpCookieCollection { type Item = HttpCookie; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -621,7 +610,6 @@ impl HttpCookieManager { let this = self; unsafe { (windows_core::Interface::vtable(this).DeleteCookie)(windows_core::Interface::as_raw(this), cookie.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn GetCookies(&self, uri: P0) -> windows_core::Result where P0: windows_core::Param, @@ -655,7 +643,7 @@ impl HttpFormUrlEncodedContent { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { let this = self; unsafe { @@ -711,10 +699,9 @@ impl HttpFormUrlEncodedContent { (windows_core::Interface::vtable(this).WriteToStreamAsync)(windows_core::Interface::as_raw(this), outputstream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] pub fn Create(content: P0) -> windows_core::Result where - P0: windows_core::Param>>, + P0: windows_core::Param>>, { Self::IHttpFormUrlEncodedContentFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1031,15 +1018,11 @@ impl windows_core::RuntimeName for HttpMethod { } unsafe impl Send for HttpMethod {} unsafe impl Sync for HttpMethod {} -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpMultipartContent(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpMultipartContent, windows_core::IUnknown, windows_core::IInspectable, IHttpContent); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpMultipartContent, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, super::super::Foundation::IStringable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpMultipartContent, super::super::Foundation::IClosable, windows_collections::IIterable, super::super::Foundation::IStringable); impl HttpMultipartContent { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1127,8 +1110,8 @@ impl HttpMultipartContent { (windows_core::Interface::vtable(this).CreateWithSubtypeAndBoundary)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(subtype), core::mem::transmute_copy(boundary), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1146,48 +1129,37 @@ impl HttpMultipartContent { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpMultipartContent { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpMultipartContent { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpMultipartContent { const NAME: &'static str = "Windows.Web.Http.HttpMultipartContent"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpMultipartContent {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpMultipartContent {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpMultipartContent { type Item = IHttpContent; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpMultipartContent { type Item = IHttpContent; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } } -#[cfg(feature = "Foundation_Collections")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct HttpMultipartFormDataContent(windows_core::IUnknown); -#[cfg(feature = "Foundation_Collections")] windows_core::imp::interface_hierarchy!(HttpMultipartFormDataContent, windows_core::IUnknown, windows_core::IInspectable, IHttpContent); -#[cfg(feature = "Foundation_Collections")] -windows_core::imp::required_hierarchy!(HttpMultipartFormDataContent, super::super::Foundation::IClosable, super::super::Foundation::Collections::IIterable, super::super::Foundation::IStringable); -#[cfg(feature = "Foundation_Collections")] +windows_core::imp::required_hierarchy!(HttpMultipartFormDataContent, super::super::Foundation::IClosable, windows_collections::IIterable, super::super::Foundation::IStringable); impl HttpMultipartFormDataContent { pub fn new() -> windows_core::Result { Self::IActivationFactory(|f| f.ActivateInstance::()) @@ -1283,8 +1255,8 @@ impl HttpMultipartFormDataContent { (windows_core::Interface::vtable(this).CreateWithBoundary)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(boundary), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - pub fn First(&self) -> windows_core::Result> { - let this = &windows_core::Interface::cast::>(self)?; + pub fn First(&self) -> windows_core::Result> { + let this = &windows_core::Interface::cast::>(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).First)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) @@ -1302,35 +1274,28 @@ impl HttpMultipartFormDataContent { SHARED.call(callback) } } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeType for HttpMultipartFormDataContent { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } -#[cfg(feature = "Foundation_Collections")] unsafe impl windows_core::Interface for HttpMultipartFormDataContent { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } -#[cfg(feature = "Foundation_Collections")] impl windows_core::RuntimeName for HttpMultipartFormDataContent { const NAME: &'static str = "Windows.Web.Http.HttpMultipartFormDataContent"; } -#[cfg(feature = "Foundation_Collections")] unsafe impl Send for HttpMultipartFormDataContent {} -#[cfg(feature = "Foundation_Collections")] unsafe impl Sync for HttpMultipartFormDataContent {} -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for HttpMultipartFormDataContent { type Item = IHttpContent; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { IntoIterator::into_iter(&self) } } -#[cfg(feature = "Foundation_Collections")] impl IntoIterator for &HttpMultipartFormDataContent { type Item = IHttpContent; - type IntoIter = super::super::Foundation::Collections::IIterator; + type IntoIter = windows_collections::IIterator; fn into_iter(self) -> Self::IntoIter { self.First().unwrap() } @@ -1403,7 +1368,7 @@ impl HttpRequestMessage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { let this = self; unsafe { @@ -1425,8 +1390,7 @@ impl HttpRequestMessage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMethod)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Properties(&self) -> windows_core::Result> { + pub fn Properties(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1588,7 +1552,7 @@ impl HttpResponseMessage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetContent)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { let this = self; unsafe { @@ -1791,7 +1755,7 @@ impl HttpStreamContent { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { let this = self; unsafe { @@ -1891,7 +1855,7 @@ impl HttpStringContent { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { let this = self; unsafe { @@ -2013,16 +1977,16 @@ impl HttpTransportInformation { (windows_core::Interface::vtable(this).ServerCertificateErrorSeverity)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerCertificateErrors(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerCertificateErrors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ServerCertificateErrors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] - pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { + #[cfg(feature = "Security_Cryptography_Certificates")] + pub fn ServerIntermediateCertificates(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2103,9 +2067,9 @@ pub struct IHttpClient_Vtbl { pub PutAsync: 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, pub SendRequestAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SendRequestWithOptionAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, HttpCompletionOption, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub DefaultRequestHeaders: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Web_Http_Headers")))] + #[cfg(not(feature = "Web_Http_Headers"))] DefaultRequestHeaders: usize, } windows_core::imp::define_interface!(IHttpClient2, IHttpClient2_Vtbl, 0xcdd83348_e8b7_4cec_b1b0_dc455fe72c92); @@ -2155,7 +2119,7 @@ impl windows_core::RuntimeType for IHttpContent { windows_core::imp::interface_hierarchy!(IHttpContent, windows_core::IUnknown, windows_core::IInspectable); windows_core::imp::required_hierarchy!(IHttpContent, super::super::Foundation::IClosable); impl IHttpContent { - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub fn Headers(&self) -> windows_core::Result { let this = self; unsafe { @@ -2216,11 +2180,11 @@ impl IHttpContent { unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "Web_Http_Headers"))] +#[cfg(all(feature = "Storage_Streams", feature = "Web_Http_Headers"))] impl windows_core::RuntimeName for IHttpContent { const NAME: &'static str = "Windows.Web.Http.IHttpContent"; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "Web_Http_Headers"))] +#[cfg(all(feature = "Storage_Streams", feature = "Web_Http_Headers"))] pub trait IHttpContent_Impl: super::super::Foundation::IClosable_Impl { fn Headers(&self) -> windows_core::Result; fn BufferAllAsync(&self) -> windows_core::Result>; @@ -2230,7 +2194,7 @@ pub trait IHttpContent_Impl: super::super::Foundation::IClosable_Impl { fn TryComputeLength(&self, length: &mut u64) -> windows_core::Result; fn WriteToStreamAsync(&self, outputStream: windows_core::Ref<'_, super::super::Storage::Streams::IOutputStream>) -> windows_core::Result>; } -#[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "Web_Http_Headers"))] +#[cfg(all(feature = "Storage_Streams", feature = "Web_Http_Headers"))] impl IHttpContent_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Headers(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -2341,9 +2305,9 @@ impl IHttpContent_Vtbl { #[repr(C)] pub struct IHttpContent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub Headers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Web_Http_Headers")))] + #[cfg(not(feature = "Web_Http_Headers"))] Headers: usize, pub BufferAllAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -2399,10 +2363,7 @@ pub struct IHttpCookieManager_Vtbl { pub SetCookie: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetCookieWithThirdParty: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, bool, *mut bool) -> windows_core::HRESULT, pub DeleteCookie: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetCookies: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetCookies: usize, } windows_core::imp::define_interface!(IHttpFormUrlEncodedContentFactory, IHttpFormUrlEncodedContentFactory_Vtbl, 0x43f0138c_2f73_4302_b5f3_eae9238a5e01); impl windows_core::RuntimeType for IHttpFormUrlEncodedContentFactory { @@ -2411,10 +2372,7 @@ impl windows_core::RuntimeType for IHttpFormUrlEncodedContentFactory { #[repr(C)] pub struct IHttpFormUrlEncodedContentFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Create: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Create: usize, } windows_core::imp::define_interface!(IHttpGetBufferResult, IHttpGetBufferResult_Vtbl, 0x53d08e7c_e209_404e_9a49_742d8236fd3a); impl windows_core::RuntimeType for IHttpGetBufferResult { @@ -2510,14 +2468,8 @@ impl windows_core::RuntimeType for IHttpMultipartContentFactory { #[repr(C)] pub struct IHttpMultipartContentFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateWithSubtype: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithSubtype: usize, - #[cfg(feature = "Foundation_Collections")] pub CreateWithSubtypeAndBoundary: 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, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithSubtypeAndBoundary: usize, } windows_core::imp::define_interface!(IHttpMultipartFormDataContent, IHttpMultipartFormDataContent_Vtbl, 0x64d337e2_e967_4624_b6d1_cf74604a4a42); impl windows_core::RuntimeType for IHttpMultipartFormDataContent { @@ -2537,10 +2489,7 @@ impl windows_core::RuntimeType for IHttpMultipartFormDataContentFactory { #[repr(C)] pub struct IHttpMultipartFormDataContentFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub CreateWithBoundary: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - CreateWithBoundary: usize, } windows_core::imp::define_interface!(IHttpRequestMessage, IHttpRequestMessage_Vtbl, 0xf5762b3c_74d4_4811_b5dc_9f8b4e2f9abf); impl windows_core::RuntimeType for IHttpRequestMessage { @@ -2551,16 +2500,13 @@ pub struct IHttpRequestMessage_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Content: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub Headers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Web_Http_Headers")))] + #[cfg(not(feature = "Web_Http_Headers"))] Headers: usize, pub Method: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetMethod: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Properties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Properties: usize, pub RequestUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetRequestUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub TransportInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2605,9 +2551,9 @@ pub struct IHttpResponseMessage_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Content: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "Web_Http_Headers"))] + #[cfg(feature = "Web_Http_Headers")] pub Headers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Web_Http_Headers")))] + #[cfg(not(feature = "Web_Http_Headers"))] Headers: usize, pub IsSuccessStatusCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub ReasonPhrase: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2675,12 +2621,12 @@ pub struct IHttpTransportInformation_Vtbl { pub ServerCertificateErrorSeverity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Networking::Sockets::SocketSslErrorSeverity) -> windows_core::HRESULT, #[cfg(not(feature = "Networking_Sockets"))] ServerCertificateErrorSeverity: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerCertificateErrors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerCertificateErrors: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates"))] + #[cfg(feature = "Security_Cryptography_Certificates")] pub ServerIntermediateCertificates: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Security_Cryptography_Certificates")))] + #[cfg(not(feature = "Security_Cryptography_Certificates"))] ServerIntermediateCertificates: usize, } diff --git a/crates/libs/windows/src/Windows/Web/Syndication/mod.rs b/crates/libs/windows/src/Windows/Web/Syndication/mod.rs index 377967c543c..cd642fdffa0 100644 --- a/crates/libs/windows/src/Windows/Web/Syndication/mod.rs +++ b/crates/libs/windows/src/Windows/Web/Syndication/mod.rs @@ -360,34 +360,19 @@ impl windows_core::RuntimeType for ISyndicationFeed { #[repr(C)] pub struct ISyndicationFeed_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Authors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Authors: usize, - #[cfg(feature = "Foundation_Collections")] pub Categories: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Categories: usize, - #[cfg(feature = "Foundation_Collections")] pub Contributors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Contributors: usize, pub Generator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetGenerator: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub IconUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetIconUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Items: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, pub LastUpdatedTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub SetLastUpdatedTime: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Links: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Links: usize, pub ImageUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetImageUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Rights: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -446,28 +431,16 @@ impl windows_core::RuntimeType for ISyndicationItem { #[repr(C)] pub struct ISyndicationItem_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] pub Authors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Authors: usize, - #[cfg(feature = "Foundation_Collections")] pub Categories: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Categories: usize, - #[cfg(feature = "Foundation_Collections")] pub Contributors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Contributors: usize, pub Content: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetContent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub LastUpdatedTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub SetLastUpdatedTime: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub Links: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Links: usize, pub PublishedDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, pub SetPublishedDate: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime) -> windows_core::HRESULT, pub Rights: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -593,16 +566,14 @@ impl ISyndicationNode { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -618,11 +589,11 @@ impl ISyndicationNode { } } } -#[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] +#[cfg(feature = "Data_Xml_Dom")] impl windows_core::RuntimeName for ISyndicationNode { const NAME: &'static str = "Windows.Web.Syndication.ISyndicationNode"; } -#[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] +#[cfg(feature = "Data_Xml_Dom")] pub trait ISyndicationNode_Impl: windows_core::IUnknownImpl { fn NodeName(&self) -> windows_core::Result; fn SetNodeName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -634,11 +605,11 @@ pub trait ISyndicationNode_Impl: windows_core::IUnknownImpl { fn SetLanguage(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; fn BaseUri(&self) -> windows_core::Result; fn SetBaseUri(&self, value: windows_core::Ref<'_, super::super::Foundation::Uri>) -> windows_core::Result<()>; - fn AttributeExtensions(&self) -> windows_core::Result>; - fn ElementExtensions(&self) -> windows_core::Result>; + fn AttributeExtensions(&self) -> windows_core::Result>; + fn ElementExtensions(&self) -> windows_core::Result>; fn GetXmlDocument(&self, format: SyndicationFormat) -> windows_core::Result; } -#[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] +#[cfg(feature = "Data_Xml_Dom")] impl ISyndicationNode_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn NodeName(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -809,14 +780,8 @@ pub struct ISyndicationNode_Vtbl { pub SetLanguage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub BaseUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetBaseUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub AttributeExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AttributeExtensions: usize, - #[cfg(feature = "Foundation_Collections")] pub ElementExtensions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - ElementExtensions: usize, #[cfg(feature = "Data_Xml_Dom")] pub GetXmlDocument: unsafe extern "system" fn(*mut core::ffi::c_void, SyndicationFormat, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Data_Xml_Dom"))] @@ -958,16 +923,14 @@ impl ISyndicationText { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -983,11 +946,11 @@ impl ISyndicationText { } } } -#[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] +#[cfg(feature = "Data_Xml_Dom")] impl windows_core::RuntimeName for ISyndicationText { const NAME: &'static str = "Windows.Web.Syndication.ISyndicationText"; } -#[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] +#[cfg(feature = "Data_Xml_Dom")] pub trait ISyndicationText_Impl: ISyndicationNode_Impl { fn Text(&self) -> windows_core::Result; fn SetText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()>; @@ -996,7 +959,7 @@ pub trait ISyndicationText_Impl: ISyndicationNode_Impl { fn Xml(&self) -> windows_core::Result; fn SetXml(&self, value: windows_core::Ref<'_, super::super::Data::Xml::Dom::XmlDocument>) -> windows_core::Result<()>; } -#[cfg(all(feature = "Data_Xml_Dom", feature = "Foundation_Collections"))] +#[cfg(feature = "Data_Xml_Dom")] impl ISyndicationText_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Text(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1292,16 +1255,14 @@ impl SyndicationCategory { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1551,16 +1512,14 @@ impl SyndicationContent { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -1676,24 +1635,21 @@ impl SyndicationFeed { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Authors(&self) -> windows_core::Result> { + pub fn Authors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Authors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Categories(&self) -> windows_core::Result> { + pub fn Categories(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Categories)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Contributors(&self) -> windows_core::Result> { + pub fn Contributors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1739,8 +1695,7 @@ impl SyndicationFeed { let this = self; unsafe { (windows_core::Interface::vtable(this).SetId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> windows_core::Result> { + pub fn Items(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1758,8 +1713,7 @@ impl SyndicationFeed { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLastUpdatedTime)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Links(&self) -> windows_core::Result> { + pub fn Links(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -1936,16 +1890,14 @@ impl SyndicationFeed { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2107,16 +2059,14 @@ impl SyndicationGenerator { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2161,24 +2111,21 @@ impl SyndicationItem { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "Foundation_Collections")] - pub fn Authors(&self) -> windows_core::Result> { + pub fn Authors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Authors)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Categories(&self) -> windows_core::Result> { + pub fn Categories(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Categories)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn Contributors(&self) -> windows_core::Result> { + pub fn Contributors(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2221,8 +2168,7 @@ impl SyndicationItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLastUpdatedTime)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn Links(&self) -> windows_core::Result> { + pub fn Links(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2418,16 +2364,14 @@ impl SyndicationItem { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2617,16 +2561,14 @@ impl SyndicationLink { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -2728,16 +2670,14 @@ impl SyndicationNode { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -2846,16 +2786,14 @@ impl SyndicationPerson { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); @@ -3009,16 +2947,14 @@ impl SyndicationText { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetBaseUri)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] - pub fn AttributeExtensions(&self) -> windows_core::Result> { + pub fn AttributeExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AttributeExtensions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn ElementExtensions(&self) -> windows_core::Result> { + pub fn ElementExtensions(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs b/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs index 3805cd5964a..dab058cc283 100644 --- a/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs +++ b/crates/libs/windows/src/Windows/Web/UI/Interop/mod.rs @@ -41,10 +41,7 @@ pub struct IWebViewControlProcess_Vtbl { pub EnterpriseId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub IsPrivateNetworkClientServerCapabilityEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub CreateWebViewControlAsync: unsafe extern "system" fn(*mut core::ffi::c_void, i64, super::super::super::Foundation::Rect, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub GetWebViewControls: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetWebViewControls: usize, pub Terminate: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub ProcessExited: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveProcessExited: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -171,8 +168,7 @@ impl WebViewControl { (windows_core::Interface::vtable(this).Settings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeferredPermissionRequests(&self) -> windows_core::Result> { + pub fn DeferredPermissionRequests(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -222,10 +218,9 @@ impl WebViewControl { let this = self; unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InvokeScriptAsync(&self, scriptname: &windows_core::HSTRING, arguments: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -768,8 +763,7 @@ impl WebViewControlProcess { (windows_core::Interface::vtable(this).CreateWebViewControlAsync)(windows_core::Interface::as_raw(this), hostwindowhandle, bounds, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn GetWebViewControls(&self) -> windows_core::Result> { + pub fn GetWebViewControls(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Web/UI/mod.rs b/crates/libs/windows/src/Windows/Web/UI/mod.rs index 8fd749c6cbf..0e036273ca5 100644 --- a/crates/libs/windows/src/Windows/Web/UI/mod.rs +++ b/crates/libs/windows/src/Windows/Web/UI/mod.rs @@ -68,8 +68,7 @@ impl IWebViewControl { (windows_core::Interface::vtable(this).Settings)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] - pub fn DeferredPermissionRequests(&self) -> windows_core::Result> { + pub fn DeferredPermissionRequests(&self) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -119,10 +118,9 @@ impl IWebViewControl { let this = self; unsafe { (windows_core::Interface::vtable(this).NavigateWithHttpRequestMessage)(windows_core::Interface::as_raw(this), requestmessage.param().abi()).ok() } } - #[cfg(feature = "Foundation_Collections")] pub fn InvokeScriptAsync(&self, scriptname: &windows_core::HSTRING, arguments: P1) -> windows_core::Result> where - P1: windows_core::Param>, + P1: windows_core::Param>, { let this = self; unsafe { @@ -399,11 +397,11 @@ impl IWebViewControl { unsafe { (windows_core::Interface::vtable(this).RemoveWebResourceRequested)(windows_core::Interface::as_raw(this), token).ok() } } } -#[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] +#[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] impl windows_core::RuntimeName for IWebViewControl { const NAME: &'static str = "Windows.Web.UI.IWebViewControl"; } -#[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] +#[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] pub trait IWebViewControl_Impl: windows_core::IUnknownImpl { fn Source(&self) -> windows_core::Result; fn SetSource(&self, source: windows_core::Ref<'_, super::super::Foundation::Uri>) -> windows_core::Result<()>; @@ -414,7 +412,7 @@ pub trait IWebViewControl_Impl: windows_core::IUnknownImpl { fn DefaultBackgroundColor(&self) -> windows_core::Result; fn ContainsFullScreenElement(&self) -> windows_core::Result; fn Settings(&self) -> windows_core::Result; - fn DeferredPermissionRequests(&self) -> windows_core::Result>; + fn DeferredPermissionRequests(&self) -> windows_core::Result>; fn GoForward(&self) -> windows_core::Result<()>; fn GoBack(&self) -> windows_core::Result<()>; fn Refresh(&self) -> windows_core::Result<()>; @@ -423,7 +421,7 @@ pub trait IWebViewControl_Impl: windows_core::IUnknownImpl { fn NavigateToString(&self, text: &windows_core::HSTRING) -> windows_core::Result<()>; fn NavigateToLocalStreamUri(&self, source: windows_core::Ref<'_, super::super::Foundation::Uri>, streamResolver: windows_core::Ref<'_, super::IUriToStreamResolver>) -> windows_core::Result<()>; fn NavigateWithHttpRequestMessage(&self, requestMessage: windows_core::Ref<'_, super::Http::HttpRequestMessage>) -> windows_core::Result<()>; - fn InvokeScriptAsync(&self, scriptName: &windows_core::HSTRING, arguments: windows_core::Ref<'_, super::super::Foundation::Collections::IIterable>) -> windows_core::Result>; + fn InvokeScriptAsync(&self, scriptName: &windows_core::HSTRING, arguments: windows_core::Ref<'_, windows_collections::IIterable>) -> windows_core::Result>; fn CapturePreviewToStreamAsync(&self, stream: windows_core::Ref<'_, super::super::Storage::Streams::IRandomAccessStream>) -> windows_core::Result; fn CaptureSelectedContentToDataPackageAsync(&self) -> windows_core::Result>; fn BuildLocalStreamUri(&self, contentIdentifier: &windows_core::HSTRING, relativePath: &windows_core::HSTRING) -> windows_core::Result; @@ -463,7 +461,7 @@ pub trait IWebViewControl_Impl: windows_core::IUnknownImpl { fn WebResourceRequested(&self, handler: windows_core::Ref<'_, super::super::Foundation::TypedEventHandler>) -> windows_core::Result; fn RemoveWebResourceRequested(&self, token: i64) -> windows_core::Result<()>; } -#[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Foundation_Collections", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] +#[cfg(all(feature = "ApplicationModel_DataTransfer", feature = "Storage_Streams", feature = "UI", feature = "Web_Http"))] impl IWebViewControl_Vtbl { pub const fn new() -> Self { unsafe extern "system" fn Source(this: *mut core::ffi::c_void, result__: *mut *mut core::ffi::c_void) -> windows_core::HRESULT { @@ -1073,10 +1071,7 @@ pub struct IWebViewControl_Vtbl { DefaultBackgroundColor: usize, pub ContainsFullScreenElement: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub Settings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] pub DeferredPermissionRequests: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - DeferredPermissionRequests: usize, pub GoForward: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub GoBack: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Refresh: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1088,10 +1083,7 @@ pub struct IWebViewControl_Vtbl { pub NavigateWithHttpRequestMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Web_Http"))] NavigateWithHttpRequestMessage: usize, - #[cfg(feature = "Foundation_Collections")] pub InvokeScriptAsync: 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, - #[cfg(not(feature = "Foundation_Collections"))] - InvokeScriptAsync: usize, #[cfg(feature = "Storage_Streams")] pub CapturePreviewToStreamAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Storage_Streams"))] diff --git a/crates/libs/windows/src/extensions/Foundation.rs b/crates/libs/windows/src/extensions/Foundation.rs index 3e5e5714ae2..9bbaf392de1 100644 --- a/crates/libs/windows/src/extensions/Foundation.rs +++ b/crates/libs/windows/src/extensions/Foundation.rs @@ -4,8 +4,6 @@ pub mod Async; pub mod AsyncReady; #[cfg(feature = "std")] pub mod AsyncSpawn; -#[cfg(all(feature = "std", feature = "Foundation_Collections"))] -pub mod Collections; #[cfg(feature = "Foundation_Numerics")] pub mod Numerics; pub mod TimeSpan; diff --git a/crates/libs/windows/src/extensions/Foundation/Collections.rs b/crates/libs/windows/src/extensions/Foundation/Collections.rs deleted file mode 100644 index 4405f57e0fb..00000000000 --- a/crates/libs/windows/src/extensions/Foundation/Collections.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub mod Iterable; -pub mod MapView; -pub mod VectorView; diff --git a/crates/libs/windows/src/extensions/Foundation/Collections/Iterable.rs b/crates/libs/windows/src/extensions/Foundation/Collections/Iterable.rs deleted file mode 100644 index 296b44c4032..00000000000 --- a/crates/libs/windows/src/extensions/Foundation/Collections/Iterable.rs +++ /dev/null @@ -1,87 +0,0 @@ -use crate::Foundation::Collections::{IIterable, IIterable_Impl, IIterator, IIterator_Impl}; - -#[windows_core::implement(IIterable)] -struct StockIterable -where - T: windows_core::RuntimeType + 'static, - T::Default: Clone, -{ - values: Vec, -} - -impl IIterable_Impl for StockIterable_Impl -where - T: windows_core::RuntimeType, - T::Default: Clone, -{ - fn First(&self) -> windows_core::Result> { - use windows_core::IUnknownImpl; - Ok(windows_core::ComObject::new(StockIterator { owner: self.to_object(), current: 0.into() }).into_interface()) - } -} - -#[windows_core::implement(IIterator)] -struct StockIterator -where - T: windows_core::RuntimeType + 'static, - T::Default: Clone, -{ - owner: windows_core::ComObject>, - current: std::sync::atomic::AtomicUsize, -} - -impl IIterator_Impl for StockIterator_Impl -where - T: windows_core::RuntimeType, - T::Default: Clone, -{ - fn Current(&self) -> windows_core::Result { - let owner: &StockIterable = &self.owner; - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - - if self.owner.values.len() > current { - T::from_default(&owner.values[current]) - } else { - Err(windows_core::Error::from(windows_core::imp::E_BOUNDS)) - } - } - - fn HasCurrent(&self) -> windows_core::Result { - let owner: &StockIterable = &self.owner; - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - - Ok(owner.values.len() > current) - } - - fn MoveNext(&self) -> windows_core::Result { - let owner: &StockIterable = &self.owner; - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - - if current < owner.values.len() { - self.current.fetch_add(1, std::sync::atomic::Ordering::Relaxed); - } - - Ok(owner.values.len() > current + 1) - } - - fn GetMany(&self, values: &mut [T::Default]) -> windows_core::Result { - let owner: &StockIterable = &self.owner; - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - - let actual = std::cmp::min(owner.values.len() - current, values.len()); - let (values, _) = values.split_at_mut(actual); - values.clone_from_slice(&owner.values[current..current + actual]); - self.current.fetch_add(actual, std::sync::atomic::Ordering::Relaxed); - Ok(actual as u32) - } -} - -impl From> for IIterable -where - T: windows_core::RuntimeType, - T::Default: Clone, -{ - fn from(values: Vec) -> Self { - windows_core::ComObject::new(StockIterable { values }).into_interface() - } -} diff --git a/crates/libs/windows/src/extensions/Foundation/Collections/MapView.rs b/crates/libs/windows/src/extensions/Foundation/Collections/MapView.rs deleted file mode 100644 index 866f82dd2f3..00000000000 --- a/crates/libs/windows/src/extensions/Foundation/Collections/MapView.rs +++ /dev/null @@ -1,148 +0,0 @@ -use crate::{core::*, Foundation::Collections::*}; - -#[windows_core::implement(IMapView, IIterable>)] -struct StockMapView -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, - K::Default: Clone + Ord, - V::Default: Clone, -{ - map: std::collections::BTreeMap, -} - -impl IIterable_Impl> for StockMapView_Impl -where - K: windows_core::RuntimeType, - V: windows_core::RuntimeType, - K::Default: Clone + Ord, - V::Default: Clone, -{ - fn First(&self) -> windows_core::Result>> { - use windows_core::IUnknownImpl; - - Ok(windows_core::ComObject::new(StockMapViewIterator:: { _owner: self.to_object(), current: std::sync::RwLock::new(self.map.iter()) }).into_interface()) - } -} - -impl IMapView_Impl for StockMapView_Impl -where - K: windows_core::RuntimeType, - V: windows_core::RuntimeType, - K::Default: Clone + Ord, - V::Default: Clone, -{ - fn Lookup(&self, key: Ref<'_, K>) -> windows_core::Result { - let value = self.map.get(&*key).ok_or_else(|| windows_core::Error::from(windows_core::imp::E_BOUNDS))?; - V::from_default(value) - } - fn Size(&self) -> windows_core::Result { - Ok(self.map.len().try_into()?) - } - fn HasKey(&self, key: Ref<'_, K>) -> windows_core::Result { - Ok(self.map.contains_key(&*key)) - } - fn Split(&self, first: windows_core::OutRef<'_, IMapView>, second: windows_core::OutRef<'_, IMapView>) -> windows_core::Result<()> { - _ = first.write(None); - _ = second.write(None); - Ok(()) - } -} - -#[windows_core::implement(IIterator>)] -struct StockMapViewIterator<'a, K, V> -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, - K::Default: Clone + Ord, - V::Default: Clone, -{ - _owner: windows_core::ComObject>, - current: std::sync::RwLock>, -} - -impl<'a, K, V> IIterator_Impl> for StockMapViewIterator_Impl<'a, K, V> -where - K: windows_core::RuntimeType, - V: windows_core::RuntimeType, - K::Default: Clone + Ord, - V::Default: Clone, -{ - fn Current(&self) -> windows_core::Result> { - let mut current = self.current.read().unwrap().clone().peekable(); - - if let Some((key, value)) = current.peek() { - Ok(windows_core::ComObject::new(StockKeyValuePair { key: (*key).clone(), value: (*value).clone() }).into_interface()) - } else { - Err(windows_core::Error::from(windows_core::imp::E_BOUNDS)) - } - } - - fn HasCurrent(&self) -> windows_core::Result { - let mut current = self.current.read().unwrap().clone().peekable(); - - Ok(current.peek().is_some()) - } - - fn MoveNext(&self) -> windows_core::Result { - let mut current = self.current.write().unwrap(); - - current.next(); - Ok(current.clone().peekable().peek().is_some()) - } - - fn GetMany(&self, pairs: &mut [Option>]) -> windows_core::Result { - let mut current = self.current.write().unwrap(); - let mut actual = 0; - - for pair in pairs { - if let Some((key, value)) = current.next() { - *pair = Some(windows_core::ComObject::new(StockKeyValuePair { key: (*key).clone(), value: (*value).clone() }).into_interface()); - actual += 1; - } else { - break; - } - } - - Ok(actual) - } -} - -#[windows_core::implement(IKeyValuePair)] -struct StockKeyValuePair -where - K: windows_core::RuntimeType + 'static, - V: windows_core::RuntimeType + 'static, - K::Default: Clone, - V::Default: Clone, -{ - key: K::Default, - value: V::Default, -} - -impl IKeyValuePair_Impl for StockKeyValuePair_Impl -where - K: windows_core::RuntimeType, - V: windows_core::RuntimeType, - K::Default: Clone, - V::Default: Clone, -{ - fn Key(&self) -> windows_core::Result { - K::from_default(&self.key) - } - fn Value(&self) -> windows_core::Result { - V::from_default(&self.value) - } -} - -impl From> for IMapView -where - K: windows_core::RuntimeType, - V: windows_core::RuntimeType, - K::Default: Clone + Ord, - V::Default: Clone, -{ - fn from(map: std::collections::BTreeMap) -> Self { - StockMapView { map }.into() - } -} diff --git a/crates/libs/windows/src/extensions/Foundation/Collections/VectorView.rs b/crates/libs/windows/src/extensions/Foundation/Collections/VectorView.rs deleted file mode 100644 index bb8210e0226..00000000000 --- a/crates/libs/windows/src/extensions/Foundation/Collections/VectorView.rs +++ /dev/null @@ -1,116 +0,0 @@ -use crate::{core::*, Foundation::Collections::*}; - -#[windows_core::implement(IVectorView, IIterable)] -struct StockVectorView -where - T: windows_core::RuntimeType + 'static, - T::Default: Clone + PartialEq, -{ - values: Vec, -} - -impl IIterable_Impl for StockVectorView_Impl -where - T: windows_core::RuntimeType, - T::Default: Clone + PartialEq, -{ - fn First(&self) -> windows_core::Result> { - use windows_core::IUnknownImpl; - - Ok(windows_core::ComObject::new(StockVectorViewIterator { owner: self.to_object(), current: 0.into() }).into_interface()) - } -} - -impl IVectorView_Impl for StockVectorView_Impl -where - T: windows_core::RuntimeType, - T::Default: Clone + PartialEq, -{ - fn GetAt(&self, index: u32) -> windows_core::Result { - let item = self.values.get(index as usize).ok_or_else(|| windows_core::Error::from(windows_core::imp::E_BOUNDS))?; - T::from_default(item) - } - fn Size(&self) -> windows_core::Result { - Ok(self.values.len().try_into()?) - } - fn IndexOf(&self, value: Ref<'_, T>, result: &mut u32) -> windows_core::Result { - match self.values.iter().position(|element| element == &*value) { - Some(index) => { - *result = index as u32; - Ok(true) - } - None => Ok(false), - } - } - fn GetMany(&self, current: u32, values: &mut [T::Default]) -> windows_core::Result { - let current = current as usize; - if current >= self.values.len() { - return Ok(0); - } - let actual = std::cmp::min(self.values.len() - current, values.len()); - let (values, _) = values.split_at_mut(actual); - values.clone_from_slice(&self.values[current..current + actual]); - Ok(actual as u32) - } -} - -#[windows_core::implement(IIterator)] -struct StockVectorViewIterator -where - T: windows_core::RuntimeType + 'static, - T::Default: Clone + PartialEq, -{ - owner: windows_core::ComObject>, - current: std::sync::atomic::AtomicUsize, -} - -impl IIterator_Impl for StockVectorViewIterator_Impl -where - T: windows_core::RuntimeType, - T::Default: Clone + PartialEq, -{ - fn Current(&self) -> windows_core::Result { - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - - if let Some(item) = self.owner.values.get(current) { - T::from_default(item) - } else { - Err(windows_core::Error::from(windows_core::imp::E_BOUNDS)) - } - } - - fn HasCurrent(&self) -> windows_core::Result { - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - Ok(self.owner.values.len() > current) - } - - fn MoveNext(&self) -> windows_core::Result { - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - - if current < self.owner.values.len() { - self.current.fetch_add(1, std::sync::atomic::Ordering::Relaxed); - } - - Ok(self.owner.values.len() > current + 1) - } - - fn GetMany(&self, values: &mut [T::Default]) -> windows_core::Result { - let current = self.current.load(std::sync::atomic::Ordering::Relaxed); - - let actual = std::cmp::min(self.owner.values.len() - current, values.len()); - let (values, _) = values.split_at_mut(actual); - values.clone_from_slice(&self.owner.values[current..current + actual]); - self.current.fetch_add(actual, std::sync::atomic::Ordering::Relaxed); - Ok(actual as u32) - } -} - -impl From> for IVectorView -where - T: windows_core::RuntimeType, - T::Default: Clone + PartialEq, -{ - fn from(values: Vec) -> Self { - windows_core::ComObject::new(StockVectorView { values }).into_interface() - } -} From 0b6b18423d0b331e5f718e19572ff836233618d2 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 08:32:59 -0600 Subject: [PATCH 4/8] samples --- crates/samples/windows/device_watcher/Cargo.toml | 1 - crates/samples/windows/rss/Cargo.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/crates/samples/windows/device_watcher/Cargo.toml b/crates/samples/windows/device_watcher/Cargo.toml index 0cf36d9a85f..a59003cee6a 100644 --- a/crates/samples/windows/device_watcher/Cargo.toml +++ b/crates/samples/windows/device_watcher/Cargo.toml @@ -8,5 +8,4 @@ publish = false workspace = true features = [ "Devices_Enumeration", - "Foundation_Collections", ] diff --git a/crates/samples/windows/rss/Cargo.toml b/crates/samples/windows/rss/Cargo.toml index 48e4b96363b..25af9a7be17 100644 --- a/crates/samples/windows/rss/Cargo.toml +++ b/crates/samples/windows/rss/Cargo.toml @@ -7,6 +7,5 @@ publish = false [dependencies.windows] workspace = true features = [ - "Foundation_Collections", "Web_Syndication", ] From 54213a285d9ae2dc34baeba88e3fea0fe5d74dba Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 08:34:43 -0600 Subject: [PATCH 5/8] tests and bindings --- Cargo.toml | 3 ++- crates/tests/misc/implement/Cargo.toml | 3 +++ .../misc/implement/tests/generic_default.rs | 2 +- .../misc/implement/tests/generic_generic.rs | 2 +- .../misc/implement/tests/generic_primitive.rs | 2 +- .../misc/implement/tests/generic_stringable.rs | 4 ++-- crates/tests/misc/implement/tests/into_impl.rs | 6 +++--- crates/tests/misc/implement/tests/map.rs | 2 +- crates/tests/misc/implement/tests/vector.rs | 4 ++-- crates/tests/misc/no_std/Cargo.toml | 4 ++++ crates/tests/misc/no_std/src/lib.rs | 1 + crates/tests/misc/readme/Cargo.toml | 3 +++ crates/tests/misc/readme/src/lib.rs | 1 + .../tests/winrt/collection_interop/Cargo.toml | 5 +---- crates/tests/winrt/collection_interop/build.rs | 2 +- .../winrt/collection_interop/src/bindings.rs | 18 ++++++------------ .../tests/winrt/collection_interop/src/lib.rs | 2 +- .../winrt/collection_interop/tests/test.rs | 2 +- crates/tests/winrt/collections/Cargo.toml | 3 +++ crates/tests/winrt/collections/tests/empty.rs | 2 +- .../winrt/collections/tests/stock_iterable.rs | 3 ++- .../winrt/collections/tests/stock_map_view.rs | 3 ++- .../collections/tests/stock_vector_view.rs | 3 ++- crates/tests/winrt/old/Cargo.toml | 3 +++ crates/tests/winrt/old/tests/collections.rs | 8 +++----- crates/tests/winrt/old/tests/generic_guids.rs | 1 + crates/tools/bindings/src/collections.txt | 9 +++++++++ crates/tools/bindings/src/main.rs | 3 ++- crates/tools/bindings/src/windows.txt | 12 ++++++++++++ 29 files changed, 75 insertions(+), 41 deletions(-) create mode 100644 crates/tools/bindings/src/collections.txt diff --git a/Cargo.toml b/Cargo.toml index c79898da524..2d6b6f6c5d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,12 +25,13 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(windows_raw_dylib, windows cppwinrt = { path = "crates/libs/cppwinrt" } windows = { path = "crates/libs/windows" } windows-bindgen = { path = "crates/libs/bindgen" } +windows-collections = { path = "crates/libs/collections" } windows-core = { path = "crates/libs/core" } +windows-link = { path = "crates/libs/link" } windows-registry = { path = "crates/libs/registry" } windows-result = { path = "crates/libs/result" } windows-strings = { path = "crates/libs/strings" } windows-sys = { path = "crates/libs/sys" } windows-targets = { path = "crates/libs/targets" } -windows-link = { path = "crates/libs/link" } windows-version = { path = "crates/libs/version" } helpers = { path = "crates/libs/helpers" } diff --git a/crates/tests/misc/implement/Cargo.toml b/crates/tests/misc/implement/Cargo.toml index 8afbcdbc350..d68458de106 100644 --- a/crates/tests/misc/implement/Cargo.toml +++ b/crates/tests/misc/implement/Cargo.toml @@ -28,5 +28,8 @@ features = [ [dependencies.windows-core] workspace = true +[dependencies.windows-collections] +workspace = true + [dependencies] static_assertions = "1.1" diff --git a/crates/tests/misc/implement/tests/generic_default.rs b/crates/tests/misc/implement/tests/generic_default.rs index 7a0432261cd..27a4af371b4 100644 --- a/crates/tests/misc/implement/tests/generic_default.rs +++ b/crates/tests/misc/implement/tests/generic_default.rs @@ -1,9 +1,9 @@ #![allow(non_snake_case)] use windows::core::*; -use windows::Foundation::Collections::*; use windows::Foundation::*; use windows::Win32::Foundation::E_BOUNDS; +use windows_collections::*; #[implement( IVectorView, diff --git a/crates/tests/misc/implement/tests/generic_generic.rs b/crates/tests/misc/implement/tests/generic_generic.rs index c2c8f7dc300..58c4ed47469 100644 --- a/crates/tests/misc/implement/tests/generic_generic.rs +++ b/crates/tests/misc/implement/tests/generic_generic.rs @@ -1,6 +1,6 @@ use windows::core::*; -use windows::Foundation::Collections::*; use windows::Foundation::*; +use windows_collections::*; #[implement( IVectorView, diff --git a/crates/tests/misc/implement/tests/generic_primitive.rs b/crates/tests/misc/implement/tests/generic_primitive.rs index 48f5248c736..d111f656ccf 100644 --- a/crates/tests/misc/implement/tests/generic_primitive.rs +++ b/crates/tests/misc/implement/tests/generic_primitive.rs @@ -1,5 +1,5 @@ use windows::core::*; -use windows::Foundation::Collections::*; +use windows_collections::*; // TODO: test whether we can implement two different IIterable's. diff --git a/crates/tests/misc/implement/tests/generic_stringable.rs b/crates/tests/misc/implement/tests/generic_stringable.rs index 430e46cece0..c35592dcd0b 100644 --- a/crates/tests/misc/implement/tests/generic_stringable.rs +++ b/crates/tests/misc/implement/tests/generic_stringable.rs @@ -1,9 +1,9 @@ use windows::core::*; -use windows::Foundation::Collections::*; use windows::Foundation::*; +use windows_collections::*; #[implement( - windows::Foundation::Collections::IVectorView, + IVectorView, )] struct Thing(Vec); diff --git a/crates/tests/misc/implement/tests/into_impl.rs b/crates/tests/misc/implement/tests/into_impl.rs index 30d97bde20d..4b64c22dffb 100644 --- a/crates/tests/misc/implement/tests/into_impl.rs +++ b/crates/tests/misc/implement/tests/into_impl.rs @@ -1,9 +1,9 @@ use windows::core::*; -use windows::Foundation::Collections::*; use windows::Win32::Foundation::E_BOUNDS; +use windows_collections::*; #[implement( - windows::Foundation::Collections::IIterator, + IIterator, )] struct Iterator(std::cell::UnsafeCell<(IIterable, usize)>) where @@ -52,7 +52,7 @@ where } #[implement( - windows::Foundation::Collections::IIterable, + IIterable, )] struct Iterable(Vec) where diff --git a/crates/tests/misc/implement/tests/map.rs b/crates/tests/misc/implement/tests/map.rs index 69978a6ca78..a4aad6ba456 100644 --- a/crates/tests/misc/implement/tests/map.rs +++ b/crates/tests/misc/implement/tests/map.rs @@ -1,5 +1,5 @@ use windows::core::*; -use windows::Foundation::Collections::*; +use windows_collections::*; #[implement( IKeyValuePair, diff --git a/crates/tests/misc/implement/tests/vector.rs b/crates/tests/misc/implement/tests/vector.rs index a0758434250..af0d0c721f5 100644 --- a/crates/tests/misc/implement/tests/vector.rs +++ b/crates/tests/misc/implement/tests/vector.rs @@ -2,9 +2,9 @@ use std::sync::RwLock; use windows::core::*; -use windows::Foundation::Collections::*; use windows::Foundation::*; use windows::Win32::Foundation::*; +use windows_collections::*; pub(crate) fn err_bounds() -> Error { E_BOUNDS.into() @@ -74,7 +74,7 @@ where fn Size(&self) -> Result { self.Size() } - fn GetView(&self) -> Result> { + fn GetView(&self) -> Result> { unsafe { self.cast() } } fn IndexOf(&self, value: Ref, result: &mut u32) -> Result { diff --git a/crates/tests/misc/no_std/Cargo.toml b/crates/tests/misc/no_std/Cargo.toml index 844f9613883..2b260952229 100644 --- a/crates/tests/misc/no_std/Cargo.toml +++ b/crates/tests/misc/no_std/Cargo.toml @@ -33,6 +33,10 @@ workspace = true [dependencies.windows-link] workspace = true +[dependencies.windows-collections] +path = "../../../libs/collections" +default-features = false + [dependencies.windows-version] path = "../../../libs/version" default-features = false diff --git a/crates/tests/misc/no_std/src/lib.rs b/crates/tests/misc/no_std/src/lib.rs index c55e27df170..b28576bcc12 100644 --- a/crates/tests/misc/no_std/src/lib.rs +++ b/crates/tests/misc/no_std/src/lib.rs @@ -23,6 +23,7 @@ fn _test() { let _ = windows_strings::h!("hello"); let _ = windows_strings::s!("hello"); let _ = windows_strings::w!("hello"); + let _: Option> = None; } // This panic handler will cause a build error if an indirect `std` dependency exists as `std` diff --git a/crates/tests/misc/readme/Cargo.toml b/crates/tests/misc/readme/Cargo.toml index 960ed86fce6..8994c5fce3f 100644 --- a/crates/tests/misc/readme/Cargo.toml +++ b/crates/tests/misc/readme/Cargo.toml @@ -44,3 +44,6 @@ workspace = true [dev-dependencies.cppwinrt] workspace = true + +[dev-dependencies.windows-collections] +workspace = true diff --git a/crates/tests/misc/readme/src/lib.rs b/crates/tests/misc/readme/src/lib.rs index 3fb8c025308..7f573c32f36 100644 --- a/crates/tests/misc/readme/src/lib.rs +++ b/crates/tests/misc/readme/src/lib.rs @@ -9,3 +9,4 @@ #![doc = include_str!("../../../../libs/version/readme.md")] #![doc = include_str!("../../../../libs/windows/readme.md")] #![doc = include_str!("../../../../libs/link/readme.md")] +#![doc = include_str!("../../../../libs/collections/readme.md")] diff --git a/crates/tests/winrt/collection_interop/Cargo.toml b/crates/tests/winrt/collection_interop/Cargo.toml index f3005f1f94e..0c3a8cc0b3c 100644 --- a/crates/tests/winrt/collection_interop/Cargo.toml +++ b/crates/tests/winrt/collection_interop/Cargo.toml @@ -11,11 +11,8 @@ doctest = false [dependencies.windows-core] workspace = true -[dependencies.windows] +[dependencies.windows-collections] workspace = true -features = [ - "Foundation_Collections", -] [build-dependencies.windows-bindgen] workspace = true diff --git a/crates/tests/winrt/collection_interop/build.rs b/crates/tests/winrt/collection_interop/build.rs index 8a0413b4f9b..5483791e324 100644 --- a/crates/tests/winrt/collection_interop/build.rs +++ b/crates/tests/winrt/collection_interop/build.rs @@ -38,7 +38,7 @@ fn main() { "--implement", "--flat", "--reference", - "windows,skip-root,Windows", + "windows_collections,flat,Windows", ]); let include = std::env::var("OUT_DIR").unwrap(); diff --git a/crates/tests/winrt/collection_interop/src/bindings.rs b/crates/tests/winrt/collection_interop/src/bindings.rs index c9a70816da6..7580647c377 100644 --- a/crates/tests/winrt/collection_interop/src/bindings.rs +++ b/crates/tests/winrt/collection_interop/src/bindings.rs @@ -17,7 +17,7 @@ windows_core::imp::interface_hierarchy!(ITest, windows_core::IUnknown, windows_c impl ITest { pub fn TestIterable(&self, collection: P0, values: &[i32]) -> windows_core::Result<()> where - P0: windows_core::Param>, + P0: windows_core::Param>, { let this = self; unsafe { @@ -33,7 +33,7 @@ impl ITest { pub fn GetIterable( &self, values: &[i32], - ) -> windows_core::Result> { + ) -> windows_core::Result> { let this = self; unsafe { let mut result__ = core::mem::zeroed(); @@ -50,10 +50,7 @@ impl ITest { &self, values: &[i32], ) -> windows_core::Result< - windows::Foundation::Collections::IMapView< - i32, - windows::Foundation::Collections::IVectorView, - >, + windows_collections::IMapView>, > { let this = self; unsafe { @@ -74,21 +71,18 @@ impl windows_core::RuntimeName for ITest { pub trait ITest_Impl: windows_core::IUnknownImpl { fn TestIterable( &self, - collection: windows_core::Ref<'_, windows::Foundation::Collections::IIterable>, + collection: windows_core::Ref<'_, windows_collections::IIterable>, values: &[i32], ) -> windows_core::Result<()>; fn GetIterable( &self, values: &[i32], - ) -> windows_core::Result>; + ) -> windows_core::Result>; fn GetMapView( &self, values: &[i32], ) -> windows_core::Result< - windows::Foundation::Collections::IMapView< - i32, - windows::Foundation::Collections::IVectorView, - >, + windows_collections::IMapView>, >; } impl ITest_Vtbl { diff --git a/crates/tests/winrt/collection_interop/src/lib.rs b/crates/tests/winrt/collection_interop/src/lib.rs index 5e885324e15..0b08fe6935c 100644 --- a/crates/tests/winrt/collection_interop/src/lib.rs +++ b/crates/tests/winrt/collection_interop/src/lib.rs @@ -2,7 +2,7 @@ mod bindings; pub use bindings::*; -pub use windows::core::*; +pub use windows_core::*; pub fn make_cpp() -> Result { extern "system" { diff --git a/crates/tests/winrt/collection_interop/tests/test.rs b/crates/tests/winrt/collection_interop/tests/test.rs index 50e80356e05..e8e870e84ce 100644 --- a/crates/tests/winrt/collection_interop/tests/test.rs +++ b/crates/tests/winrt/collection_interop/tests/test.rs @@ -2,7 +2,7 @@ use std::collections::BTreeMap; use test_collection_interop::*; -use windows::Foundation::Collections::*; +use windows_collections::*; #[implement(ITest)] #[derive(Default)] diff --git a/crates/tests/winrt/collections/Cargo.toml b/crates/tests/winrt/collections/Cargo.toml index d998d49b608..f595b212ff9 100644 --- a/crates/tests/winrt/collections/Cargo.toml +++ b/crates/tests/winrt/collections/Cargo.toml @@ -18,3 +18,6 @@ features = [ [dependencies.windows-core] workspace = true + +[dependencies.windows-collections] +workspace = true diff --git a/crates/tests/winrt/collections/tests/empty.rs b/crates/tests/winrt/collections/tests/empty.rs index cac5319c3f8..ab4448a6995 100644 --- a/crates/tests/winrt/collections/tests/empty.rs +++ b/crates/tests/winrt/collections/tests/empty.rs @@ -1,5 +1,5 @@ use std::collections::BTreeMap; -use windows::Foundation::Collections::*; +use windows_collections::*; #[test] fn iterable() { diff --git a/crates/tests/winrt/collections/tests/stock_iterable.rs b/crates/tests/winrt/collections/tests/stock_iterable.rs index 115533497de..c58689a2a37 100644 --- a/crates/tests/winrt/collections/tests/stock_iterable.rs +++ b/crates/tests/winrt/collections/tests/stock_iterable.rs @@ -1,6 +1,7 @@ #![allow(non_snake_case)] -use windows::{core::*, Foundation::Collections::*, Foundation::*, Win32::Foundation::E_BOUNDS}; +use windows::{core::*, Foundation::*, Win32::Foundation::E_BOUNDS}; +use windows_collections::*; #[test] fn calendar() -> Result<()> { diff --git a/crates/tests/winrt/collections/tests/stock_map_view.rs b/crates/tests/winrt/collections/tests/stock_map_view.rs index 327410d7c11..fc798ca1780 100644 --- a/crates/tests/winrt/collections/tests/stock_map_view.rs +++ b/crates/tests/winrt/collections/tests/stock_map_view.rs @@ -1,7 +1,8 @@ #![allow(non_snake_case)] use std::collections::BTreeMap; -use windows::{core::*, Foundation::Collections::*, Win32::Foundation::E_BOUNDS}; +use windows::{core::*, Win32::Foundation::E_BOUNDS}; +use windows_collections::*; #[test] fn primitive() -> Result<()> { diff --git a/crates/tests/winrt/collections/tests/stock_vector_view.rs b/crates/tests/winrt/collections/tests/stock_vector_view.rs index 9d6e0c5d804..2545072deab 100644 --- a/crates/tests/winrt/collections/tests/stock_vector_view.rs +++ b/crates/tests/winrt/collections/tests/stock_vector_view.rs @@ -1,6 +1,7 @@ #![allow(non_snake_case)] -use windows::{core::*, Foundation::Collections::*, Win32::Foundation::E_BOUNDS}; +use windows::{core::*, Win32::Foundation::E_BOUNDS}; +use windows_collections::*; #[test] fn primitive() -> Result<()> { diff --git a/crates/tests/winrt/old/Cargo.toml b/crates/tests/winrt/old/Cargo.toml index 57cb3e8c79d..a5db22040c4 100644 --- a/crates/tests/winrt/old/Cargo.toml +++ b/crates/tests/winrt/old/Cargo.toml @@ -8,6 +8,9 @@ publish = false doc = false doctest = false +[dependencies.windows-collections] +workspace = true + [dependencies.windows] workspace = true features = [ diff --git a/crates/tests/winrt/old/tests/collections.rs b/crates/tests/winrt/old/tests/collections.rs index aceb2816586..3fc49977ee3 100644 --- a/crates/tests/winrt/old/tests/collections.rs +++ b/crates/tests/winrt/old/tests/collections.rs @@ -1,10 +1,8 @@ use core::convert::*; -use windows::{ - core::Interface, - Foundation::Collections::{IIterable, IVectorView, PropertySet}, - Foundation::*, -}; +use windows::{core::Interface, Foundation::Collections::PropertySet, Foundation::*}; + +use windows_collections::*; #[test] fn uri() -> windows::core::Result<()> { diff --git a/crates/tests/winrt/old/tests/generic_guids.rs b/crates/tests/winrt/old/tests/generic_guids.rs index b81dc367e35..c16651386a5 100644 --- a/crates/tests/winrt/old/tests/generic_guids.rs +++ b/crates/tests/winrt/old/tests/generic_guids.rs @@ -1,4 +1,5 @@ use windows::{core::*, Devices::Enumeration::*, Foundation::Collections::*, Foundation::*}; +use windows_collections::*; #[test] fn signatures() { diff --git a/crates/tools/bindings/src/collections.txt b/crates/tools/bindings/src/collections.txt new file mode 100644 index 00000000000..10ea988d84f --- /dev/null +++ b/crates/tools/bindings/src/collections.txt @@ -0,0 +1,9 @@ +--out crates/libs/collections/src/bindings.rs +--flat +--no-comment + +--filter + IMap + IMapView + IVector + IVectorView diff --git a/crates/tools/bindings/src/main.rs b/crates/tools/bindings/src/main.rs index 5280c9b2a54..190e99fca0a 100644 --- a/crates/tools/bindings/src/main.rs +++ b/crates/tools/bindings/src/main.rs @@ -3,14 +3,15 @@ use windows_bindgen::*; fn main() { let time = std::time::Instant::now(); + bindgen(["--etc", "crates/tools/bindings/src/collections.txt"]); bindgen(["--etc", "crates/tools/bindings/src/core_com.txt"]); bindgen(["--etc", "crates/tools/bindings/src/core.txt"]); bindgen(["--etc", "crates/tools/bindings/src/metadata.txt"]); bindgen(["--etc", "crates/tools/bindings/src/registry.txt"]); bindgen(["--etc", "crates/tools/bindings/src/result.txt"]); bindgen(["--etc", "crates/tools/bindings/src/strings.txt"]); - bindgen(["--etc", "crates/tools/bindings/src/version.txt"]); bindgen(["--etc", "crates/tools/bindings/src/sys.txt"]); + bindgen(["--etc", "crates/tools/bindings/src/version.txt"]); bindgen(["--etc", "crates/tools/bindings/src/windows.txt"]); println!("Finished in {:.2}s", time.elapsed().as_secs_f32()); diff --git a/crates/tools/bindings/src/windows.txt b/crates/tools/bindings/src/windows.txt index 27dd7f145c5..69fbc950951 100644 --- a/crates/tools/bindings/src/windows.txt +++ b/crates/tools/bindings/src/windows.txt @@ -3,8 +3,20 @@ --package --no-comment --no-allow --rustfmt max_width=800,newline_style=Unix +--reference + windows_collections,flat,Windows.Foundation.Collections + --filter Windows + + !IIterable + !IIterator + !IKeyValuePair + !IMap + !IMapView + !IVector + !IVectorView + !Windows.AI.MachineLearning.Preview !Windows.ApplicationModel.SocialInfo !Windows.ApplicationModel.Store From ad723c0c72f53fe6be7081469e5cbaa7acf3db7b Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 08:56:04 -0600 Subject: [PATCH 6/8] yml --- .github/workflows/clippy.yml | 2 ++ .github/workflows/no-default-features.yml | 2 ++ .github/workflows/raw-dylib.yml | 6 ++++-- .github/workflows/test.yml | 6 ++++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index a923845bfc6..742d098c3e7 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -305,6 +305,8 @@ jobs: run: cargo clippy -p windows - name: Clippy windows-bindgen run: cargo clippy -p windows-bindgen + - name: Clippy windows-collections + run: cargo clippy -p windows-collections - name: Clippy windows-core run: cargo clippy -p windows-core - name: Clippy windows-implement diff --git a/.github/workflows/no-default-features.yml b/.github/workflows/no-default-features.yml index 82ff68430af..6c628440ee7 100644 --- a/.github/workflows/no-default-features.yml +++ b/.github/workflows/no-default-features.yml @@ -39,6 +39,8 @@ jobs: run: cargo check -p windows --no-default-features - name: Check windows-bindgen run: cargo check -p windows-bindgen --no-default-features + - name: Check windows-collections + run: cargo check -p windows-collections --no-default-features - name: Check windows-core run: cargo check -p windows-core --no-default-features - name: Check windows-implement diff --git a/.github/workflows/raw-dylib.yml b/.github/workflows/raw-dylib.yml index fb348cac2b3..27e027d9066 100644 --- a/.github/workflows/raw-dylib.yml +++ b/.github/workflows/raw-dylib.yml @@ -336,6 +336,8 @@ jobs: run: cargo test -p windows --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-bindgen run: cargo test -p windows-bindgen --target ${{ matrix.target }} ${{ matrix.etc }} + - name: Test windows-collections + run: cargo test -p windows-collections --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-core run: cargo test -p windows-core --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-implement @@ -362,10 +364,10 @@ jobs: run: cargo test -p windows_aarch64_msvc --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_gnu run: cargo test -p windows_i686_gnu --target ${{ matrix.target }} ${{ matrix.etc }} - - name: Test windows_i686_gnullvm - run: cargo test -p windows_i686_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Clean run: cargo clean + - name: Test windows_i686_gnullvm + run: cargo test -p windows_i686_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_msvc run: cargo test -p windows_i686_msvc --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_x86_64_gnu diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b97bdb9251..512222f9aff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -333,6 +333,8 @@ jobs: run: cargo test -p windows --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-bindgen run: cargo test -p windows-bindgen --target ${{ matrix.target }} ${{ matrix.etc }} + - name: Test windows-collections + run: cargo test -p windows-collections --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-core run: cargo test -p windows-core --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows-implement @@ -359,10 +361,10 @@ jobs: run: cargo test -p windows_aarch64_msvc --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_gnu run: cargo test -p windows_i686_gnu --target ${{ matrix.target }} ${{ matrix.etc }} - - name: Test windows_i686_gnullvm - run: cargo test -p windows_i686_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Clean run: cargo clean + - name: Test windows_i686_gnullvm + run: cargo test -p windows_i686_gnullvm --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_i686_msvc run: cargo test -p windows_i686_msvc --target ${{ matrix.target }} ${{ matrix.etc }} - name: Test windows_x86_64_gnu From 97f7f62b1c16e5e0aec22ff3eabd2cc5d03a37fb Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 08:58:52 -0600 Subject: [PATCH 7/8] msrv check for windows-collections --- .../workflows/msrv-windows-collections.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/msrv-windows-collections.yml diff --git a/.github/workflows/msrv-windows-collections.yml b/.github/workflows/msrv-windows-collections.yml new file mode 100644 index 00000000000..0811cbd2a18 --- /dev/null +++ b/.github/workflows/msrv-windows-collections.yml @@ -0,0 +1,32 @@ +name: windows-collections + +on: + pull_request: + paths-ignore: + - '.github/ISSUE_TEMPLATE/**' + - 'web/**' + push: + paths-ignore: + - '.github/ISSUE_TEMPLATE/**' + - 'web/**' + branches: + - master + +jobs: + check: + strategy: + matrix: + rust: [1.74.0, stable, nightly] + runs-on: + - windows-2022 + - ubuntu-22.04 + runs-on: ${{ matrix.runs-on }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Prepare + run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} + - name: Check + run: cargo check -p windows-collections --all-features + - name: Check Default Features + run: cargo check -p windows-collections From ebf6faba94c7c4a1ebafad6fb509522f6904651f Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 12 Feb 2025 09:32:51 -0600 Subject: [PATCH 8/8] dev-dependencies --- crates/libs/collections/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/libs/collections/Cargo.toml b/crates/libs/collections/Cargo.toml index bd03ba802e3..e853f71a8a4 100644 --- a/crates/libs/collections/Cargo.toml +++ b/crates/libs/collections/Cargo.toml @@ -23,3 +23,7 @@ default-features = false [features] default = ["std"] std = [] + +[dev-dependencies] +windows-result = { path = "../result" } +windows-strings = { path = "../strings" }