diff --git a/crates/libs/bindgen/src/type_map.rs b/crates/libs/bindgen/src/type_map.rs index 17fe42ae9c..d67bd7d583 100644 --- a/crates/libs/bindgen/src/type_map.rs +++ b/crates/libs/bindgen/src/type_map.rs @@ -1,19 +1,26 @@ use super::*; #[derive(Clone, Debug, PartialEq, Eq)] -pub struct TypeMap(HashMap>); +pub struct TypeMap { + types: HashMap>, + deprecated: bool, + // TODO: add arches +} impl std::ops::Deref for TypeMap { type Target = HashMap>; fn deref(&self) -> &Self::Target { - &self.0 + &self.types } } impl TypeMap { pub fn new() -> Self { - Self(HashMap::new()) + Self { + types: HashMap::new(), + deprecated: false, + } } #[track_caller] @@ -48,13 +55,13 @@ impl TypeMap { } pub fn insert(&mut self, ty: Type) -> bool { - self.0.entry(ty.type_name()).or_default().insert(ty) + self.types.entry(ty.type_name()).or_default().insert(ty) } fn combine_references(&mut self, other: &Self, references: &References) { - for (tn, types) in &other.0 { + for (tn, types) in &other.types { if references.contains(*tn).is_none() { - let set = self.0.entry(*tn).or_default(); + let set = self.types.entry(*tn).or_default(); types.iter().for_each(|ty| { set.insert(ty.clone()); }); @@ -63,26 +70,38 @@ impl TypeMap { } pub fn combine(&mut self, other: &Self) { - for (name, types) in &other.0 { - let set = self.0.entry(*name).or_default(); + for (name, types) in &other.types { + let set = self.types.entry(*name).or_default(); types.iter().for_each(|ty| { set.insert(ty.clone()); }); } } + pub fn is_deprecated(&self) -> bool { + self.deprecated + } + + pub fn deprecated(&mut self, row: R) { + if row.has_attribute("DeprecatedAttribute") { + self.deprecated = true; + } + } + pub fn difference(&self, other: &Self) -> Self { - Self( - self.0 + Self { + types: self + .types .iter() - .filter(|(tn, _)| !other.0.contains_key(tn)) + .filter(|(tn, _)| !other.types.contains_key(tn)) .map(|(tn, ty)| (*tn, ty.clone())) .collect(), - ) + deprecated: self.deprecated && !other.deprecated, + } } pub fn included(&self, config: &Config) -> bool { - self.0.iter().all(|(tn, _)| { + self.types.iter().all(|(tn, _)| { // An empty namespace covers core types like `HRESULT`. This way we don't exclude methods // that depend on core types that aren't explicitly included in the filter. if tn.namespace().is_empty() { @@ -102,6 +121,8 @@ impl TypeMap { } fn excluded(&self, filter: &Filter) -> bool { - self.0.iter().any(|(tn, _)| filter.excludes_type_name(*tn)) + self.types + .iter() + .any(|(tn, _)| filter.excludes_type_name(*tn)) } } diff --git a/crates/libs/bindgen/src/types/class.rs b/crates/libs/bindgen/src/types/class.rs index f5df2aa36c..935c4f7078 100644 --- a/crates/libs/bindgen/src/types/class.rs +++ b/crates/libs/bindgen/src/types/class.rs @@ -90,7 +90,16 @@ impl Class { } else { let method_name = to_ident(interface.def.name()); let interface_type = interface.write_name(writer); - let cfg = quote! {}; + let mut difference = TypeMap::new(); + + if writer.config.package { + let mut interface_dependendencies = TypeMap::new(); + interface.dependencies(&mut interface_dependendencies); + + difference = interface_dependendencies.difference(&dependencies); + } + + let cfg = writer.write_cfg(self.def, type_name.namespace(), &difference, false); Some(quote! { #cfg @@ -245,8 +254,15 @@ impl Class { } pub fn dependencies(&self, dependencies: &mut TypeMap) { + dependencies.deprecated(self.def); + for interface in self.required_interfaces() { - Type::Interface(interface).dependencies(dependencies); + if !matches!( + interface.kind, + InterfaceKind::Static | InterfaceKind::Composable + ) { + Type::Interface(interface).dependencies(dependencies); + } } } diff --git a/crates/libs/bindgen/src/types/delegate.rs b/crates/libs/bindgen/src/types/delegate.rs index ebf6c3929a..e02a2c718b 100644 --- a/crates/libs/bindgen/src/types/delegate.rs +++ b/crates/libs/bindgen/src/types/delegate.rs @@ -199,6 +199,7 @@ impl Delegate { } pub fn dependencies(&self, dependencies: &mut TypeMap) { + dependencies.deprecated(self.def); dependencies.combine(&self.method().dependencies); for ty in &self.generics { diff --git a/crates/libs/bindgen/src/types/interface.rs b/crates/libs/bindgen/src/types/interface.rs index c5243cdea5..9ebfa18b60 100644 --- a/crates/libs/bindgen/src/types/interface.rs +++ b/crates/libs/bindgen/src/types/interface.rs @@ -548,6 +548,7 @@ impl Interface { } pub fn dependencies(&self, dependencies: &mut TypeMap) { + dependencies.deprecated(self.def); Type::Object.dependencies(dependencies); for interface in self.required_interfaces() { diff --git a/crates/libs/bindgen/src/types/method.rs b/crates/libs/bindgen/src/types/method.rs index 520d9aa12d..f0cdfc2616 100644 --- a/crates/libs/bindgen/src/types/method.rs +++ b/crates/libs/bindgen/src/types/method.rs @@ -14,6 +14,7 @@ impl Method { let mut dependencies = TypeMap::new(); signature.dependencies(&mut dependencies); + dependencies.deprecated(def); Self { def, diff --git a/crates/libs/bindgen/src/types/struct.rs b/crates/libs/bindgen/src/types/struct.rs index 157ab87e08..24744e1aa4 100644 --- a/crates/libs/bindgen/src/types/struct.rs +++ b/crates/libs/bindgen/src/types/struct.rs @@ -84,6 +84,8 @@ impl Struct { } pub fn dependencies(&self, dependencies: &mut TypeMap) { + dependencies.deprecated(self.def); + for field in self.def.fields() { field.ty(None).dependencies(dependencies); } diff --git a/crates/libs/bindgen/src/writer/cfg.rs b/crates/libs/bindgen/src/writer/cfg.rs index 5b634f8442..556cdd33d3 100644 --- a/crates/libs/bindgen/src/writer/cfg.rs +++ b/crates/libs/bindgen/src/writer/cfg.rs @@ -12,28 +12,26 @@ impl Writer { let mut arches = BTreeSet::new(); for attribute in row.attributes() { - match attribute.name() { - "SupportedArchitectureAttribute" => { - if let Some((_, Value::I32(value))) = attribute.args().first() { - if value & 1 == 1 { - arches.insert("x86"); - } - if value & 2 == 2 { - arches.insert("x86_64"); - arches.insert("arm64ec"); - } - if value & 4 == 4 { - arches.insert("aarch64"); - } + if attribute.name() == "SupportedArchitectureAttribute" { + if let Some((_, Value::I32(value))) = attribute.args().first() { + if value & 1 == 1 { + arches.insert("x86"); + } + if value & 2 == 2 { + arches.insert("x86_64"); + arches.insert("arm64ec"); + } + if value & 4 == 4 { + arches.insert("aarch64"); } } - "DeprecatedAttribute" => { - features.insert("deprecated".to_string()); - } - _ => {} } } + if dependencies.is_deprecated() { + features.insert("deprecated".to_string()); + } + let mut tokens = quote! {}; match arches.len() { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs index 36df1c3580..ff5d96b0ec 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Activation/mod.rs @@ -1533,7 +1533,6 @@ windows_core::imp::interface_hierarchy!(FileOpenPickerContinuationEventArgs, win windows_core::imp::required_hierarchy!(FileOpenPickerContinuationEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl FileOpenPickerContinuationEventArgs { - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1541,7 +1540,6 @@ impl FileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1549,7 +1547,6 @@ impl FileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1557,7 +1554,7 @@ impl FileOpenPickerContinuationEventArgs { (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 = "System", feature = "deprecated"))] + #[cfg(feature = "System")] pub fn User(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1565,7 +1562,7 @@ impl FileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1573,7 +1570,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1679,7 +1676,6 @@ windows_core::imp::interface_hierarchy!(FileSavePickerContinuationEventArgs, win windows_core::imp::required_hierarchy!(FileSavePickerContinuationEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl FileSavePickerContinuationEventArgs { - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1687,7 +1683,6 @@ impl FileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1695,7 +1690,6 @@ impl FileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1703,7 +1697,7 @@ impl FileSavePickerContinuationEventArgs { (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 = "System", feature = "deprecated"))] + #[cfg(feature = "System")] pub fn User(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1711,7 +1705,7 @@ impl FileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1719,7 +1713,7 @@ impl FileSavePickerContinuationEventArgs { (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 = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn File(&self) -> windows_core::Result { let this = self; unsafe { @@ -1755,7 +1749,6 @@ windows_core::imp::interface_hierarchy!(FolderPickerContinuationEventArgs, windo windows_core::imp::required_hierarchy!(FolderPickerContinuationEventArgs, IActivatedEventArgs, IActivatedEventArgsWithUser, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl FolderPickerContinuationEventArgs { - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1763,7 +1756,6 @@ impl FolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1771,7 +1763,6 @@ impl FolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1779,7 +1770,7 @@ impl FolderPickerContinuationEventArgs { (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 = "System", feature = "deprecated"))] + #[cfg(feature = "System")] pub fn User(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1787,7 +1778,7 @@ impl FolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1795,7 +1786,7 @@ impl FolderPickerContinuationEventArgs { (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 = "Storage_Search", feature = "deprecated"))] + #[cfg(feature = "Storage_Search")] pub fn Folder(&self) -> windows_core::Result { let this = self; unsafe { @@ -4654,7 +4645,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { @@ -4662,7 +4653,6 @@ impl IFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Files)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4670,7 +4660,6 @@ impl IFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4678,7 +4667,6 @@ impl IFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4686,7 +4674,7 @@ impl IFileOpenPickerContinuationEventArgs { (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 = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4729,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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", 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", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] Files: usize, } windows_core::imp::define_interface!(IFileSavePickerActivatedEventArgs, IFileSavePickerActivatedEventArgs_Vtbl, 0x81c19cf1_74e6_4387_82eb_bb8fd64b4346); @@ -4896,7 +4884,7 @@ windows_core::imp::interface_hierarchy!(IFileSavePickerContinuationEventArgs, wi windows_core::imp::required_hierarchy!(IFileSavePickerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl IFileSavePickerContinuationEventArgs { - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn File(&self) -> windows_core::Result { let this = self; unsafe { @@ -4904,7 +4892,6 @@ impl IFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).File)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4912,7 +4899,6 @@ impl IFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4920,7 +4906,6 @@ impl IFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4928,7 +4913,7 @@ impl IFileSavePickerContinuationEventArgs { (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 = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -4971,9 +4956,9 @@ impl IFileSavePickerContinuationEventArgs_Vtbl { #[repr(C)] pub struct IFileSavePickerContinuationEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub File: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] File: usize, } #[cfg(feature = "deprecated")] @@ -4988,7 +4973,7 @@ windows_core::imp::interface_hierarchy!(IFolderPickerContinuationEventArgs, wind windows_core::imp::required_hierarchy!(IFolderPickerContinuationEventArgs, IActivatedEventArgs, IContinuationActivatedEventArgs); #[cfg(feature = "deprecated")] impl IFolderPickerContinuationEventArgs { - #[cfg(all(feature = "Storage_Search", feature = "deprecated"))] + #[cfg(feature = "Storage_Search")] pub fn Folder(&self) -> windows_core::Result { let this = self; unsafe { @@ -4996,7 +4981,6 @@ impl IFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Folder)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5004,7 +4988,6 @@ impl IFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5012,7 +4995,6 @@ impl IFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5020,7 +5002,7 @@ impl IFolderPickerContinuationEventArgs { (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 = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5063,9 +5045,9 @@ impl IFolderPickerContinuationEventArgs_Vtbl { #[repr(C)] pub struct IFolderPickerContinuationEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Storage_Search", feature = "deprecated"))] + #[cfg(feature = "Storage_Search")] pub Folder: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Search", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Search"))] Folder: usize, } windows_core::imp::define_interface!(ILaunchActivatedEventArgs, ILaunchActivatedEventArgs_Vtbl, 0xfbc93e26_a14a_4b4f_82b0_33bed920af52); @@ -6743,7 +6725,6 @@ windows_core::imp::interface_hierarchy!(IWalletActionActivatedEventArgs, windows windows_core::imp::required_hierarchy!(IWalletActionActivatedEventArgs, IActivatedEventArgs); #[cfg(feature = "deprecated")] impl IWalletActionActivatedEventArgs { - #[cfg(feature = "deprecated")] pub fn ItemId(&self) -> windows_core::Result { let this = self; unsafe { @@ -6751,7 +6732,7 @@ impl IWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ItemId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "ApplicationModel_Wallet", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Wallet")] pub fn ActionKind(&self) -> windows_core::Result { let this = self; unsafe { @@ -6759,7 +6740,6 @@ impl IWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ActionKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ActionId(&self) -> windows_core::Result { let this = self; unsafe { @@ -6767,7 +6747,6 @@ impl IWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ActionId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6775,7 +6754,6 @@ impl IWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6783,7 +6761,6 @@ impl IWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -6858,18 +6835,12 @@ impl IWalletActionActivatedEventArgs_Vtbl { #[repr(C)] pub struct IWalletActionActivatedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ItemId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ItemId: usize, - #[cfg(all(feature = "ApplicationModel_Wallet", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Wallet")] pub ActionKind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Wallet::WalletActionKind) -> windows_core::HRESULT, - #[cfg(not(all(feature = "ApplicationModel_Wallet", feature = "deprecated")))] + #[cfg(not(feature = "ApplicationModel_Wallet"))] ActionKind: usize, - #[cfg(feature = "deprecated")] pub ActionId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ActionId: usize, } windows_core::imp::define_interface!(IWebAccountProviderActivatedEventArgs, IWebAccountProviderActivatedEventArgs_Vtbl, 0x72b71774_98ea_4ccf_9752_46d9051004f1); impl windows_core::RuntimeType for IWebAccountProviderActivatedEventArgs { @@ -8171,7 +8142,6 @@ windows_core::imp::interface_hierarchy!(WalletActionActivatedEventArgs, windows_ windows_core::imp::required_hierarchy!(WalletActionActivatedEventArgs, IActivatedEventArgs); #[cfg(feature = "deprecated")] impl WalletActionActivatedEventArgs { - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -8179,7 +8149,6 @@ impl WalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -8187,7 +8156,6 @@ impl WalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -8195,7 +8163,6 @@ impl WalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).SplashScreen)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ItemId(&self) -> windows_core::Result { let this = self; unsafe { @@ -8203,7 +8170,7 @@ impl WalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ItemId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "ApplicationModel_Wallet", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Wallet")] pub fn ActionKind(&self) -> windows_core::Result { let this = self; unsafe { @@ -8211,7 +8178,6 @@ impl WalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ActionKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ActionId(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs index 000468b8a3..bae47300ca 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs @@ -1678,7 +1678,6 @@ windows_core::imp::interface_hierarchy!(DeviceManufacturerNotificationTrigger, w windows_core::imp::required_hierarchy!(DeviceManufacturerNotificationTrigger, IBackgroundTrigger); #[cfg(feature = "deprecated")] impl DeviceManufacturerNotificationTrigger { - #[cfg(feature = "deprecated")] pub fn TriggerQualifier(&self) -> windows_core::Result { let this = self; unsafe { @@ -1686,7 +1685,6 @@ impl DeviceManufacturerNotificationTrigger { (windows_core::Interface::vtable(this).TriggerQualifier)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn OneShot(&self) -> windows_core::Result { let this = self; unsafe { @@ -1694,7 +1692,6 @@ impl DeviceManufacturerNotificationTrigger { (windows_core::Interface::vtable(this).OneShot)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Create(triggerqualifier: &windows_core::HSTRING, oneshot: bool) -> windows_core::Result { Self::IDeviceManufacturerNotificationTriggerFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3450,14 +3447,8 @@ impl windows_core::RuntimeType for IDeviceManufacturerNotificationTrigger { #[repr(C)] pub struct IDeviceManufacturerNotificationTrigger_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub TriggerQualifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TriggerQualifier: usize, - #[cfg(feature = "deprecated")] pub OneShot: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OneShot: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IDeviceManufacturerNotificationTriggerFactory, IDeviceManufacturerNotificationTriggerFactory_Vtbl, 0x7955de75_25bb_4153_a1a2_3029fcabb652); @@ -3469,10 +3460,7 @@ impl windows_core::RuntimeType for IDeviceManufacturerNotificationTriggerFactory #[repr(C)] pub struct IDeviceManufacturerNotificationTriggerFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Create: 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 = "deprecated"))] - Create: usize, } windows_core::imp::define_interface!(IDeviceServicingTrigger, IDeviceServicingTrigger_Vtbl, 0x1ab217ad_6e34_49d3_9e6f_17f1b6dfa881); impl windows_core::RuntimeType for IDeviceServicingTrigger { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs index 107386a244..26e1475f91 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Background/mod.rs @@ -19,14 +19,8 @@ impl windows_core::RuntimeType for IPhoneCallOriginDataRequestTriggerDetails { #[repr(C)] pub struct IPhoneCallOriginDataRequestTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub RequestId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RequestId: usize, - #[cfg(feature = "deprecated")] pub PhoneNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PhoneNumber: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPhoneIncomingCallDismissedTriggerDetails, IPhoneIncomingCallDismissedTriggerDetails_Vtbl, 0xbad30276_83b6_5732_9c38_0c206546196a); @@ -38,30 +32,12 @@ impl windows_core::RuntimeType for IPhoneIncomingCallDismissedTriggerDetails { #[repr(C)] pub struct IPhoneIncomingCallDismissedTriggerDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub LineId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LineId: usize, - #[cfg(feature = "deprecated")] pub PhoneNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PhoneNumber: usize, - #[cfg(feature = "deprecated")] pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayName: usize, - #[cfg(feature = "deprecated")] pub DismissalTime: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DismissalTime: usize, - #[cfg(feature = "deprecated")] pub TextReplyMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TextReplyMessage: usize, - #[cfg(feature = "deprecated")] pub Reason: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PhoneIncomingCallDismissedReason) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Reason: usize, } windows_core::imp::define_interface!(IPhoneIncomingCallNotificationTriggerDetails, IPhoneIncomingCallNotificationTriggerDetails_Vtbl, 0x2b0e6044_9b32_5d42_8222_d2812e39fb21); impl windows_core::RuntimeType for IPhoneIncomingCallNotificationTriggerDetails { @@ -156,7 +132,6 @@ pub struct PhoneCallOriginDataRequestTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PhoneCallOriginDataRequestTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PhoneCallOriginDataRequestTriggerDetails { - #[cfg(feature = "deprecated")] pub fn RequestId(&self) -> windows_core::Result { let this = self; unsafe { @@ -164,7 +139,6 @@ impl PhoneCallOriginDataRequestTriggerDetails { (windows_core::Interface::vtable(this).RequestId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn PhoneNumber(&self) -> windows_core::Result { let this = self; unsafe { @@ -213,7 +187,6 @@ pub struct PhoneIncomingCallDismissedTriggerDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PhoneIncomingCallDismissedTriggerDetails, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PhoneIncomingCallDismissedTriggerDetails { - #[cfg(feature = "deprecated")] pub fn LineId(&self) -> windows_core::Result { let this = self; unsafe { @@ -221,7 +194,6 @@ impl PhoneIncomingCallDismissedTriggerDetails { (windows_core::Interface::vtable(this).LineId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn PhoneNumber(&self) -> windows_core::Result { let this = self; unsafe { @@ -229,7 +201,6 @@ impl PhoneIncomingCallDismissedTriggerDetails { (windows_core::Interface::vtable(this).PhoneNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn DisplayName(&self) -> windows_core::Result { let this = self; unsafe { @@ -237,7 +208,6 @@ impl PhoneIncomingCallDismissedTriggerDetails { (windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn DismissalTime(&self) -> windows_core::Result { let this = self; unsafe { @@ -245,7 +215,6 @@ impl PhoneIncomingCallDismissedTriggerDetails { (windows_core::Interface::vtable(this).DismissalTime)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn TextReplyMessage(&self) -> windows_core::Result { let this = self; unsafe { @@ -253,7 +222,6 @@ impl PhoneIncomingCallDismissedTriggerDetails { (windows_core::Interface::vtable(this).TextReplyMessage)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Reason(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs index 35a44a3e0d..0552ab42d4 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/Provider/mod.rs @@ -8,30 +8,12 @@ impl windows_core::RuntimeType for IPhoneCallOrigin { #[repr(C)] pub struct IPhoneCallOrigin_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Category: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Category: usize, - #[cfg(feature = "deprecated")] pub SetCategory: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetCategory: usize, - #[cfg(feature = "deprecated")] pub CategoryDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CategoryDescription: usize, - #[cfg(feature = "deprecated")] pub SetCategoryDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetCategoryDescription: usize, - #[cfg(feature = "deprecated")] pub Location: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Location: usize, - #[cfg(feature = "deprecated")] pub SetLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetLocation: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPhoneCallOrigin2, IPhoneCallOrigin2_Vtbl, 0x04c7e980_9ac2_4768_b536_b68da4957d02); @@ -43,14 +25,8 @@ impl windows_core::RuntimeType for IPhoneCallOrigin2 { #[repr(C)] pub struct IPhoneCallOrigin2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayName: usize, - #[cfg(feature = "deprecated")] pub SetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDisplayName: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPhoneCallOrigin3, IPhoneCallOrigin3_Vtbl, 0x49330fb4_d1a7_43a2_aeee_c07b6dbaf068); @@ -62,13 +38,13 @@ impl windows_core::RuntimeType for IPhoneCallOrigin3 { #[repr(C)] pub struct IPhoneCallOrigin3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub DisplayPicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] DisplayPicture: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetDisplayPicture: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetDisplayPicture: usize, } #[cfg(feature = "deprecated")] @@ -81,18 +57,9 @@ impl windows_core::RuntimeType for IPhoneCallOriginManagerStatics { #[repr(C)] pub struct IPhoneCallOriginManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub IsCurrentAppActiveCallOriginApp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsCurrentAppActiveCallOriginApp: usize, - #[cfg(feature = "deprecated")] pub ShowPhoneCallOriginSettingsUI: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ShowPhoneCallOriginSettingsUI: usize, - #[cfg(feature = "deprecated")] pub SetCallOrigin: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetCallOrigin: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPhoneCallOriginManagerStatics2, IPhoneCallOriginManagerStatics2_Vtbl, 0x8bf3ee3f_40f4_4380_8c7c_aea2c9b8dd7a); @@ -104,10 +71,7 @@ impl windows_core::RuntimeType for IPhoneCallOriginManagerStatics2 { #[repr(C)] pub struct IPhoneCallOriginManagerStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub RequestSetAsActiveCallOriginAppAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RequestSetAsActiveCallOriginAppAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPhoneCallOriginManagerStatics3, IPhoneCallOriginManagerStatics3_Vtbl, 0x2ed69764_a6e3_50f0_b76a_d67cb39bdfde); @@ -119,10 +83,7 @@ impl windows_core::RuntimeType for IPhoneCallOriginManagerStatics3 { #[repr(C)] pub struct IPhoneCallOriginManagerStatics3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub IsSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsSupported: usize, } #[cfg(feature = "deprecated")] #[repr(transparent)] @@ -139,7 +100,6 @@ impl PhoneCallOrigin { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn Category(&self) -> windows_core::Result { let this = self; unsafe { @@ -147,12 +107,10 @@ impl PhoneCallOrigin { (windows_core::Interface::vtable(this).Category)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetCategory(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCategory)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn CategoryDescription(&self) -> windows_core::Result { let this = self; unsafe { @@ -160,12 +118,10 @@ impl PhoneCallOrigin { (windows_core::Interface::vtable(this).CategoryDescription)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetCategoryDescription(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCategoryDescription)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn Location(&self) -> windows_core::Result { let this = self; unsafe { @@ -173,12 +129,10 @@ impl PhoneCallOrigin { (windows_core::Interface::vtable(this).Location)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetLocation(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLocation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn DisplayName(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -186,12 +140,11 @@ impl PhoneCallOrigin { (windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetDisplayName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn DisplayPicture(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -199,7 +152,7 @@ impl PhoneCallOrigin { (windows_core::Interface::vtable(this).DisplayPicture)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetDisplayPicture(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -229,32 +182,27 @@ unsafe impl Sync for PhoneCallOrigin {} pub struct PhoneCallOriginManager; #[cfg(feature = "deprecated")] impl PhoneCallOriginManager { - #[cfg(feature = "deprecated")] pub fn IsCurrentAppActiveCallOriginApp() -> windows_core::Result { Self::IPhoneCallOriginManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IsCurrentAppActiveCallOriginApp)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn ShowPhoneCallOriginSettingsUI() -> windows_core::Result<()> { Self::IPhoneCallOriginManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ShowPhoneCallOriginSettingsUI)(windows_core::Interface::as_raw(this)).ok() }) } - #[cfg(feature = "deprecated")] pub fn SetCallOrigin(requestid: windows_core::GUID, callorigin: P1) -> windows_core::Result<()> where P1: windows_core::Param, { Self::IPhoneCallOriginManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetCallOrigin)(windows_core::Interface::as_raw(this), requestid, callorigin.param().abi()).ok() }) } - #[cfg(feature = "deprecated")] pub fn RequestSetAsActiveCallOriginAppAsync() -> windows_core::Result> { Self::IPhoneCallOriginManagerStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RequestSetAsActiveCallOriginAppAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn IsSupported() -> windows_core::Result { Self::IPhoneCallOriginManagerStatics3(|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 3d9e08c002..0812797149 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Calls/mod.rs @@ -930,7 +930,10 @@ impl windows_core::RuntimeType for IPhoneLine2 { #[repr(C)] pub struct IPhoneLine2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub EnableTextReply: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + EnableTextReply: usize, pub TransportDeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IPhoneLine3, IPhoneLine3_Vtbl, 0xe2e33cf7_2406_57f3_826a_e5a5f40d6fb5); @@ -3127,6 +3130,7 @@ impl PhoneLine { let this = self; unsafe { (windows_core::Interface::vtable(this).DialWithOptions)(windows_core::Interface::as_raw(this), options.param().abi()).ok() } } + #[cfg(feature = "deprecated")] pub fn EnableTextReply(&self, value: bool) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).EnableTextReply)(windows_core::Interface::as_raw(this), value).ok() } 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 939e974cf1..6723178e78 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/Provider/mod.rs @@ -17,6 +17,7 @@ impl windows_core::RuntimeType for AddContactResult { pub struct ContactPickerUI(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ContactPickerUI, windows_core::IUnknown, windows_core::IInspectable); impl ContactPickerUI { + #[cfg(feature = "deprecated")] pub fn AddContact(&self, id: &windows_core::HSTRING, contact: P1) -> windows_core::Result where P1: windows_core::Param, @@ -38,7 +39,7 @@ impl ContactPickerUI { (windows_core::Interface::vtable(this).ContainsContact)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn DesiredFields(&self) -> windows_core::Result> { let this = self; unsafe { @@ -126,12 +127,15 @@ impl windows_core::RuntimeType for IContactPickerUI { #[repr(C)] pub struct IContactPickerUI_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub AddContact: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut AddContactResult) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] 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"))] + #[cfg(not(all(feature = "Foundation_Collections", 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, diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs index 9e743fe985..75de234b65 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Contacts/mod.rs @@ -5778,30 +5778,12 @@ impl windows_core::RuntimeType for IKnownContactFieldStatics { #[repr(C)] pub struct IKnownContactFieldStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Email: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Email: usize, - #[cfg(feature = "deprecated")] pub PhoneNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PhoneNumber: usize, - #[cfg(feature = "deprecated")] pub Location: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Location: usize, - #[cfg(feature = "deprecated")] pub InstantMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - InstantMessage: usize, - #[cfg(feature = "deprecated")] pub ConvertNameToType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut ContactFieldType) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ConvertNameToType: usize, - #[cfg(feature = "deprecated")] pub ConvertTypeToName: unsafe extern "system" fn(*mut core::ffi::c_void, ContactFieldType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ConvertTypeToName: usize, } windows_core::imp::define_interface!(IPinnedContactIdsQueryResult, IPinnedContactIdsQueryResult_Vtbl, 0x7d9b2552_1579_4ddc_871f_a30a3aea9ba1); impl windows_core::RuntimeType for IPinnedContactIdsQueryResult { @@ -5855,42 +5837,36 @@ pub struct IPinnedContactManagerStatics_Vtbl { pub struct KnownContactField; #[cfg(feature = "deprecated")] impl KnownContactField { - #[cfg(feature = "deprecated")] pub fn Email() -> windows_core::Result { Self::IKnownContactFieldStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Email)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "deprecated")] pub fn PhoneNumber() -> windows_core::Result { Self::IKnownContactFieldStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).PhoneNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "deprecated")] pub fn Location() -> windows_core::Result { Self::IKnownContactFieldStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Location)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "deprecated")] pub fn InstantMessage() -> windows_core::Result { Self::IKnownContactFieldStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).InstantMessage)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "deprecated")] pub fn ConvertNameToType(name: &windows_core::HSTRING) -> windows_core::Result { Self::IKnownContactFieldStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ConvertNameToType)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(name), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn ConvertTypeToName(r#type: ContactFieldType) -> windows_core::Result { Self::IKnownContactFieldStatics(|this| 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 0747fb9ff7..bc139e6f41 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs @@ -384,6 +384,7 @@ impl DataPackage { let this = self; unsafe { (windows_core::Interface::vtable(this).SetText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } + #[cfg(feature = "deprecated")] pub fn SetUri(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1031,6 +1032,7 @@ impl DataPackageView { (windows_core::Interface::vtable(this).GetCustomTextAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(formatid), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn GetUriAsync(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1585,7 +1587,10 @@ pub struct IDataPackage_Vtbl { pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetDataProvider: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *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 = "deprecated")] pub SetUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[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"))] pub ResourceMap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -1803,7 +1808,10 @@ pub struct IDataPackageView_Vtbl { 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, pub GetCustomTextAsync: 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 = "deprecated")] pub GetUriAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[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"))] pub GetResourceMapAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2100,7 +2108,10 @@ impl windows_core::RuntimeType for IStandardDataFormatsStatics { pub struct IStandardDataFormatsStatics_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, + #[cfg(feature = "deprecated")] pub Uri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Uri: usize, pub Html: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Rtf: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Bitmap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -2553,6 +2564,7 @@ impl StandardDataFormats { (windows_core::Interface::vtable(this).Text)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } + #[cfg(feature = "deprecated")] pub fn Uri() -> windows_core::Result { Self::IStandardDataFormatsStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs index a09dadbba4..43a14aad83 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Preview/Holographic/mod.rs @@ -32,7 +32,7 @@ pub struct HolographicKeyboardPlacementOverridePreview(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicKeyboardPlacementOverridePreview, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl HolographicKeyboardPlacementOverridePreview { - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetPlacementOverride(&self, coordinatesystem: P0, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3) -> windows_core::Result<()> where P0: windows_core::Param, @@ -40,7 +40,7 @@ impl HolographicKeyboardPlacementOverridePreview { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPlacementOverride)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, normal).ok() } } - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub fn SetPlacementOverrideWithMaxSize(&self, coordinatesystem: P0, topcenterposition: super::super::super::Foundation::Numerics::Vector3, normal: super::super::super::Foundation::Numerics::Vector3, maxsize: super::super::super::Foundation::Numerics::Vector2) -> windows_core::Result<()> where P0: windows_core::Param, @@ -48,12 +48,10 @@ impl HolographicKeyboardPlacementOverridePreview { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPlacementOverrideWithMaxSize)(windows_core::Interface::as_raw(this), coordinatesystem.param().abi(), topcenterposition, normal, maxsize).ok() } } - #[cfg(feature = "deprecated")] pub fn ResetPlacementOverride(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).ResetPlacementOverride)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn GetForCurrentView() -> windows_core::Result { Self::IHolographicKeyboardPlacementOverridePreviewStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -105,18 +103,15 @@ impl windows_core::RuntimeType for IHolographicKeyboardPlacementOverridePreview #[repr(C)] pub struct IHolographicKeyboardPlacementOverridePreview_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub SetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] SetPlacementOverride: usize, - #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Numerics", feature = "Perception_Spatial"))] pub SetPlacementOverrideWithMaxSize: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector3, super::super::super::Foundation::Numerics::Vector2) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Numerics", feature = "Perception_Spatial")))] SetPlacementOverrideWithMaxSize: usize, - #[cfg(feature = "deprecated")] pub ResetPlacementOverride: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ResetPlacementOverride: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IHolographicKeyboardPlacementOverridePreviewStatics, IHolographicKeyboardPlacementOverridePreviewStatics_Vtbl, 0x202e6039_1ff6_5a06_aac4_a5e24fa3ec4b); @@ -128,8 +123,5 @@ impl windows_core::RuntimeType for IHolographicKeyboardPlacementOverridePreviewS #[repr(C)] pub struct IHolographicKeyboardPlacementOverridePreviewStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub GetForCurrentView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetForCurrentView: usize, } 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 33b732c266..90cbf25d9a 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Resources/Management/mod.rs @@ -38,13 +38,10 @@ impl windows_core::RuntimeType for IResourceIndexer { #[repr(C)] pub struct IResourceIndexer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - IndexFilePath: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] IndexFileContentsAsync: usize, } #[cfg(feature = "deprecated")] @@ -57,10 +54,7 @@ impl windows_core::RuntimeType for IResourceIndexerFactory { #[repr(C)] pub struct IResourceIndexerFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateResourceIndexer: 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 = "deprecated"))] - CreateResourceIndexer: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IResourceIndexerFactory2, IResourceIndexerFactory2_Vtbl, 0x6040f18d_d5e5_4b60_9201_cd279cbcfed9); @@ -72,10 +66,7 @@ impl windows_core::RuntimeType for IResourceIndexerFactory2 { #[repr(C)] pub struct IResourceIndexerFactory2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateResourceIndexerWithExtension: 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 = "deprecated"))] - CreateResourceIndexerWithExtension: usize, } #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -193,7 +184,6 @@ pub struct ResourceIndexer(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(ResourceIndexer, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl ResourceIndexer { - #[cfg(feature = "deprecated")] pub fn IndexFilePath(&self, filepath: P0) -> windows_core::Result where P0: windows_core::Param, @@ -204,7 +194,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(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn IndexFileContentsAsync(&self, file: P0) -> windows_core::Result>> where P0: windows_core::Param, @@ -215,7 +205,6 @@ impl ResourceIndexer { (windows_core::Interface::vtable(this).IndexFileContentsAsync)(windows_core::Interface::as_raw(this), file.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn CreateResourceIndexer(projectroot: P0) -> windows_core::Result where P0: windows_core::Param, @@ -225,7 +214,6 @@ impl ResourceIndexer { (windows_core::Interface::vtable(this).CreateResourceIndexer)(windows_core::Interface::as_raw(this), projectroot.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn CreateResourceIndexerWithExtension(projectroot: P0, extensiondllpath: P1) -> 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 0e72ce7b0a..7dd3884cf6 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Search/mod.rs @@ -30,106 +30,31 @@ impl windows_core::RuntimeType for ISearchPane { #[repr(C)] pub struct ISearchPane_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub SetSearchHistoryEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetSearchHistoryEnabled: usize, - #[cfg(feature = "deprecated")] pub SearchHistoryEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SearchHistoryEnabled: usize, - #[cfg(feature = "deprecated")] pub SetSearchHistoryContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetSearchHistoryContext: usize, - #[cfg(feature = "deprecated")] pub SearchHistoryContext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SearchHistoryContext: usize, - #[cfg(feature = "deprecated")] pub SetPlaceholderText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetPlaceholderText: usize, - #[cfg(feature = "deprecated")] pub PlaceholderText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PlaceholderText: usize, - #[cfg(feature = "deprecated")] pub QueryText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - QueryText: usize, - #[cfg(feature = "deprecated")] pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Language: usize, - #[cfg(feature = "deprecated")] pub Visible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Visible: usize, - #[cfg(feature = "deprecated")] pub VisibilityChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - VisibilityChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveVisibilityChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveVisibilityChanged: usize, - #[cfg(feature = "deprecated")] pub QueryChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - QueryChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveQueryChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveQueryChanged: usize, - #[cfg(feature = "deprecated")] pub SuggestionsRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SuggestionsRequested: usize, - #[cfg(feature = "deprecated")] pub RemoveSuggestionsRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveSuggestionsRequested: usize, - #[cfg(feature = "deprecated")] pub QuerySubmitted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - QuerySubmitted: usize, - #[cfg(feature = "deprecated")] pub RemoveQuerySubmitted: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveQuerySubmitted: usize, - #[cfg(feature = "deprecated")] pub ResultSuggestionChosen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ResultSuggestionChosen: usize, - #[cfg(feature = "deprecated")] pub RemoveResultSuggestionChosen: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveResultSuggestionChosen: usize, - #[cfg(feature = "deprecated")] pub SetLocalContentSuggestionSettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetLocalContentSuggestionSettings: usize, - #[cfg(feature = "deprecated")] pub ShowOverloadDefault: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ShowOverloadDefault: usize, - #[cfg(feature = "deprecated")] pub ShowOverloadWithQuery: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ShowOverloadWithQuery: usize, - #[cfg(feature = "deprecated")] pub SetShowOnKeyboardInput: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetShowOnKeyboardInput: usize, - #[cfg(feature = "deprecated")] pub ShowOnKeyboardInput: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ShowOnKeyboardInput: usize, - #[cfg(feature = "deprecated")] pub TrySetQueryText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TrySetQueryText: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneQueryChangedEventArgs, ISearchPaneQueryChangedEventArgs_Vtbl, 0x3c064fe9_2351_4248_a529_7110f464a785); @@ -141,7 +66,6 @@ impl windows_core::RuntimeType for ISearchPaneQueryChangedEventArgs { windows_core::imp::interface_hierarchy!(ISearchPaneQueryChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl ISearchPaneQueryChangedEventArgs { - #[cfg(feature = "deprecated")] pub fn QueryText(&self) -> windows_core::Result { let this = self; unsafe { @@ -149,7 +73,6 @@ impl ISearchPaneQueryChangedEventArgs { (windows_core::Interface::vtable(this).QueryText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Language(&self) -> windows_core::Result { let this = self; unsafe { @@ -157,7 +80,6 @@ impl ISearchPaneQueryChangedEventArgs { (windows_core::Interface::vtable(this).Language)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn LinguisticDetails(&self) -> windows_core::Result { let this = self; unsafe { @@ -233,18 +155,9 @@ impl ISearchPaneQueryChangedEventArgs_Vtbl { #[repr(C)] pub struct ISearchPaneQueryChangedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub QueryText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - QueryText: usize, - #[cfg(feature = "deprecated")] pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Language: usize, - #[cfg(feature = "deprecated")] pub LinguisticDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LinguisticDetails: usize, } windows_core::imp::define_interface!(ISearchPaneQueryLinguisticDetails, ISearchPaneQueryLinguisticDetails_Vtbl, 0x82fb460e_0940_4b6d_b8d0_642b30989e15); impl windows_core::RuntimeType for ISearchPaneQueryLinguisticDetails { @@ -270,14 +183,8 @@ impl windows_core::RuntimeType for ISearchPaneQuerySubmittedEventArgs { #[repr(C)] pub struct ISearchPaneQuerySubmittedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub QueryText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - QueryText: usize, - #[cfg(feature = "deprecated")] pub Language: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Language: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails, ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails_Vtbl, 0x460c92e5_4c32_4538_a4d4_b6b4400d140f); @@ -289,10 +196,7 @@ impl windows_core::RuntimeType for ISearchPaneQuerySubmittedEventArgsWithLinguis #[repr(C)] pub struct ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub LinguisticDetails: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LinguisticDetails: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneResultSuggestionChosenEventArgs, ISearchPaneResultSuggestionChosenEventArgs_Vtbl, 0xc8316cc0_aed2_41e0_bce0_c26ca74f85ec); @@ -304,10 +208,7 @@ impl windows_core::RuntimeType for ISearchPaneResultSuggestionChosenEventArgs { #[repr(C)] pub struct ISearchPaneResultSuggestionChosenEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Tag: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Tag: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneStatics, ISearchPaneStatics_Vtbl, 0x9572adf1_8f1d_481f_a15b_c61655f16a0e); @@ -319,10 +220,7 @@ impl windows_core::RuntimeType for ISearchPaneStatics { #[repr(C)] pub struct ISearchPaneStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub GetForCurrentView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetForCurrentView: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneStaticsWithHideThisApplication, ISearchPaneStaticsWithHideThisApplication_Vtbl, 0x00732830_50f1_4d03_99ac_c6644c8ed8b5); @@ -334,10 +232,7 @@ impl windows_core::RuntimeType for ISearchPaneStaticsWithHideThisApplication { #[repr(C)] pub struct ISearchPaneStaticsWithHideThisApplication_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub HideThisApplication: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - HideThisApplication: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneSuggestionsRequest, ISearchPaneSuggestionsRequest_Vtbl, 0x81b10b1c_e561_4093_9b4d_2ad482794a53); @@ -349,18 +244,9 @@ impl windows_core::RuntimeType for ISearchPaneSuggestionsRequest { #[repr(C)] pub struct ISearchPaneSuggestionsRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub IsCanceled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsCanceled: usize, - #[cfg(feature = "deprecated")] pub SearchSuggestionCollection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SearchSuggestionCollection: usize, - #[cfg(feature = "deprecated")] pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetDeferral: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneSuggestionsRequestDeferral, ISearchPaneSuggestionsRequestDeferral_Vtbl, 0xa0d009f7_8748_4ee2_ad44_afa6be997c51); @@ -372,10 +258,7 @@ impl windows_core::RuntimeType for ISearchPaneSuggestionsRequestDeferral { #[repr(C)] pub struct ISearchPaneSuggestionsRequestDeferral_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Complete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Complete: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneSuggestionsRequestedEventArgs, ISearchPaneSuggestionsRequestedEventArgs_Vtbl, 0xc89b8a2f_ac56_4460_8d2f_80023bec4fc5); @@ -387,10 +270,7 @@ impl windows_core::RuntimeType for ISearchPaneSuggestionsRequestedEventArgs { #[repr(C)] pub struct ISearchPaneSuggestionsRequestedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Request: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Request: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISearchPaneVisibilityChangedEventArgs, ISearchPaneVisibilityChangedEventArgs_Vtbl, 0x3c4d3046_ac4b_49f2_97d6_020e6182cb9c); @@ -402,10 +282,7 @@ impl windows_core::RuntimeType for ISearchPaneVisibilityChangedEventArgs { #[repr(C)] pub struct ISearchPaneVisibilityChangedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Visible: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Visible: usize, } windows_core::imp::define_interface!(ISearchQueryLinguisticDetails, ISearchQueryLinguisticDetails_Vtbl, 0x46a1205b_69c9_4745_b72f_a8a4fc8f24ae); impl windows_core::RuntimeType for ISearchQueryLinguisticDetails { @@ -541,12 +418,10 @@ pub struct SearchPane(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPane, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SearchPane { - #[cfg(feature = "deprecated")] pub fn SetSearchHistoryEnabled(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSearchHistoryEnabled)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn SearchHistoryEnabled(&self) -> windows_core::Result { let this = self; unsafe { @@ -554,12 +429,10 @@ impl SearchPane { (windows_core::Interface::vtable(this).SearchHistoryEnabled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetSearchHistoryContext(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSearchHistoryContext)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn SearchHistoryContext(&self) -> windows_core::Result { let this = self; unsafe { @@ -567,12 +440,10 @@ impl SearchPane { (windows_core::Interface::vtable(this).SearchHistoryContext)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetPlaceholderText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPlaceholderText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn PlaceholderText(&self) -> windows_core::Result { let this = self; unsafe { @@ -580,7 +451,6 @@ impl SearchPane { (windows_core::Interface::vtable(this).PlaceholderText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn QueryText(&self) -> windows_core::Result { let this = self; unsafe { @@ -588,7 +458,6 @@ impl SearchPane { (windows_core::Interface::vtable(this).QueryText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Language(&self) -> windows_core::Result { let this = self; unsafe { @@ -596,7 +465,6 @@ impl SearchPane { (windows_core::Interface::vtable(this).Language)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Visible(&self) -> windows_core::Result { let this = self; unsafe { @@ -604,7 +472,6 @@ impl SearchPane { (windows_core::Interface::vtable(this).Visible)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn VisibilityChanged(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -615,12 +482,10 @@ impl SearchPane { (windows_core::Interface::vtable(this).VisibilityChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveVisibilityChanged(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveVisibilityChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn QueryChanged(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -631,12 +496,10 @@ impl SearchPane { (windows_core::Interface::vtable(this).QueryChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveQueryChanged(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveQueryChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn SuggestionsRequested(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -647,12 +510,10 @@ impl SearchPane { (windows_core::Interface::vtable(this).SuggestionsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveSuggestionsRequested(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSuggestionsRequested)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn QuerySubmitted(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -663,12 +524,10 @@ impl SearchPane { (windows_core::Interface::vtable(this).QuerySubmitted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveQuerySubmitted(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveQuerySubmitted)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn ResultSuggestionChosen(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -679,12 +538,10 @@ impl SearchPane { (windows_core::Interface::vtable(this).ResultSuggestionChosen)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveResultSuggestionChosen(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveResultSuggestionChosen)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn SetLocalContentSuggestionSettings(&self, settings: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -692,22 +549,18 @@ impl SearchPane { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLocalContentSuggestionSettings)(windows_core::Interface::as_raw(this), settings.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn ShowOverloadDefault(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).ShowOverloadDefault)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn ShowOverloadWithQuery(&self, query: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).ShowOverloadWithQuery)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(query)).ok() } } - #[cfg(feature = "deprecated")] pub fn SetShowOnKeyboardInput(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetShowOnKeyboardInput)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn ShowOnKeyboardInput(&self) -> windows_core::Result { let this = self; unsafe { @@ -715,7 +568,6 @@ impl SearchPane { (windows_core::Interface::vtable(this).ShowOnKeyboardInput)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn TrySetQueryText(&self, query: &windows_core::HSTRING) -> windows_core::Result { let this = self; unsafe { @@ -723,14 +575,12 @@ impl SearchPane { (windows_core::Interface::vtable(this).TrySetQueryText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(query), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn GetForCurrentView() -> windows_core::Result { Self::ISearchPaneStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetForCurrentView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn HideThisApplication() -> windows_core::Result<()> { Self::ISearchPaneStaticsWithHideThisApplication(|this| unsafe { (windows_core::Interface::vtable(this).HideThisApplication)(windows_core::Interface::as_raw(this)).ok() }) } @@ -764,7 +614,6 @@ pub struct SearchPaneQueryChangedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPaneQueryChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable, ISearchPaneQueryChangedEventArgs); #[cfg(feature = "deprecated")] impl SearchPaneQueryChangedEventArgs { - #[cfg(feature = "deprecated")] pub fn QueryText(&self) -> windows_core::Result { let this = self; unsafe { @@ -772,7 +621,6 @@ impl SearchPaneQueryChangedEventArgs { (windows_core::Interface::vtable(this).QueryText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Language(&self) -> windows_core::Result { let this = self; unsafe { @@ -780,7 +628,6 @@ impl SearchPaneQueryChangedEventArgs { (windows_core::Interface::vtable(this).Language)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn LinguisticDetails(&self) -> windows_core::Result { let this = self; unsafe { @@ -854,7 +701,6 @@ pub struct SearchPaneQuerySubmittedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPaneQuerySubmittedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SearchPaneQuerySubmittedEventArgs { - #[cfg(feature = "deprecated")] pub fn QueryText(&self) -> windows_core::Result { let this = self; unsafe { @@ -862,7 +708,6 @@ impl SearchPaneQuerySubmittedEventArgs { (windows_core::Interface::vtable(this).QueryText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Language(&self) -> windows_core::Result { let this = self; unsafe { @@ -870,7 +715,6 @@ impl SearchPaneQuerySubmittedEventArgs { (windows_core::Interface::vtable(this).Language)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn LinguisticDetails(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -904,7 +748,6 @@ pub struct SearchPaneResultSuggestionChosenEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPaneResultSuggestionChosenEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SearchPaneResultSuggestionChosenEventArgs { - #[cfg(feature = "deprecated")] pub fn Tag(&self) -> windows_core::Result { let this = self; unsafe { @@ -938,7 +781,6 @@ pub struct SearchPaneSuggestionsRequest(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequest, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SearchPaneSuggestionsRequest { - #[cfg(feature = "deprecated")] pub fn IsCanceled(&self) -> windows_core::Result { let this = self; unsafe { @@ -946,7 +788,6 @@ impl SearchPaneSuggestionsRequest { (windows_core::Interface::vtable(this).IsCanceled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SearchSuggestionCollection(&self) -> windows_core::Result { let this = self; unsafe { @@ -954,7 +795,6 @@ impl SearchPaneSuggestionsRequest { (windows_core::Interface::vtable(this).SearchSuggestionCollection)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn GetDeferral(&self) -> windows_core::Result { let this = self; unsafe { @@ -988,7 +828,6 @@ pub struct SearchPaneSuggestionsRequestDeferral(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequestDeferral, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SearchPaneSuggestionsRequestDeferral { - #[cfg(feature = "deprecated")] pub fn Complete(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Complete)(windows_core::Interface::as_raw(this)).ok() } @@ -1021,7 +860,6 @@ windows_core::imp::interface_hierarchy!(SearchPaneSuggestionsRequestedEventArgs, windows_core::imp::required_hierarchy!(SearchPaneSuggestionsRequestedEventArgs, ISearchPaneQueryChangedEventArgs); #[cfg(feature = "deprecated")] impl SearchPaneSuggestionsRequestedEventArgs { - #[cfg(feature = "deprecated")] pub fn QueryText(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1029,7 +867,6 @@ impl SearchPaneSuggestionsRequestedEventArgs { (windows_core::Interface::vtable(this).QueryText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Language(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1037,7 +874,6 @@ impl SearchPaneSuggestionsRequestedEventArgs { (windows_core::Interface::vtable(this).Language)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn LinguisticDetails(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1045,7 +881,6 @@ impl SearchPaneSuggestionsRequestedEventArgs { (windows_core::Interface::vtable(this).LinguisticDetails)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn Request(&self) -> windows_core::Result { let this = self; unsafe { @@ -1079,7 +914,6 @@ pub struct SearchPaneVisibilityChangedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SearchPaneVisibilityChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SearchPaneVisibilityChangedEventArgs { - #[cfg(feature = "deprecated")] pub fn Visible(&self) -> windows_core::Result { let this = self; unsafe { 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 15196003a6..44a594975e 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/System/mod.rs @@ -8,26 +8,17 @@ impl windows_core::RuntimeType for IWalletItemSystemStore { #[repr(C)] pub struct IWalletItemSystemStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] GetItemsAsync: usize, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - DeleteAsync: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[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(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] ImportItemAsync: usize, - #[cfg(feature = "deprecated")] pub GetAppStatusForItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut WalletItemAppAssociation) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetAppStatusForItem: usize, - #[cfg(feature = "deprecated")] pub LaunchAppForItemAsync: 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 = "deprecated"))] - LaunchAppForItemAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletItemSystemStore2, IWalletItemSystemStore2_Vtbl, 0xf98d3a4e_be00_4fdd_9734_6c113c1ac1cb); @@ -39,14 +30,8 @@ impl windows_core::RuntimeType for IWalletItemSystemStore2 { #[repr(C)] pub struct IWalletItemSystemStore2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ItemsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ItemsChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveItemsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveItemsChanged: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletManagerSystemStatics, IWalletManagerSystemStatics_Vtbl, 0xbee8eb89_2634_4b9a_8b23_ee8903c91fe0); @@ -58,10 +43,7 @@ impl windows_core::RuntimeType for IWalletManagerSystemStatics { #[repr(C)] pub struct IWalletManagerSystemStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub RequestStoreAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RequestStoreAsync: usize, } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -85,7 +67,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(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn GetItemsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { @@ -93,7 +75,6 @@ impl WalletItemSystemStore { (windows_core::Interface::vtable(this).GetItemsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn DeleteAsync(&self, item: P0) -> windows_core::Result where P0: windows_core::Param, @@ -104,7 +85,7 @@ impl WalletItemSystemStore { (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn ImportItemAsync(&self, stream: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -115,7 +96,6 @@ impl WalletItemSystemStore { (windows_core::Interface::vtable(this).ImportItemAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn GetAppStatusForItem(&self, item: P0) -> windows_core::Result where P0: windows_core::Param, @@ -126,7 +106,6 @@ impl WalletItemSystemStore { (windows_core::Interface::vtable(this).GetAppStatusForItem)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn LaunchAppForItemAsync(&self, item: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -137,7 +116,6 @@ impl WalletItemSystemStore { (windows_core::Interface::vtable(this).LaunchAppForItemAsync)(windows_core::Interface::as_raw(this), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ItemsChanged(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -148,7 +126,6 @@ impl WalletItemSystemStore { (windows_core::Interface::vtable(this).ItemsChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveItemsChanged(&self, cookie: i64) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveItemsChanged)(windows_core::Interface::as_raw(this), cookie).ok() } @@ -175,7 +152,6 @@ unsafe impl Sync for WalletItemSystemStore {} pub struct WalletManagerSystem; #[cfg(feature = "deprecated")] impl WalletManagerSystem { - #[cfg(feature = "deprecated")] pub fn RequestStoreAsync() -> windows_core::Result> { Self::IWalletManagerSystemStatics(|this| 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 ce686bfcde..c38ca5eb5e 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Wallet/mod.rs @@ -10,17 +10,11 @@ impl windows_core::RuntimeType for IWalletBarcode { #[repr(C)] pub struct IWalletBarcode_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Symbology: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WalletBarcodeSymbology) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Symbology: usize, - #[cfg(feature = "deprecated")] pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Value: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub GetImageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] GetImageAsync: usize, } #[cfg(feature = "deprecated")] @@ -33,13 +27,10 @@ impl windows_core::RuntimeType for IWalletBarcodeFactory { #[repr(C)] pub struct IWalletBarcodeFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateWalletBarcode: unsafe extern "system" fn(*mut core::ffi::c_void, WalletBarcodeSymbology, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CreateWalletBarcode: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub CreateCustomWalletBarcode: 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 = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] CreateCustomWalletBarcode: usize, } #[cfg(feature = "deprecated")] @@ -52,213 +43,135 @@ impl windows_core::RuntimeType for IWalletItem { #[repr(C)] pub struct IWalletItem_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub DisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayName: usize, - #[cfg(feature = "deprecated")] pub SetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDisplayName: usize, - #[cfg(feature = "deprecated")] pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Id: usize, - #[cfg(feature = "deprecated")] pub IsAcknowledged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsAcknowledged: usize, - #[cfg(feature = "deprecated")] pub SetIsAcknowledged: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetIsAcknowledged: usize, - #[cfg(feature = "deprecated")] pub IssuerDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IssuerDisplayName: usize, - #[cfg(feature = "deprecated")] pub SetIssuerDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetIssuerDisplayName: usize, - #[cfg(feature = "deprecated")] pub LastUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LastUpdated: usize, - #[cfg(feature = "deprecated")] pub SetLastUpdated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetLastUpdated: usize, - #[cfg(feature = "deprecated")] pub Kind: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WalletItemKind) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Kind: usize, - #[cfg(feature = "deprecated")] pub Barcode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Barcode: usize, - #[cfg(feature = "deprecated")] pub SetBarcode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetBarcode: usize, - #[cfg(feature = "deprecated")] pub ExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExpirationDate: usize, - #[cfg(feature = "deprecated")] pub SetExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetExpirationDate: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub Logo159x159: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] Logo159x159: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetLogo159x159: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetLogo159x159: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub Logo336x336: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] Logo336x336: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetLogo336x336: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetLogo336x336: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub Logo99x99: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] Logo99x99: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetLogo99x99: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetLogo99x99: usize, - #[cfg(feature = "deprecated")] pub DisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayMessage: usize, - #[cfg(feature = "deprecated")] pub SetDisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDisplayMessage: usize, - #[cfg(feature = "deprecated")] pub IsDisplayMessageLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsDisplayMessageLaunchable: usize, - #[cfg(feature = "deprecated")] pub SetIsDisplayMessageLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetIsDisplayMessageLaunchable: usize, - #[cfg(feature = "deprecated")] pub LogoText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LogoText: usize, - #[cfg(feature = "deprecated")] pub SetLogoText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetLogoText: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub HeaderColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] HeaderColor: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub SetHeaderColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] SetHeaderColor: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub BodyColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] BodyColor: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub SetBodyColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] SetBodyColor: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub HeaderFontColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] HeaderFontColor: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub SetHeaderFontColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] SetHeaderFontColor: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub BodyFontColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] BodyFontColor: usize, - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub SetBodyFontColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::UI::Color) -> windows_core::HRESULT, - #[cfg(not(all(feature = "UI", feature = "deprecated")))] + #[cfg(not(feature = "UI"))] SetBodyFontColor: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub HeaderBackgroundImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] HeaderBackgroundImage: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetHeaderBackgroundImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetHeaderBackgroundImage: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub BodyBackgroundImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] BodyBackgroundImage: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetBodyBackgroundImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetBodyBackgroundImage: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub LogoImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] LogoImage: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetLogoImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetLogoImage: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub PromotionalImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] PromotionalImage: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetPromotionalImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetPromotionalImage: usize, - #[cfg(feature = "deprecated")] pub RelevantDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RelevantDate: usize, - #[cfg(feature = "deprecated")] pub SetRelevantDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetRelevantDate: usize, - #[cfg(feature = "deprecated")] pub RelevantDateDisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RelevantDateDisplayMessage: usize, - #[cfg(feature = "deprecated")] pub SetRelevantDateDisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetRelevantDateDisplayMessage: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] TransactionHistory: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] RelevantLocations: usize, - #[cfg(feature = "deprecated")] pub IsMoreTransactionHistoryLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsMoreTransactionHistoryLaunchable: usize, - #[cfg(feature = "deprecated")] pub SetIsMoreTransactionHistoryLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetIsMoreTransactionHistoryLaunchable: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] DisplayProperties: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] Verbs: usize, } #[cfg(feature = "deprecated")] @@ -271,46 +184,16 @@ impl windows_core::RuntimeType for IWalletItemCustomProperty { #[repr(C)] pub struct IWalletItemCustomProperty_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Name: usize, - #[cfg(feature = "deprecated")] pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetName: usize, - #[cfg(feature = "deprecated")] pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Value: usize, - #[cfg(feature = "deprecated")] pub SetValue: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetValue: usize, - #[cfg(feature = "deprecated")] pub AutoDetectLinks: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AutoDetectLinks: usize, - #[cfg(feature = "deprecated")] pub SetAutoDetectLinks: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAutoDetectLinks: usize, - #[cfg(feature = "deprecated")] pub DetailViewPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WalletDetailViewPosition) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DetailViewPosition: usize, - #[cfg(feature = "deprecated")] pub SetDetailViewPosition: unsafe extern "system" fn(*mut core::ffi::c_void, WalletDetailViewPosition) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDetailViewPosition: usize, - #[cfg(feature = "deprecated")] pub SummaryViewPosition: unsafe extern "system" fn(*mut core::ffi::c_void, *mut WalletSummaryViewPosition) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SummaryViewPosition: usize, - #[cfg(feature = "deprecated")] pub SetSummaryViewPosition: unsafe extern "system" fn(*mut core::ffi::c_void, WalletSummaryViewPosition) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetSummaryViewPosition: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletItemCustomPropertyFactory, IWalletItemCustomPropertyFactory_Vtbl, 0xd0046a44_61a1_41aa_b259_a5610ab5d575); @@ -322,10 +205,7 @@ impl windows_core::RuntimeType for IWalletItemCustomPropertyFactory { #[repr(C)] pub struct IWalletItemCustomPropertyFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateWalletItemCustomProperty: 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 = "deprecated"))] - CreateWalletItemCustomProperty: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletItemFactory, IWalletItemFactory_Vtbl, 0x53e27470_4f0b_4a3e_99e5_0bbb1eab38d4); @@ -337,10 +217,7 @@ impl windows_core::RuntimeType for IWalletItemFactory { #[repr(C)] pub struct IWalletItemFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateWalletItem: unsafe extern "system" fn(*mut core::ffi::c_void, WalletItemKind, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CreateWalletItem: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletItemStore, IWalletItemStore_Vtbl, 0x7160484b_6d49_48f8_91a9_40a1d0f13ef4); @@ -352,46 +229,25 @@ impl windows_core::RuntimeType for IWalletItemStore { #[repr(C)] pub struct IWalletItemStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] 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, - #[cfg(not(feature = "deprecated"))] - AddAsync: usize, - #[cfg(feature = "deprecated")] pub ClearAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ClearAsync: usize, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - GetWalletItemAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] GetItemsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] GetItemsWithKindAsync: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[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(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] ImportItemAsync: usize, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - DeleteAsync: usize, - #[cfg(feature = "deprecated")] pub ShowAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ShowAsync: usize, - #[cfg(feature = "deprecated")] pub ShowItemAsync: 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 = "deprecated"))] - ShowItemAsync: usize, - #[cfg(feature = "deprecated")] 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, - #[cfg(not(feature = "deprecated"))] - UpdateAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletItemStore2, IWalletItemStore2_Vtbl, 0x65e682f0_7009_4a15_bd54_4fff379bffe2); @@ -403,14 +259,8 @@ impl windows_core::RuntimeType for IWalletItemStore2 { #[repr(C)] pub struct IWalletItemStore2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ItemsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ItemsChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveItemsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveItemsChanged: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletManagerStatics, IWalletManagerStatics_Vtbl, 0x5111d6b8_c9a4_4c64_b4dd_e1e548001c0d); @@ -422,10 +272,7 @@ impl windows_core::RuntimeType for IWalletManagerStatics { #[repr(C)] pub struct IWalletManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub RequestStoreAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RequestStoreAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletRelevantLocation, IWalletRelevantLocation_Vtbl, 0x9fd8782a_e3f9_4de1_bab3_bb192e46b3f3); @@ -437,22 +284,16 @@ impl windows_core::RuntimeType for IWalletRelevantLocation { #[repr(C)] pub struct IWalletRelevantLocation_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Devices_Geolocation", feature = "deprecated"))] + #[cfg(feature = "Devices_Geolocation")] pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Devices::Geolocation::BasicGeoposition) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "deprecated")))] + #[cfg(not(feature = "Devices_Geolocation"))] Position: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "deprecated"))] + #[cfg(feature = "Devices_Geolocation")] pub SetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Devices::Geolocation::BasicGeoposition) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "deprecated")))] + #[cfg(not(feature = "Devices_Geolocation"))] SetPosition: usize, - #[cfg(feature = "deprecated")] pub DisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayMessage: usize, - #[cfg(feature = "deprecated")] pub SetDisplayMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDisplayMessage: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletTransaction, IWalletTransaction_Vtbl, 0x40e1e940_2606_4519_81cb_bff1c60d1f79); @@ -464,54 +305,18 @@ impl windows_core::RuntimeType for IWalletTransaction { #[repr(C)] pub struct IWalletTransaction_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Description: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Description: usize, - #[cfg(feature = "deprecated")] pub SetDescription: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDescription: usize, - #[cfg(feature = "deprecated")] pub DisplayAmount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayAmount: usize, - #[cfg(feature = "deprecated")] pub SetDisplayAmount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDisplayAmount: usize, - #[cfg(feature = "deprecated")] pub IgnoreTimeOfDay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IgnoreTimeOfDay: usize, - #[cfg(feature = "deprecated")] pub SetIgnoreTimeOfDay: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetIgnoreTimeOfDay: usize, - #[cfg(feature = "deprecated")] pub DisplayLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayLocation: usize, - #[cfg(feature = "deprecated")] pub SetDisplayLocation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDisplayLocation: usize, - #[cfg(feature = "deprecated")] pub TransactionDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TransactionDate: usize, - #[cfg(feature = "deprecated")] pub SetTransactionDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetTransactionDate: usize, - #[cfg(feature = "deprecated")] pub IsLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsLaunchable: usize, - #[cfg(feature = "deprecated")] pub SetIsLaunchable: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetIsLaunchable: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletVerb, IWalletVerb_Vtbl, 0x17b826d6_e3c1_4c74_8a94_217aadbc4884); @@ -523,14 +328,8 @@ impl windows_core::RuntimeType for IWalletVerb { #[repr(C)] pub struct IWalletVerb_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Name: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Name: usize, - #[cfg(feature = "deprecated")] pub SetName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetName: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IWalletVerbFactory, IWalletVerbFactory_Vtbl, 0x76012771_be58_4d5e_83ed_58b1669c7ad9); @@ -542,10 +341,7 @@ impl windows_core::RuntimeType for IWalletVerbFactory { #[repr(C)] pub struct IWalletVerbFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateWalletVerb: 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 = "deprecated"))] - CreateWalletVerb: usize, } #[repr(transparent)] #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] @@ -571,7 +367,6 @@ pub struct WalletBarcode(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WalletBarcode, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl WalletBarcode { - #[cfg(feature = "deprecated")] pub fn Symbology(&self) -> windows_core::Result { let this = self; unsafe { @@ -579,7 +374,6 @@ impl WalletBarcode { (windows_core::Interface::vtable(this).Symbology)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Value(&self) -> windows_core::Result { let this = self; unsafe { @@ -587,7 +381,7 @@ impl WalletBarcode { (windows_core::Interface::vtable(this).Value)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn GetImageAsync(&self) -> windows_core::Result> { let this = self; unsafe { @@ -595,14 +389,13 @@ impl WalletBarcode { (windows_core::Interface::vtable(this).GetImageAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn CreateWalletBarcode(symbology: WalletBarcodeSymbology, value: &windows_core::HSTRING) -> windows_core::Result { Self::IWalletBarcodeFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateWalletBarcode)(windows_core::Interface::as_raw(this), symbology, core::mem::transmute_copy(value), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn CreateCustomWalletBarcode(streamtobarcodeimage: P0) -> windows_core::Result where P0: windows_core::Param, @@ -691,7 +484,6 @@ pub struct WalletItem(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WalletItem, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl WalletItem { - #[cfg(feature = "deprecated")] pub fn DisplayName(&self) -> windows_core::Result { let this = self; unsafe { @@ -699,12 +491,10 @@ impl WalletItem { (windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = self; unsafe { @@ -712,7 +502,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn IsAcknowledged(&self) -> windows_core::Result { let this = self; unsafe { @@ -720,12 +509,10 @@ impl WalletItem { (windows_core::Interface::vtable(this).IsAcknowledged)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetIsAcknowledged(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsAcknowledged)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn IssuerDisplayName(&self) -> windows_core::Result { let this = self; unsafe { @@ -733,12 +520,10 @@ impl WalletItem { (windows_core::Interface::vtable(this).IssuerDisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetIssuerDisplayName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIssuerDisplayName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn LastUpdated(&self) -> windows_core::Result> { let this = self; unsafe { @@ -746,7 +531,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).LastUpdated)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetLastUpdated(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param>, @@ -754,7 +538,6 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLastUpdated)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn Kind(&self) -> windows_core::Result { let this = self; unsafe { @@ -762,7 +545,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Barcode(&self) -> windows_core::Result { let this = self; unsafe { @@ -770,7 +552,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).Barcode)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetBarcode(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -778,7 +559,6 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBarcode)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn ExpirationDate(&self) -> windows_core::Result> { let this = self; unsafe { @@ -786,7 +566,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).ExpirationDate)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetExpirationDate(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param>, @@ -794,7 +573,7 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetExpirationDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn Logo159x159(&self) -> windows_core::Result { let this = self; unsafe { @@ -802,7 +581,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).Logo159x159)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetLogo159x159(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -810,7 +589,7 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLogo159x159)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn Logo336x336(&self) -> windows_core::Result { let this = self; unsafe { @@ -818,7 +597,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).Logo336x336)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetLogo336x336(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -826,7 +605,7 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLogo336x336)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn Logo99x99(&self) -> windows_core::Result { let this = self; unsafe { @@ -834,7 +613,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).Logo99x99)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetLogo99x99(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -842,7 +621,6 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLogo99x99)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn DisplayMessage(&self) -> windows_core::Result { let this = self; unsafe { @@ -850,12 +628,10 @@ impl WalletItem { (windows_core::Interface::vtable(this).DisplayMessage)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetDisplayMessage(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn IsDisplayMessageLaunchable(&self) -> windows_core::Result { let this = self; unsafe { @@ -863,12 +639,10 @@ impl WalletItem { (windows_core::Interface::vtable(this).IsDisplayMessageLaunchable)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetIsDisplayMessageLaunchable(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsDisplayMessageLaunchable)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn LogoText(&self) -> windows_core::Result { let this = self; unsafe { @@ -876,12 +650,11 @@ impl WalletItem { (windows_core::Interface::vtable(this).LogoText)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetLogoText(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLogoText)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn HeaderColor(&self) -> windows_core::Result { let this = self; unsafe { @@ -889,12 +662,12 @@ impl WalletItem { (windows_core::Interface::vtable(this).HeaderColor)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn SetHeaderColor(&self, value: super::super::UI::Color) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetHeaderColor)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn BodyColor(&self) -> windows_core::Result { let this = self; unsafe { @@ -902,12 +675,12 @@ impl WalletItem { (windows_core::Interface::vtable(this).BodyColor)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn SetBodyColor(&self, value: super::super::UI::Color) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBodyColor)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn HeaderFontColor(&self) -> windows_core::Result { let this = self; unsafe { @@ -915,12 +688,12 @@ impl WalletItem { (windows_core::Interface::vtable(this).HeaderFontColor)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn SetHeaderFontColor(&self, value: super::super::UI::Color) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetHeaderFontColor)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn BodyFontColor(&self) -> windows_core::Result { let this = self; unsafe { @@ -928,12 +701,12 @@ impl WalletItem { (windows_core::Interface::vtable(this).BodyFontColor)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "UI", feature = "deprecated"))] + #[cfg(feature = "UI")] pub fn SetBodyFontColor(&self, value: super::super::UI::Color) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBodyFontColor)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn HeaderBackgroundImage(&self) -> windows_core::Result { let this = self; unsafe { @@ -941,7 +714,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).HeaderBackgroundImage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetHeaderBackgroundImage(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -949,7 +722,7 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetHeaderBackgroundImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn BodyBackgroundImage(&self) -> windows_core::Result { let this = self; unsafe { @@ -957,7 +730,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).BodyBackgroundImage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetBodyBackgroundImage(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -965,7 +738,7 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBodyBackgroundImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn LogoImage(&self) -> windows_core::Result { let this = self; unsafe { @@ -973,7 +746,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).LogoImage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetLogoImage(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -981,7 +754,7 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLogoImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn PromotionalImage(&self) -> windows_core::Result { let this = self; unsafe { @@ -989,7 +762,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).PromotionalImage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetPromotionalImage(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -997,7 +770,6 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPromotionalImage)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn RelevantDate(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1005,7 +777,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).RelevantDate)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetRelevantDate(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param>, @@ -1013,7 +784,6 @@ impl WalletItem { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRelevantDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn RelevantDateDisplayMessage(&self) -> windows_core::Result { let this = self; unsafe { @@ -1021,12 +791,11 @@ impl WalletItem { (windows_core::Interface::vtable(this).RelevantDateDisplayMessage)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetRelevantDateDisplayMessage(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetRelevantDateDisplayMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn TransactionHistory(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1034,7 +803,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).TransactionHistory)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn RelevantLocations(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1042,7 +811,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).RelevantLocations)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn IsMoreTransactionHistoryLaunchable(&self) -> windows_core::Result { let this = self; unsafe { @@ -1050,12 +818,11 @@ impl WalletItem { (windows_core::Interface::vtable(this).IsMoreTransactionHistoryLaunchable)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetIsMoreTransactionHistoryLaunchable(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsMoreTransactionHistoryLaunchable)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn DisplayProperties(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1063,7 +830,7 @@ impl WalletItem { (windows_core::Interface::vtable(this).DisplayProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn Verbs(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1071,7 +838,6 @@ impl WalletItem { (windows_core::Interface::vtable(this).Verbs)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn CreateWalletItem(kind: WalletItemKind, displayname: &windows_core::HSTRING) -> windows_core::Result { Self::IWalletItemFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1108,7 +874,6 @@ pub struct WalletItemCustomProperty(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WalletItemCustomProperty, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl WalletItemCustomProperty { - #[cfg(feature = "deprecated")] pub fn Name(&self) -> windows_core::Result { let this = self; unsafe { @@ -1116,12 +881,10 @@ impl WalletItemCustomProperty { (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn Value(&self) -> windows_core::Result { let this = self; unsafe { @@ -1129,12 +892,10 @@ impl WalletItemCustomProperty { (windows_core::Interface::vtable(this).Value)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetValue(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetValue)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn AutoDetectLinks(&self) -> windows_core::Result { let this = self; unsafe { @@ -1142,12 +903,10 @@ impl WalletItemCustomProperty { (windows_core::Interface::vtable(this).AutoDetectLinks)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAutoDetectLinks(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAutoDetectLinks)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn DetailViewPosition(&self) -> windows_core::Result { let this = self; unsafe { @@ -1155,12 +914,10 @@ impl WalletItemCustomProperty { (windows_core::Interface::vtable(this).DetailViewPosition)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetDetailViewPosition(&self, value: WalletDetailViewPosition) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDetailViewPosition)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn SummaryViewPosition(&self) -> windows_core::Result { let this = self; unsafe { @@ -1168,12 +925,10 @@ impl WalletItemCustomProperty { (windows_core::Interface::vtable(this).SummaryViewPosition)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetSummaryViewPosition(&self, value: WalletSummaryViewPosition) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSummaryViewPosition)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn CreateWalletItemCustomProperty(name: &windows_core::HSTRING, value: &windows_core::HSTRING) -> windows_core::Result { Self::IWalletItemCustomPropertyFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1228,7 +983,6 @@ pub struct WalletItemStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WalletItemStore, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl WalletItemStore { - #[cfg(feature = "deprecated")] pub fn AddAsync(&self, id: &windows_core::HSTRING, item: P1) -> windows_core::Result where P1: windows_core::Param, @@ -1239,7 +993,6 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).AddAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), item.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ClearAsync(&self) -> windows_core::Result { let this = self; unsafe { @@ -1247,7 +1000,6 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).ClearAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn GetWalletItemAsync(&self, id: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { @@ -1255,7 +1007,7 @@ 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(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn GetItemsAsync(&self) -> windows_core::Result>> { let this = self; unsafe { @@ -1263,7 +1015,7 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).GetItemsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn GetItemsWithKindAsync(&self, kind: WalletItemKind) -> windows_core::Result>> { let this = self; unsafe { @@ -1271,7 +1023,7 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).GetItemsWithKindAsync)(windows_core::Interface::as_raw(this), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn ImportItemAsync(&self, stream: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -1282,7 +1034,6 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).ImportItemAsync)(windows_core::Interface::as_raw(this), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn DeleteAsync(&self, id: &windows_core::HSTRING) -> windows_core::Result { let this = self; unsafe { @@ -1290,7 +1041,6 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).DeleteAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ShowAsync(&self) -> windows_core::Result { let this = self; unsafe { @@ -1298,7 +1048,6 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).ShowAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ShowItemAsync(&self, id: &windows_core::HSTRING) -> windows_core::Result { let this = self; unsafe { @@ -1306,7 +1055,6 @@ impl WalletItemStore { (windows_core::Interface::vtable(this).ShowItemAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(id), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn UpdateAsync(&self, item: P0) -> windows_core::Result where P0: windows_core::Param, @@ -1339,7 +1087,6 @@ unsafe impl Sync for WalletItemStore {} pub struct WalletManager; #[cfg(feature = "deprecated")] impl WalletManager { - #[cfg(feature = "deprecated")] pub fn RequestStoreAsync() -> windows_core::Result> { Self::IWalletManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1370,7 +1117,7 @@ impl WalletRelevantLocation { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(all(feature = "Devices_Geolocation", feature = "deprecated"))] + #[cfg(feature = "Devices_Geolocation")] pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { @@ -1378,12 +1125,11 @@ impl WalletRelevantLocation { (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "Devices_Geolocation", feature = "deprecated"))] + #[cfg(feature = "Devices_Geolocation")] pub fn SetPosition(&self, value: super::super::Devices::Geolocation::BasicGeoposition) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPosition)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn DisplayMessage(&self) -> windows_core::Result { let this = self; unsafe { @@ -1391,7 +1137,6 @@ impl WalletRelevantLocation { (windows_core::Interface::vtable(this).DisplayMessage)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetDisplayMessage(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayMessage)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } @@ -1443,7 +1188,6 @@ impl WalletTransaction { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn Description(&self) -> windows_core::Result { let this = self; unsafe { @@ -1451,12 +1195,10 @@ impl WalletTransaction { (windows_core::Interface::vtable(this).Description)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetDescription(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDescription)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn DisplayAmount(&self) -> windows_core::Result { let this = self; unsafe { @@ -1464,12 +1206,10 @@ impl WalletTransaction { (windows_core::Interface::vtable(this).DisplayAmount)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetDisplayAmount(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayAmount)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn IgnoreTimeOfDay(&self) -> windows_core::Result { let this = self; unsafe { @@ -1477,12 +1217,10 @@ impl WalletTransaction { (windows_core::Interface::vtable(this).IgnoreTimeOfDay)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetIgnoreTimeOfDay(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIgnoreTimeOfDay)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn DisplayLocation(&self) -> windows_core::Result { let this = self; unsafe { @@ -1490,12 +1228,10 @@ impl WalletTransaction { (windows_core::Interface::vtable(this).DisplayLocation)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetDisplayLocation(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDisplayLocation)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn TransactionDate(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1503,7 +1239,6 @@ impl WalletTransaction { (windows_core::Interface::vtable(this).TransactionDate)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetTransactionDate(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param>, @@ -1511,7 +1246,6 @@ impl WalletTransaction { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTransactionDate)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn IsLaunchable(&self) -> windows_core::Result { let this = self; unsafe { @@ -1519,7 +1253,6 @@ impl WalletTransaction { (windows_core::Interface::vtable(this).IsLaunchable)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetIsLaunchable(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsLaunchable)(windows_core::Interface::as_raw(this), value).ok() } @@ -1550,7 +1283,6 @@ pub struct WalletVerb(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(WalletVerb, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl WalletVerb { - #[cfg(feature = "deprecated")] pub fn Name(&self) -> windows_core::Result { let this = self; unsafe { @@ -1558,12 +1290,10 @@ impl WalletVerb { (windows_core::Interface::vtable(this).Name)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn CreateWalletVerb(name: &windows_core::HSTRING) -> windows_core::Result { Self::IWalletVerbFactory(|this| 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 72480d3002..a01de30fc7 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/mod.rs @@ -1541,7 +1541,10 @@ pub struct IPackageWithMetadata_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub InstallDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Foundation::DateTime) -> windows_core::HRESULT, pub GetThumbnailToken: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub Launch: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Launch: usize, } windows_core::imp::define_interface!(IStartupTask, IStartupTask_Vtbl, 0xf75c23c8_b5f2_4f6c_88dd_36cb1d599d17); impl windows_core::RuntimeType for IStartupTask { @@ -2147,6 +2150,7 @@ impl Package { (windows_core::Interface::vtable(this).GetThumbnailToken)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn Launch(&self, parameters: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).Launch)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(parameters)).ok() } 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 f808e56456..5330c38936 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/GenericAttributeProfile/mod.rs @@ -3,7 +3,7 @@ pub struct GattCharacteristic(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(GattCharacteristic, windows_core::IUnknown, windows_core::IInspectable); impl GattCharacteristic { - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetDescriptors(&self, descriptoruuid: windows_core::GUID) -> windows_core::Result> { let this = self; unsafe { @@ -129,7 +129,7 @@ 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetAllDescriptors(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -194,6 +194,7 @@ impl GattCharacteristic { (windows_core::Interface::vtable(this).WriteClientCharacteristicConfigurationDescriptorWithResultAsync)(windows_core::Interface::as_raw(this), clientcharacteristicconfigurationdescriptorvalue, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn ConvertShortIdToUuid(shortid: u16) -> windows_core::Result { Self::IGattCharacteristicStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -953,6 +954,7 @@ impl GattDescriptor { (windows_core::Interface::vtable(this).WriteValueWithResultAsync)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn ConvertShortIdToUuid(shortid: u16) -> windows_core::Result { Self::IGattDescriptorStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1072,7 +1074,7 @@ impl GattDeviceService { 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")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetCharacteristics(&self, characteristicuuid: windows_core::GUID) -> windows_core::Result> { let this = self; unsafe { @@ -1080,7 +1082,7 @@ impl GattDeviceService { (windows_core::Interface::vtable(this).GetCharacteristics)(windows_core::Interface::as_raw(this), characteristicuuid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetIncludedServices(&self, serviceuuid: windows_core::GUID) -> windows_core::Result> { let this = self; unsafe { @@ -1109,6 +1111,7 @@ impl GattDeviceService { (windows_core::Interface::vtable(this).AttributeHandle)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn Device(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1116,7 +1119,7 @@ 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn ParentServices(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1124,7 +1127,7 @@ impl GattDeviceService { (windows_core::Interface::vtable(this).ParentServices)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetAllCharacteristics(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1132,7 +1135,7 @@ impl GattDeviceService { (windows_core::Interface::vtable(this).GetAllCharacteristics)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetAllIncludedServices(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1245,12 +1248,14 @@ impl GattDeviceService { (windows_core::Interface::vtable(this).GetDeviceSelectorFromUuid)(windows_core::Interface::as_raw(this), serviceuuid, &mut result__).map(|| core::mem::transmute(result__)) }) } + #[cfg(feature = "deprecated")] pub fn GetDeviceSelectorFromShortId(serviceshortid: u16) -> windows_core::Result { Self::IGattDeviceServiceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDeviceSelectorFromShortId)(windows_core::Interface::as_raw(this), serviceshortid, &mut result__).map(|| core::mem::transmute(result__)) }) } + #[cfg(feature = "deprecated")] pub fn ConvertShortIdToUuid(shortid: u16) -> windows_core::Result { Self::IGattDeviceServiceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3286,9 +3291,9 @@ impl windows_core::RuntimeType for IGattCharacteristic { #[repr(C)] pub struct IGattCharacteristic_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", 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, @@ -3323,9 +3328,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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub GetAllDescriptors: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetAllDescriptors: usize, } windows_core::imp::define_interface!(IGattCharacteristic3, IGattCharacteristic3_Vtbl, 0x3f3c663e_93d4_406b_b817_db81f8ed53b3); @@ -3356,7 +3361,10 @@ impl windows_core::RuntimeType for IGattCharacteristicStatics { #[repr(C)] pub struct IGattCharacteristicStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub ConvertShortIdToUuid: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::GUID) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + ConvertShortIdToUuid: usize, } windows_core::imp::define_interface!(IGattCharacteristicUuidsStatics, IGattCharacteristicUuidsStatics_Vtbl, 0x58fa4586_b1de_470c_b7de_0d11ff44f4b7); impl windows_core::RuntimeType for IGattCharacteristicUuidsStatics { @@ -3526,7 +3534,10 @@ impl windows_core::RuntimeType for IGattDescriptorStatics { #[repr(C)] pub struct IGattDescriptorStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub ConvertShortIdToUuid: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::GUID) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + ConvertShortIdToUuid: usize, } windows_core::imp::define_interface!(IGattDescriptorUuidsStatics, IGattDescriptorUuidsStatics_Vtbl, 0xa6f862ce_9cfc_42f1_9185_ff37b75181d3); impl windows_core::RuntimeType for IGattDescriptorUuidsStatics { @@ -3563,13 +3574,13 @@ impl windows_core::RuntimeType for IGattDeviceService { #[repr(C)] pub struct IGattDeviceService_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetCharacteristics: usize, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", 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, @@ -3582,18 +3593,21 @@ impl windows_core::RuntimeType for IGattDeviceService2 { #[repr(C)] pub struct IGattDeviceService2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub Device: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(feature = "Foundation_Collections")] + #[cfg(not(feature = "deprecated"))] + Device: usize, + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub ParentServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] ParentServices: usize, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub GetAllCharacteristics: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetAllCharacteristics: usize, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub GetAllIncludedServices: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetAllIncludedServices: usize, } windows_core::imp::define_interface!(IGattDeviceService3, IGattDeviceService3_Vtbl, 0xb293a950_0c53_437c_a9b3_5c3210c6e569); @@ -3632,8 +3646,14 @@ pub struct IGattDeviceServiceStatics_Vtbl { pub base__: windows_core::IInspectable_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 GetDeviceSelectorFromUuid: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub GetDeviceSelectorFromShortId: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + GetDeviceSelectorFromShortId: usize, + #[cfg(feature = "deprecated")] pub ConvertShortIdToUuid: unsafe extern "system" fn(*mut core::ffi::c_void, u16, *mut windows_core::GUID) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + ConvertShortIdToUuid: usize, } windows_core::imp::define_interface!(IGattDeviceServiceStatics2, IGattDeviceServiceStatics2_Vtbl, 0x0604186e_24a6_4b0d_a2f2_30cc01545d25); impl windows_core::RuntimeType for IGattDeviceServiceStatics2 { diff --git a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs index ffed28731d..b9a033d2f7 100644 --- a/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Bluetooth/mod.rs @@ -276,7 +276,7 @@ impl BluetoothDevice { (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"))] + #[cfg(all(feature = "Devices_Bluetooth_Rfcomm", feature = "Foundation_Collections", feature = "deprecated"))] pub fn RfcommServices(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1077,7 +1077,7 @@ 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"))] + #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections", feature = "deprecated"))] pub fn GattServices(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1099,7 +1099,7 @@ impl BluetoothLEDevice { (windows_core::Interface::vtable(this).BluetoothAddress)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] + #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "deprecated"))] pub fn GetGattService(&self, serviceuuid: windows_core::GUID) -> windows_core::Result { let this = self; unsafe { @@ -1836,9 +1836,9 @@ pub struct IBluetoothDevice_Vtbl { 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")))] SdpRecords: usize, - #[cfg(all(feature = "Devices_Bluetooth_Rfcomm", feature = "Foundation_Collections"))] + #[cfg(all(feature = "Devices_Bluetooth_Rfcomm", feature = "Foundation_Collections", 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")))] + #[cfg(not(all(feature = "Devices_Bluetooth_Rfcomm", feature = "Foundation_Collections", 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,15 +2087,15 @@ 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"))] + #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections", 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")))] + #[cfg(not(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "Foundation_Collections", 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, - #[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")] + #[cfg(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "deprecated"))] pub GetGattService: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Devices_Bluetooth_GenericAttributeProfile"))] + #[cfg(not(all(feature = "Devices_Bluetooth_GenericAttributeProfile", feature = "deprecated")))] GetGattService: usize, pub NameChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveNameChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> 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 c691739553..3c36957461 100644 --- a/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Display/Core/mod.rs @@ -1985,6 +1985,7 @@ impl DisplayTaskPool { (windows_core::Interface::vtable(this).CreateTask)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn ExecuteTask(&self, task: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -2823,7 +2824,10 @@ impl windows_core::RuntimeType for IDisplayTaskPool { pub struct IDisplayTaskPool_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub CreateTask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub ExecuteTask: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + ExecuteTask: usize, } windows_core::imp::define_interface!(IDisplayTaskPool2, IDisplayTaskPool2_Vtbl, 0x46b879b6_5d17_5955_a872_eb38003db586); impl windows_core::RuntimeType for IDisplayTaskPool2 { diff --git a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs index b9c773a3a8..def604258b 100644 --- a/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Geolocation/mod.rs @@ -296,6 +296,7 @@ unsafe impl Sync for Geocircle {} pub struct Geocoordinate(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(Geocoordinate, windows_core::IUnknown, windows_core::IInspectable); impl Geocoordinate { + #[cfg(feature = "deprecated")] pub fn Latitude(&self) -> windows_core::Result { let this = self; unsafe { @@ -303,6 +304,7 @@ impl Geocoordinate { (windows_core::Interface::vtable(this).Latitude)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn Longitude(&self) -> windows_core::Result { let this = self; unsafe { @@ -310,6 +312,7 @@ impl Geocoordinate { (windows_core::Interface::vtable(this).Longitude)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn Altitude(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1082,9 +1085,18 @@ impl windows_core::RuntimeType for IGeocoordinate { #[repr(C)] pub struct IGeocoordinate_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub Latitude: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Latitude: usize, + #[cfg(feature = "deprecated")] pub Longitude: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Longitude: usize, + #[cfg(feature = "deprecated")] pub Altitude: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Altitude: usize, pub Accuracy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, pub AltitudeAccuracy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Heading: 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/Sensors/mod.rs b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs index 94bb2774e0..19e2c699c2 100644 --- a/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sensors/mod.rs @@ -1854,6 +1854,7 @@ impl HumanPresenceFeatures { (windows_core::Interface::vtable(this).IsLockOnLeaveSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn IsAttentionAwareDimmingSupported(&self) -> windows_core::Result { let this = self; unsafe { @@ -2280,6 +2281,7 @@ impl HumanPresenceSettings { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLockOnLeaveTimeout)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn IsAttentionAwareDimmingEnabled(&self) -> windows_core::Result { let this = self; unsafe { @@ -2287,6 +2289,7 @@ impl HumanPresenceSettings { (windows_core::Interface::vtable(this).IsAttentionAwareDimmingEnabled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn SetIsAttentionAwareDimmingEnabled(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsAttentionAwareDimmingEnabled)(windows_core::Interface::as_raw(this), value).ok() } @@ -3162,7 +3165,10 @@ pub struct IHumanPresenceFeatures_Vtbl { 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")] pub IsAttentionAwareDimmingSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + IsAttentionAwareDimmingSupported: usize, } windows_core::imp::define_interface!(IHumanPresenceFeatures2, IHumanPresenceFeatures2_Vtbl, 0x08a9cdda_d929_5ec2_81e2_940bafa089cf); impl windows_core::RuntimeType for IHumanPresenceFeatures2 { @@ -3445,8 +3451,14 @@ pub struct IHumanPresenceSettings_Vtbl { pub SetLockOnLeaveDistanceInMillimeters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub LockOnLeaveTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, pub SetLockOnLeaveTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub IsAttentionAwareDimmingEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + IsAttentionAwareDimmingEnabled: usize, + #[cfg(feature = "deprecated")] pub SetIsAttentionAwareDimmingEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetIsAttentionAwareDimmingEnabled: usize, } windows_core::imp::define_interface!(IHumanPresenceSettings2, IHumanPresenceSettings2_Vtbl, 0xa26f705e_8696_5eb4_b9e1_26a508de1cd4); impl windows_core::RuntimeType for IHumanPresenceSettings2 { diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index d1d864315c..f7be1d71c6 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -70,7 +70,6 @@ windows_core::imp::interface_hierarchy!(ISmsBinaryMessage, windows_core::IUnknow windows_core::imp::required_hierarchy!(ISmsBinaryMessage, ISmsMessage); #[cfg(feature = "deprecated")] impl ISmsBinaryMessage { - #[cfg(feature = "deprecated")] pub fn Format(&self) -> windows_core::Result { let this = self; unsafe { @@ -78,12 +77,10 @@ impl ISmsBinaryMessage { (windows_core::Interface::vtable(this).Format)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetFormat(&self, value: SmsDataFormat) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFormat)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn GetData(&self) -> windows_core::Result> { let this = self; unsafe { @@ -91,12 +88,10 @@ impl ISmsBinaryMessage { (windows_core::Interface::vtable(this).GetData)(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 = "deprecated")] pub fn SetData(&self, value: &[u8]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -104,7 +99,6 @@ impl ISmsBinaryMessage { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn MessageClass(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -181,22 +175,10 @@ impl ISmsBinaryMessage_Vtbl { #[repr(C)] pub struct ISmsBinaryMessage_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Format: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsDataFormat) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Format: usize, - #[cfg(feature = "deprecated")] pub SetFormat: unsafe extern "system" fn(*mut core::ffi::c_void, SmsDataFormat) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetFormat: usize, - #[cfg(feature = "deprecated")] pub GetData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetData: usize, - #[cfg(feature = "deprecated")] pub SetData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetData: usize, } windows_core::imp::define_interface!(ISmsBroadcastMessage, ISmsBroadcastMessage_Vtbl, 0x75aebbf1_e4b7_4874_a09c_2956e592f957); impl windows_core::RuntimeType for ISmsBroadcastMessage { @@ -226,7 +208,6 @@ impl windows_core::RuntimeType for ISmsDevice { windows_core::imp::interface_hierarchy!(ISmsDevice, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl ISmsDevice { - #[cfg(feature = "deprecated")] pub fn SendMessageAsync(&self, message: P0) -> windows_core::Result where P0: windows_core::Param, @@ -237,7 +218,6 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn CalculateLength(&self, message: P0) -> windows_core::Result where P0: windows_core::Param, @@ -248,7 +228,6 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn AccountPhoneNumber(&self) -> windows_core::Result { let this = self; unsafe { @@ -256,7 +235,6 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).AccountPhoneNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn CellularClass(&self) -> windows_core::Result { let this = self; unsafe { @@ -264,7 +242,6 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).CellularClass)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn MessageStore(&self) -> windows_core::Result { let this = self; unsafe { @@ -272,7 +249,6 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).MessageStore)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn DeviceStatus(&self) -> windows_core::Result { let this = self; unsafe { @@ -280,7 +256,6 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).DeviceStatus)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SmsMessageReceived(&self, eventhandler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -291,12 +266,10 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).SmsMessageReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveSmsMessageReceived(&self, eventcookie: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSmsMessageReceived)(windows_core::Interface::as_raw(this), eventcookie).ok() } } - #[cfg(feature = "deprecated")] pub fn SmsDeviceStatusChanged(&self, eventhandler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -307,7 +280,6 @@ impl ISmsDevice { (windows_core::Interface::vtable(this).SmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveSmsDeviceStatusChanged(&self, eventcookie: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventcookie).ok() } @@ -466,46 +438,16 @@ impl ISmsDevice_Vtbl { #[repr(C)] pub struct ISmsDevice_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub SendMessageAsync: 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 = "deprecated"))] - SendMessageAsync: usize, - #[cfg(feature = "deprecated")] pub CalculateLength: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut SmsEncodedLength) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CalculateLength: usize, - #[cfg(feature = "deprecated")] pub AccountPhoneNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AccountPhoneNumber: usize, - #[cfg(feature = "deprecated")] pub CellularClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut CellularClass) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CellularClass: usize, - #[cfg(feature = "deprecated")] pub MessageStore: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MessageStore: usize, - #[cfg(feature = "deprecated")] pub DeviceStatus: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsDeviceStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DeviceStatus: usize, - #[cfg(feature = "deprecated")] pub SmsMessageReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SmsMessageReceived: usize, - #[cfg(feature = "deprecated")] pub RemoveSmsMessageReceived: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveSmsMessageReceived: usize, - #[cfg(feature = "deprecated")] pub SmsDeviceStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SmsDeviceStatusChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveSmsDeviceStatusChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveSmsDeviceStatusChanged: usize, } windows_core::imp::define_interface!(ISmsDevice2, ISmsDevice2_Vtbl, 0xbd8a5c13_e522_46cb_b8d5_9ead30fb6c47); impl windows_core::RuntimeType for ISmsDevice2 { @@ -548,26 +490,14 @@ impl windows_core::RuntimeType for ISmsDeviceMessageStore { #[repr(C)] pub struct ISmsDeviceMessageStore_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub DeleteMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DeleteMessageAsync: usize, - #[cfg(feature = "deprecated")] pub DeleteMessagesAsync: unsafe extern "system" fn(*mut core::ffi::c_void, SmsMessageFilter, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DeleteMessagesAsync: usize, - #[cfg(feature = "deprecated")] pub GetMessageAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetMessageAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] GetMessagesAsync: usize, - #[cfg(feature = "deprecated")] pub MaxMessages: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MaxMessages: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISmsDeviceStatics, ISmsDeviceStatics_Vtbl, 0xf88d07ea_d815_4dd1_a234_4520ce4604a4); @@ -579,18 +509,9 @@ impl windows_core::RuntimeType for ISmsDeviceStatics { #[repr(C)] pub struct ISmsDeviceStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub GetDeviceSelector: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetDeviceSelector: usize, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - FromIdAsync: usize, - #[cfg(feature = "deprecated")] pub GetDefaultAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetDefaultAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISmsDeviceStatics2, ISmsDeviceStatics2_Vtbl, 0x2ca11c87_0873_4caf_8a7d_bd471e8586d1); @@ -602,10 +523,7 @@ impl windows_core::RuntimeType for ISmsDeviceStatics2 { #[repr(C)] pub struct ISmsDeviceStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub FromNetworkAccountIdAsync: 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 = "deprecated"))] - FromNetworkAccountIdAsync: usize, } windows_core::imp::define_interface!(ISmsFilterRule, ISmsFilterRule_Vtbl, 0x40e32fae_b049_4fbc_afe9_e2a610eff55c); impl windows_core::RuntimeType for ISmsFilterRule { @@ -911,14 +829,8 @@ impl windows_core::RuntimeType for ISmsMessageReceivedEventArgs { #[repr(C)] pub struct ISmsMessageReceivedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub TextMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TextMessage: usize, - #[cfg(feature = "deprecated")] pub BinaryMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - BinaryMessage: usize, } windows_core::imp::define_interface!(ISmsMessageReceivedTriggerDetails, ISmsMessageReceivedTriggerDetails_Vtbl, 0x2bcfcbd4_2657_4128_ad5f_e3877132bdb1); impl windows_core::RuntimeType for ISmsMessageReceivedTriggerDetails { @@ -972,14 +884,8 @@ impl windows_core::RuntimeType for ISmsReceivedEventDetails { #[repr(C)] pub struct ISmsReceivedEventDetails_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub DeviceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DeviceId: usize, - #[cfg(feature = "deprecated")] pub MessageIndex: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MessageIndex: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISmsReceivedEventDetails2, ISmsReceivedEventDetails2_Vtbl, 0x40e05c86_a7b4_4771_9ae7_0b5ffb12c03a); @@ -991,14 +897,8 @@ impl windows_core::RuntimeType for ISmsReceivedEventDetails2 { #[repr(C)] pub struct ISmsReceivedEventDetails2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub MessageClass: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsMessageClass) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MessageClass: usize, - #[cfg(feature = "deprecated")] pub BinaryMessage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - BinaryMessage: usize, } windows_core::imp::define_interface!(ISmsSendMessageResult, ISmsSendMessageResult_Vtbl, 0xdb139af2_78c9_4feb_9622_452328088d62); impl windows_core::RuntimeType for ISmsSendMessageResult { @@ -1045,7 +945,6 @@ windows_core::imp::interface_hierarchy!(ISmsTextMessage, windows_core::IUnknown, windows_core::imp::required_hierarchy!(ISmsTextMessage, ISmsMessage); #[cfg(feature = "deprecated")] impl ISmsTextMessage { - #[cfg(feature = "deprecated")] pub fn Timestamp(&self) -> windows_core::Result { let this = self; unsafe { @@ -1053,7 +952,6 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).Timestamp)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn PartReferenceId(&self) -> windows_core::Result { let this = self; unsafe { @@ -1061,7 +959,6 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).PartReferenceId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PartNumber(&self) -> windows_core::Result { let this = self; unsafe { @@ -1069,7 +966,6 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).PartNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PartCount(&self) -> windows_core::Result { let this = self; unsafe { @@ -1077,7 +973,6 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).PartCount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn To(&self) -> windows_core::Result { let this = self; unsafe { @@ -1085,12 +980,10 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).To)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetTo(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn From(&self) -> windows_core::Result { let this = self; unsafe { @@ -1098,12 +991,10 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).From)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetFrom(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFrom)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn Body(&self) -> windows_core::Result { let this = self; unsafe { @@ -1111,12 +1002,10 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).Body)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetBody(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBody)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn Encoding(&self) -> windows_core::Result { let this = self; unsafe { @@ -1124,12 +1013,11 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).Encoding)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetEncoding(&self, value: SmsEncoding) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEncoding)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result> { let this = self; unsafe { @@ -1137,7 +1025,6 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).ToBinaryMessages)(windows_core::Interface::as_raw(this), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1145,7 +1032,6 @@ impl ISmsTextMessage { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn MessageClass(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1338,57 +1224,21 @@ impl ISmsTextMessage_Vtbl { #[repr(C)] pub struct ISmsTextMessage_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Timestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Timestamp: usize, - #[cfg(feature = "deprecated")] pub PartReferenceId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PartReferenceId: usize, - #[cfg(feature = "deprecated")] pub PartNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PartNumber: usize, - #[cfg(feature = "deprecated")] pub PartCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PartCount: usize, - #[cfg(feature = "deprecated")] pub To: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - To: usize, - #[cfg(feature = "deprecated")] pub SetTo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetTo: usize, - #[cfg(feature = "deprecated")] pub From: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - From: usize, - #[cfg(feature = "deprecated")] pub SetFrom: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetFrom: usize, - #[cfg(feature = "deprecated")] pub Body: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Body: usize, - #[cfg(feature = "deprecated")] pub SetBody: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetBody: usize, - #[cfg(feature = "deprecated")] pub Encoding: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SmsEncoding) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Encoding: usize, - #[cfg(feature = "deprecated")] pub SetEncoding: unsafe extern "system" fn(*mut core::ffi::c_void, SmsEncoding) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetEncoding: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] ToBinaryMessages: usize, } windows_core::imp::define_interface!(ISmsTextMessage2, ISmsTextMessage2_Vtbl, 0x22a0d893_4555_4755_b5a1_e7fd84955f8d); @@ -1425,14 +1275,8 @@ impl windows_core::RuntimeType for ISmsTextMessageStatics { #[repr(C)] pub struct ISmsTextMessageStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub FromBinaryMessage: 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 = "deprecated"))] - FromBinaryMessage: usize, - #[cfg(feature = "deprecated")] pub FromBinaryData: unsafe extern "system" fn(*mut core::ffi::c_void, SmsDataFormat, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - FromBinaryData: usize, } windows_core::imp::define_interface!(ISmsVoicemailMessage, ISmsVoicemailMessage_Vtbl, 0x271aa0a6_95b1_44ff_bcb8_b8fdd7e08bc3); impl windows_core::RuntimeType for ISmsVoicemailMessage { @@ -1676,7 +1520,6 @@ impl SmsBinaryMessage { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn Format(&self) -> windows_core::Result { let this = self; unsafe { @@ -1684,12 +1527,10 @@ impl SmsBinaryMessage { (windows_core::Interface::vtable(this).Format)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetFormat(&self, value: SmsDataFormat) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFormat)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn GetData(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1697,12 +1538,10 @@ impl SmsBinaryMessage { (windows_core::Interface::vtable(this).GetData)(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 = "deprecated")] pub fn SetData(&self, value: &[u8]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetData)(windows_core::Interface::as_raw(this), value.len().try_into().unwrap(), value.as_ptr()).ok() } } - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1710,7 +1549,6 @@ impl SmsBinaryMessage { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn MessageClass(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1910,7 +1748,6 @@ pub struct SmsDevice(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SmsDevice, windows_core::IUnknown, windows_core::IInspectable, ISmsDevice); #[cfg(feature = "deprecated")] impl SmsDevice { - #[cfg(feature = "deprecated")] pub fn SendMessageAsync(&self, message: P0) -> windows_core::Result where P0: windows_core::Param, @@ -1921,7 +1758,6 @@ impl SmsDevice { (windows_core::Interface::vtable(this).SendMessageAsync)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn CalculateLength(&self, message: P0) -> windows_core::Result where P0: windows_core::Param, @@ -1932,7 +1768,6 @@ impl SmsDevice { (windows_core::Interface::vtable(this).CalculateLength)(windows_core::Interface::as_raw(this), message.param().abi(), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn AccountPhoneNumber(&self) -> windows_core::Result { let this = self; unsafe { @@ -1940,7 +1775,6 @@ impl SmsDevice { (windows_core::Interface::vtable(this).AccountPhoneNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn CellularClass(&self) -> windows_core::Result { let this = self; unsafe { @@ -1948,7 +1782,6 @@ impl SmsDevice { (windows_core::Interface::vtable(this).CellularClass)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn MessageStore(&self) -> windows_core::Result { let this = self; unsafe { @@ -1956,7 +1789,6 @@ impl SmsDevice { (windows_core::Interface::vtable(this).MessageStore)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn DeviceStatus(&self) -> windows_core::Result { let this = self; unsafe { @@ -1964,7 +1796,6 @@ impl SmsDevice { (windows_core::Interface::vtable(this).DeviceStatus)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SmsMessageReceived(&self, eventhandler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -1975,12 +1806,10 @@ impl SmsDevice { (windows_core::Interface::vtable(this).SmsMessageReceived)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveSmsMessageReceived(&self, eventcookie: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSmsMessageReceived)(windows_core::Interface::as_raw(this), eventcookie).ok() } } - #[cfg(feature = "deprecated")] pub fn SmsDeviceStatusChanged(&self, eventhandler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -1991,33 +1820,28 @@ impl SmsDevice { (windows_core::Interface::vtable(this).SmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventhandler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveSmsDeviceStatusChanged(&self, eventcookie: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSmsDeviceStatusChanged)(windows_core::Interface::as_raw(this), eventcookie).ok() } } - #[cfg(feature = "deprecated")] pub fn GetDeviceSelector() -> windows_core::Result { Self::ISmsDeviceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDeviceSelector)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "deprecated")] pub fn FromIdAsync(deviceid: &windows_core::HSTRING) -> windows_core::Result> { Self::ISmsDeviceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (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 = "deprecated")] pub fn GetDefaultAsync() -> windows_core::Result> { Self::ISmsDeviceStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDefaultAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn FromNetworkAccountIdAsync(networkaccountid: &windows_core::HSTRING) -> windows_core::Result> { Self::ISmsDeviceStatics2(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -2178,7 +2002,6 @@ pub struct SmsDeviceMessageStore(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SmsDeviceMessageStore, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SmsDeviceMessageStore { - #[cfg(feature = "deprecated")] pub fn DeleteMessageAsync(&self, messageid: u32) -> windows_core::Result { let this = self; unsafe { @@ -2186,7 +2009,6 @@ impl SmsDeviceMessageStore { (windows_core::Interface::vtable(this).DeleteMessageAsync)(windows_core::Interface::as_raw(this), messageid, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn DeleteMessagesAsync(&self, messagefilter: SmsMessageFilter) -> windows_core::Result { let this = self; unsafe { @@ -2194,7 +2016,6 @@ impl SmsDeviceMessageStore { (windows_core::Interface::vtable(this).DeleteMessagesAsync)(windows_core::Interface::as_raw(this), messagefilter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn GetMessageAsync(&self, messageid: u32) -> windows_core::Result> { let this = self; unsafe { @@ -2202,7 +2023,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(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn GetMessagesAsync(&self, messagefilter: SmsMessageFilter) -> windows_core::Result, i32>> { let this = self; unsafe { @@ -2210,7 +2031,6 @@ impl SmsDeviceMessageStore { (windows_core::Interface::vtable(this).GetMessagesAsync)(windows_core::Interface::as_raw(this), messagefilter, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn MaxMessages(&self) -> windows_core::Result { let this = self; unsafe { @@ -2610,7 +2430,6 @@ pub struct SmsMessageReceivedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SmsMessageReceivedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SmsMessageReceivedEventArgs { - #[cfg(feature = "deprecated")] pub fn TextMessage(&self) -> windows_core::Result { let this = self; unsafe { @@ -2618,7 +2437,6 @@ impl SmsMessageReceivedEventArgs { (windows_core::Interface::vtable(this).TextMessage)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn BinaryMessage(&self) -> windows_core::Result { let this = self; unsafe { @@ -2900,7 +2718,6 @@ pub struct SmsReceivedEventDetails(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SmsReceivedEventDetails, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SmsReceivedEventDetails { - #[cfg(feature = "deprecated")] pub fn DeviceId(&self) -> windows_core::Result { let this = self; unsafe { @@ -2908,7 +2725,6 @@ impl SmsReceivedEventDetails { (windows_core::Interface::vtable(this).DeviceId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn MessageIndex(&self) -> windows_core::Result { let this = self; unsafe { @@ -2916,7 +2732,6 @@ impl SmsReceivedEventDetails { (windows_core::Interface::vtable(this).MessageIndex)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn MessageClass(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2924,7 +2739,6 @@ impl SmsReceivedEventDetails { (windows_core::Interface::vtable(this).MessageClass)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn BinaryMessage(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3138,7 +2952,6 @@ impl SmsTextMessage { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3146,7 +2959,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn MessageClass(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3154,7 +2966,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).MessageClass)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Timestamp(&self) -> windows_core::Result { let this = self; unsafe { @@ -3162,7 +2973,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).Timestamp)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn PartReferenceId(&self) -> windows_core::Result { let this = self; unsafe { @@ -3170,7 +2980,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).PartReferenceId)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PartNumber(&self) -> windows_core::Result { let this = self; unsafe { @@ -3178,7 +2987,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).PartNumber)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PartCount(&self) -> windows_core::Result { let this = self; unsafe { @@ -3186,7 +2994,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).PartCount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn To(&self) -> windows_core::Result { let this = self; unsafe { @@ -3194,12 +3001,10 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).To)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetTo(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTo)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn From(&self) -> windows_core::Result { let this = self; unsafe { @@ -3207,12 +3012,10 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).From)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetFrom(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetFrom)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn Body(&self) -> windows_core::Result { let this = self; unsafe { @@ -3220,12 +3023,10 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).Body)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetBody(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBody)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn Encoding(&self) -> windows_core::Result { let this = self; unsafe { @@ -3233,12 +3034,11 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).Encoding)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetEncoding(&self, value: SmsEncoding) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEncoding)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ToBinaryMessages(&self, format: SmsDataFormat) -> windows_core::Result> { let this = self; unsafe { @@ -3246,7 +3046,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).ToBinaryMessages)(windows_core::Interface::as_raw(this), format, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn FromBinaryMessage(binarymessage: P0) -> windows_core::Result where P0: windows_core::Param, @@ -3256,7 +3055,6 @@ impl SmsTextMessage { (windows_core::Interface::vtable(this).FromBinaryMessage)(windows_core::Interface::as_raw(this), binarymessage.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn FromBinaryData(format: SmsDataFormat, value: &[u8]) -> windows_core::Result { Self::ISmsTextMessageStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs index c86dd07be4..6a8bc43e51 100644 --- a/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Foundation/Diagnostics/mod.rs @@ -797,7 +797,10 @@ impl windows_core::RuntimeType for ILoggingChannelFactory { #[repr(C)] pub struct ILoggingChannelFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] 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 = "deprecated"))] + Create: usize, } windows_core::imp::define_interface!(ILoggingChannelFactory2, ILoggingChannelFactory2_Vtbl, 0x4c6ef5dd_3b27_4dc9_99f0_299c6e4603a1); impl windows_core::RuntimeType for ILoggingChannelFactory2 { @@ -1654,6 +1657,7 @@ impl LoggingChannel { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn Create(name: &windows_core::HSTRING) -> windows_core::Result { Self::ILoggingChannelFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs index 11427d345d..29e277399b 100644 --- a/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs +++ b/crates/libs/windows/src/Windows/Globalization/NumberFormatting/mod.rs @@ -11,6 +11,7 @@ impl CurrencyFormatter { (windows_core::Interface::vtable(this).Currency)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetCurrency(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCurrency)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } @@ -490,7 +491,10 @@ impl windows_core::RuntimeType for ICurrencyFormatter { pub struct ICurrencyFormatter_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub Currency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub SetCurrency: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetCurrency: usize, } windows_core::imp::define_interface!(ICurrencyFormatter2, ICurrencyFormatter2_Vtbl, 0x072c2f1d_e7ba_4197_920e_247c92f7dea6); impl windows_core::RuntimeType for ICurrencyFormatter2 { diff --git a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs index 284687a7f6..61354b71b9 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs @@ -870,32 +870,27 @@ impl core::ops::Not for DisplayOrientations { pub struct DisplayProperties; #[cfg(feature = "deprecated")] impl DisplayProperties { - #[cfg(feature = "deprecated")] pub fn CurrentOrientation() -> windows_core::Result { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CurrentOrientation)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn NativeOrientation() -> windows_core::Result { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NativeOrientation)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn AutoRotationPreferences() -> windows_core::Result { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AutoRotationPreferences)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn SetAutoRotationPreferences(value: DisplayOrientations) -> windows_core::Result<()> { Self::IDisplayPropertiesStatics(|this| unsafe { (windows_core::Interface::vtable(this).SetAutoRotationPreferences)(windows_core::Interface::as_raw(this), value).ok() }) } - #[cfg(feature = "deprecated")] pub fn OrientationChanged(handler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -905,25 +900,21 @@ impl DisplayProperties { (windows_core::Interface::vtable(this).OrientationChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveOrientationChanged(token: i64) -> windows_core::Result<()> { Self::IDisplayPropertiesStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveOrientationChanged)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "deprecated")] pub fn ResolutionScale() -> windows_core::Result { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ResolutionScale)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn LogicalDpi() -> windows_core::Result { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).LogicalDpi)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn LogicalDpiChanged(handler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -933,18 +924,15 @@ impl DisplayProperties { (windows_core::Interface::vtable(this).LogicalDpiChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveLogicalDpiChanged(token: i64) -> windows_core::Result<()> { Self::IDisplayPropertiesStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveLogicalDpiChanged)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "deprecated")] pub fn StereoEnabled() -> windows_core::Result { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).StereoEnabled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn StereoEnabledChanged(handler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -954,18 +942,16 @@ impl DisplayProperties { (windows_core::Interface::vtable(this).StereoEnabledChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveStereoEnabledChanged(token: i64) -> windows_core::Result<()> { Self::IDisplayPropertiesStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveStereoEnabledChanged)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn GetColorProfileAsync() -> windows_core::Result> { Self::IDisplayPropertiesStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetColorProfileAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn ColorProfileChanged(handler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -975,11 +961,9 @@ impl DisplayProperties { (windows_core::Interface::vtable(this).ColorProfileChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveColorProfileChanged(token: i64) -> windows_core::Result<()> { Self::IDisplayPropertiesStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveColorProfileChanged)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "deprecated")] pub fn DisplayContentsInvalidated(handler: P0) -> windows_core::Result where P0: windows_core::Param, @@ -989,7 +973,6 @@ impl DisplayProperties { (windows_core::Interface::vtable(this).DisplayContentsInvalidated)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveDisplayContentsInvalidated(token: i64) -> windows_core::Result<()> { Self::IDisplayPropertiesStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveDisplayContentsInvalidated)(windows_core::Interface::as_raw(this), token).ok() }) } @@ -1352,78 +1335,27 @@ impl windows_core::RuntimeType for IDisplayPropertiesStatics { #[repr(C)] pub struct IDisplayPropertiesStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CurrentOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayOrientations) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CurrentOrientation: usize, - #[cfg(feature = "deprecated")] pub NativeOrientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayOrientations) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - NativeOrientation: usize, - #[cfg(feature = "deprecated")] pub AutoRotationPreferences: unsafe extern "system" fn(*mut core::ffi::c_void, *mut DisplayOrientations) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AutoRotationPreferences: usize, - #[cfg(feature = "deprecated")] pub SetAutoRotationPreferences: unsafe extern "system" fn(*mut core::ffi::c_void, DisplayOrientations) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAutoRotationPreferences: usize, - #[cfg(feature = "deprecated")] pub OrientationChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OrientationChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveOrientationChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveOrientationChanged: usize, - #[cfg(feature = "deprecated")] pub ResolutionScale: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ResolutionScale) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ResolutionScale: usize, - #[cfg(feature = "deprecated")] pub LogicalDpi: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LogicalDpi: usize, - #[cfg(feature = "deprecated")] pub LogicalDpiChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LogicalDpiChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveLogicalDpiChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveLogicalDpiChanged: usize, - #[cfg(feature = "deprecated")] pub StereoEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - StereoEnabled: usize, - #[cfg(feature = "deprecated")] pub StereoEnabledChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - StereoEnabledChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveStereoEnabledChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveStereoEnabledChanged: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub GetColorProfileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] GetColorProfileAsync: usize, - #[cfg(feature = "deprecated")] pub ColorProfileChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ColorProfileChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveColorProfileChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveColorProfileChanged: usize, - #[cfg(feature = "deprecated")] pub DisplayContentsInvalidated: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayContentsInvalidated: usize, - #[cfg(feature = "deprecated")] pub RemoveDisplayContentsInvalidated: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveDisplayContentsInvalidated: usize, } windows_core::imp::define_interface!(IDisplayServices, IDisplayServices_Vtbl, 0x1b54f32b_890d_5747_bd26_fdbdeb0c8a71); impl windows_core::RuntimeType for IDisplayServices { diff --git a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs index e18263c6a0..b379cb666a 100644 --- a/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Holographic/mod.rs @@ -660,12 +660,11 @@ windows_core::imp::interface_hierarchy!(HolographicFramePresentationMonitor, win windows_core::imp::required_hierarchy!(HolographicFramePresentationMonitor, super::super::Foundation::IClosable); #[cfg(feature = "deprecated")] impl HolographicFramePresentationMonitor { - #[cfg(feature = "deprecated")] pub fn Close(&self) -> windows_core::Result<()> { 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"))] + #[cfg(feature = "Foundation_Collections")] pub fn ReadReports(&self) -> windows_core::Result> { let this = self; unsafe { @@ -699,7 +698,6 @@ pub struct HolographicFramePresentationReport(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(HolographicFramePresentationReport, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl HolographicFramePresentationReport { - #[cfg(feature = "deprecated")] pub fn CompositorGpuDuration(&self) -> windows_core::Result { let this = self; unsafe { @@ -707,7 +705,6 @@ impl HolographicFramePresentationReport { (windows_core::Interface::vtable(this).CompositorGpuDuration)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn AppGpuDuration(&self) -> windows_core::Result { let this = self; unsafe { @@ -715,7 +712,6 @@ impl HolographicFramePresentationReport { (windows_core::Interface::vtable(this).AppGpuDuration)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn AppGpuOverrun(&self) -> windows_core::Result { let this = self; unsafe { @@ -723,7 +719,6 @@ impl HolographicFramePresentationReport { (windows_core::Interface::vtable(this).AppGpuOverrun)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn MissedPresentationOpportunityCount(&self) -> windows_core::Result { let this = self; unsafe { @@ -731,7 +726,6 @@ impl HolographicFramePresentationReport { (windows_core::Interface::vtable(this).MissedPresentationOpportunityCount)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PresentationCount(&self) -> windows_core::Result { let this = self; unsafe { @@ -1114,6 +1108,7 @@ impl HolographicSpace { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).WaitForNextFrameReadyWithHeadStart)(windows_core::Interface::as_raw(this), requestedheadstartduration).ok() } } + #[cfg(feature = "deprecated")] pub fn CreateFramePresentationMonitor(&self, maxqueuedreports: u32) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1700,9 +1695,9 @@ impl windows_core::RuntimeType for IHolographicFramePresentationMonitor { #[repr(C)] pub struct IHolographicFramePresentationMonitor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] ReadReports: usize, } #[cfg(feature = "deprecated")] @@ -1715,26 +1710,11 @@ impl windows_core::RuntimeType for IHolographicFramePresentationReport { #[repr(C)] pub struct IHolographicFramePresentationReport_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CompositorGpuDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CompositorGpuDuration: usize, - #[cfg(feature = "deprecated")] pub AppGpuDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AppGpuDuration: usize, - #[cfg(feature = "deprecated")] pub AppGpuOverrun: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AppGpuOverrun: usize, - #[cfg(feature = "deprecated")] pub MissedPresentationOpportunityCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MissedPresentationOpportunityCount: usize, - #[cfg(feature = "deprecated")] pub PresentationCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PresentationCount: usize, } windows_core::imp::define_interface!(IHolographicFrameRenderingReport, IHolographicFrameRenderingReport_Vtbl, 0x05f32de4_e384_51b3_b934_f0d3a0f78606); impl windows_core::RuntimeType for IHolographicFrameRenderingReport { @@ -1869,7 +1849,10 @@ pub struct IHolographicSpace2_Vtbl { pub RemoveUserPresenceChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub WaitForNextFrameReady: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub WaitForNextFrameReadyWithHeadStart: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub CreateFramePresentationMonitor: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + CreateFramePresentationMonitor: usize, } windows_core::imp::define_interface!(IHolographicSpace3, IHolographicSpace3_Vtbl, 0xdf1733d1_f224_587e_8d71_1e8fc8f07b1f); impl windows_core::RuntimeType for IHolographicSpace3 { diff --git a/crates/libs/windows/src/Windows/Media/Capture/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/mod.rs index 65a74127e1..b011a39a01 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/mod.rs @@ -5521,9 +5521,9 @@ pub struct IMediaCapture_Vtbl { pub CapturePhotoToStreamAsync: 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 = "Media_MediaProperties", feature = "Storage_Streams")))] CapturePhotoToStreamAsync: usize, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub AddEffectAsync: 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] AddEffectAsync: usize, pub ClearEffectsAsync: unsafe extern "system" fn(*mut core::ffi::c_void, MediaStreamType, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetEncoderProperty: unsafe extern "system" fn(*mut core::ffi::c_void, MediaStreamType, windows_core::GUID, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -6008,8 +6008,14 @@ pub struct IMediaCaptureVideoProfileMediaDescription_Vtbl { 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 FrameRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub IsVariablePhotoSequenceSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + IsVariablePhotoSequenceSupported: usize, + #[cfg(feature = "deprecated")] pub IsHdrVideoSupported: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + IsHdrVideoSupported: usize, } windows_core::imp::define_interface!(IMediaCaptureVideoProfileMediaDescription2, IMediaCaptureVideoProfileMediaDescription2_Vtbl, 0xc6a6ef13_322d_413a_b85a_68a88e02f4e9); impl windows_core::RuntimeType for IMediaCaptureVideoProfileMediaDescription2 { @@ -6405,7 +6411,7 @@ impl MediaCapture { (windows_core::Interface::vtable(this).CapturePhotoToStreamAsync)(windows_core::Interface::as_raw(this), r#type.param().abi(), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn AddEffectAsync(&self, mediastreamtype: MediaStreamType, effectactivationid: &windows_core::HSTRING, effectsettings: P2) -> windows_core::Result where P2: windows_core::Param, @@ -7756,6 +7762,7 @@ impl MediaCaptureVideoProfileMediaDescription { (windows_core::Interface::vtable(this).FrameRate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn IsVariablePhotoSequenceSupported(&self) -> windows_core::Result { let this = self; unsafe { @@ -7763,6 +7770,7 @@ impl MediaCaptureVideoProfileMediaDescription { (windows_core::Interface::vtable(this).IsVariablePhotoSequenceSupported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn IsHdrVideoSupported(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Media/Devices/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/mod.rs index f6d3a9b2df..9575592b2c 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/mod.rs @@ -2352,12 +2352,18 @@ 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] 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"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] SupportedPresets: usize, + #[cfg(feature = "deprecated")] pub Preset: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsoSpeedPreset) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Preset: usize, + #[cfg(feature = "deprecated")] pub SetPresetAsync: unsafe extern "system" fn(*mut core::ffi::c_void, IsoSpeedPreset, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetPresetAsync: usize, } windows_core::imp::define_interface!(IIsoSpeedControl2, IIsoSpeedControl2_Vtbl, 0x6f1578f2_6d77_4f8a_8c2f_6130b6395053); impl windows_core::RuntimeType for IIsoSpeedControl2 { @@ -2967,7 +2973,7 @@ impl IsoSpeedControl { (windows_core::Interface::vtable(this).Supported)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn SupportedPresets(&self) -> windows_core::Result> { let this = self; unsafe { @@ -2975,6 +2981,7 @@ impl IsoSpeedControl { (windows_core::Interface::vtable(this).SupportedPresets)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn Preset(&self) -> windows_core::Result { let this = self; unsafe { @@ -2982,6 +2989,7 @@ impl IsoSpeedControl { (windows_core::Interface::vtable(this).Preset)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn SetPresetAsync(&self, preset: IsoSpeedPreset) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Media/Effects/mod.rs b/crates/libs/windows/src/Windows/Media/Effects/mod.rs index d2a02e3564..df8673aad1 100644 --- a/crates/libs/windows/src/Windows/Media/Effects/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Effects/mod.rs @@ -209,14 +209,14 @@ impl windows_core::RuntimeType for AudioEffectType { } pub struct AudioEffectsManager; impl AudioEffectsManager { - #[cfg(feature = "Media_Render")] + #[cfg(all(feature = "Media_Render", feature = "deprecated"))] pub fn CreateAudioRenderEffectsManager(deviceid: &windows_core::HSTRING, category: super::Render::AudioRenderCategory) -> windows_core::Result { Self::IAudioEffectsManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).CreateAudioRenderEffectsManager)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(deviceid), category, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Media_Render")] + #[cfg(all(feature = "Media_Render", feature = "deprecated"))] pub fn CreateAudioRenderEffectsManagerWithMode(deviceid: &windows_core::HSTRING, category: super::Render::AudioRenderCategory, mode: super::AudioProcessing) -> windows_core::Result { Self::IAudioEffectsManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -245,10 +245,13 @@ impl AudioEffectsManager { impl windows_core::RuntimeName for AudioEffectsManager { const NAME: &'static str = "Windows.Media.Effects.AudioEffectsManager"; } +#[cfg(feature = "deprecated")] #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] pub struct AudioRenderEffectsManager(windows_core::IUnknown); +#[cfg(feature = "deprecated")] windows_core::imp::interface_hierarchy!(AudioRenderEffectsManager, windows_core::IUnknown, windows_core::IInspectable); +#[cfg(feature = "deprecated")] impl AudioRenderEffectsManager { pub fn AudioRenderEffectsChanged(&self, handler: P0) -> windows_core::Result where @@ -292,17 +295,22 @@ impl AudioRenderEffectsManager { unsafe { (windows_core::Interface::vtable(this).ShowSettingsUI)(windows_core::Interface::as_raw(this)).ok() } } } +#[cfg(feature = "deprecated")] impl windows_core::RuntimeType for AudioRenderEffectsManager { const SIGNATURE: windows_core::imp::ConstBuffer = windows_core::imp::ConstBuffer::for_class::(); } +#[cfg(feature = "deprecated")] unsafe impl windows_core::Interface for AudioRenderEffectsManager { type Vtable = ::Vtable; const IID: windows_core::GUID = ::IID; } +#[cfg(feature = "deprecated")] impl windows_core::RuntimeName for AudioRenderEffectsManager { const NAME: &'static str = "Windows.Media.Effects.AudioRenderEffectsManager"; } +#[cfg(feature = "deprecated")] unsafe impl Send for AudioRenderEffectsManager {} +#[cfg(feature = "deprecated")] unsafe impl Sync for AudioRenderEffectsManager {} #[repr(transparent)] #[derive(Clone, Debug, Eq, PartialEq)] @@ -498,13 +506,13 @@ impl windows_core::RuntimeType for IAudioEffectsManagerStatics { #[repr(C)] pub struct IAudioEffectsManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Media_Render")] + #[cfg(all(feature = "Media_Render", feature = "deprecated"))] pub CreateAudioRenderEffectsManager: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Render::AudioRenderCategory, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Media_Render"))] + #[cfg(not(all(feature = "Media_Render", feature = "deprecated")))] CreateAudioRenderEffectsManager: usize, - #[cfg(feature = "Media_Render")] + #[cfg(all(feature = "Media_Render", feature = "deprecated"))] pub CreateAudioRenderEffectsManagerWithMode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Render::AudioRenderCategory, super::AudioProcessing, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Media_Render"))] + #[cfg(not(all(feature = "Media_Render", feature = "deprecated")))] CreateAudioRenderEffectsManagerWithMode: usize, #[cfg(feature = "Media_Capture")] pub CreateAudioCaptureEffectsManager: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, super::Capture::MediaCategory, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -522,7 +530,10 @@ impl windows_core::RuntimeType for IAudioRenderEffectsManager { #[repr(C)] pub struct IAudioRenderEffectsManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub AudioRenderEffectsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + AudioRenderEffectsChanged: usize, 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, @@ -539,18 +550,12 @@ impl windows_core::RuntimeType for IAudioRenderEffectsManager2 { #[repr(C)] pub struct IAudioRenderEffectsManager2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub EffectsProviderThumbnail: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] EffectsProviderThumbnail: usize, - #[cfg(feature = "deprecated")] pub EffectsProviderSettingsLabel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - EffectsProviderSettingsLabel: usize, - #[cfg(feature = "deprecated")] pub ShowSettingsUI: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ShowSettingsUI: usize, } windows_core::imp::define_interface!(IBasicAudioEffect, IBasicAudioEffect_Vtbl, 0x8c062c53_6bc0_48b8_a99a_4b41550f1359); impl windows_core::RuntimeType for IBasicAudioEffect { diff --git a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs index da43c15fa4..e8af78396f 100644 --- a/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs +++ b/crates/libs/windows/src/Windows/Media/PlayTo/mod.rs @@ -49,34 +49,13 @@ impl windows_core::RuntimeType for IPlayToConnection { #[repr(C)] pub struct IPlayToConnection_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub State: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PlayToConnectionState) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - State: usize, - #[cfg(feature = "deprecated")] pub StateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - StateChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveStateChanged: usize, - #[cfg(feature = "deprecated")] pub Transferred: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Transferred: usize, - #[cfg(feature = "deprecated")] pub RemoveTransferred: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveTransferred: usize, - #[cfg(feature = "deprecated")] pub Error: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Error: usize, - #[cfg(feature = "deprecated")] pub RemoveError: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveError: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToConnectionErrorEventArgs, IPlayToConnectionErrorEventArgs_Vtbl, 0xbf5eada6_88e6_445f_9d40_d9b9f8939896); @@ -88,14 +67,8 @@ impl windows_core::RuntimeType for IPlayToConnectionErrorEventArgs { #[repr(C)] pub struct IPlayToConnectionErrorEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Code: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PlayToConnectionError) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Code: usize, - #[cfg(feature = "deprecated")] pub Message: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Message: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToConnectionStateChangedEventArgs, IPlayToConnectionStateChangedEventArgs_Vtbl, 0x68c4b50f_0c20_4980_8602_58c62238d423); @@ -107,14 +80,8 @@ impl windows_core::RuntimeType for IPlayToConnectionStateChangedEventArgs { #[repr(C)] pub struct IPlayToConnectionStateChangedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub PreviousState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PlayToConnectionState) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PreviousState: usize, - #[cfg(feature = "deprecated")] pub CurrentState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut PlayToConnectionState) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CurrentState: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToConnectionTransferredEventArgs, IPlayToConnectionTransferredEventArgs_Vtbl, 0xfae3193a_0683_47d9_8df0_18cbb48984d8); @@ -126,14 +93,8 @@ impl windows_core::RuntimeType for IPlayToConnectionTransferredEventArgs { #[repr(C)] pub struct IPlayToConnectionTransferredEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub PreviousSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PreviousSource: usize, - #[cfg(feature = "deprecated")] pub CurrentSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CurrentSource: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToManager, IPlayToManager_Vtbl, 0xf56a206e_1b77_42ef_8f0d_b949f8d9b260); @@ -145,30 +106,12 @@ impl windows_core::RuntimeType for IPlayToManager { #[repr(C)] pub struct IPlayToManager_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub SourceRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SourceRequested: usize, - #[cfg(feature = "deprecated")] pub RemoveSourceRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveSourceRequested: usize, - #[cfg(feature = "deprecated")] pub SourceSelected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SourceSelected: usize, - #[cfg(feature = "deprecated")] pub RemoveSourceSelected: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveSourceSelected: usize, - #[cfg(feature = "deprecated")] pub SetDefaultSourceSelection: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetDefaultSourceSelection: usize, - #[cfg(feature = "deprecated")] pub DefaultSourceSelection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DefaultSourceSelection: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToManagerStatics, IPlayToManagerStatics_Vtbl, 0x64e6a887_3982_4f3b_ba20_6155e435325b); @@ -180,14 +123,8 @@ impl windows_core::RuntimeType for IPlayToManagerStatics { #[repr(C)] pub struct IPlayToManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub GetForCurrentView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetForCurrentView: usize, - #[cfg(feature = "deprecated")] pub ShowPlayToUI: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ShowPlayToUI: usize, } windows_core::imp::define_interface!(IPlayToReceiver, IPlayToReceiver_Vtbl, 0xac15cf47_a162_4aa6_af1b_3aa35f3b9069); impl windows_core::RuntimeType for IPlayToReceiver { @@ -251,22 +188,10 @@ impl windows_core::RuntimeType for IPlayToSource { #[repr(C)] pub struct IPlayToSource_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Connection: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Connection: usize, - #[cfg(feature = "deprecated")] pub Next: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Next: usize, - #[cfg(feature = "deprecated")] pub SetNext: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetNext: usize, - #[cfg(feature = "deprecated")] pub PlayNext: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PlayNext: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToSourceDeferral, IPlayToSourceDeferral_Vtbl, 0x4100891d_278e_4f29_859b_a9e501053e7d); @@ -278,10 +203,7 @@ impl windows_core::RuntimeType for IPlayToSourceDeferral { #[repr(C)] pub struct IPlayToSourceDeferral_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Complete: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Complete: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToSourceRequest, IPlayToSourceRequest_Vtbl, 0xf8584665_64f4_44a0_ac0d_468d2b8fda83); @@ -293,22 +215,10 @@ impl windows_core::RuntimeType for IPlayToSourceRequest { #[repr(C)] pub struct IPlayToSourceRequest_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Deadline: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Deadline: usize, - #[cfg(feature = "deprecated")] pub DisplayErrorString: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - DisplayErrorString: usize, - #[cfg(feature = "deprecated")] pub GetDeferral: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetDeferral: usize, - #[cfg(feature = "deprecated")] pub SetSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetSource: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToSourceRequestedEventArgs, IPlayToSourceRequestedEventArgs_Vtbl, 0xc5cdc330_29df_4ec6_9da9_9fbdfcfc1b3e); @@ -320,10 +230,7 @@ impl windows_core::RuntimeType for IPlayToSourceRequestedEventArgs { #[repr(C)] pub struct IPlayToSourceRequestedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub SourceRequest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SourceRequest: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToSourceSelectedEventArgs, IPlayToSourceSelectedEventArgs_Vtbl, 0x0c9d8511_5202_4dcb_8c67_abda12bb3c12); @@ -335,26 +242,14 @@ impl windows_core::RuntimeType for IPlayToSourceSelectedEventArgs { #[repr(C)] pub struct IPlayToSourceSelectedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub FriendlyName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - FriendlyName: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub Icon: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] Icon: usize, - #[cfg(feature = "deprecated")] pub SupportsImage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SupportsImage: usize, - #[cfg(feature = "deprecated")] pub SupportsAudio: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SupportsAudio: usize, - #[cfg(feature = "deprecated")] pub SupportsVideo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SupportsVideo: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IPlayToSourceWithPreferredSourceUri, IPlayToSourceWithPreferredSourceUri_Vtbl, 0xaab253eb_3301_4dc4_afba_b2f2ed9635a0); @@ -366,14 +261,8 @@ impl windows_core::RuntimeType for IPlayToSourceWithPreferredSourceUri { #[repr(C)] pub struct IPlayToSourceWithPreferredSourceUri_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub PreferredSourceUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PreferredSourceUri: usize, - #[cfg(feature = "deprecated")] pub SetPreferredSourceUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetPreferredSourceUri: usize, } windows_core::imp::define_interface!(IPlaybackRateChangeRequestedEventArgs, IPlaybackRateChangeRequestedEventArgs_Vtbl, 0x0f5661ae_2c88_4cca_8540_d586095d13a5); impl windows_core::RuntimeType for IPlaybackRateChangeRequestedEventArgs { @@ -451,7 +340,6 @@ pub struct PlayToConnection(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToConnection, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToConnection { - #[cfg(feature = "deprecated")] pub fn State(&self) -> windows_core::Result { let this = self; unsafe { @@ -459,7 +347,6 @@ impl PlayToConnection { (windows_core::Interface::vtable(this).State)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn StateChanged(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -470,12 +357,10 @@ impl PlayToConnection { (windows_core::Interface::vtable(this).StateChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveStateChanged(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveStateChanged)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn Transferred(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -486,12 +371,10 @@ impl PlayToConnection { (windows_core::Interface::vtable(this).Transferred)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveTransferred(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveTransferred)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn Error(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -502,7 +385,6 @@ impl PlayToConnection { (windows_core::Interface::vtable(this).Error)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveError(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveError)(windows_core::Interface::as_raw(this), token).ok() } @@ -549,7 +431,6 @@ pub struct PlayToConnectionErrorEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToConnectionErrorEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToConnectionErrorEventArgs { - #[cfg(feature = "deprecated")] pub fn Code(&self) -> windows_core::Result { let this = self; unsafe { @@ -557,7 +438,6 @@ impl PlayToConnectionErrorEventArgs { (windows_core::Interface::vtable(this).Code)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Message(&self) -> windows_core::Result { let this = self; unsafe { @@ -605,7 +485,6 @@ pub struct PlayToConnectionStateChangedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToConnectionStateChangedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToConnectionStateChangedEventArgs { - #[cfg(feature = "deprecated")] pub fn PreviousState(&self) -> windows_core::Result { let this = self; unsafe { @@ -613,7 +492,6 @@ impl PlayToConnectionStateChangedEventArgs { (windows_core::Interface::vtable(this).PreviousState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn CurrentState(&self) -> windows_core::Result { let this = self; unsafe { @@ -647,7 +525,6 @@ pub struct PlayToConnectionTransferredEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToConnectionTransferredEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToConnectionTransferredEventArgs { - #[cfg(feature = "deprecated")] pub fn PreviousSource(&self) -> windows_core::Result { let this = self; unsafe { @@ -655,7 +532,6 @@ impl PlayToConnectionTransferredEventArgs { (windows_core::Interface::vtable(this).PreviousSource)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn CurrentSource(&self) -> windows_core::Result { let this = self; unsafe { @@ -689,7 +565,6 @@ pub struct PlayToManager(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToManager, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToManager { - #[cfg(feature = "deprecated")] pub fn SourceRequested(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -700,12 +575,10 @@ impl PlayToManager { (windows_core::Interface::vtable(this).SourceRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveSourceRequested(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSourceRequested)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn SourceSelected(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -716,17 +589,14 @@ impl PlayToManager { (windows_core::Interface::vtable(this).SourceSelected)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveSourceSelected(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSourceSelected)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn SetDefaultSourceSelection(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetDefaultSourceSelection)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn DefaultSourceSelection(&self) -> windows_core::Result { let this = self; unsafe { @@ -734,14 +604,12 @@ impl PlayToManager { (windows_core::Interface::vtable(this).DefaultSourceSelection)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn GetForCurrentView() -> windows_core::Result { Self::IPlayToManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetForCurrentView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn ShowPlayToUI() -> windows_core::Result<()> { Self::IPlayToManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).ShowPlayToUI)(windows_core::Interface::as_raw(this)).ok() }) } @@ -1038,7 +906,6 @@ pub struct PlayToSource(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToSource, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToSource { - #[cfg(feature = "deprecated")] pub fn Connection(&self) -> windows_core::Result { let this = self; unsafe { @@ -1046,7 +913,6 @@ impl PlayToSource { (windows_core::Interface::vtable(this).Connection)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn Next(&self) -> windows_core::Result { let this = self; unsafe { @@ -1054,7 +920,6 @@ impl PlayToSource { (windows_core::Interface::vtable(this).Next)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetNext(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1062,12 +927,10 @@ impl PlayToSource { let this = self; unsafe { (windows_core::Interface::vtable(this).SetNext)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn PlayNext(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).PlayNext)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn PreferredSourceUri(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1075,7 +938,6 @@ impl PlayToSource { (windows_core::Interface::vtable(this).PreferredSourceUri)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetPreferredSourceUri(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1109,7 +971,6 @@ pub struct PlayToSourceDeferral(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToSourceDeferral, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToSourceDeferral { - #[cfg(feature = "deprecated")] pub fn Complete(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Complete)(windows_core::Interface::as_raw(this)).ok() } @@ -1140,7 +1001,6 @@ pub struct PlayToSourceRequest(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToSourceRequest, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToSourceRequest { - #[cfg(feature = "deprecated")] pub fn Deadline(&self) -> windows_core::Result { let this = self; unsafe { @@ -1148,12 +1008,10 @@ impl PlayToSourceRequest { (windows_core::Interface::vtable(this).Deadline)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn DisplayErrorString(&self, errorstring: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).DisplayErrorString)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(errorstring)).ok() } } - #[cfg(feature = "deprecated")] pub fn GetDeferral(&self) -> windows_core::Result { let this = self; unsafe { @@ -1161,7 +1019,6 @@ impl PlayToSourceRequest { (windows_core::Interface::vtable(this).GetDeferral)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetSource(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1195,7 +1052,6 @@ pub struct PlayToSourceRequestedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToSourceRequestedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToSourceRequestedEventArgs { - #[cfg(feature = "deprecated")] pub fn SourceRequest(&self) -> windows_core::Result { let this = self; unsafe { @@ -1229,7 +1085,6 @@ pub struct PlayToSourceSelectedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(PlayToSourceSelectedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl PlayToSourceSelectedEventArgs { - #[cfg(feature = "deprecated")] pub fn FriendlyName(&self) -> windows_core::Result { let this = self; unsafe { @@ -1237,7 +1092,7 @@ impl PlayToSourceSelectedEventArgs { (windows_core::Interface::vtable(this).FriendlyName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn Icon(&self) -> windows_core::Result { let this = self; unsafe { @@ -1245,7 +1100,6 @@ impl PlayToSourceSelectedEventArgs { (windows_core::Interface::vtable(this).Icon)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SupportsImage(&self) -> windows_core::Result { let this = self; unsafe { @@ -1253,7 +1107,6 @@ impl PlayToSourceSelectedEventArgs { (windows_core::Interface::vtable(this).SupportsImage)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SupportsAudio(&self) -> windows_core::Result { let this = self; unsafe { @@ -1261,7 +1114,6 @@ impl PlayToSourceSelectedEventArgs { (windows_core::Interface::vtable(this).SupportsAudio)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SupportsVideo(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Media/Playback/mod.rs b/crates/libs/windows/src/Windows/Media/Playback/mod.rs index fa43bc7d50..9bb7e1f914 100644 --- a/crates/libs/windows/src/Windows/Media/Playback/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Playback/mod.rs @@ -17,14 +17,12 @@ impl windows_core::RuntimeType for AutoLoadedDisplayPropertyKind { pub struct BackgroundMediaPlayer; #[cfg(feature = "deprecated")] impl BackgroundMediaPlayer { - #[cfg(feature = "deprecated")] pub fn Current() -> windows_core::Result { Self::IBackgroundMediaPlayerStatics(|this| 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__)) }) } - #[cfg(feature = "deprecated")] pub fn MessageReceivedFromBackground(value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -34,11 +32,9 @@ impl BackgroundMediaPlayer { (windows_core::Interface::vtable(this).MessageReceivedFromBackground)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveMessageReceivedFromBackground(token: i64) -> windows_core::Result<()> { Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveMessageReceivedFromBackground)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "deprecated")] pub fn MessageReceivedFromForeground(value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -48,32 +44,29 @@ impl BackgroundMediaPlayer { (windows_core::Interface::vtable(this).MessageReceivedFromForeground)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveMessageReceivedFromForeground(token: i64) -> windows_core::Result<()> { Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveMessageReceivedFromForeground)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn SendMessageToBackground(value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SendMessageToBackground)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn SendMessageToForeground(value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).SendMessageToForeground)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } - #[cfg(feature = "deprecated")] pub fn IsMediaPlaying() -> windows_core::Result { Self::IBackgroundMediaPlayerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IsMediaPlaying)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn Shutdown() -> windows_core::Result<()> { Self::IBackgroundMediaPlayerStatics(|this| unsafe { (windows_core::Interface::vtable(this).Shutdown)(windows_core::Interface::as_raw(this)).ok() }) } @@ -149,42 +142,21 @@ impl windows_core::RuntimeType for IBackgroundMediaPlayerStatics { #[repr(C)] pub struct IBackgroundMediaPlayerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Current: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Current: usize, - #[cfg(feature = "deprecated")] pub MessageReceivedFromBackground: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MessageReceivedFromBackground: usize, - #[cfg(feature = "deprecated")] pub RemoveMessageReceivedFromBackground: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveMessageReceivedFromBackground: usize, - #[cfg(feature = "deprecated")] pub MessageReceivedFromForeground: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MessageReceivedFromForeground: usize, - #[cfg(feature = "deprecated")] pub RemoveMessageReceivedFromForeground: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveMessageReceivedFromForeground: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub SendMessageToBackground: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] SendMessageToBackground: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub SendMessageToForeground: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] SendMessageToForeground: usize, - #[cfg(feature = "deprecated")] pub IsMediaPlaying: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsMediaPlaying: usize, - #[cfg(feature = "deprecated")] pub Shutdown: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Shutdown: usize, } windows_core::imp::define_interface!(ICurrentMediaPlaybackItemChangedEventArgs, ICurrentMediaPlaybackItemChangedEventArgs_Vtbl, 0x1743a892_5c43_4a15_967a_572d2d0f26c6); impl windows_core::RuntimeType for ICurrentMediaPlaybackItemChangedEventArgs { @@ -324,7 +296,6 @@ impl windows_core::RuntimeType for IMediaEnginePlaybackSource { windows_core::imp::interface_hierarchy!(IMediaEnginePlaybackSource, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IMediaEnginePlaybackSource { - #[cfg(feature = "deprecated")] pub fn CurrentItem(&self) -> windows_core::Result { let this = self; unsafe { @@ -332,7 +303,6 @@ impl IMediaEnginePlaybackSource { (windows_core::Interface::vtable(this).CurrentItem)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetPlaybackSource(&self, source: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -386,14 +356,8 @@ impl IMediaEnginePlaybackSource_Vtbl { #[repr(C)] pub struct IMediaEnginePlaybackSource_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CurrentItem: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CurrentItem: usize, - #[cfg(feature = "deprecated")] pub SetPlaybackSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetPlaybackSource: usize, } windows_core::imp::define_interface!(IMediaItemDisplayProperties, IMediaItemDisplayProperties_Vtbl, 0x1e3c1b48_7097_4384_a217_c1291dfa8c16); impl windows_core::RuntimeType for IMediaItemDisplayProperties { @@ -972,25 +936,55 @@ pub struct IMediaPlayer_Vtbl { pub base__: windows_core::IInspectable_Vtbl, pub AutoPlay: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetAutoPlay: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub NaturalDuration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + NaturalDuration: usize, + #[cfg(feature = "deprecated")] pub Position: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Position: usize, + #[cfg(feature = "deprecated")] pub SetPosition: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::TimeSpan) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetPosition: usize, + #[cfg(feature = "deprecated")] pub BufferingProgress: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + BufferingProgress: usize, + #[cfg(feature = "deprecated")] pub CurrentState: unsafe extern "system" fn(*mut core::ffi::c_void, *mut MediaPlayerState) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + CurrentState: usize, + #[cfg(feature = "deprecated")] pub CanSeek: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + CanSeek: usize, + #[cfg(feature = "deprecated")] pub CanPause: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + CanPause: usize, pub IsLoopingEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsLoopingEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub IsProtected: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + IsProtected: usize, pub IsMuted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsMuted: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub PlaybackRate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + PlaybackRate: usize, + #[cfg(feature = "deprecated")] pub SetPlaybackRate: unsafe extern "system" fn(*mut core::ffi::c_void, f64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub PlaybackMediaMarkers: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", 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, @@ -998,23 +992,62 @@ pub struct IMediaPlayer_Vtbl { pub RemoveMediaEnded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, pub MediaFailed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveMediaFailed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub CurrentStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + CurrentStateChanged: usize, + #[cfg(feature = "deprecated")] pub RemoveCurrentStateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + RemoveCurrentStateChanged: usize, + #[cfg(feature = "deprecated")] pub PlaybackMediaMarkerReached: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + PlaybackMediaMarkerReached: usize, + #[cfg(feature = "deprecated")] pub RemovePlaybackMediaMarkerReached: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + RemovePlaybackMediaMarkerReached: usize, + #[cfg(feature = "deprecated")] pub MediaPlayerRateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + MediaPlayerRateChanged: usize, + #[cfg(feature = "deprecated")] pub RemoveMediaPlayerRateChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + RemoveMediaPlayerRateChanged: usize, pub VolumeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveVolumeChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub SeekCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SeekCompleted: usize, + #[cfg(feature = "deprecated")] pub RemoveSeekCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + RemoveSeekCompleted: usize, + #[cfg(feature = "deprecated")] pub BufferingStarted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + BufferingStarted: usize, + #[cfg(feature = "deprecated")] pub RemoveBufferingStarted: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + RemoveBufferingStarted: usize, + #[cfg(feature = "deprecated")] pub BufferingEnded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + BufferingEnded: usize, + #[cfg(feature = "deprecated")] pub RemoveBufferingEnded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + RemoveBufferingEnded: usize, pub Play: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub SetUriSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetUriSource: usize, } windows_core::imp::define_interface!(IMediaPlayer2, IMediaPlayer2_Vtbl, 0x3c841218_2123_4fc5_9082_2f883f77bdf5); impl windows_core::RuntimeType for IMediaPlayer2 { @@ -1207,17 +1240,17 @@ pub struct IMediaPlayerSource_Vtbl { pub SetProtectionManager: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Media_Protection"))] SetProtectionManager: usize, - #[cfg(feature = "Storage_Streams")] + #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub SetFileSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] + #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] SetFileSource: usize, - #[cfg(feature = "Storage_Streams")] + #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub SetStreamSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] + #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] SetStreamSource: usize, - #[cfg(feature = "Media_Core")] + #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub SetMediaSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Media_Core"))] + #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] SetMediaSource: usize, } windows_core::imp::define_interface!(IMediaPlayerSource2, IMediaPlayerSource2_Vtbl, 0x82449b9f_7322_4c0b_b03b_3e69a48260c5); @@ -3907,6 +3940,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAutoPlay)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn NaturalDuration(&self) -> windows_core::Result { let this = self; unsafe { @@ -3914,6 +3948,7 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).NaturalDuration)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn Position(&self) -> windows_core::Result { let this = self; unsafe { @@ -3921,10 +3956,12 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).Position)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetPosition(&self, value: super::super::Foundation::TimeSpan) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPosition)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn BufferingProgress(&self) -> windows_core::Result { let this = self; unsafe { @@ -3932,6 +3969,7 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).BufferingProgress)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn CurrentState(&self) -> windows_core::Result { let this = self; unsafe { @@ -3939,6 +3977,7 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).CurrentState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn CanSeek(&self) -> windows_core::Result { let this = self; unsafe { @@ -3946,6 +3985,7 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).CanSeek)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn CanPause(&self) -> windows_core::Result { let this = self; unsafe { @@ -3964,6 +4004,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsLoopingEnabled)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn IsProtected(&self) -> windows_core::Result { let this = self; unsafe { @@ -3982,6 +4023,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).SetIsMuted)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn PlaybackRate(&self) -> windows_core::Result { let this = self; unsafe { @@ -3989,6 +4031,7 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).PlaybackRate)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn SetPlaybackRate(&self, value: f64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPlaybackRate)(windows_core::Interface::as_raw(this), value).ok() } @@ -4004,7 +4047,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).SetVolume)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn PlaybackMediaMarkers(&self) -> windows_core::Result { let this = self; unsafe { @@ -4054,6 +4097,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveMediaFailed)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn CurrentStateChanged(&self, value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -4064,10 +4108,12 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).CurrentStateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn RemoveCurrentStateChanged(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveCurrentStateChanged)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn PlaybackMediaMarkerReached(&self, value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -4078,10 +4124,12 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).PlaybackMediaMarkerReached)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn RemovePlaybackMediaMarkerReached(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemovePlaybackMediaMarkerReached)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn MediaPlayerRateChanged(&self, value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -4092,6 +4140,7 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).MediaPlayerRateChanged)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn RemoveMediaPlayerRateChanged(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveMediaPlayerRateChanged)(windows_core::Interface::as_raw(this), token).ok() } @@ -4110,6 +4159,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveVolumeChanged)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn SeekCompleted(&self, value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -4120,10 +4170,12 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).SeekCompleted)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn RemoveSeekCompleted(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveSeekCompleted)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn BufferingStarted(&self, value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -4134,10 +4186,12 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).BufferingStarted)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn RemoveBufferingStarted(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveBufferingStarted)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn BufferingEnded(&self, value: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -4148,6 +4202,7 @@ impl MediaPlayer { (windows_core::Interface::vtable(this).BufferingEnded)(windows_core::Interface::as_raw(this), value.param().abi(), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn RemoveBufferingEnded(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveBufferingEnded)(windows_core::Interface::as_raw(this), token).ok() } @@ -4160,6 +4215,7 @@ impl MediaPlayer { let this = self; unsafe { (windows_core::Interface::vtable(this).Pause)(windows_core::Interface::as_raw(this)).ok() } } + #[cfg(feature = "deprecated")] pub fn SetUriSource(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -4480,7 +4536,7 @@ impl MediaPlayer { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetProtectionManager)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } - #[cfg(feature = "Storage_Streams")] + #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetFileSource(&self, file: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -4488,7 +4544,7 @@ impl MediaPlayer { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetFileSource)(windows_core::Interface::as_raw(this), file.param().abi()).ok() } } - #[cfg(feature = "Storage_Streams")] + #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn SetStreamSource(&self, stream: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -4496,7 +4552,7 @@ impl MediaPlayer { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetStreamSource)(windows_core::Interface::as_raw(this), stream.param().abi()).ok() } } - #[cfg(feature = "Media_Core")] + #[cfg(all(feature = "Media_Core", feature = "deprecated"))] pub fn SetMediaSource(&self, source: P0) -> windows_core::Result<()> where P0: windows_core::Param, 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 1352fb5908..f5840462cb 100644 --- a/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Protection/PlayReady/mod.rs @@ -8,62 +8,20 @@ impl windows_core::RuntimeType for INDClient { #[repr(C)] pub struct INDClient_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub RegistrationCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RegistrationCompleted: usize, - #[cfg(feature = "deprecated")] pub RemoveRegistrationCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveRegistrationCompleted: usize, - #[cfg(feature = "deprecated")] pub ProximityDetectionCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ProximityDetectionCompleted: usize, - #[cfg(feature = "deprecated")] pub RemoveProximityDetectionCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveProximityDetectionCompleted: usize, - #[cfg(feature = "deprecated")] pub LicenseFetchCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LicenseFetchCompleted: usize, - #[cfg(feature = "deprecated")] pub RemoveLicenseFetchCompleted: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveLicenseFetchCompleted: usize, - #[cfg(feature = "deprecated")] pub ReRegistrationNeeded: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ReRegistrationNeeded: usize, - #[cfg(feature = "deprecated")] pub RemoveReRegistrationNeeded: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveReRegistrationNeeded: usize, - #[cfg(feature = "deprecated")] pub ClosedCaptionDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ClosedCaptionDataReceived: usize, - #[cfg(feature = "deprecated")] pub RemoveClosedCaptionDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveClosedCaptionDataReceived: usize, - #[cfg(feature = "deprecated")] pub StartAsync: 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, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - StartAsync: usize, - #[cfg(feature = "deprecated")] pub LicenseFetchAsync: 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 = "deprecated"))] - LicenseFetchAsync: usize, - #[cfg(feature = "deprecated")] pub ReRegistrationAsync: 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 = "deprecated"))] - ReRegistrationAsync: usize, - #[cfg(feature = "deprecated")] pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Close: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDClientFactory, INDClientFactory_Vtbl, 0x3e53dd62_fee8_451f_b0d4_f706cca3e037); @@ -75,10 +33,7 @@ impl windows_core::RuntimeType for INDClientFactory { #[repr(C)] pub struct INDClientFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateInstance: 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 = "deprecated"))] - CreateInstance: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDClosedCaptionDataReceivedEventArgs, INDClosedCaptionDataReceivedEventArgs_Vtbl, 0x4738d29f_c345_4649_8468_b8c5fc357190); @@ -90,7 +45,6 @@ impl windows_core::RuntimeType for INDClosedCaptionDataReceivedEventArgs { windows_core::imp::interface_hierarchy!(INDClosedCaptionDataReceivedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDClosedCaptionDataReceivedEventArgs { - #[cfg(feature = "deprecated")] pub fn ClosedCaptionDataFormat(&self) -> windows_core::Result { let this = self; unsafe { @@ -98,7 +52,6 @@ impl INDClosedCaptionDataReceivedEventArgs { (windows_core::Interface::vtable(this).ClosedCaptionDataFormat)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PresentationTimestamp(&self) -> windows_core::Result { let this = self; unsafe { @@ -106,7 +59,6 @@ impl INDClosedCaptionDataReceivedEventArgs { (windows_core::Interface::vtable(this).PresentationTimestamp)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ClosedCaptionData(&self) -> windows_core::Result> { let this = self; unsafe { @@ -181,18 +133,9 @@ impl INDClosedCaptionDataReceivedEventArgs_Vtbl { #[repr(C)] pub struct INDClosedCaptionDataReceivedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ClosedCaptionDataFormat: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NDClosedCaptionFormat) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ClosedCaptionDataFormat: usize, - #[cfg(feature = "deprecated")] pub PresentationTimestamp: unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PresentationTimestamp: usize, - #[cfg(feature = "deprecated")] pub ClosedCaptionData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ClosedCaptionData: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDCustomData, INDCustomData_Vtbl, 0xf5cb0fdc_2d09_4f19_b5e1_76a0b3ee9267); @@ -204,7 +147,6 @@ impl windows_core::RuntimeType for INDCustomData { windows_core::imp::interface_hierarchy!(INDCustomData, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDCustomData { - #[cfg(feature = "deprecated")] pub fn CustomDataTypeID(&self) -> windows_core::Result> { let this = self; unsafe { @@ -212,7 +154,6 @@ impl INDCustomData { (windows_core::Interface::vtable(this).CustomDataTypeID)(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 = "deprecated")] pub fn CustomData(&self) -> windows_core::Result> { let this = self; unsafe { @@ -275,14 +216,8 @@ impl INDCustomData_Vtbl { #[repr(C)] pub struct INDCustomData_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CustomDataTypeID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CustomDataTypeID: usize, - #[cfg(feature = "deprecated")] pub CustomData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CustomData: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDCustomDataFactory, INDCustomDataFactory_Vtbl, 0xd65405ab_3424_4833_8c9a_af5fdeb22872); @@ -294,10 +229,7 @@ impl windows_core::RuntimeType for INDCustomDataFactory { #[repr(C)] pub struct INDCustomDataFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CreateInstance: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDDownloadEngine, INDDownloadEngine_Vtbl, 0x2d223d65_c4b6_4438_8d46_b96e6d0fb21f); @@ -309,7 +241,6 @@ impl windows_core::RuntimeType for INDDownloadEngine { windows_core::imp::interface_hierarchy!(INDDownloadEngine, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDDownloadEngine { - #[cfg(feature = "deprecated")] pub fn Open(&self, uri: P0, sessionidbytes: &[u8]) -> windows_core::Result<()> where P0: windows_core::Param, @@ -317,27 +248,22 @@ impl INDDownloadEngine { let this = self; unsafe { (windows_core::Interface::vtable(this).Open)(windows_core::Interface::as_raw(this), uri.param().abi(), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr()).ok() } } - #[cfg(feature = "deprecated")] pub fn Pause(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Pause)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn Resume(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Resume)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn Close(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn Seek(&self, startposition: super::super::super::Foundation::TimeSpan) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Seek)(windows_core::Interface::as_raw(this), startposition).ok() } } - #[cfg(feature = "deprecated")] pub fn CanSeek(&self) -> windows_core::Result { let this = self; unsafe { @@ -345,7 +271,6 @@ impl INDDownloadEngine { (windows_core::Interface::vtable(this).CanSeek)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn BufferFullMinThresholdInSamples(&self) -> windows_core::Result { let this = self; unsafe { @@ -353,7 +278,6 @@ impl INDDownloadEngine { (windows_core::Interface::vtable(this).BufferFullMinThresholdInSamples)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn BufferFullMaxThresholdInSamples(&self) -> windows_core::Result { let this = self; unsafe { @@ -361,7 +285,6 @@ impl INDDownloadEngine { (windows_core::Interface::vtable(this).BufferFullMaxThresholdInSamples)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Notifier(&self) -> windows_core::Result { let this = self; unsafe { @@ -489,42 +412,15 @@ impl INDDownloadEngine_Vtbl { #[repr(C)] pub struct INDDownloadEngine_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Open: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, u32, *const u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Open: usize, - #[cfg(feature = "deprecated")] pub Pause: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Pause: usize, - #[cfg(feature = "deprecated")] pub Resume: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Resume: usize, - #[cfg(feature = "deprecated")] pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Close: usize, - #[cfg(feature = "deprecated")] pub Seek: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::super::Foundation::TimeSpan) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Seek: usize, - #[cfg(feature = "deprecated")] pub CanSeek: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CanSeek: usize, - #[cfg(feature = "deprecated")] pub BufferFullMinThresholdInSamples: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - BufferFullMinThresholdInSamples: usize, - #[cfg(feature = "deprecated")] pub BufferFullMaxThresholdInSamples: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - BufferFullMaxThresholdInSamples: usize, - #[cfg(feature = "deprecated")] pub Notifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Notifier: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDDownloadEngineNotifier, INDDownloadEngineNotifier_Vtbl, 0xd720b4d4_f4b8_4530_a809_9193a571e7fc); @@ -536,17 +432,14 @@ impl windows_core::RuntimeType for INDDownloadEngineNotifier { windows_core::imp::interface_hierarchy!(INDDownloadEngineNotifier, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDDownloadEngineNotifier { - #[cfg(feature = "deprecated")] pub fn OnStreamOpened(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnStreamOpened)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn OnPlayReadyObjectReceived(&self, databytes: &[u8]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnPlayReadyObjectReceived)(windows_core::Interface::as_raw(this), databytes.len().try_into().unwrap(), databytes.as_ptr()).ok() } } - #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -554,17 +447,14 @@ impl INDDownloadEngineNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn OnDataReceived(&self, databytes: &[u8], bytesreceived: u32) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnDataReceived)(windows_core::Interface::as_raw(this), databytes.len().try_into().unwrap(), databytes.as_ptr(), bytesreceived).ok() } } - #[cfg(feature = "deprecated")] pub fn OnEndOfStream(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnEndOfStream)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn OnNetworkError(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnNetworkError)(windows_core::Interface::as_raw(this)).ok() } @@ -640,30 +530,12 @@ impl INDDownloadEngineNotifier_Vtbl { #[repr(C)] pub struct INDDownloadEngineNotifier_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub OnStreamOpened: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OnStreamOpened: usize, - #[cfg(feature = "deprecated")] pub OnPlayReadyObjectReceived: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OnPlayReadyObjectReceived: usize, - #[cfg(feature = "deprecated")] pub OnContentIDReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OnContentIDReceived: usize, - #[cfg(feature = "deprecated")] pub OnDataReceived: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8, u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OnDataReceived: usize, - #[cfg(feature = "deprecated")] pub OnEndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OnEndOfStream: usize, - #[cfg(feature = "deprecated")] pub OnNetworkError: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OnNetworkError: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDLicenseFetchCompletedEventArgs, INDLicenseFetchCompletedEventArgs_Vtbl, 0x1ee30a1a_11b2_4558_8865_e3a516922517); @@ -675,7 +547,6 @@ impl windows_core::RuntimeType for INDLicenseFetchCompletedEventArgs { windows_core::imp::interface_hierarchy!(INDLicenseFetchCompletedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDLicenseFetchCompletedEventArgs { - #[cfg(feature = "deprecated")] pub fn ResponseCustomData(&self) -> windows_core::Result { let this = self; unsafe { @@ -721,10 +592,7 @@ impl INDLicenseFetchCompletedEventArgs_Vtbl { #[repr(C)] pub struct INDLicenseFetchCompletedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ResponseCustomData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ResponseCustomData: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDLicenseFetchDescriptor, INDLicenseFetchDescriptor_Vtbl, 0x5498d33a_e686_4935_a567_7ca77ad20fa4); @@ -736,7 +604,6 @@ impl windows_core::RuntimeType for INDLicenseFetchDescriptor { windows_core::imp::interface_hierarchy!(INDLicenseFetchDescriptor, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDLicenseFetchDescriptor { - #[cfg(feature = "deprecated")] pub fn ContentIDType(&self) -> windows_core::Result { let this = self; unsafe { @@ -744,7 +611,6 @@ impl INDLicenseFetchDescriptor { (windows_core::Interface::vtable(this).ContentIDType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ContentID(&self) -> windows_core::Result> { let this = self; unsafe { @@ -752,7 +618,6 @@ impl INDLicenseFetchDescriptor { (windows_core::Interface::vtable(this).ContentID)(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 = "deprecated")] pub fn LicenseFetchChallengeCustomData(&self) -> windows_core::Result { let this = self; unsafe { @@ -760,7 +625,6 @@ impl INDLicenseFetchDescriptor { (windows_core::Interface::vtable(this).LicenseFetchChallengeCustomData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetLicenseFetchChallengeCustomData(&self, licensefetchchallengecustomdata: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -844,22 +708,10 @@ impl INDLicenseFetchDescriptor_Vtbl { #[repr(C)] pub struct INDLicenseFetchDescriptor_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ContentIDType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NDContentIDType) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ContentIDType: usize, - #[cfg(feature = "deprecated")] pub ContentID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ContentID: usize, - #[cfg(feature = "deprecated")] pub LicenseFetchChallengeCustomData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LicenseFetchChallengeCustomData: usize, - #[cfg(feature = "deprecated")] pub SetLicenseFetchChallengeCustomData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetLicenseFetchChallengeCustomData: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDLicenseFetchDescriptorFactory, INDLicenseFetchDescriptorFactory_Vtbl, 0xd0031202_cfac_4f00_ae6a_97af80b848f2); @@ -871,10 +723,7 @@ impl windows_core::RuntimeType for INDLicenseFetchDescriptorFactory { #[repr(C)] pub struct INDLicenseFetchDescriptorFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateInstance: unsafe extern "system" fn(*mut core::ffi::c_void, NDContentIDType, u32, *const u8, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CreateInstance: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDLicenseFetchResult, INDLicenseFetchResult_Vtbl, 0x21d39698_aa62_45ff_a5ff_8037e5433825); @@ -886,7 +735,6 @@ impl windows_core::RuntimeType for INDLicenseFetchResult { windows_core::imp::interface_hierarchy!(INDLicenseFetchResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDLicenseFetchResult { - #[cfg(feature = "deprecated")] pub fn ResponseCustomData(&self) -> windows_core::Result { let this = self; unsafe { @@ -932,10 +780,7 @@ impl INDLicenseFetchResult_Vtbl { #[repr(C)] pub struct INDLicenseFetchResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ResponseCustomData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ResponseCustomData: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDMessenger, INDMessenger_Vtbl, 0xd42df95d_a75b_47bf_8249_bc83820da38a); @@ -947,7 +792,6 @@ impl windows_core::RuntimeType for INDMessenger { windows_core::imp::interface_hierarchy!(INDMessenger, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDMessenger { - #[cfg(feature = "deprecated")] pub fn SendRegistrationRequestAsync(&self, sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -955,7 +799,6 @@ impl INDMessenger { (windows_core::Interface::vtable(this).SendRegistrationRequestAsync)(windows_core::Interface::as_raw(this), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr(), challengedatabytes.len().try_into().unwrap(), challengedatabytes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SendProximityDetectionStartAsync(&self, pdtype: NDProximityDetectionType, transmitterchannelbytes: &[u8], sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -963,7 +806,6 @@ impl INDMessenger { (windows_core::Interface::vtable(this).SendProximityDetectionStartAsync)(windows_core::Interface::as_raw(this), pdtype, transmitterchannelbytes.len().try_into().unwrap(), transmitterchannelbytes.as_ptr(), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr(), challengedatabytes.len().try_into().unwrap(), challengedatabytes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SendProximityDetectionResponseAsync(&self, pdtype: NDProximityDetectionType, transmitterchannelbytes: &[u8], sessionidbytes: &[u8], responsedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -971,7 +813,6 @@ impl INDMessenger { (windows_core::Interface::vtable(this).SendProximityDetectionResponseAsync)(windows_core::Interface::as_raw(this), pdtype, transmitterchannelbytes.len().try_into().unwrap(), transmitterchannelbytes.as_ptr(), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr(), responsedatabytes.len().try_into().unwrap(), responsedatabytes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SendLicenseFetchRequestAsync(&self, sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -1062,22 +903,10 @@ impl INDMessenger_Vtbl { #[repr(C)] pub struct INDMessenger_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub SendRegistrationRequestAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SendRegistrationRequestAsync: usize, - #[cfg(feature = "deprecated")] pub SendProximityDetectionStartAsync: unsafe extern "system" fn(*mut core::ffi::c_void, NDProximityDetectionType, u32, *const u8, u32, *const u8, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SendProximityDetectionStartAsync: usize, - #[cfg(feature = "deprecated")] pub SendProximityDetectionResponseAsync: unsafe extern "system" fn(*mut core::ffi::c_void, NDProximityDetectionType, u32, *const u8, u32, *const u8, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SendProximityDetectionResponseAsync: usize, - #[cfg(feature = "deprecated")] pub SendLicenseFetchRequestAsync: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8, u32, *const u8, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SendLicenseFetchRequestAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDProximityDetectionCompletedEventArgs, INDProximityDetectionCompletedEventArgs_Vtbl, 0x2a706328_da25_4f8c_9eb7_5d0fc3658bca); @@ -1089,7 +918,6 @@ impl windows_core::RuntimeType for INDProximityDetectionCompletedEventArgs { windows_core::imp::interface_hierarchy!(INDProximityDetectionCompletedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDProximityDetectionCompletedEventArgs { - #[cfg(feature = "deprecated")] pub fn ProximityDetectionRetryCount(&self) -> windows_core::Result { let this = self; unsafe { @@ -1134,10 +962,7 @@ impl INDProximityDetectionCompletedEventArgs_Vtbl { #[repr(C)] pub struct INDProximityDetectionCompletedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ProximityDetectionRetryCount: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ProximityDetectionRetryCount: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDRegistrationCompletedEventArgs, INDRegistrationCompletedEventArgs_Vtbl, 0x9e39b64d_ab5b_4905_acdc_787a77c6374d); @@ -1149,7 +974,6 @@ impl windows_core::RuntimeType for INDRegistrationCompletedEventArgs { windows_core::imp::interface_hierarchy!(INDRegistrationCompletedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDRegistrationCompletedEventArgs { - #[cfg(feature = "deprecated")] pub fn ResponseCustomData(&self) -> windows_core::Result { let this = self; unsafe { @@ -1157,7 +981,6 @@ impl INDRegistrationCompletedEventArgs { (windows_core::Interface::vtable(this).ResponseCustomData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn TransmitterProperties(&self) -> windows_core::Result { let this = self; unsafe { @@ -1165,7 +988,6 @@ impl INDRegistrationCompletedEventArgs { (windows_core::Interface::vtable(this).TransmitterProperties)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn TransmitterCertificateAccepted(&self) -> windows_core::Result { let this = self; unsafe { @@ -1173,7 +995,6 @@ impl INDRegistrationCompletedEventArgs { (windows_core::Interface::vtable(this).TransmitterCertificateAccepted)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetTransmitterCertificateAccepted(&self, accept: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTransmitterCertificateAccepted)(windows_core::Interface::as_raw(this), accept).ok() } @@ -1253,22 +1074,10 @@ impl INDRegistrationCompletedEventArgs_Vtbl { #[repr(C)] pub struct INDRegistrationCompletedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ResponseCustomData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ResponseCustomData: usize, - #[cfg(feature = "deprecated")] pub TransmitterProperties: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TransmitterProperties: usize, - #[cfg(feature = "deprecated")] pub TransmitterCertificateAccepted: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TransmitterCertificateAccepted: usize, - #[cfg(feature = "deprecated")] pub SetTransmitterCertificateAccepted: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetTransmitterCertificateAccepted: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDSendResult, INDSendResult_Vtbl, 0xe3685517_a584_479d_90b7_d689c7bf7c80); @@ -1280,7 +1089,6 @@ impl windows_core::RuntimeType for INDSendResult { windows_core::imp::interface_hierarchy!(INDSendResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDSendResult { - #[cfg(feature = "deprecated")] pub fn Response(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1324,10 +1132,7 @@ impl INDSendResult_Vtbl { #[repr(C)] pub struct INDSendResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Response: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Response: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDStartResult, INDStartResult_Vtbl, 0x79f6e96e_f50f_4015_8ba4_c2bc344ebd4e); @@ -1339,7 +1144,7 @@ impl windows_core::RuntimeType for INDStartResult { windows_core::imp::interface_hierarchy!(INDStartResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStartResult { - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub fn MediaStreamSource(&self) -> windows_core::Result { let this = self; unsafe { @@ -1382,9 +1187,9 @@ impl INDStartResult_Vtbl { #[repr(C)] pub struct INDStartResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub MediaStreamSource: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] + #[cfg(not(feature = "Media_Core"))] MediaStreamSource: usize, } #[cfg(feature = "deprecated")] @@ -1397,7 +1202,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -1443,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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", 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", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] GetFileURLs: usize, } #[cfg(feature = "deprecated")] @@ -1458,12 +1263,11 @@ impl windows_core::RuntimeType for INDStreamParser { windows_core::imp::interface_hierarchy!(INDStreamParser, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStreamParser { - #[cfg(feature = "deprecated")] pub fn ParseData(&self, databytes: &[u8]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).ParseData)(windows_core::Interface::as_raw(this), databytes.len().try_into().unwrap(), databytes.as_ptr()).ok() } } - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub fn GetStreamInformation(&self, descriptor: P0, streamtype: &mut NDMediaStreamType) -> windows_core::Result where P0: windows_core::Param, @@ -1474,17 +1278,14 @@ impl INDStreamParser { (windows_core::Interface::vtable(this).GetStreamInformation)(windows_core::Interface::as_raw(this), descriptor.param().abi(), streamtype, &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn BeginOfStream(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).BeginOfStream)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn EndOfStream(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).EndOfStream)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn Notifier(&self) -> windows_core::Result { let this = self; unsafe { @@ -1568,26 +1369,14 @@ impl INDStreamParser_Vtbl { #[repr(C)] pub struct INDStreamParser_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ParseData: unsafe extern "system" fn(*mut core::ffi::c_void, u32, *const u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ParseData: usize, - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub GetStreamInformation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut NDMediaStreamType, *mut u32) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] + #[cfg(not(feature = "Media_Core"))] GetStreamInformation: usize, - #[cfg(feature = "deprecated")] pub BeginOfStream: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - BeginOfStream: usize, - #[cfg(feature = "deprecated")] pub EndOfStream: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - EndOfStream: usize, - #[cfg(feature = "deprecated")] pub Notifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Notifier: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDStreamParserNotifier, INDStreamParserNotifier_Vtbl, 0xc167acd0_2ce6_426c_ace5_5e9275fea715); @@ -1599,7 +1388,6 @@ impl windows_core::RuntimeType for INDStreamParserNotifier { windows_core::imp::interface_hierarchy!(INDStreamParserNotifier, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDStreamParserNotifier { - #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1607,7 +1395,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn OnMediaStreamDescriptorCreated(&self, audiostreamdescriptors: P0, videostreamdescriptors: P1) -> windows_core::Result<()> where P0: windows_core::Param>, @@ -1616,7 +1404,7 @@ impl INDStreamParserNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.param().abi(), videostreamdescriptors.param().abi()).ok() } } - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub fn OnSampleParsed(&self, streamid: u32, streamtype: NDMediaStreamType, streamsample: P2, pts: i64, ccformat: NDClosedCaptionFormat, ccdatabytes: &[u8]) -> windows_core::Result<()> where P2: windows_core::Param, @@ -1624,7 +1412,7 @@ impl INDStreamParserNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnSampleParsed)(windows_core::Interface::as_raw(this), streamid, streamtype, streamsample.param().abi(), pts, ccformat, ccdatabytes.len().try_into().unwrap(), ccdatabytes.as_ptr()).ok() } } - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub fn OnBeginSetupDecryptor(&self, descriptor: P0, keyid: windows_core::GUID, probytes: &[u8]) -> windows_core::Result<()> where P0: windows_core::Param, @@ -1687,21 +1475,18 @@ impl INDStreamParserNotifier_Vtbl { #[repr(C)] pub struct INDStreamParserNotifier_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub OnContentIDReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - OnContentIDReceived: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", 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", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "Media_Core")))] OnMediaStreamDescriptorCreated: usize, - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[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, - #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] + #[cfg(not(feature = "Media_Core"))] OnSampleParsed: usize, - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub OnBeginSetupDecryptor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, windows_core::GUID, u32, *const u8) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Media_Core", feature = "deprecated")))] + #[cfg(not(feature = "Media_Core"))] OnBeginSetupDecryptor: usize, } #[cfg(feature = "deprecated")] @@ -1714,10 +1499,7 @@ impl windows_core::RuntimeType for INDTCPMessengerFactory { #[repr(C)] pub struct INDTCPMessengerFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CreateInstance: 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 = "deprecated"))] - CreateInstance: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(INDTransmitterProperties, INDTransmitterProperties_Vtbl, 0xe536af23_ac4f_4adc_8c66_4ff7c2702dd6); @@ -1729,7 +1511,6 @@ impl windows_core::RuntimeType for INDTransmitterProperties { windows_core::imp::interface_hierarchy!(INDTransmitterProperties, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl INDTransmitterProperties { - #[cfg(feature = "deprecated")] pub fn CertificateType(&self) -> windows_core::Result { let this = self; unsafe { @@ -1737,7 +1518,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).CertificateType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn PlatformIdentifier(&self) -> windows_core::Result { let this = self; unsafe { @@ -1745,7 +1525,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).PlatformIdentifier)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SupportedFeatures(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1753,7 +1532,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).SupportedFeatures)(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 = "deprecated")] pub fn SecurityLevel(&self) -> windows_core::Result { let this = self; unsafe { @@ -1761,7 +1539,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).SecurityLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SecurityVersion(&self) -> windows_core::Result { let this = self; unsafe { @@ -1769,7 +1546,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).SecurityVersion)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExpirationDate(&self) -> windows_core::Result { let this = self; unsafe { @@ -1777,7 +1553,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).ExpirationDate)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn ClientID(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1785,7 +1560,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).ClientID)(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 = "deprecated")] pub fn ModelDigest(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1793,7 +1567,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).ModelDigest)(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 = "deprecated")] pub fn ModelManufacturerName(&self) -> windows_core::Result { let this = self; unsafe { @@ -1801,7 +1574,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).ModelManufacturerName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn ModelName(&self) -> windows_core::Result { let this = self; unsafe { @@ -1809,7 +1581,6 @@ impl INDTransmitterProperties { (windows_core::Interface::vtable(this).ModelName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn ModelNumber(&self) -> windows_core::Result { let this = self; unsafe { @@ -2003,50 +1774,17 @@ impl INDTransmitterProperties_Vtbl { #[repr(C)] pub struct INDTransmitterProperties_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CertificateType: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NDCertificateType) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CertificateType: usize, - #[cfg(feature = "deprecated")] pub PlatformIdentifier: unsafe extern "system" fn(*mut core::ffi::c_void, *mut NDCertificatePlatformID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PlatformIdentifier: usize, - #[cfg(feature = "deprecated")] pub SupportedFeatures: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut NDCertificateFeature) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SupportedFeatures: usize, - #[cfg(feature = "deprecated")] pub SecurityLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SecurityLevel: usize, - #[cfg(feature = "deprecated")] pub SecurityVersion: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SecurityVersion: usize, - #[cfg(feature = "deprecated")] pub ExpirationDate: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::super::Foundation::DateTime) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExpirationDate: usize, - #[cfg(feature = "deprecated")] pub ClientID: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ClientID: usize, - #[cfg(feature = "deprecated")] pub ModelDigest: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32, *mut *mut u8) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ModelDigest: usize, - #[cfg(feature = "deprecated")] pub ModelManufacturerName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ModelManufacturerName: usize, - #[cfg(feature = "deprecated")] pub ModelName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ModelName: usize, - #[cfg(feature = "deprecated")] pub ModelNumber: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ModelNumber: usize, } windows_core::imp::define_interface!(IPlayReadyContentHeader, IPlayReadyContentHeader_Vtbl, 0x9a438a6a_7f4c_452e_88bd_0148c6387a2c); impl windows_core::RuntimeType for IPlayReadyContentHeader { @@ -3488,7 +3226,6 @@ pub struct NDClient(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(NDClient, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl NDClient { - #[cfg(feature = "deprecated")] pub fn RegistrationCompleted(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -3499,12 +3236,10 @@ impl NDClient { (windows_core::Interface::vtable(this).RegistrationCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveRegistrationCompleted(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveRegistrationCompleted)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn ProximityDetectionCompleted(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -3515,12 +3250,10 @@ impl NDClient { (windows_core::Interface::vtable(this).ProximityDetectionCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveProximityDetectionCompleted(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveProximityDetectionCompleted)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn LicenseFetchCompleted(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -3531,12 +3264,10 @@ impl NDClient { (windows_core::Interface::vtable(this).LicenseFetchCompleted)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveLicenseFetchCompleted(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveLicenseFetchCompleted)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn ReRegistrationNeeded(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -3547,12 +3278,10 @@ impl NDClient { (windows_core::Interface::vtable(this).ReRegistrationNeeded)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveReRegistrationNeeded(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveReRegistrationNeeded)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn ClosedCaptionDataReceived(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -3563,12 +3292,10 @@ impl NDClient { (windows_core::Interface::vtable(this).ClosedCaptionDataReceived)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveClosedCaptionDataReceived(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveClosedCaptionDataReceived)(windows_core::Interface::as_raw(this), token).ok() } } - #[cfg(feature = "deprecated")] pub fn StartAsync(&self, contenturl: P0, startasyncoptions: u32, registrationcustomdata: P2, licensefetchdescriptor: P3) -> windows_core::Result> where P0: windows_core::Param, @@ -3581,7 +3308,6 @@ impl NDClient { (windows_core::Interface::vtable(this).StartAsync)(windows_core::Interface::as_raw(this), contenturl.param().abi(), startasyncoptions, registrationcustomdata.param().abi(), licensefetchdescriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn LicenseFetchAsync(&self, licensefetchdescriptor: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -3592,7 +3318,6 @@ impl NDClient { (windows_core::Interface::vtable(this).LicenseFetchAsync)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ReRegistrationAsync(&self, registrationcustomdata: P0) -> windows_core::Result where P0: windows_core::Param, @@ -3603,12 +3328,10 @@ impl NDClient { (windows_core::Interface::vtable(this).ReRegistrationAsync)(windows_core::Interface::as_raw(this), registrationcustomdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn Close(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn CreateInstance(downloadengine: P0, streamparser: P1, pmessenger: P2) -> windows_core::Result where P0: windows_core::Param, @@ -3674,7 +3397,6 @@ pub struct NDCustomData(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(NDCustomData, windows_core::IUnknown, windows_core::IInspectable, INDCustomData); #[cfg(feature = "deprecated")] impl NDCustomData { - #[cfg(feature = "deprecated")] pub fn CustomDataTypeID(&self) -> windows_core::Result> { let this = self; unsafe { @@ -3682,7 +3404,6 @@ impl NDCustomData { (windows_core::Interface::vtable(this).CustomDataTypeID)(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 = "deprecated")] pub fn CustomData(&self) -> windows_core::Result> { let this = self; unsafe { @@ -3690,7 +3411,6 @@ impl NDCustomData { (windows_core::Interface::vtable(this).CustomData)(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 = "deprecated")] pub fn CreateInstance(customdatatypeidbytes: &[u8], customdatabytes: &[u8]) -> windows_core::Result { Self::INDCustomDataFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -3730,17 +3450,14 @@ impl NDDownloadEngineNotifier { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn OnStreamOpened(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnStreamOpened)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn OnPlayReadyObjectReceived(&self, databytes: &[u8]) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnPlayReadyObjectReceived)(windows_core::Interface::as_raw(this), databytes.len().try_into().unwrap(), databytes.as_ptr()).ok() } } - #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3748,17 +3465,14 @@ impl NDDownloadEngineNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnContentIDReceived)(windows_core::Interface::as_raw(this), licensefetchdescriptor.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn OnDataReceived(&self, databytes: &[u8], bytesreceived: u32) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnDataReceived)(windows_core::Interface::as_raw(this), databytes.len().try_into().unwrap(), databytes.as_ptr(), bytesreceived).ok() } } - #[cfg(feature = "deprecated")] pub fn OnEndOfStream(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnEndOfStream)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn OnNetworkError(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).OnNetworkError)(windows_core::Interface::as_raw(this)).ok() } @@ -3785,7 +3499,6 @@ pub struct NDLicenseFetchDescriptor(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(NDLicenseFetchDescriptor, windows_core::IUnknown, windows_core::IInspectable, INDLicenseFetchDescriptor); #[cfg(feature = "deprecated")] impl NDLicenseFetchDescriptor { - #[cfg(feature = "deprecated")] pub fn ContentIDType(&self) -> windows_core::Result { let this = self; unsafe { @@ -3793,7 +3506,6 @@ impl NDLicenseFetchDescriptor { (windows_core::Interface::vtable(this).ContentIDType)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ContentID(&self) -> windows_core::Result> { let this = self; unsafe { @@ -3801,7 +3513,6 @@ impl NDLicenseFetchDescriptor { (windows_core::Interface::vtable(this).ContentID)(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 = "deprecated")] pub fn LicenseFetchChallengeCustomData(&self) -> windows_core::Result { let this = self; unsafe { @@ -3809,7 +3520,6 @@ impl NDLicenseFetchDescriptor { (windows_core::Interface::vtable(this).LicenseFetchChallengeCustomData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetLicenseFetchChallengeCustomData(&self, licensefetchchallengecustomdata: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3817,7 +3527,6 @@ impl NDLicenseFetchDescriptor { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLicenseFetchChallengeCustomData)(windows_core::Interface::as_raw(this), licensefetchchallengecustomdata.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn CreateInstance(contentidtype: NDContentIDType, contentidbytes: &[u8], licensefetchchallengecustomdata: P2) -> windows_core::Result where P2: windows_core::Param, @@ -3900,7 +3609,7 @@ impl NDStorageFileHelper { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn GetFileURLs(&self, file: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -3940,7 +3649,6 @@ impl NDStreamParserNotifier { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn OnContentIDReceived(&self, licensefetchdescriptor: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3948,7 +3656,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Media_Core"))] pub fn OnMediaStreamDescriptorCreated(&self, audiostreamdescriptors: P0, videostreamdescriptors: P1) -> windows_core::Result<()> where P0: windows_core::Param>, @@ -3957,7 +3665,7 @@ impl NDStreamParserNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnMediaStreamDescriptorCreated)(windows_core::Interface::as_raw(this), audiostreamdescriptors.param().abi(), videostreamdescriptors.param().abi()).ok() } } - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub fn OnSampleParsed(&self, streamid: u32, streamtype: NDMediaStreamType, streamsample: P2, pts: i64, ccformat: NDClosedCaptionFormat, ccdatabytes: &[u8]) -> windows_core::Result<()> where P2: windows_core::Param, @@ -3965,7 +3673,7 @@ impl NDStreamParserNotifier { let this = self; unsafe { (windows_core::Interface::vtable(this).OnSampleParsed)(windows_core::Interface::as_raw(this), streamid, streamtype, streamsample.param().abi(), pts, ccformat, ccdatabytes.len().try_into().unwrap(), ccdatabytes.as_ptr()).ok() } } - #[cfg(all(feature = "Media_Core", feature = "deprecated"))] + #[cfg(feature = "Media_Core")] pub fn OnBeginSetupDecryptor(&self, descriptor: P0, keyid: windows_core::GUID, probytes: &[u8]) -> windows_core::Result<()> where P0: windows_core::Param, @@ -3995,7 +3703,6 @@ pub struct NDTCPMessenger(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(NDTCPMessenger, windows_core::IUnknown, windows_core::IInspectable, INDMessenger); #[cfg(feature = "deprecated")] impl NDTCPMessenger { - #[cfg(feature = "deprecated")] pub fn SendRegistrationRequestAsync(&self, sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -4003,7 +3710,6 @@ impl NDTCPMessenger { (windows_core::Interface::vtable(this).SendRegistrationRequestAsync)(windows_core::Interface::as_raw(this), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr(), challengedatabytes.len().try_into().unwrap(), challengedatabytes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SendProximityDetectionStartAsync(&self, pdtype: NDProximityDetectionType, transmitterchannelbytes: &[u8], sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -4011,7 +3717,6 @@ impl NDTCPMessenger { (windows_core::Interface::vtable(this).SendProximityDetectionStartAsync)(windows_core::Interface::as_raw(this), pdtype, transmitterchannelbytes.len().try_into().unwrap(), transmitterchannelbytes.as_ptr(), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr(), challengedatabytes.len().try_into().unwrap(), challengedatabytes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SendProximityDetectionResponseAsync(&self, pdtype: NDProximityDetectionType, transmitterchannelbytes: &[u8], sessionidbytes: &[u8], responsedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -4019,7 +3724,6 @@ impl NDTCPMessenger { (windows_core::Interface::vtable(this).SendProximityDetectionResponseAsync)(windows_core::Interface::as_raw(this), pdtype, transmitterchannelbytes.len().try_into().unwrap(), transmitterchannelbytes.as_ptr(), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr(), responsedatabytes.len().try_into().unwrap(), responsedatabytes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn SendLicenseFetchRequestAsync(&self, sessionidbytes: &[u8], challengedatabytes: &[u8]) -> windows_core::Result> { let this = self; unsafe { @@ -4027,7 +3731,6 @@ impl NDTCPMessenger { (windows_core::Interface::vtable(this).SendLicenseFetchRequestAsync)(windows_core::Interface::as_raw(this), sessionidbytes.len().try_into().unwrap(), sessionidbytes.as_ptr(), challengedatabytes.len().try_into().unwrap(), challengedatabytes.as_ptr(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn CreateInstance(remotehostname: &windows_core::HSTRING, remotehostport: u32) -> windows_core::Result { Self::INDTCPMessengerFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Media/mod.rs b/crates/libs/windows/src/Windows/Media/mod.rs index a9ee3585cc..178de496ac 100644 --- a/crates/libs/windows/src/Windows/Media/mod.rs +++ b/crates/libs/windows/src/Windows/Media/mod.rs @@ -327,138 +327,39 @@ impl windows_core::RuntimeType for IMediaControl { #[repr(C)] pub struct IMediaControl_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub SoundLevelChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SoundLevelChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveSoundLevelChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveSoundLevelChanged: usize, - #[cfg(feature = "deprecated")] pub PlayPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PlayPressed: usize, - #[cfg(feature = "deprecated")] pub RemovePlayPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemovePlayPressed: usize, - #[cfg(feature = "deprecated")] pub PausePressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PausePressed: usize, - #[cfg(feature = "deprecated")] pub RemovePausePressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemovePausePressed: usize, - #[cfg(feature = "deprecated")] pub StopPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - StopPressed: usize, - #[cfg(feature = "deprecated")] pub RemoveStopPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveStopPressed: usize, - #[cfg(feature = "deprecated")] pub PlayPauseTogglePressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PlayPauseTogglePressed: usize, - #[cfg(feature = "deprecated")] pub RemovePlayPauseTogglePressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemovePlayPauseTogglePressed: usize, - #[cfg(feature = "deprecated")] pub RecordPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecordPressed: usize, - #[cfg(feature = "deprecated")] pub RemoveRecordPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveRecordPressed: usize, - #[cfg(feature = "deprecated")] pub NextTrackPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - NextTrackPressed: usize, - #[cfg(feature = "deprecated")] pub RemoveNextTrackPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveNextTrackPressed: usize, - #[cfg(feature = "deprecated")] pub PreviousTrackPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PreviousTrackPressed: usize, - #[cfg(feature = "deprecated")] pub RemovePreviousTrackPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemovePreviousTrackPressed: usize, - #[cfg(feature = "deprecated")] pub FastForwardPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - FastForwardPressed: usize, - #[cfg(feature = "deprecated")] pub RemoveFastForwardPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveFastForwardPressed: usize, - #[cfg(feature = "deprecated")] pub RewindPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RewindPressed: usize, - #[cfg(feature = "deprecated")] pub RemoveRewindPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveRewindPressed: usize, - #[cfg(feature = "deprecated")] pub ChannelUpPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ChannelUpPressed: usize, - #[cfg(feature = "deprecated")] pub RemoveChannelUpPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveChannelUpPressed: usize, - #[cfg(feature = "deprecated")] pub ChannelDownPressed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ChannelDownPressed: usize, - #[cfg(feature = "deprecated")] pub RemoveChannelDownPressed: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveChannelDownPressed: usize, - #[cfg(feature = "deprecated")] pub SoundLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SoundLevel) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SoundLevel: usize, - #[cfg(feature = "deprecated")] pub SetTrackName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetTrackName: usize, - #[cfg(feature = "deprecated")] pub TrackName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TrackName: usize, - #[cfg(feature = "deprecated")] pub SetArtistName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetArtistName: usize, - #[cfg(feature = "deprecated")] pub ArtistName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ArtistName: usize, - #[cfg(feature = "deprecated")] pub SetIsPlaying: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetIsPlaying: usize, - #[cfg(feature = "deprecated")] pub IsPlaying: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsPlaying: usize, - #[cfg(feature = "deprecated")] pub SetAlbumArt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAlbumArt: usize, - #[cfg(feature = "deprecated")] pub AlbumArt: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AlbumArt: usize, } windows_core::imp::define_interface!(IMediaExtension, IMediaExtension_Vtbl, 0x07915118_45df_442b_8a3f_f7826a6370ab); impl windows_core::RuntimeType for IMediaExtension { @@ -1375,7 +1276,6 @@ unsafe impl Sync for ImageDisplayProperties {} pub struct MediaControl; #[cfg(feature = "deprecated")] impl MediaControl { - #[cfg(feature = "deprecated")] pub fn SoundLevelChanged(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1385,11 +1285,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).SoundLevelChanged)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveSoundLevelChanged(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveSoundLevelChanged)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn PlayPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1399,11 +1297,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).PlayPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemovePlayPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemovePlayPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn PausePressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1413,11 +1309,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).PausePressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemovePausePressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemovePausePressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn StopPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1427,11 +1321,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).StopPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveStopPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveStopPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn PlayPauseTogglePressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1441,11 +1333,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).PlayPauseTogglePressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemovePlayPauseTogglePressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemovePlayPauseTogglePressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn RecordPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1455,11 +1345,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).RecordPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveRecordPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRecordPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn NextTrackPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1469,11 +1357,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).NextTrackPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveNextTrackPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveNextTrackPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn PreviousTrackPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1483,11 +1369,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).PreviousTrackPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemovePreviousTrackPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemovePreviousTrackPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn FastForwardPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1497,11 +1381,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).FastForwardPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveFastForwardPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveFastForwardPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn RewindPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1511,11 +1393,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).RewindPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveRewindPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRewindPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn ChannelUpPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1525,11 +1405,9 @@ impl MediaControl { (windows_core::Interface::vtable(this).ChannelUpPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveChannelUpPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveChannelUpPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn ChannelDownPressed(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -1539,58 +1417,48 @@ impl MediaControl { (windows_core::Interface::vtable(this).ChannelDownPressed)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveChannelDownPressed(cookie: i64) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).RemoveChannelDownPressed)(windows_core::Interface::as_raw(this), cookie).ok() }) } - #[cfg(feature = "deprecated")] pub fn SoundLevel() -> windows_core::Result { Self::IMediaControl(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).SoundLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn SetTrackName(value: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).SetTrackName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() }) } - #[cfg(feature = "deprecated")] pub fn TrackName() -> windows_core::Result { Self::IMediaControl(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TrackName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "deprecated")] pub fn SetArtistName(value: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).SetArtistName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() }) } - #[cfg(feature = "deprecated")] pub fn ArtistName() -> windows_core::Result { Self::IMediaControl(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ArtistName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(feature = "deprecated")] pub fn SetIsPlaying(value: bool) -> windows_core::Result<()> { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).SetIsPlaying)(windows_core::Interface::as_raw(this), value).ok() }) } - #[cfg(feature = "deprecated")] pub fn IsPlaying() -> windows_core::Result { Self::IMediaControl(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IsPlaying)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn SetAlbumArt(value: P0) -> windows_core::Result<()> where P0: windows_core::Param, { Self::IMediaControl(|this| unsafe { (windows_core::Interface::vtable(this).SetAlbumArt)(windows_core::Interface::as_raw(this), value.param().abi()).ok() }) } - #[cfg(feature = "deprecated")] pub fn AlbumArt() -> windows_core::Result { Self::IMediaControl(|this| 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 1656c2cf8b..99ef8f214b 100644 --- a/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/BackgroundTransfer/mod.rs @@ -165,7 +165,7 @@ impl BackgroundDownloader { (windows_core::Interface::vtable(this).GetCurrentDownloadsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetCurrentDownloadsForGroupAsync(group: &windows_core::HSTRING) -> windows_core::Result>> { Self::IBackgroundDownloaderStaticMethods(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -182,7 +182,7 @@ 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn RequestUnconstrainedDownloadsAsync(operations: P0) -> windows_core::Result> where P0: windows_core::Param>, @@ -239,6 +239,7 @@ impl BackgroundDownloader { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMethod)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } + #[cfg(feature = "deprecated")] pub fn Group(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -246,6 +247,7 @@ impl BackgroundDownloader { (windows_core::Interface::vtable(this).Group)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetGroup(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetGroup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } @@ -273,6 +275,7 @@ impl BackgroundDownloader { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } + #[cfg(feature = "deprecated")] fn IBackgroundDownloaderUserConsent windows_core::Result>(callback: F) -> windows_core::Result { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) @@ -680,6 +683,7 @@ impl BackgroundUploader { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetMethod)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } + #[cfg(feature = "deprecated")] pub fn Group(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -687,6 +691,7 @@ impl BackgroundUploader { (windows_core::Interface::vtable(this).Group)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetGroup(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetGroup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } @@ -863,7 +868,7 @@ impl BackgroundUploader { (windows_core::Interface::vtable(this).GetCurrentUploadsAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn GetCurrentUploadsForGroupAsync(group: &windows_core::HSTRING) -> windows_core::Result>> { Self::IBackgroundUploaderStaticMethods(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -880,7 +885,7 @@ 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn RequestUnconstrainedUploadsAsync(operations: P0) -> windows_core::Result> where P0: windows_core::Param>, @@ -902,6 +907,7 @@ impl BackgroundUploader { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } + #[cfg(feature = "deprecated")] fn IBackgroundUploaderUserConsent windows_core::Result>(callback: F) -> windows_core::Result { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) @@ -985,6 +991,7 @@ impl DownloadOperation { (windows_core::Interface::vtable(this).Method)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn Group(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1253,9 +1260,9 @@ pub struct IBackgroundDownloaderStaticMethods_Vtbl { 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetCurrentDownloadsForGroupAsync: usize, } windows_core::imp::define_interface!(IBackgroundDownloaderStaticMethods2, IBackgroundDownloaderStaticMethods2_Vtbl, 0x2faa1327_1ad4_4ca5_b2cd_08dbf0746afe); @@ -1280,9 +1287,9 @@ impl windows_core::RuntimeType for IBackgroundDownloaderUserConsent { #[repr(C)] pub struct IBackgroundDownloaderUserConsent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] RequestUnconstrainedDownloadsAsync: usize, } windows_core::imp::define_interface!(IBackgroundTransferBase, IBackgroundTransferBase_Vtbl, 0x2a9da250_c769_458c_afe8_feb8d4d3b2ef); @@ -1338,6 +1345,7 @@ impl IBackgroundTransferBase { let this = self; unsafe { (windows_core::Interface::vtable(this).SetMethod)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } + #[cfg(feature = "deprecated")] pub fn Group(&self) -> windows_core::Result { let this = self; unsafe { @@ -1345,6 +1353,7 @@ impl IBackgroundTransferBase { (windows_core::Interface::vtable(this).Group)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetGroup(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetGroup)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } @@ -1523,8 +1532,14 @@ pub struct IBackgroundTransferBase_Vtbl { SetProxyCredential: 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 = "deprecated")] pub Group: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Group: usize, + #[cfg(feature = "deprecated")] pub SetGroup: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetGroup: usize, pub CostPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut BackgroundTransferCostPolicy) -> windows_core::HRESULT, pub SetCostPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, BackgroundTransferCostPolicy) -> windows_core::HRESULT, } @@ -1703,6 +1718,7 @@ impl IBackgroundTransferOperation { (windows_core::Interface::vtable(this).Method)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn Group(&self) -> windows_core::Result { let this = self; unsafe { @@ -1872,7 +1888,10 @@ pub struct IBackgroundTransferOperation_Vtbl { pub Guid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, pub RequestedUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub Method: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub Group: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Group: usize, pub CostPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, *mut BackgroundTransferCostPolicy) -> windows_core::HRESULT, pub SetCostPolicy: unsafe extern "system" fn(*mut core::ffi::c_void, BackgroundTransferCostPolicy) -> windows_core::HRESULT, #[cfg(feature = "Storage_Streams")] @@ -2055,9 +2074,9 @@ pub struct IBackgroundUploaderStaticMethods_Vtbl { 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] GetCurrentUploadsForGroupAsync: usize, } windows_core::imp::define_interface!(IBackgroundUploaderStaticMethods2, IBackgroundUploaderStaticMethods2_Vtbl, 0xe919ac62_ea08_42f0_a2ac_07e467549080); @@ -2082,9 +2101,9 @@ impl windows_core::RuntimeType for IBackgroundUploaderUserConsent { #[repr(C)] pub struct IBackgroundUploaderUserConsent_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] RequestUnconstrainedUploadsAsync: usize, } windows_core::imp::define_interface!(IContentPrefetcher, IContentPrefetcher_Vtbl, 0xa8d6f754_7dc1_4cd9_8810_2a6aa9417e11); @@ -2209,10 +2228,7 @@ impl windows_core::RuntimeType for IUnconstrainedTransferRequestResult { #[repr(C)] pub struct IUnconstrainedTransferRequestResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub IsUnconstrained: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsUnconstrained: usize, } windows_core::imp::define_interface!(IUploadOperation, IUploadOperation_Vtbl, 0x3e5624e0_7389_434c_8b35_427fd36bbdae); impl windows_core::RuntimeType for IUploadOperation { @@ -2312,7 +2328,6 @@ pub struct UnconstrainedTransferRequestResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(UnconstrainedTransferRequestResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl UnconstrainedTransferRequestResult { - #[cfg(feature = "deprecated")] pub fn IsUnconstrained(&self) -> windows_core::Result { let this = self; unsafe { @@ -2365,6 +2380,7 @@ impl UploadOperation { (windows_core::Interface::vtable(this).Method)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn Group(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { diff --git a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs index eab8dace12..a7366ee72f 100644 --- a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs @@ -270,6 +270,7 @@ impl ConnectionProfile { (windows_core::Interface::vtable(this).NetworkAdapter)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn GetLocalUsage(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime) -> windows_core::Result { let this = self; unsafe { @@ -277,6 +278,7 @@ impl ConnectionProfile { (windows_core::Interface::vtable(this).GetLocalUsage)(windows_core::Interface::as_raw(this), starttime, endtime, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn GetLocalUsagePerRoamingStates(&self, starttime: super::super::Foundation::DateTime, endtime: super::super::Foundation::DateTime, states: RoamingStates) -> windows_core::Result { let this = self; unsafe { @@ -761,7 +763,6 @@ pub struct DataUsage(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(DataUsage, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl DataUsage { - #[cfg(feature = "deprecated")] pub fn BytesSent(&self) -> windows_core::Result { let this = self; unsafe { @@ -769,7 +770,6 @@ impl DataUsage { (windows_core::Interface::vtable(this).BytesSent)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn BytesReceived(&self) -> windows_core::Result { let this = self; unsafe { @@ -921,8 +921,14 @@ pub struct IConnectionProfile_Vtbl { 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, + #[cfg(feature = "deprecated")] pub GetLocalUsage: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::DateTime, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + GetLocalUsage: usize, + #[cfg(feature = "deprecated")] pub GetLocalUsagePerRoamingStates: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::DateTime, super::super::Foundation::DateTime, RoamingStates, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + GetLocalUsagePerRoamingStates: usize, pub NetworkSecuritySettings: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, } windows_core::imp::define_interface!(IConnectionProfile2, IConnectionProfile2_Vtbl, 0xe2045145_4c9f_400c_9150_7ec7d6e2888a); @@ -1101,14 +1107,8 @@ impl windows_core::RuntimeType for IDataUsage { #[repr(C)] pub struct IDataUsage_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub BytesSent: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - BytesSent: usize, - #[cfg(feature = "deprecated")] pub BytesReceived: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - BytesReceived: usize, } windows_core::imp::define_interface!(IIPInformation, IIPInformation_Vtbl, 0xd85145e0_138f_47d7_9b3a_36bb488cef33); impl windows_core::RuntimeType for IIPInformation { diff --git a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs index b7710eb343..68fec4f7a5 100644 --- a/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs +++ b/crates/libs/windows/src/Windows/Perception/Spatial/mod.rs @@ -120,18 +120,15 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", 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", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] TryImportAnchorsAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", 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", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "Storage_Streams")))] TryExportAnchorsAsync: usize, - #[cfg(feature = "deprecated")] pub RequestAccessAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RequestAccessAsync: usize, } windows_core::imp::define_interface!(ISpatialBoundingVolume, ISpatialBoundingVolume_Vtbl, 0xfb2065da_68c3_33df_b7af_4c787207999c); impl windows_core::RuntimeType for ISpatialBoundingVolume { @@ -297,13 +294,13 @@ pub struct ISpatialLocation_Vtbl { pub AbsoluteLinearAcceleration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Vector3) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Numerics"))] AbsoluteLinearAcceleration: usize, - #[cfg(feature = "Foundation_Numerics")] + #[cfg(all(feature = "Foundation_Numerics", feature = "deprecated"))] pub AbsoluteAngularVelocity: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] + #[cfg(not(all(feature = "Foundation_Numerics", feature = "deprecated")))] AbsoluteAngularVelocity: usize, - #[cfg(feature = "Foundation_Numerics")] + #[cfg(all(feature = "Foundation_Numerics", feature = "deprecated"))] pub AbsoluteAngularAcceleration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Numerics::Quaternion) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] + #[cfg(not(all(feature = "Foundation_Numerics", feature = "deprecated")))] AbsoluteAngularAcceleration: usize, } windows_core::imp::define_interface!(ISpatialLocation2, ISpatialLocation2_Vtbl, 0x117f2416_38a7_4a18_b404_ab8fabe1d78b); @@ -729,7 +726,7 @@ unsafe impl Sync for SpatialAnchorStore {} pub struct SpatialAnchorTransferManager; #[cfg(feature = "deprecated")] impl SpatialAnchorTransferManager { - #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn TryImportAnchorsAsync(stream: P0) -> windows_core::Result>> where P0: windows_core::Param, @@ -739,7 +736,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn TryExportAnchorsAsync(anchors: P0, stream: P1) -> windows_core::Result> where P0: windows_core::Param>>, @@ -750,7 +747,6 @@ impl SpatialAnchorTransferManager { (windows_core::Interface::vtable(this).TryExportAnchorsAsync)(windows_core::Interface::as_raw(this), anchors.param().abi(), stream.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn RequestAccessAsync() -> windows_core::Result> { Self::ISpatialAnchorTransferManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1273,7 +1269,7 @@ impl SpatialLocation { (windows_core::Interface::vtable(this).AbsoluteLinearAcceleration)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Numerics")] + #[cfg(all(feature = "Foundation_Numerics", feature = "deprecated"))] pub fn AbsoluteAngularVelocity(&self) -> windows_core::Result { let this = self; unsafe { @@ -1281,7 +1277,7 @@ impl SpatialLocation { (windows_core::Interface::vtable(this).AbsoluteAngularVelocity)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "Foundation_Numerics")] + #[cfg(all(feature = "Foundation_Numerics", feature = "deprecated"))] pub fn AbsoluteAngularAcceleration(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs b/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs index e704be6791..cf3f7661e0 100644 --- a/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs +++ b/crates/libs/windows/src/Windows/Phone/System/Profile/mod.rs @@ -8,16 +8,12 @@ impl windows_core::RuntimeType for IRetailModeStatics { #[repr(C)] pub struct IRetailModeStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub RetailModeEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RetailModeEnabled: usize, } #[cfg(feature = "deprecated")] pub struct RetailMode; #[cfg(feature = "deprecated")] impl RetailMode { - #[cfg(feature = "deprecated")] pub fn RetailModeEnabled() -> windows_core::Result { Self::IRetailModeStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs index b4d5d883b3..93e3eecbba 100644 --- a/crates/libs/windows/src/Windows/Security/Credentials/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Credentials/mod.rs @@ -257,7 +257,10 @@ pub struct IWebAccountProvider_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 = "deprecated")] pub IconUri: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + IconUri: usize, } windows_core::imp::define_interface!(IWebAccountProvider2, IWebAccountProvider2_Vtbl, 0x4a01eb05_4e42_41d4_b518_e008a5163614); impl windows_core::RuntimeType for IWebAccountProvider2 { @@ -943,6 +946,7 @@ impl WebAccountProvider { (windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn IconUri(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs index 424216ef16..18f12a63e6 100644 --- a/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs +++ b/crates/libs/windows/src/Windows/Security/EnterpriseData/mod.rs @@ -383,7 +383,7 @@ impl windows_core::RuntimeType for FileProtectionStatus { pub struct FileRevocationManager; #[cfg(feature = "deprecated")] impl FileRevocationManager { - #[cfg(all(feature = "Storage", feature = "deprecated"))] + #[cfg(feature = "Storage")] pub fn ProtectAsync(storageitem: P0, enterpriseidentity: &windows_core::HSTRING) -> windows_core::Result> where P0: windows_core::Param, @@ -393,7 +393,7 @@ impl FileRevocationManager { (windows_core::Interface::vtable(this).ProtectAsync)(windows_core::Interface::as_raw(this), storageitem.param().abi(), core::mem::transmute_copy(enterpriseidentity), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Storage", feature = "deprecated"))] + #[cfg(feature = "Storage")] pub fn CopyProtectionAsync(sourcestorageitem: P0, targetstorageitem: P1) -> windows_core::Result> where P0: windows_core::Param, @@ -404,11 +404,10 @@ impl FileRevocationManager { (windows_core::Interface::vtable(this).CopyProtectionAsync)(windows_core::Interface::as_raw(this), sourcestorageitem.param().abi(), targetstorageitem.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn Revoke(enterpriseidentity: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IFileRevocationManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).Revoke)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(enterpriseidentity)).ok() }) } - #[cfg(all(feature = "Storage", feature = "deprecated"))] + #[cfg(feature = "Storage")] pub fn GetStatusAsync(storageitem: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -623,21 +622,18 @@ impl windows_core::RuntimeType for IFileRevocationManagerStatics { #[repr(C)] pub struct IFileRevocationManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Storage", feature = "deprecated"))] + #[cfg(feature = "Storage")] pub ProtectAsync: 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 = "Storage", feature = "deprecated")))] + #[cfg(not(feature = "Storage"))] ProtectAsync: usize, - #[cfg(all(feature = "Storage", feature = "deprecated"))] + #[cfg(feature = "Storage")] pub CopyProtectionAsync: 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 = "Storage", feature = "deprecated")))] + #[cfg(not(feature = "Storage"))] CopyProtectionAsync: usize, - #[cfg(feature = "deprecated")] pub Revoke: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Revoke: usize, - #[cfg(all(feature = "Storage", feature = "deprecated"))] + #[cfg(feature = "Storage")] pub GetStatusAsync: 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 = "Storage", feature = "deprecated")))] + #[cfg(not(feature = "Storage"))] GetStatusAsync: usize, } windows_core::imp::define_interface!(IFileUnprotectOptions, IFileUnprotectOptions_Vtbl, 0x7d1312f1_3b0d_4dd8_a1f8_1ec53822e2f3); diff --git a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs index aa45265410..62efb92c85 100644 --- a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs @@ -82,50 +82,20 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironment { #[repr(C)] pub struct IIsolatedWindowsEnvironment_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Id: usize, - #[cfg(feature = "deprecated")] pub StartProcessSilentlyAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, IsolatedWindowsEnvironmentActivator, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - StartProcessSilentlyAsync: usize, - #[cfg(feature = "deprecated")] pub StartProcessSilentlyWithTelemetryAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut core::ffi::c_void, IsolatedWindowsEnvironmentActivator, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - StartProcessSilentlyWithTelemetryAsync: usize, - #[cfg(feature = "deprecated")] pub ShareFolderAsync: 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 = "deprecated"))] - ShareFolderAsync: usize, - #[cfg(feature = "deprecated")] pub ShareFolderWithTelemetryAsync: 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 = "deprecated"))] - ShareFolderWithTelemetryAsync: usize, - #[cfg(feature = "deprecated")] pub LaunchFileWithUIAsync: 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 = "deprecated"))] - LaunchFileWithUIAsync: usize, - #[cfg(feature = "deprecated")] 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, - #[cfg(not(feature = "deprecated"))] - LaunchFileWithUIAndTelemetryAsync: usize, - #[cfg(feature = "deprecated")] pub TerminateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TerminateAsync: usize, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - TerminateWithTelemetryAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] RegisterMessageReceiver: usize, - #[cfg(feature = "deprecated")] pub UnregisterMessageReceiver: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - UnregisterMessageReceiver: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironment2, IIsolatedWindowsEnvironment2_Vtbl, 0x2d365f39_88bd_4ab4_93cf_7e2bcef337c0); @@ -137,13 +107,13 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironment2 { #[repr(C)] pub struct IIsolatedWindowsEnvironment2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] PostMessageToReceiverAsync: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] PostMessageToReceiverWithTelemetryAsync: usize, } #[cfg(feature = "deprecated")] @@ -156,18 +126,9 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironment3 { #[repr(C)] pub struct IIsolatedWindowsEnvironment3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub GetUserInfo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetUserInfo: usize, - #[cfg(feature = "deprecated")] pub ShareFileAsync: 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 = "deprecated"))] - ShareFileAsync: usize, - #[cfg(feature = "deprecated")] pub ShareFileWithTelemetryAsync: 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 = "deprecated"))] - ShareFileWithTelemetryAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironment4, IIsolatedWindowsEnvironment4_Vtbl, 0x11e3701a_dd9e_4f1b_812c_4020f307f93c); @@ -179,10 +140,7 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironment4 { #[repr(C)] pub struct IIsolatedWindowsEnvironment4_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ChangePriority: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentCreationPriority) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ChangePriority: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentCreateResult, IIsolatedWindowsEnvironmentCreateResult_Vtbl, 0xef9a5e58_dcd7_45c2_9c85_ab642a715e8e); @@ -194,18 +152,9 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentCreateResult { #[repr(C)] pub struct IIsolatedWindowsEnvironmentCreateResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentCreateStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Status: usize, - #[cfg(feature = "deprecated")] pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExtendedError: usize, - #[cfg(feature = "deprecated")] pub Environment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Environment: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentCreateResult2, IIsolatedWindowsEnvironmentCreateResult2_Vtbl, 0xa547dbc7_61d4_4fb8_ab5c_edefa3d388ad); @@ -217,10 +166,7 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentCreateResult2 { #[repr(C)] pub struct IIsolatedWindowsEnvironmentCreateResult2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub ChangeCreationPriority: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentCreationPriority) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ChangeCreationPriority: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentFactory, IIsolatedWindowsEnvironmentFactory_Vtbl, 0x1aca93e7_e804_454d_8466_f9897c20b0f6); @@ -232,21 +178,12 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentFactory { #[repr(C)] pub struct IIsolatedWindowsEnvironmentFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] 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 = "deprecated"))] - CreateAsync: usize, - #[cfg(feature = "deprecated")] 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, - #[cfg(not(feature = "deprecated"))] - CreateWithTelemetryAsync: usize, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - GetById: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] FindByOwnerId: usize, } #[cfg(feature = "deprecated")] @@ -259,18 +196,9 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentFile { #[repr(C)] pub struct IIsolatedWindowsEnvironmentFile_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Id: usize, - #[cfg(feature = "deprecated")] pub HostPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - HostPath: usize, - #[cfg(feature = "deprecated")] pub Close: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Close: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentFile2, IIsolatedWindowsEnvironmentFile2_Vtbl, 0x4eeb8dec_ad5d_4b0a_b754_f36c3d46d684); @@ -282,14 +210,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentFile2 { #[repr(C)] pub struct IIsolatedWindowsEnvironmentFile2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub GuestPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GuestPath: usize, - #[cfg(feature = "deprecated")] pub IsReadOnly: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsReadOnly: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentHostStatics, IIsolatedWindowsEnvironmentHostStatics_Vtbl, 0x2c0e22c7_05a0_517a_b81c_6ee8790c381f); @@ -301,13 +223,10 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentHostStatics { #[repr(C)] pub struct IIsolatedWindowsEnvironmentHostStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub IsReady: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - IsReady: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] HostErrors: usize, } #[cfg(feature = "deprecated")] @@ -320,18 +239,9 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentLaunchFileResult { #[repr(C)] pub struct IIsolatedWindowsEnvironmentLaunchFileResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentLaunchFileStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Status: usize, - #[cfg(feature = "deprecated")] pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExtendedError: usize, - #[cfg(feature = "deprecated")] pub File: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - File: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentOptions, IIsolatedWindowsEnvironmentOptions_Vtbl, 0xb71d98f7_61f0_4008_b207_0bf9eb2d76f2); @@ -343,74 +253,23 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentOptions { #[repr(C)] pub struct IIsolatedWindowsEnvironmentOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub EnvironmentOwnerId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - EnvironmentOwnerId: usize, - #[cfg(feature = "deprecated")] pub SetEnvironmentOwnerId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetEnvironmentOwnerId: usize, - #[cfg(feature = "deprecated")] pub AllowedClipboardFormats: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AllowedClipboardFormats: usize, - #[cfg(feature = "deprecated")] pub SetAllowedClipboardFormats: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAllowedClipboardFormats: usize, - #[cfg(feature = "deprecated")] pub ClipboardCopyPasteDirections: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentClipboardCopyPasteDirections) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ClipboardCopyPasteDirections: usize, - #[cfg(feature = "deprecated")] pub SetClipboardCopyPasteDirections: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentClipboardCopyPasteDirections) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetClipboardCopyPasteDirections: usize, - #[cfg(feature = "deprecated")] pub AvailablePrinters: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentAvailablePrinters) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AvailablePrinters: usize, - #[cfg(feature = "deprecated")] pub SetAvailablePrinters: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentAvailablePrinters) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAvailablePrinters: usize, - #[cfg(feature = "deprecated")] pub SharedHostFolderPath: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SharedHostFolderPath: usize, - #[cfg(feature = "deprecated")] pub SharedFolderNameInEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SharedFolderNameInEnvironment: usize, - #[cfg(feature = "deprecated")] pub ShareHostFolderForUntrustedItems: 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 = "deprecated"))] - ShareHostFolderForUntrustedItems: usize, - #[cfg(feature = "deprecated")] pub PersistUserProfile: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - PersistUserProfile: usize, - #[cfg(feature = "deprecated")] pub SetPersistUserProfile: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetPersistUserProfile: usize, - #[cfg(feature = "deprecated")] pub AllowGraphicsHardwareAcceleration: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AllowGraphicsHardwareAcceleration: usize, - #[cfg(feature = "deprecated")] pub SetAllowGraphicsHardwareAcceleration: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAllowGraphicsHardwareAcceleration: usize, - #[cfg(feature = "deprecated")] pub AllowCameraAndMicrophoneAccess: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AllowCameraAndMicrophoneAccess: usize, - #[cfg(feature = "deprecated")] pub SetAllowCameraAndMicrophoneAccess: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAllowCameraAndMicrophoneAccess: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentOptions2, IIsolatedWindowsEnvironmentOptions2_Vtbl, 0x10d7cc31_8b8f_4b9d_b22c_617103b55b08); @@ -422,14 +281,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentOptions2 { #[repr(C)] pub struct IIsolatedWindowsEnvironmentOptions2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub WindowAnnotationOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - WindowAnnotationOverride: usize, - #[cfg(feature = "deprecated")] pub SetWindowAnnotationOverride: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetWindowAnnotationOverride: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentOptions3, IIsolatedWindowsEnvironmentOptions3_Vtbl, 0x98d5aa23_161f_4cd9_8a9c_269b30122b0d); @@ -441,30 +294,12 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentOptions3 { #[repr(C)] pub struct IIsolatedWindowsEnvironmentOptions3_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub AllowedClipboardFormatsToEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AllowedClipboardFormatsToEnvironment: usize, - #[cfg(feature = "deprecated")] pub SetAllowedClipboardFormatsToEnvironment: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAllowedClipboardFormatsToEnvironment: usize, - #[cfg(feature = "deprecated")] pub AllowedClipboardFormatsToHost: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AllowedClipboardFormatsToHost: usize, - #[cfg(feature = "deprecated")] pub SetAllowedClipboardFormatsToHost: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAllowedClipboardFormatsToHost: usize, - #[cfg(feature = "deprecated")] pub CreationPriority: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentCreationPriority) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CreationPriority: usize, - #[cfg(feature = "deprecated")] pub SetCreationPriority: unsafe extern "system" fn(*mut core::ffi::c_void, IsolatedWindowsEnvironmentCreationPriority) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetCreationPriority: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentOwnerRegistrationData, IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl, 0xf888ec22_e8cf_56c0_b1df_90af4ad80e84); @@ -476,21 +311,21 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentOwnerRegistrationD #[repr(C)] pub struct IIsolatedWindowsEnvironmentOwnerRegistrationData_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] ShareableFolders: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] ProcessesRunnableAsSystem: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] ProcessesRunnableAsUser: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] ActivationFileExtensions: usize, } #[cfg(feature = "deprecated")] @@ -503,14 +338,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentOwnerRegistrationR #[repr(C)] pub struct IIsolatedWindowsEnvironmentOwnerRegistrationResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentOwnerRegistrationStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Status: usize, - #[cfg(feature = "deprecated")] pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExtendedError: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentOwnerRegistrationStatics, IIsolatedWindowsEnvironmentOwnerRegistrationStatics_Vtbl, 0x10951754_204b_5ec9_9de3_df792d074a61); @@ -522,14 +351,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentOwnerRegistrationS #[repr(C)] pub struct IIsolatedWindowsEnvironmentOwnerRegistrationStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] 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(not(feature = "deprecated"))] - Register: usize, - #[cfg(feature = "deprecated")] pub Unregister: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Unregister: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentPostMessageResult, IIsolatedWindowsEnvironmentPostMessageResult_Vtbl, 0x0dfa28fa_2ef0_4d8f_b341_3171b2df93b1); @@ -541,14 +364,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentPostMessageResult #[repr(C)] pub struct IIsolatedWindowsEnvironmentPostMessageResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentPostMessageStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Status: usize, - #[cfg(feature = "deprecated")] pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExtendedError: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentProcess, IIsolatedWindowsEnvironmentProcess_Vtbl, 0xa858c3ef_8172_4f10_af93_cbe60af88d09); @@ -560,26 +377,11 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentProcess { #[repr(C)] pub struct IIsolatedWindowsEnvironmentProcess_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub State: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentProcessState) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - State: usize, - #[cfg(feature = "deprecated")] pub ExitCode: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExitCode: usize, - #[cfg(feature = "deprecated")] pub WaitForExit: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - WaitForExit: usize, - #[cfg(feature = "deprecated")] pub WaitForExitWithTimeout: unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - WaitForExitWithTimeout: usize, - #[cfg(feature = "deprecated")] pub WaitForExitAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - WaitForExitAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentShareFileRequestOptions, IIsolatedWindowsEnvironmentShareFileRequestOptions_Vtbl, 0xc9190ed8_0fd0_4946_bb88_117a60737b61); @@ -591,14 +393,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentShareFileRequestOp #[repr(C)] pub struct IIsolatedWindowsEnvironmentShareFileRequestOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub AllowWrite: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AllowWrite: usize, - #[cfg(feature = "deprecated")] pub SetAllowWrite: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAllowWrite: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentShareFileResult, IIsolatedWindowsEnvironmentShareFileResult_Vtbl, 0xaec7caa7_9ac6_4bf5_8b91_5c1adf0d7d00); @@ -610,18 +406,9 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentShareFileResult { #[repr(C)] pub struct IIsolatedWindowsEnvironmentShareFileResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentShareFileStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Status: usize, - #[cfg(feature = "deprecated")] pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExtendedError: usize, - #[cfg(feature = "deprecated")] pub File: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - File: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentShareFolderRequestOptions, IIsolatedWindowsEnvironmentShareFolderRequestOptions_Vtbl, 0xc405eb7d_7053_4f6a_9b87_746846ed19b2); @@ -633,14 +420,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentShareFolderRequest #[repr(C)] pub struct IIsolatedWindowsEnvironmentShareFolderRequestOptions_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub AllowWrite: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AllowWrite: usize, - #[cfg(feature = "deprecated")] pub SetAllowWrite: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetAllowWrite: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentShareFolderResult, IIsolatedWindowsEnvironmentShareFolderResult_Vtbl, 0x556ba72e_ca9d_4211_b143_1cedc86eb2fe); @@ -652,14 +433,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentShareFolderResult #[repr(C)] pub struct IIsolatedWindowsEnvironmentShareFolderResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentShareFolderStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Status: usize, - #[cfg(feature = "deprecated")] pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExtendedError: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentStartProcessResult, IIsolatedWindowsEnvironmentStartProcessResult_Vtbl, 0x8fa1dc2f_57da_4bb5_9c06_fa072d2032e2); @@ -671,18 +446,9 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentStartProcessResult #[repr(C)] pub struct IIsolatedWindowsEnvironmentStartProcessResult_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Status: unsafe extern "system" fn(*mut core::ffi::c_void, *mut IsolatedWindowsEnvironmentStartProcessStatus) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Status: usize, - #[cfg(feature = "deprecated")] pub ExtendedError: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::HRESULT) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExtendedError: usize, - #[cfg(feature = "deprecated")] pub Process: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Process: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentTelemetryParameters, IIsolatedWindowsEnvironmentTelemetryParameters_Vtbl, 0xebdb3cab_7a3a_4524_a0f4_f96e284d33cd); @@ -694,14 +460,8 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentTelemetryParameter #[repr(C)] pub struct IIsolatedWindowsEnvironmentTelemetryParameters_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CorrelationId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CorrelationId: usize, - #[cfg(feature = "deprecated")] pub SetCorrelationId: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetCorrelationId: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentUserInfo, IIsolatedWindowsEnvironmentUserInfo_Vtbl, 0x8a9c75ae_69ba_4001_96fc_19a02703b340); @@ -713,18 +473,9 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentUserInfo { #[repr(C)] pub struct IIsolatedWindowsEnvironmentUserInfo_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub EnvironmentUserSid: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - EnvironmentUserSid: usize, - #[cfg(feature = "deprecated")] pub EnvironmentUserName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - EnvironmentUserName: usize, - #[cfg(feature = "deprecated")] pub TryWaitForSignInAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TryWaitForSignInAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsEnvironmentUserInfo2, IIsolatedWindowsEnvironmentUserInfo2_Vtbl, 0xb0bdd5dd_91d7_481e_94f2_2a5a6bdf9383); @@ -736,10 +487,7 @@ impl windows_core::RuntimeType for IIsolatedWindowsEnvironmentUserInfo2 { #[repr(C)] pub struct IIsolatedWindowsEnvironmentUserInfo2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub TryWaitForSignInWithProgressAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TryWaitForSignInWithProgressAsync: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsHostMessengerStatics, IIsolatedWindowsHostMessengerStatics_Vtbl, 0x06e444bb_53c0_4889_8fa3_53592e37cf21); @@ -751,14 +499,11 @@ impl windows_core::RuntimeType for IIsolatedWindowsHostMessengerStatics { #[repr(C)] pub struct IIsolatedWindowsHostMessengerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] PostMessageToReceiver: usize, - #[cfg(feature = "deprecated")] pub GetFileId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetFileId: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IIsolatedWindowsHostMessengerStatics2, IIsolatedWindowsHostMessengerStatics2_Vtbl, 0x55ef9ebc_0444_42ad_832d_1b89c089d1ca); @@ -770,14 +515,11 @@ impl windows_core::RuntimeType for IIsolatedWindowsHostMessengerStatics2 { #[repr(C)] pub struct IIsolatedWindowsHostMessengerStatics2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[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(all(feature = "Foundation_Collections", feature = "deprecated")))] + #[cfg(not(feature = "Foundation_Collections"))] RegisterHostMessageReceiver: usize, - #[cfg(feature = "deprecated")] pub UnregisterHostMessageReceiver: unsafe extern "system" fn(*mut core::ffi::c_void, windows_core::GUID) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - UnregisterHostMessageReceiver: usize, } #[cfg(feature = "deprecated")] #[repr(transparent)] @@ -787,7 +529,6 @@ pub struct IsolatedWindowsEnvironment(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironment, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironment { - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = self; unsafe { @@ -795,7 +536,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn StartProcessSilentlyAsync(&self, hostexepath: &windows_core::HSTRING, arguments: &windows_core::HSTRING, activator: IsolatedWindowsEnvironmentActivator) -> windows_core::Result> { let this = self; unsafe { @@ -803,7 +543,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).StartProcessSilentlyAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostexepath), core::mem::transmute_copy(arguments), activator, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn StartProcessSilentlyWithTelemetryAsync(&self, hostexepath: &windows_core::HSTRING, arguments: &windows_core::HSTRING, activator: IsolatedWindowsEnvironmentActivator, telemetryparameters: P3) -> windows_core::Result> where P3: windows_core::Param, @@ -814,7 +553,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).StartProcessSilentlyWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostexepath), core::mem::transmute_copy(arguments), activator, telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ShareFolderAsync(&self, hostfolder: &windows_core::HSTRING, requestoptions: P1) -> windows_core::Result> where P1: windows_core::Param, @@ -825,7 +563,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).ShareFolderAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostfolder), requestoptions.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ShareFolderWithTelemetryAsync(&self, hostfolder: &windows_core::HSTRING, requestoptions: P1, telemetryparameters: P2) -> windows_core::Result> where P1: windows_core::Param, @@ -837,7 +574,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).ShareFolderWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(hostfolder), requestoptions.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn LaunchFileWithUIAsync(&self, appexepath: &windows_core::HSTRING, argumentstemplate: &windows_core::HSTRING, filepath: &windows_core::HSTRING) -> windows_core::Result> { let this = self; unsafe { @@ -845,7 +581,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).LaunchFileWithUIAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appexepath), core::mem::transmute_copy(argumentstemplate), core::mem::transmute_copy(filepath), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn LaunchFileWithUIAndTelemetryAsync(&self, appexepath: &windows_core::HSTRING, argumentstemplate: &windows_core::HSTRING, filepath: &windows_core::HSTRING, telemetryparameters: P3) -> windows_core::Result> where P3: windows_core::Param, @@ -856,7 +591,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).LaunchFileWithUIAndTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(appexepath), core::mem::transmute_copy(argumentstemplate), core::mem::transmute_copy(filepath), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn TerminateAsync(&self) -> windows_core::Result { let this = self; unsafe { @@ -864,7 +598,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).TerminateAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn TerminateWithTelemetryAsync(&self, telemetryparameters: P0) -> windows_core::Result where P0: windows_core::Param, @@ -875,7 +608,7 @@ 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(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn RegisterMessageReceiver(&self, receiverid: windows_core::GUID, messagereceivedcallback: P1) -> windows_core::Result<()> where P1: windows_core::Param, @@ -883,12 +616,11 @@ impl IsolatedWindowsEnvironment { let this = self; unsafe { (windows_core::Interface::vtable(this).RegisterMessageReceiver)(windows_core::Interface::as_raw(this), receiverid, messagereceivedcallback.param().abi()).ok() } } - #[cfg(feature = "deprecated")] pub fn UnregisterMessageReceiver(&self, receiverid: windows_core::GUID) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).UnregisterMessageReceiver)(windows_core::Interface::as_raw(this), receiverid).ok() } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverAsync(&self, receiverid: windows_core::GUID, message: P1) -> windows_core::Result> where P1: windows_core::Param>, @@ -899,7 +631,7 @@ 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(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiverWithTelemetryAsync(&self, receiverid: windows_core::GUID, message: P1, telemetryparameters: P2) -> windows_core::Result> where P1: windows_core::Param>, @@ -911,7 +643,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).PostMessageToReceiverWithTelemetryAsync)(windows_core::Interface::as_raw(this), receiverid, message.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn GetUserInfo(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -919,7 +650,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).GetUserInfo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ShareFileAsync(&self, filepath: &windows_core::HSTRING, options: P1) -> windows_core::Result> where P1: windows_core::Param, @@ -930,7 +660,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).ShareFileAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ShareFileWithTelemetryAsync(&self, filepath: &windows_core::HSTRING, options: P1, telemetryparameters: P2) -> windows_core::Result> where P1: windows_core::Param, @@ -942,12 +671,10 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).ShareFileWithTelemetryAsync)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), options.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ChangePriority(&self, priority: IsolatedWindowsEnvironmentCreationPriority) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ChangePriority)(windows_core::Interface::as_raw(this), priority).ok() } } - #[cfg(feature = "deprecated")] pub fn CreateAsync(options: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -957,7 +684,6 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).CreateAsync)(windows_core::Interface::as_raw(this), options.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn CreateWithTelemetryAsync(options: P0, telemetryparameters: P1) -> windows_core::Result> where P0: windows_core::Param, @@ -968,14 +694,13 @@ impl IsolatedWindowsEnvironment { (windows_core::Interface::vtable(this).CreateWithTelemetryAsync)(windows_core::Interface::as_raw(this), options.param().abi(), telemetryparameters.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn GetById(environmentid: &windows_core::HSTRING) -> windows_core::Result { Self::IIsolatedWindowsEnvironmentFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); (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(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn FindByOwnerId(environmentownerid: &windows_core::HSTRING) -> windows_core::Result> { Self::IIsolatedWindowsEnvironmentFactory(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1181,7 +906,6 @@ pub struct IsolatedWindowsEnvironmentCreateResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentCreateResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentCreateResult { - #[cfg(feature = "deprecated")] pub fn Status(&self) -> windows_core::Result { let this = self; unsafe { @@ -1189,7 +913,6 @@ impl IsolatedWindowsEnvironmentCreateResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExtendedError(&self) -> windows_core::Result { let this = self; unsafe { @@ -1197,7 +920,6 @@ impl IsolatedWindowsEnvironmentCreateResult { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Environment(&self) -> windows_core::Result { let this = self; unsafe { @@ -1205,7 +927,6 @@ impl IsolatedWindowsEnvironmentCreateResult { (windows_core::Interface::vtable(this).Environment)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ChangeCreationPriority(&self, priority: IsolatedWindowsEnvironmentCreationPriority) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).ChangeCreationPriority)(windows_core::Interface::as_raw(this), priority).ok() } @@ -1263,7 +984,6 @@ pub struct IsolatedWindowsEnvironmentFile(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentFile, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentFile { - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = self; unsafe { @@ -1271,7 +991,6 @@ impl IsolatedWindowsEnvironmentFile { (windows_core::Interface::vtable(this).Id)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn HostPath(&self) -> windows_core::Result { let this = self; unsafe { @@ -1279,12 +998,10 @@ impl IsolatedWindowsEnvironmentFile { (windows_core::Interface::vtable(this).HostPath)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn Close(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).Close)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn GuestPath(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1292,7 +1009,6 @@ impl IsolatedWindowsEnvironmentFile { (windows_core::Interface::vtable(this).GuestPath)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn IsReadOnly(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1322,14 +1038,13 @@ unsafe impl Sync for IsolatedWindowsEnvironmentFile {} pub struct IsolatedWindowsEnvironmentHost; #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentHost { - #[cfg(feature = "deprecated")] pub fn IsReady() -> windows_core::Result { Self::IIsolatedWindowsEnvironmentHostStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).IsReady)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn HostErrors() -> windows_core::Result> { Self::IIsolatedWindowsEnvironmentHostStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -1369,7 +1084,6 @@ pub struct IsolatedWindowsEnvironmentLaunchFileResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentLaunchFileResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentLaunchFileResult { - #[cfg(feature = "deprecated")] pub fn Status(&self) -> windows_core::Result { let this = self; unsafe { @@ -1377,7 +1091,6 @@ impl IsolatedWindowsEnvironmentLaunchFileResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExtendedError(&self) -> windows_core::Result { let this = self; unsafe { @@ -1385,7 +1098,6 @@ impl IsolatedWindowsEnvironmentLaunchFileResult { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn File(&self) -> windows_core::Result { let this = self; unsafe { @@ -1443,7 +1155,6 @@ impl IsolatedWindowsEnvironmentOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn EnvironmentOwnerId(&self) -> windows_core::Result { let this = self; unsafe { @@ -1451,12 +1162,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).EnvironmentOwnerId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetEnvironmentOwnerId(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetEnvironmentOwnerId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn AllowedClipboardFormats(&self) -> windows_core::Result { let this = self; unsafe { @@ -1464,12 +1173,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).AllowedClipboardFormats)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAllowedClipboardFormats(&self, value: IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowedClipboardFormats)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn ClipboardCopyPasteDirections(&self) -> windows_core::Result { let this = self; unsafe { @@ -1477,12 +1184,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).ClipboardCopyPasteDirections)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetClipboardCopyPasteDirections(&self, value: IsolatedWindowsEnvironmentClipboardCopyPasteDirections) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetClipboardCopyPasteDirections)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn AvailablePrinters(&self) -> windows_core::Result { let this = self; unsafe { @@ -1490,12 +1195,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).AvailablePrinters)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAvailablePrinters(&self, value: IsolatedWindowsEnvironmentAvailablePrinters) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAvailablePrinters)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn SharedHostFolderPath(&self) -> windows_core::Result { let this = self; unsafe { @@ -1503,7 +1206,6 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).SharedHostFolderPath)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SharedFolderNameInEnvironment(&self) -> windows_core::Result { let this = self; unsafe { @@ -1511,12 +1213,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).SharedFolderNameInEnvironment)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn ShareHostFolderForUntrustedItems(&self, sharedhostfolderpath: &windows_core::HSTRING, sharefoldernameinenvironment: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).ShareHostFolderForUntrustedItems)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(sharedhostfolderpath), core::mem::transmute_copy(sharefoldernameinenvironment)).ok() } } - #[cfg(feature = "deprecated")] pub fn PersistUserProfile(&self) -> windows_core::Result { let this = self; unsafe { @@ -1524,12 +1224,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).PersistUserProfile)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetPersistUserProfile(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetPersistUserProfile)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn AllowGraphicsHardwareAcceleration(&self) -> windows_core::Result { let this = self; unsafe { @@ -1537,12 +1235,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).AllowGraphicsHardwareAcceleration)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAllowGraphicsHardwareAcceleration(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowGraphicsHardwareAcceleration)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn AllowCameraAndMicrophoneAccess(&self) -> windows_core::Result { let this = self; unsafe { @@ -1550,12 +1246,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).AllowCameraAndMicrophoneAccess)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAllowCameraAndMicrophoneAccess(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowCameraAndMicrophoneAccess)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn WindowAnnotationOverride(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1563,12 +1257,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).WindowAnnotationOverride)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetWindowAnnotationOverride(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetWindowAnnotationOverride)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } - #[cfg(feature = "deprecated")] pub fn AllowedClipboardFormatsToEnvironment(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1576,12 +1268,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).AllowedClipboardFormatsToEnvironment)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAllowedClipboardFormatsToEnvironment(&self, value: IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAllowedClipboardFormatsToEnvironment)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn AllowedClipboardFormatsToHost(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1589,12 +1279,10 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).AllowedClipboardFormatsToHost)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAllowedClipboardFormatsToHost(&self, value: IsolatedWindowsEnvironmentAllowedClipboardFormats) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetAllowedClipboardFormatsToHost)(windows_core::Interface::as_raw(this), value).ok() } } - #[cfg(feature = "deprecated")] pub fn CreationPriority(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -1602,7 +1290,6 @@ impl IsolatedWindowsEnvironmentOptions { (windows_core::Interface::vtable(this).CreationPriority)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetCreationPriority(&self, value: IsolatedWindowsEnvironmentCreationPriority) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetCreationPriority)(windows_core::Interface::as_raw(this), value).ok() } @@ -1629,7 +1316,6 @@ unsafe impl Sync for IsolatedWindowsEnvironmentOptions {} pub struct IsolatedWindowsEnvironmentOwnerRegistration; #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentOwnerRegistration { - #[cfg(feature = "deprecated")] pub fn Register(ownername: &windows_core::HSTRING, ownerregistrationdata: P1) -> windows_core::Result where P1: windows_core::Param, @@ -1639,7 +1325,6 @@ impl IsolatedWindowsEnvironmentOwnerRegistration { (windows_core::Interface::vtable(this).Register)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(ownername), ownerregistrationdata.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn Unregister(ownername: &windows_core::HSTRING) -> windows_core::Result<()> { Self::IIsolatedWindowsEnvironmentOwnerRegistrationStatics(|this| unsafe { (windows_core::Interface::vtable(this).Unregister)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(ownername)).ok() }) } @@ -1667,7 +1352,7 @@ impl IsolatedWindowsEnvironmentOwnerRegistrationData { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ShareableFolders(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1675,7 +1360,7 @@ impl IsolatedWindowsEnvironmentOwnerRegistrationData { (windows_core::Interface::vtable(this).ShareableFolders)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ProcessesRunnableAsSystem(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1683,7 +1368,7 @@ impl IsolatedWindowsEnvironmentOwnerRegistrationData { (windows_core::Interface::vtable(this).ProcessesRunnableAsSystem)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ProcessesRunnableAsUser(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1691,7 +1376,7 @@ impl IsolatedWindowsEnvironmentOwnerRegistrationData { (windows_core::Interface::vtable(this).ProcessesRunnableAsUser)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ActivationFileExtensions(&self) -> windows_core::Result> { let this = self; unsafe { @@ -1725,7 +1410,6 @@ pub struct IsolatedWindowsEnvironmentOwnerRegistrationResult(windows_core::IUnkn windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentOwnerRegistrationResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentOwnerRegistrationResult { - #[cfg(feature = "deprecated")] pub fn Status(&self) -> windows_core::Result { let this = self; unsafe { @@ -1733,7 +1417,6 @@ impl IsolatedWindowsEnvironmentOwnerRegistrationResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExtendedError(&self) -> windows_core::Result { let this = self; unsafe { @@ -1783,7 +1466,6 @@ pub struct IsolatedWindowsEnvironmentPostMessageResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentPostMessageResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentPostMessageResult { - #[cfg(feature = "deprecated")] pub fn Status(&self) -> windows_core::Result { let this = self; unsafe { @@ -1791,7 +1473,6 @@ impl IsolatedWindowsEnvironmentPostMessageResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExtendedError(&self) -> windows_core::Result { let this = self; unsafe { @@ -1839,7 +1520,6 @@ pub struct IsolatedWindowsEnvironmentProcess(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentProcess, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentProcess { - #[cfg(feature = "deprecated")] pub fn State(&self) -> windows_core::Result { let this = self; unsafe { @@ -1847,7 +1527,6 @@ impl IsolatedWindowsEnvironmentProcess { (windows_core::Interface::vtable(this).State)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExitCode(&self) -> windows_core::Result { let this = self; unsafe { @@ -1855,17 +1534,14 @@ impl IsolatedWindowsEnvironmentProcess { (windows_core::Interface::vtable(this).ExitCode)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn WaitForExit(&self) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).WaitForExit)(windows_core::Interface::as_raw(this)).ok() } } - #[cfg(feature = "deprecated")] pub fn WaitForExitWithTimeout(&self, timeoutmilliseconds: u32) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).WaitForExitWithTimeout)(windows_core::Interface::as_raw(this), timeoutmilliseconds).ok() } } - #[cfg(feature = "deprecated")] pub fn WaitForExitAsync(&self) -> windows_core::Result { let this = self; unsafe { @@ -1938,7 +1614,6 @@ impl IsolatedWindowsEnvironmentShareFileRequestOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn AllowWrite(&self) -> windows_core::Result { let this = self; unsafe { @@ -1946,7 +1621,6 @@ impl IsolatedWindowsEnvironmentShareFileRequestOptions { (windows_core::Interface::vtable(this).AllowWrite)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAllowWrite(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowWrite)(windows_core::Interface::as_raw(this), value).ok() } @@ -1977,7 +1651,6 @@ pub struct IsolatedWindowsEnvironmentShareFileResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFileResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentShareFileResult { - #[cfg(feature = "deprecated")] pub fn Status(&self) -> windows_core::Result { let this = self; unsafe { @@ -1985,7 +1658,6 @@ impl IsolatedWindowsEnvironmentShareFileResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExtendedError(&self) -> windows_core::Result { let this = self; unsafe { @@ -1993,7 +1665,6 @@ impl IsolatedWindowsEnvironmentShareFileResult { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn File(&self) -> windows_core::Result { let this = self; unsafe { @@ -2051,7 +1722,6 @@ impl IsolatedWindowsEnvironmentShareFolderRequestOptions { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn AllowWrite(&self) -> windows_core::Result { let this = self; unsafe { @@ -2059,7 +1729,6 @@ impl IsolatedWindowsEnvironmentShareFolderRequestOptions { (windows_core::Interface::vtable(this).AllowWrite)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn SetAllowWrite(&self, value: bool) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetAllowWrite)(windows_core::Interface::as_raw(this), value).ok() } @@ -2090,7 +1759,6 @@ pub struct IsolatedWindowsEnvironmentShareFolderResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentShareFolderResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentShareFolderResult { - #[cfg(feature = "deprecated")] pub fn Status(&self) -> windows_core::Result { let this = self; unsafe { @@ -2098,7 +1766,6 @@ impl IsolatedWindowsEnvironmentShareFolderResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExtendedError(&self) -> windows_core::Result { let this = self; unsafe { @@ -2165,7 +1832,6 @@ pub struct IsolatedWindowsEnvironmentStartProcessResult(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentStartProcessResult, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentStartProcessResult { - #[cfg(feature = "deprecated")] pub fn Status(&self) -> windows_core::Result { let this = self; unsafe { @@ -2173,7 +1839,6 @@ impl IsolatedWindowsEnvironmentStartProcessResult { (windows_core::Interface::vtable(this).Status)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ExtendedError(&self) -> windows_core::Result { let this = self; unsafe { @@ -2181,7 +1846,6 @@ impl IsolatedWindowsEnvironmentStartProcessResult { (windows_core::Interface::vtable(this).ExtendedError)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn Process(&self) -> windows_core::Result { let this = self; unsafe { @@ -2238,7 +1902,6 @@ impl IsolatedWindowsEnvironmentTelemetryParameters { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } - #[cfg(feature = "deprecated")] pub fn CorrelationId(&self) -> windows_core::Result { let this = self; unsafe { @@ -2246,7 +1909,6 @@ impl IsolatedWindowsEnvironmentTelemetryParameters { (windows_core::Interface::vtable(this).CorrelationId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn SetCorrelationId(&self, value: windows_core::GUID) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetCorrelationId)(windows_core::Interface::as_raw(this), value).ok() } @@ -2277,7 +1939,6 @@ pub struct IsolatedWindowsEnvironmentUserInfo(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(IsolatedWindowsEnvironmentUserInfo, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl IsolatedWindowsEnvironmentUserInfo { - #[cfg(feature = "deprecated")] pub fn EnvironmentUserSid(&self) -> windows_core::Result { let this = self; unsafe { @@ -2285,7 +1946,6 @@ impl IsolatedWindowsEnvironmentUserInfo { (windows_core::Interface::vtable(this).EnvironmentUserSid)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn EnvironmentUserName(&self) -> windows_core::Result { let this = self; unsafe { @@ -2293,7 +1953,6 @@ impl IsolatedWindowsEnvironmentUserInfo { (windows_core::Interface::vtable(this).EnvironmentUserName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(feature = "deprecated")] pub fn TryWaitForSignInAsync(&self) -> windows_core::Result> { let this = self; unsafe { @@ -2301,7 +1960,6 @@ impl IsolatedWindowsEnvironmentUserInfo { (windows_core::Interface::vtable(this).TryWaitForSignInAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn TryWaitForSignInWithProgressAsync(&self) -> windows_core::Result> { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -2331,28 +1989,26 @@ unsafe impl Sync for IsolatedWindowsEnvironmentUserInfo {} pub struct IsolatedWindowsHostMessenger; #[cfg(feature = "deprecated")] impl IsolatedWindowsHostMessenger { - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn PostMessageToReceiver(receiverid: windows_core::GUID, message: P1) -> windows_core::Result<()> where 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() }) } - #[cfg(feature = "deprecated")] pub fn GetFileId(filepath: &windows_core::HSTRING) -> windows_core::Result { Self::IIsolatedWindowsHostMessengerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFileId)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(filepath), &mut result__).map(|| core::mem::transmute(result__)) }) } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn RegisterHostMessageReceiver(receiverid: windows_core::GUID, hostmessagereceivedcallback: P1) -> windows_core::Result<()> where P1: windows_core::Param, { Self::IIsolatedWindowsHostMessengerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).RegisterHostMessageReceiver)(windows_core::Interface::as_raw(this), receiverid, hostmessagereceivedcallback.param().abi()).ok() }) } - #[cfg(feature = "deprecated")] pub fn UnregisterHostMessageReceiver(receiverid: windows_core::GUID) -> windows_core::Result<()> { Self::IIsolatedWindowsHostMessengerStatics2(|this| unsafe { (windows_core::Interface::vtable(this).UnregisterHostMessageReceiver)(windows_core::Interface::as_raw(this), receiverid).ok() }) } 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 dce46e5af4..ce1dc26346 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/Provider/mod.rs @@ -84,6 +84,7 @@ impl FileOpenPickerUI { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTitle)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } + #[cfg(feature = "deprecated")] pub fn FileRemoved(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -94,6 +95,7 @@ impl FileOpenPickerUI { (windows_core::Interface::vtable(this).FileRemoved)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn RemoveFileRemoved(&self, token: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveFileRemoved)(windows_core::Interface::as_raw(this), token).ok() } @@ -131,7 +133,6 @@ pub struct FileRemovedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(FileRemovedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl FileRemovedEventArgs { - #[cfg(feature = "deprecated")] pub fn Id(&self) -> windows_core::Result { let this = self; unsafe { @@ -275,8 +276,14 @@ pub struct IFileOpenPickerUI_Vtbl { 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, pub SetTitle: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub FileRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + FileRemoved: usize, + #[cfg(feature = "deprecated")] pub RemoveFileRemoved: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + RemoveFileRemoved: usize, pub Closing: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveClosing: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, } @@ -290,10 +297,7 @@ impl windows_core::RuntimeType for IFileRemovedEventArgs { #[repr(C)] pub struct IFileRemovedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Id: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Id: usize, } windows_core::imp::define_interface!(IFileSavePickerUI, IFileSavePickerUI_Vtbl, 0x9656c1e7_3e56_43cc_8a39_33c73d9d542b); impl windows_core::RuntimeType for IFileSavePickerUI { diff --git a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs index d1cb244442..dc51074cc0 100644 --- a/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs +++ b/crates/libs/windows/src/Windows/Storage/Pickers/mod.rs @@ -195,7 +195,7 @@ impl FileOpenPicker { (windows_core::Interface::vtable(this).PickMultipleFilesAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -203,10 +203,12 @@ impl FileOpenPicker { (windows_core::Interface::vtable(this).ContinuationData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn PickSingleFileAndContinue(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).PickSingleFileAndContinue)(windows_core::Interface::as_raw(this)).ok() } } + #[cfg(feature = "deprecated")] pub fn PickMultipleFilesAndContinue(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).PickMultipleFilesAndContinue)(windows_core::Interface::as_raw(this)).ok() } @@ -219,7 +221,7 @@ impl FileOpenPicker { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "Storage_Streams")] + #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub fn ResumePickSingleFileAsync() -> windows_core::Result> { Self::IFileOpenPickerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -552,6 +554,7 @@ impl FileSavePicker { (windows_core::Interface::vtable(this).ContinuationData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn PickSaveFileAndContinue(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).PickSaveFileAndContinue)(windows_core::Interface::as_raw(this)).ok() } @@ -682,6 +685,7 @@ impl FolderPicker { (windows_core::Interface::vtable(this).ContinuationData)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn PickFolderAndContinue(&self) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).PickFolderAndContinue)(windows_core::Interface::as_raw(this)).ok() } @@ -756,12 +760,18 @@ impl windows_core::RuntimeType for IFileOpenPicker2 { #[repr(C)] pub struct IFileOpenPicker2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub ContinuationData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] ContinuationData: usize, + #[cfg(feature = "deprecated")] pub PickSingleFileAndContinue: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + PickSingleFileAndContinue: usize, + #[cfg(feature = "deprecated")] pub PickMultipleFilesAndContinue: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + PickMultipleFilesAndContinue: usize, } windows_core::imp::define_interface!(IFileOpenPicker3, IFileOpenPicker3_Vtbl, 0xd9a5c5b3_c5dc_5b98_bd80_a8d0ca0584d8); impl windows_core::RuntimeType for IFileOpenPicker3 { @@ -782,9 +792,9 @@ impl windows_core::RuntimeType for IFileOpenPickerStatics { #[repr(C)] pub struct IFileOpenPickerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "Storage_Streams")] + #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] pub ResumePickSingleFileAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] + #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] ResumePickSingleFileAsync: usize, } windows_core::imp::define_interface!(IFileOpenPickerStatics2, IFileOpenPickerStatics2_Vtbl, 0xe8917415_eddd_5c98_b6f3_366fdfcad392); @@ -856,7 +866,10 @@ pub struct IFileSavePicker2_Vtbl { pub ContinuationData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] ContinuationData: usize, + #[cfg(feature = "deprecated")] pub PickSaveFileAndContinue: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + PickSaveFileAndContinue: usize, } windows_core::imp::define_interface!(IFileSavePicker3, IFileSavePicker3_Vtbl, 0x698aec69_ba3c_4e51_bd90_4abcbbf4cfaf); impl windows_core::RuntimeType for IFileSavePicker3 { @@ -927,7 +940,10 @@ pub struct IFolderPicker2_Vtbl { pub ContinuationData: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, #[cfg(not(feature = "Foundation_Collections"))] ContinuationData: usize, + #[cfg(feature = "deprecated")] pub PickFolderAndContinue: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + PickFolderAndContinue: usize, } windows_core::imp::define_interface!(IFolderPicker3, IFolderPicker3_Vtbl, 0x673b1e29_d326_53c0_bd24_a25c714cee36); impl windows_core::RuntimeType for IFolderPicker3 { diff --git a/crates/libs/windows/src/Windows/System/Power/mod.rs b/crates/libs/windows/src/Windows/System/Power/mod.rs index fdb76f791c..9b12519858 100644 --- a/crates/libs/windows/src/Windows/System/Power/mod.rs +++ b/crates/libs/windows/src/Windows/System/Power/mod.rs @@ -2,63 +2,54 @@ pub struct BackgroundEnergyManager; #[cfg(feature = "deprecated")] impl BackgroundEnergyManager { - #[cfg(feature = "deprecated")] pub fn LowUsageLevel() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).LowUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn NearMaxAcceptableUsageLevel() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NearMaxAcceptableUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn MaxAcceptableUsageLevel() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).MaxAcceptableUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn ExcessiveUsageLevel() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ExcessiveUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn NearTerminationUsageLevel() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NearTerminationUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn TerminationUsageLevel() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).TerminationUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsage() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RecentEnergyUsage)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageLevel() -> windows_core::Result { Self::IBackgroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RecentEnergyUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageIncreased(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -68,11 +59,9 @@ impl BackgroundEnergyManager { (windows_core::Interface::vtable(this).RecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveRecentEnergyUsageIncreased(token: i64) -> windows_core::Result<()> { Self::IBackgroundEnergyManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageReturnedToLow(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -82,7 +71,6 @@ impl BackgroundEnergyManager { (windows_core::Interface::vtable(this).RecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveRecentEnergyUsageReturnedToLow(token: i64) -> windows_core::Result<()> { Self::IBackgroundEnergyManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), token).ok() }) } @@ -128,49 +116,42 @@ impl windows_core::RuntimeType for EnergySaverStatus { pub struct ForegroundEnergyManager; #[cfg(feature = "deprecated")] impl ForegroundEnergyManager { - #[cfg(feature = "deprecated")] pub fn LowUsageLevel() -> windows_core::Result { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).LowUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn NearMaxAcceptableUsageLevel() -> windows_core::Result { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NearMaxAcceptableUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn MaxAcceptableUsageLevel() -> windows_core::Result { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).MaxAcceptableUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn ExcessiveUsageLevel() -> windows_core::Result { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).ExcessiveUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsage() -> windows_core::Result { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RecentEnergyUsage)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageLevel() -> windows_core::Result { Self::IForegroundEnergyManagerStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).RecentEnergyUsageLevel)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageIncreased(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -180,11 +161,9 @@ impl ForegroundEnergyManager { (windows_core::Interface::vtable(this).RecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveRecentEnergyUsageIncreased(token: i64) -> windows_core::Result<()> { Self::IForegroundEnergyManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRecentEnergyUsageIncreased)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "deprecated")] pub fn RecentEnergyUsageReturnedToLow(handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -194,7 +173,6 @@ impl ForegroundEnergyManager { (windows_core::Interface::vtable(this).RecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveRecentEnergyUsageReturnedToLow(token: i64) -> windows_core::Result<()> { Self::IForegroundEnergyManagerStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveRecentEnergyUsageReturnedToLow)(windows_core::Interface::as_raw(this), token).ok() }) } @@ -217,54 +195,18 @@ impl windows_core::RuntimeType for IBackgroundEnergyManagerStatics { #[repr(C)] pub struct IBackgroundEnergyManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub LowUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LowUsageLevel: usize, - #[cfg(feature = "deprecated")] pub NearMaxAcceptableUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - NearMaxAcceptableUsageLevel: usize, - #[cfg(feature = "deprecated")] pub MaxAcceptableUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MaxAcceptableUsageLevel: usize, - #[cfg(feature = "deprecated")] pub ExcessiveUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExcessiveUsageLevel: usize, - #[cfg(feature = "deprecated")] pub NearTerminationUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - NearTerminationUsageLevel: usize, - #[cfg(feature = "deprecated")] pub TerminationUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TerminationUsageLevel: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsage: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsageLevel: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsageIncreased: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsageIncreased: usize, - #[cfg(feature = "deprecated")] pub RemoveRecentEnergyUsageIncreased: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveRecentEnergyUsageIncreased: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsageReturnedToLow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsageReturnedToLow: usize, - #[cfg(feature = "deprecated")] pub RemoveRecentEnergyUsageReturnedToLow: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveRecentEnergyUsageReturnedToLow: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(IForegroundEnergyManagerStatics, IForegroundEnergyManagerStatics_Vtbl, 0x9ff86872_e677_4814_9a20_5337ca732b98); @@ -276,46 +218,16 @@ impl windows_core::RuntimeType for IForegroundEnergyManagerStatics { #[repr(C)] pub struct IForegroundEnergyManagerStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub LowUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - LowUsageLevel: usize, - #[cfg(feature = "deprecated")] pub NearMaxAcceptableUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - NearMaxAcceptableUsageLevel: usize, - #[cfg(feature = "deprecated")] pub MaxAcceptableUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - MaxAcceptableUsageLevel: usize, - #[cfg(feature = "deprecated")] pub ExcessiveUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ExcessiveUsageLevel: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsage: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsage: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsageLevel: unsafe extern "system" fn(*mut core::ffi::c_void, *mut u32) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsageLevel: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsageIncreased: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsageIncreased: usize, - #[cfg(feature = "deprecated")] pub RemoveRecentEnergyUsageIncreased: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveRecentEnergyUsageIncreased: usize, - #[cfg(feature = "deprecated")] pub RecentEnergyUsageReturnedToLow: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RecentEnergyUsageReturnedToLow: usize, - #[cfg(feature = "deprecated")] pub RemoveRecentEnergyUsageReturnedToLow: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveRecentEnergyUsageReturnedToLow: usize, } windows_core::imp::define_interface!(IPowerManagerStatics, IPowerManagerStatics_Vtbl, 0x1394825d_62ce_4364_98d5_aa28c7fbd15b); impl windows_core::RuntimeType for IPowerManagerStatics { diff --git a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs index 196cd88be8..ea52a7373a 100644 --- a/crates/libs/windows/src/Windows/System/UserProfile/mod.rs +++ b/crates/libs/windows/src/Windows/System/UserProfile/mod.rs @@ -638,66 +638,36 @@ impl windows_core::RuntimeType for IUserInformationStatics { #[repr(C)] pub struct IUserInformationStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub AccountPictureChangeEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AccountPictureChangeEnabled: usize, - #[cfg(feature = "deprecated")] pub NameAccessAllowed: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - NameAccessAllowed: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub GetAccountPicture: unsafe extern "system" fn(*mut core::ffi::c_void, AccountPictureKind, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(all(feature = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] GetAccountPicture: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetAccountPictureAsync: 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 = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetAccountPictureAsync: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetAccountPicturesAsync: 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 = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetAccountPicturesAsync: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetAccountPictureFromStreamAsync: 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 = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetAccountPictureFromStreamAsync: usize, - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub SetAccountPicturesFromStreamsAsync: 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 = "Storage_Streams", feature = "deprecated")))] + #[cfg(not(feature = "Storage_Streams"))] SetAccountPicturesFromStreamsAsync: usize, - #[cfg(feature = "deprecated")] pub AccountPictureChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - AccountPictureChanged: usize, - #[cfg(feature = "deprecated")] pub RemoveAccountPictureChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveAccountPictureChanged: usize, - #[cfg(feature = "deprecated")] pub GetDisplayNameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetDisplayNameAsync: usize, - #[cfg(feature = "deprecated")] pub GetFirstNameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetFirstNameAsync: usize, - #[cfg(feature = "deprecated")] pub GetLastNameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetLastNameAsync: usize, - #[cfg(feature = "deprecated")] pub GetPrincipalNameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetPrincipalNameAsync: usize, - #[cfg(feature = "deprecated")] pub GetSessionInitiationProtocolUriAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetSessionInitiationProtocolUriAsync: usize, - #[cfg(feature = "deprecated")] pub GetDomainNameAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetDomainNameAsync: usize, } windows_core::imp::define_interface!(IUserProfilePersonalizationSettings, IUserProfilePersonalizationSettings_Vtbl, 0x8ceddab4_7998_46d5_8dd3_184f1c5f9ab9); impl windows_core::RuntimeType for IUserProfilePersonalizationSettings { @@ -822,28 +792,26 @@ impl windows_core::RuntimeType for SetImageFeedResult { pub struct UserInformation; #[cfg(feature = "deprecated")] impl UserInformation { - #[cfg(feature = "deprecated")] pub fn AccountPictureChangeEnabled() -> windows_core::Result { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).AccountPictureChangeEnabled)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn NameAccessAllowed() -> windows_core::Result { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).NameAccessAllowed)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn GetAccountPicture(kind: AccountPictureKind) -> windows_core::Result { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetAccountPicture)(windows_core::Interface::as_raw(this), kind, &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetAccountPictureAsync(image: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -853,7 +821,7 @@ impl UserInformation { (windows_core::Interface::vtable(this).SetAccountPictureAsync)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetAccountPicturesAsync(smallimage: P0, largeimage: P1, video: P2) -> windows_core::Result> where P0: windows_core::Param, @@ -865,7 +833,7 @@ impl UserInformation { (windows_core::Interface::vtable(this).SetAccountPicturesAsync)(windows_core::Interface::as_raw(this), smallimage.param().abi(), largeimage.param().abi(), video.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetAccountPictureFromStreamAsync(image: P0) -> windows_core::Result> where P0: windows_core::Param, @@ -875,7 +843,7 @@ impl UserInformation { (windows_core::Interface::vtable(this).SetAccountPictureFromStreamAsync)(windows_core::Interface::as_raw(this), image.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(all(feature = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn SetAccountPicturesFromStreamsAsync(smallimage: P0, largeimage: P1, video: P2) -> windows_core::Result> where P0: windows_core::Param, @@ -887,7 +855,6 @@ impl UserInformation { (windows_core::Interface::vtable(this).SetAccountPicturesFromStreamsAsync)(windows_core::Interface::as_raw(this), smallimage.param().abi(), largeimage.param().abi(), video.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn AccountPictureChanged(changehandler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -897,46 +864,39 @@ impl UserInformation { (windows_core::Interface::vtable(this).AccountPictureChanged)(windows_core::Interface::as_raw(this), changehandler.param().abi(), &mut result__).map(|| result__) }) } - #[cfg(feature = "deprecated")] pub fn RemoveAccountPictureChanged(token: i64) -> windows_core::Result<()> { Self::IUserInformationStatics(|this| unsafe { (windows_core::Interface::vtable(this).RemoveAccountPictureChanged)(windows_core::Interface::as_raw(this), token).ok() }) } - #[cfg(feature = "deprecated")] pub fn GetDisplayNameAsync() -> windows_core::Result> { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetDisplayNameAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn GetFirstNameAsync() -> windows_core::Result> { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetFirstNameAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn GetLastNameAsync() -> windows_core::Result> { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetLastNameAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn GetPrincipalNameAsync() -> windows_core::Result> { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetPrincipalNameAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn GetSessionInitiationProtocolUriAsync() -> windows_core::Result> { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetSessionInitiationProtocolUriAsync)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn GetDomainNameAsync() -> windows_core::Result> { Self::IUserInformationStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); diff --git a/crates/libs/windows/src/Windows/System/mod.rs b/crates/libs/windows/src/Windows/System/mod.rs index 0d32a1d558..7647aa04e6 100644 --- a/crates/libs/windows/src/Windows/System/mod.rs +++ b/crates/libs/windows/src/Windows/System/mod.rs @@ -2515,13 +2515,13 @@ pub struct IUserStatics_Vtbl { 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")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "deprecated")))] FindAllAsyncByType: usize, - #[cfg(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections"))] + #[cfg(not(all(feature = "Foundation_Collections", 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, } @@ -3843,14 +3843,14 @@ impl User { (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")] + #[cfg(all(feature = "Foundation_Collections", 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(feature = "Foundation_Collections")] + #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] pub fn FindAllAsyncByTypeAndStatus(r#type: UserType, status: UserAuthenticationStatus) -> windows_core::Result>> { Self::IUserStatics(|this| 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 fdabf41bc3..5e1965ab08 100644 --- a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs @@ -456,14 +456,8 @@ impl windows_core::RuntimeType for ISettingsPane { #[repr(C)] pub struct ISettingsPane_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub CommandsRequested: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - CommandsRequested: usize, - #[cfg(feature = "deprecated")] pub RemoveCommandsRequested: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - RemoveCommandsRequested: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISettingsPaneCommandsRequest, ISettingsPaneCommandsRequest_Vtbl, 0x44df23ae_5d6e_4068_a168_f47643182114); @@ -475,9 +469,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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", 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", feature = "deprecated")))] + #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Popups")))] ApplicationCommands: usize, } #[cfg(feature = "deprecated")] @@ -490,10 +484,7 @@ impl windows_core::RuntimeType for ISettingsPaneCommandsRequestedEventArgs { #[repr(C)] pub struct ISettingsPaneCommandsRequestedEventArgs_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Request: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Request: usize, } #[cfg(feature = "deprecated")] windows_core::imp::define_interface!(ISettingsPaneStatics, ISettingsPaneStatics_Vtbl, 0x1c6a52c5_ff19_471b_ba6b_f8f35694ad9a); @@ -505,18 +496,9 @@ impl windows_core::RuntimeType for ISettingsPaneStatics { #[repr(C)] pub struct ISettingsPaneStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub GetForCurrentView: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetForCurrentView: usize, - #[cfg(feature = "deprecated")] pub Show: unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Show: usize, - #[cfg(feature = "deprecated")] pub Edge: unsafe extern "system" fn(*mut core::ffi::c_void, *mut SettingsEdgeLocation) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Edge: usize, } windows_core::imp::define_interface!(IWebAccountCommand, IWebAccountCommand_Vtbl, 0xcaa39398_9cfa_4246_b0c4_a913a3896541); impl windows_core::RuntimeType for IWebAccountCommand { @@ -687,7 +669,6 @@ pub struct SettingsPane(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SettingsPane, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SettingsPane { - #[cfg(feature = "deprecated")] pub fn CommandsRequested(&self, handler: P0) -> windows_core::Result where P0: windows_core::Param>, @@ -698,23 +679,19 @@ impl SettingsPane { (windows_core::Interface::vtable(this).CommandsRequested)(windows_core::Interface::as_raw(this), handler.param().abi(), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn RemoveCommandsRequested(&self, cookie: i64) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveCommandsRequested)(windows_core::Interface::as_raw(this), cookie).ok() } } - #[cfg(feature = "deprecated")] pub fn GetForCurrentView() -> windows_core::Result { Self::ISettingsPaneStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).GetForCurrentView)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } - #[cfg(feature = "deprecated")] pub fn Show() -> windows_core::Result<()> { Self::ISettingsPaneStatics(|this| unsafe { (windows_core::Interface::vtable(this).Show)(windows_core::Interface::as_raw(this)).ok() }) } - #[cfg(feature = "deprecated")] pub fn Edge() -> windows_core::Result { Self::ISettingsPaneStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -747,7 +724,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "UI_Popups"))] pub fn ApplicationCommands(&self) -> windows_core::Result> { let this = self; unsafe { @@ -777,7 +754,6 @@ pub struct SettingsPaneCommandsRequestedEventArgs(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SettingsPaneCommandsRequestedEventArgs, windows_core::IUnknown, windows_core::IInspectable); #[cfg(feature = "deprecated")] impl SettingsPaneCommandsRequestedEventArgs { - #[cfg(feature = "deprecated")] pub fn Request(&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 447b35362e..7e2dad9ef3 100644 --- a/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs +++ b/crates/libs/windows/src/Windows/UI/StartScreen/mod.rs @@ -76,26 +76,68 @@ pub struct ISecondaryTile_Vtbl { pub TileId: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetArguments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Arguments: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub SetShortName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetShortName: usize, + #[cfg(feature = "deprecated")] pub ShortName: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + ShortName: usize, pub SetDisplayName: unsafe extern "system" fn(*mut core::ffi::c_void, *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 = "deprecated")] pub SetLogo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetLogo: usize, + #[cfg(feature = "deprecated")] pub Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Logo: usize, + #[cfg(feature = "deprecated")] pub SetSmallLogo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetSmallLogo: usize, + #[cfg(feature = "deprecated")] pub SmallLogo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SmallLogo: usize, + #[cfg(feature = "deprecated")] pub SetWideLogo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetWideLogo: usize, + #[cfg(feature = "deprecated")] pub WideLogo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + WideLogo: usize, pub SetLockScreenBadgeLogo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub LockScreenBadgeLogo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetLockScreenDisplayBadgeAndTileText: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, pub LockScreenDisplayBadgeAndTileText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub SetTileOptions: unsafe extern "system" fn(*mut core::ffi::c_void, TileOptions) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetTileOptions: usize, + #[cfg(feature = "deprecated")] pub TileOptions: unsafe extern "system" fn(*mut core::ffi::c_void, *mut TileOptions) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + TileOptions: usize, + #[cfg(feature = "deprecated")] pub SetForegroundText: unsafe extern "system" fn(*mut core::ffi::c_void, ForegroundText) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetForegroundText: usize, + #[cfg(feature = "deprecated")] pub ForegroundText: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ForegroundText) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + ForegroundText: usize, + #[cfg(feature = "deprecated")] pub SetBackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, super::Color) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetBackgroundColor: usize, + #[cfg(feature = "deprecated")] pub BackgroundColor: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::Color) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + BackgroundColor: usize, pub RequestCreateAsync: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestCreateAsyncWithPoint: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Point, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub RequestCreateAsyncWithRect: unsafe extern "system" fn(*mut core::ffi::c_void, super::super::Foundation::Rect, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -134,8 +176,14 @@ impl windows_core::RuntimeType for ISecondaryTileFactory { #[repr(C)] pub struct ISecondaryTileFactory_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub CreateTile: 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, TileOptions, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + CreateTile: usize, + #[cfg(feature = "deprecated")] pub CreateWideTile: 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, TileOptions, *mut core::ffi::c_void, *mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + CreateWideTile: usize, pub CreateWithId: 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!(ISecondaryTileFactory2, ISecondaryTileFactory2_Vtbl, 0x274b8a3b_522d_448e_9eb2_d0672ab345c8); @@ -175,10 +223,22 @@ impl windows_core::RuntimeType for ISecondaryTileVisualElements { #[repr(C)] pub struct ISecondaryTileVisualElements_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub SetSquare30x30Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetSquare30x30Logo: usize, + #[cfg(feature = "deprecated")] pub Square30x30Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Square30x30Logo: usize, + #[cfg(feature = "deprecated")] pub SetSquare70x70Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetSquare70x70Logo: usize, + #[cfg(feature = "deprecated")] pub Square70x70Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + Square70x70Logo: usize, pub SetSquare150x150Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, pub Square150x150Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut *mut core::ffi::c_void) -> windows_core::HRESULT, pub SetWide310x150Logo: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void) -> windows_core::HRESULT, @@ -556,10 +616,12 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).Arguments)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetShortName(&self, value: &windows_core::HSTRING) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetShortName)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(value)).ok() } } + #[cfg(feature = "deprecated")] pub fn ShortName(&self) -> windows_core::Result { let this = self; unsafe { @@ -578,6 +640,7 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).DisplayName)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetLogo(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -585,6 +648,7 @@ impl SecondaryTile { let this = self; unsafe { (windows_core::Interface::vtable(this).SetLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } + #[cfg(feature = "deprecated")] pub fn Logo(&self) -> windows_core::Result { let this = self; unsafe { @@ -592,6 +656,7 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).Logo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetSmallLogo(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -599,6 +664,7 @@ impl SecondaryTile { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSmallLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } + #[cfg(feature = "deprecated")] pub fn SmallLogo(&self) -> windows_core::Result { let this = self; unsafe { @@ -606,6 +672,7 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).SmallLogo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetWideLogo(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -613,6 +680,7 @@ impl SecondaryTile { let this = self; unsafe { (windows_core::Interface::vtable(this).SetWideLogo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } + #[cfg(feature = "deprecated")] pub fn WideLogo(&self) -> windows_core::Result { let this = self; unsafe { @@ -645,10 +713,12 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).LockScreenDisplayBadgeAndTileText)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn SetTileOptions(&self, value: TileOptions) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetTileOptions)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn TileOptions(&self) -> windows_core::Result { let this = self; unsafe { @@ -656,10 +726,12 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).TileOptions)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn SetForegroundText(&self, value: ForegroundText) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetForegroundText)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn ForegroundText(&self) -> windows_core::Result { let this = self; unsafe { @@ -667,10 +739,12 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).ForegroundText)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn SetBackgroundColor(&self, value: super::Color) -> windows_core::Result<()> { let this = self; unsafe { (windows_core::Interface::vtable(this).SetBackgroundColor)(windows_core::Interface::as_raw(this), value).ok() } } + #[cfg(feature = "deprecated")] pub fn BackgroundColor(&self) -> windows_core::Result { let this = self; unsafe { @@ -786,6 +860,7 @@ impl SecondaryTile { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).RemoveVisualElementsRequested)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn CreateTile(tileid: &windows_core::HSTRING, shortname: &windows_core::HSTRING, displayname: &windows_core::HSTRING, arguments: &windows_core::HSTRING, tileoptions: TileOptions, logoreference: P5) -> windows_core::Result where P5: windows_core::Param, @@ -795,6 +870,7 @@ impl SecondaryTile { (windows_core::Interface::vtable(this).CreateTile)(windows_core::Interface::as_raw(this), core::mem::transmute_copy(tileid), core::mem::transmute_copy(shortname), core::mem::transmute_copy(displayname), core::mem::transmute_copy(arguments), tileoptions, logoreference.param().abi(), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) }) } + #[cfg(feature = "deprecated")] pub fn CreateWideTile(tileid: &windows_core::HSTRING, shortname: &windows_core::HSTRING, displayname: &windows_core::HSTRING, arguments: &windows_core::HSTRING, tileoptions: TileOptions, logoreference: P5, widelogoreference: P6) -> windows_core::Result where P5: windows_core::Param, @@ -877,6 +953,7 @@ unsafe impl Sync for SecondaryTile {} pub struct SecondaryTileVisualElements(windows_core::IUnknown); windows_core::imp::interface_hierarchy!(SecondaryTileVisualElements, windows_core::IUnknown, windows_core::IInspectable); impl SecondaryTileVisualElements { + #[cfg(feature = "deprecated")] pub fn SetSquare30x30Logo(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -884,6 +961,7 @@ impl SecondaryTileVisualElements { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSquare30x30Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } + #[cfg(feature = "deprecated")] pub fn Square30x30Logo(&self) -> windows_core::Result { let this = self; unsafe { @@ -891,6 +969,7 @@ impl SecondaryTileVisualElements { (windows_core::Interface::vtable(this).Square30x30Logo)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn SetSquare70x70Logo(&self, value: P0) -> windows_core::Result<()> where P0: windows_core::Param, @@ -898,6 +977,7 @@ impl SecondaryTileVisualElements { let this = self; unsafe { (windows_core::Interface::vtable(this).SetSquare70x70Logo)(windows_core::Interface::as_raw(this), value.param().abi()).ok() } } + #[cfg(feature = "deprecated")] pub fn Square70x70Logo(&self) -> windows_core::Result { let this = self; unsafe { diff --git a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs index b9b84d11ae..3a8d6a6fb3 100644 --- a/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ViewManagement/mod.rs @@ -118,6 +118,7 @@ impl ApplicationView { (windows_core::Interface::vtable(this).AdjacentToRightDisplayEdge)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn IsFullScreen(&self) -> windows_core::Result { let this = self; unsafe { @@ -175,6 +176,7 @@ impl ApplicationView { let this = self; unsafe { (windows_core::Interface::vtable(this).RemoveConsolidated)(windows_core::Interface::as_raw(this), token).ok() } } + #[cfg(feature = "deprecated")] pub fn SuppressSystemOverlays(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -182,6 +184,7 @@ impl ApplicationView { (windows_core::Interface::vtable(this).SuppressSystemOverlays)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } + #[cfg(feature = "deprecated")] pub fn SetSuppressSystemOverlays(&self, value: bool) -> windows_core::Result<()> { let this = &windows_core::Interface::cast::(self)?; unsafe { (windows_core::Interface::vtable(this).SetSuppressSystemOverlays)(windows_core::Interface::as_raw(this), value).ok() } @@ -337,6 +340,7 @@ impl ApplicationView { (windows_core::Interface::vtable(this).GetDisplayRegions)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] pub fn TryUnsnapToFullscreen() -> windows_core::Result { Self::IApplicationViewFullscreenStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -353,12 +357,14 @@ impl ApplicationView { (windows_core::Interface::vtable(this).GetApplicationViewIdForWindow)(windows_core::Interface::as_raw(this), window.param().abi(), &mut result__).map(|| result__) }) } + #[cfg(feature = "deprecated")] pub fn Value() -> windows_core::Result { Self::IApplicationViewStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); (windows_core::Interface::vtable(this).Value)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) }) } + #[cfg(feature = "deprecated")] pub fn TryUnsnap() -> windows_core::Result { Self::IApplicationViewStatics(|this| unsafe { let mut result__ = core::mem::zeroed(); @@ -411,6 +417,7 @@ impl ApplicationView { (windows_core::Interface::vtable(this).UIContext)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } + #[cfg(feature = "deprecated")] fn IApplicationViewFullscreenStatics windows_core::Result>(callback: F) -> windows_core::Result { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) @@ -419,6 +426,7 @@ impl ApplicationView { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) } + #[cfg(feature = "deprecated")] fn IApplicationViewStatics windows_core::Result>(callback: F) -> windows_core::Result { static SHARED: windows_core::imp::FactoryCache = windows_core::imp::FactoryCache::new(); SHARED.call(callback) @@ -999,7 +1007,10 @@ pub struct IApplicationView_Vtbl { pub Orientation: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ApplicationViewOrientation) -> windows_core::HRESULT, pub AdjacentToLeftDisplayEdge: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub AdjacentToRightDisplayEdge: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(feature = "deprecated")] pub IsFullScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + IsFullScreen: usize, pub IsOnLockScreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub IsScreenCaptureEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, pub SetIsScreenCaptureEnabled: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, @@ -1016,8 +1027,14 @@ impl windows_core::RuntimeType for IApplicationView2 { #[repr(C)] pub struct IApplicationView2_Vtbl { pub base__: windows_core::IInspectable_Vtbl, + #[cfg(feature = "deprecated")] pub SuppressSystemOverlays: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SuppressSystemOverlays: usize, + #[cfg(feature = "deprecated")] pub SetSuppressSystemOverlays: unsafe extern "system" fn(*mut core::ffi::c_void, bool) -> windows_core::HRESULT, + #[cfg(not(feature = "deprecated"))] + SetSuppressSystemOverlays: usize, pub VisibleBounds: unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::super::Foundation::Rect) -> windows_core::HRESULT, pub VisibleBoundsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, *mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT, pub RemoveVisibleBoundsChanged: unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT, @@ -1108,10 +1125,7 @@ impl windows_core::RuntimeType for IApplicationViewFullscreenStatics { #[repr(C)] pub struct IApplicationViewFullscreenStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub TryUnsnapToFullscreen: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TryUnsnapToFullscreen: usize, } windows_core::imp::define_interface!(IApplicationViewInteropStatics, IApplicationViewInteropStatics_Vtbl, 0xc446fb5d_4793_4896_a8e2_be57a8bb0f50); impl windows_core::RuntimeType for IApplicationViewInteropStatics { @@ -1153,14 +1167,8 @@ impl windows_core::RuntimeType for IApplicationViewStatics { #[repr(C)] pub struct IApplicationViewStatics_Vtbl { pub base__: windows_core::IInspectable_Vtbl, - #[cfg(feature = "deprecated")] pub Value: unsafe extern "system" fn(*mut core::ffi::c_void, *mut ApplicationViewState) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - Value: usize, - #[cfg(feature = "deprecated")] pub TryUnsnap: unsafe extern "system" fn(*mut core::ffi::c_void, *mut bool) -> windows_core::HRESULT, - #[cfg(not(feature = "deprecated"))] - TryUnsnap: usize, } windows_core::imp::define_interface!(IApplicationViewStatics2, IApplicationViewStatics2_Vtbl, 0xaf338ae5_cf64_423c_85e5_f3e72448fb23); impl windows_core::RuntimeType for IApplicationViewStatics2 { diff --git a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs index 3e03f15771..b6d0eece2f 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs @@ -3245,7 +3245,7 @@ windows_core::imp::interface_hierarchy!(WebUIFileOpenPickerContinuationEventArgs windows_core::imp::required_hierarchy!(WebUIFileOpenPickerContinuationEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IContinuationActivatedEventArgs); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIFileOpenPickerContinuationEventArgs { - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3253,7 +3253,7 @@ impl WebUIFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3261,7 +3261,7 @@ impl WebUIFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3269,7 +3269,6 @@ impl WebUIFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).SplashScreen)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ActivatedOperation(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3277,7 +3276,7 @@ impl WebUIFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).ActivatedOperation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "System", feature = "deprecated"))] + #[cfg(feature = "System")] pub fn User(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3285,7 +3284,7 @@ impl WebUIFileOpenPickerContinuationEventArgs { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3293,7 +3292,7 @@ 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", feature = "deprecated"))] + #[cfg(all(feature = "Foundation_Collections", feature = "Storage_Streams"))] pub fn Files(&self) -> windows_core::Result> { let this = self; unsafe { @@ -3410,7 +3409,7 @@ windows_core::imp::interface_hierarchy!(WebUIFileSavePickerContinuationEventArgs windows_core::imp::required_hierarchy!(WebUIFileSavePickerContinuationEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IContinuationActivatedEventArgs); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIFileSavePickerContinuationEventArgs { - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3418,7 +3417,7 @@ impl WebUIFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3426,7 +3425,7 @@ impl WebUIFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3434,7 +3433,6 @@ impl WebUIFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).SplashScreen)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ActivatedOperation(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3442,7 +3440,7 @@ impl WebUIFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).ActivatedOperation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "System", feature = "deprecated"))] + #[cfg(feature = "System")] pub fn User(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3450,7 +3448,7 @@ impl WebUIFileSavePickerContinuationEventArgs { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3458,7 +3456,7 @@ impl WebUIFileSavePickerContinuationEventArgs { (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 = "Storage_Streams", feature = "deprecated"))] + #[cfg(feature = "Storage_Streams")] pub fn File(&self) -> windows_core::Result { let this = self; unsafe { @@ -3490,7 +3488,7 @@ windows_core::imp::interface_hierarchy!(WebUIFolderPickerContinuationEventArgs, windows_core::imp::required_hierarchy!(WebUIFolderPickerContinuationEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral, super::super::ApplicationModel::Activation::IActivatedEventArgsWithUser, super::super::ApplicationModel::Activation::IContinuationActivatedEventArgs); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIFolderPickerContinuationEventArgs { - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3498,7 +3496,7 @@ impl WebUIFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3506,7 +3504,7 @@ impl WebUIFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3514,7 +3512,6 @@ impl WebUIFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).SplashScreen)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ActivatedOperation(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3522,7 +3519,7 @@ impl WebUIFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).ActivatedOperation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "System", feature = "deprecated"))] + #[cfg(feature = "System")] pub fn User(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3530,7 +3527,7 @@ impl WebUIFolderPickerContinuationEventArgs { (windows_core::Interface::vtable(this).User)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(all(feature = "Foundation_Collections", feature = "deprecated"))] + #[cfg(feature = "Foundation_Collections")] pub fn ContinuationData(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -3538,7 +3535,7 @@ impl WebUIFolderPickerContinuationEventArgs { (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 = "Storage_Search", feature = "deprecated"))] + #[cfg(feature = "Storage_Search")] pub fn Folder(&self) -> windows_core::Result { let this = self; unsafe { @@ -5411,7 +5408,7 @@ windows_core::imp::interface_hierarchy!(WebUIWalletActionActivatedEventArgs, win windows_core::imp::required_hierarchy!(WebUIWalletActionActivatedEventArgs, super::super::ApplicationModel::Activation::IActivatedEventArgs, IActivatedEventArgsDeferral); #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] impl WebUIWalletActionActivatedEventArgs { - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn Kind(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5419,7 +5416,7 @@ impl WebUIWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).Kind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn PreviousExecutionState(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5427,7 +5424,7 @@ impl WebUIWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).PreviousExecutionState)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(all(feature = "ApplicationModel_Activation", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Activation")] pub fn SplashScreen(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5435,7 +5432,6 @@ impl WebUIWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).SplashScreen)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ActivatedOperation(&self) -> windows_core::Result { let this = &windows_core::Interface::cast::(self)?; unsafe { @@ -5443,7 +5439,6 @@ impl WebUIWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ActivatedOperation)(windows_core::Interface::as_raw(this), &mut result__).and_then(|| windows_core::Type::from_abi(result__)) } } - #[cfg(feature = "deprecated")] pub fn ItemId(&self) -> windows_core::Result { let this = self; unsafe { @@ -5451,7 +5446,7 @@ impl WebUIWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ItemId)(windows_core::Interface::as_raw(this), &mut result__).map(|| core::mem::transmute(result__)) } } - #[cfg(all(feature = "ApplicationModel_Wallet", feature = "deprecated"))] + #[cfg(feature = "ApplicationModel_Wallet")] pub fn ActionKind(&self) -> windows_core::Result { let this = self; unsafe { @@ -5459,7 +5454,6 @@ impl WebUIWalletActionActivatedEventArgs { (windows_core::Interface::vtable(this).ActionKind)(windows_core::Interface::as_raw(this), &mut result__).map(|| result__) } } - #[cfg(feature = "deprecated")] pub fn ActionId(&self) -> windows_core::Result { let this = self; unsafe {